aboutsummaryrefslogtreecommitdiff
path: root/src/gui_project.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-01-07 12:16:34 +0100
committerThomas White <taw@physics.org>2021-01-07 12:27:06 +0100
commit97eb1a231a07777a961efe6a389597989d1b7dc4 (patch)
tree303e93bd9bad6e13cf71fb705b5a7a096f160b4b /src/gui_project.c
parent801aca3557fed6883ccc7a84b5ca38005cb6244c (diff)
GUI: Basic labelling of reflections
Lots of improvements still to be made here, such as using the "real" Cairo text API as well as using proper overlines for negative indices.
Diffstat (limited to 'src/gui_project.c')
-rw-r--r--src/gui_project.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c
index f909eb29..d88ea791 100644
--- a/src/gui_project.c
+++ b/src/gui_project.c
@@ -420,6 +420,10 @@ static void handle_var(const char *key, const char *val,
proj->show_refls = parse_int(val);
}
+ if ( strcmp(key, "label_refls") == 0 ) {
+ proj->label_refls = parse_int(val);
+ }
+
if ( strcmp(key, "geom") == 0 ) {
proj->geom_filename = strdup(val);
}
@@ -843,6 +847,7 @@ int save_project(struct crystfelproject *proj)
fprintf(fh, "show_peaks %i\n", proj->show_peaks);
fprintf(fh, "show_refls %i\n", proj->show_refls);
+ fprintf(fh, "label_refls %i\n", proj->label_refls);
fprintf(fh, "-----\n");
for ( i=0; i<proj->n_results; i++ ) {
@@ -917,6 +922,7 @@ void default_project(struct crystfelproject *proj)
/* Default parameter values */
proj->show_peaks = 1;
proj->show_refls = 1;
+ proj->label_refls = 1;
proj->peak_search_params.method = PEAK_ZAEF;
proj->peak_search_params.threshold = 800.0;