diff options
author | Thomas White <taw@physics.org> | 2020-08-26 16:47:58 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-08-26 16:47:58 +0200 |
commit | beed39e09a3573380ee2cc0792b547c2f2d52852 (patch) | |
tree | b606a9d9faab02d68f848f78bc4600559dac63f2 /src/gui_project.c | |
parent | f249385feb6799c913f3eba13d79dfd507c72c04 (diff) |
Add job title and notes fields
This required a bit of callback re-wiring
Diffstat (limited to 'src/gui_project.c')
-rw-r--r-- | src/gui_project.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui_project.c b/src/gui_project.c index 26a2f3a3..637aa85d 100644 --- a/src/gui_project.c +++ b/src/gui_project.c @@ -257,6 +257,11 @@ static void handle_var(const char *key, const char *val, proj->indexing_params.min_peaks = parse_int(val); } + if ( strcmp(key, "indexing.new_job_title") == 0 ) { + free(proj->indexing_new_job_title); + proj->indexing_new_job_title = strdup(val); + } + if ( strcmp(key, "indexing.backend") == 0 ) { proj->indexing_backend_selected = find_backend(val, proj); } @@ -494,6 +499,9 @@ int save_project(struct crystfelproject *proj) fprintf(fh, "indexing.min_peaks %i\n", proj->indexing_params.min_peaks); + fprintf(fh, "indexing.new_job_title %s\n", + proj->indexing_new_job_title); + fprintf(fh, "indexing.backend %s\n", proj->backends[proj->indexing_backend_selected].name); for ( i=0; i<proj->n_backends; i++ ) { @@ -548,6 +556,7 @@ void default_project(struct crystfelproject *proj) proj->cur_image = NULL; proj->indexing_opts = NULL; proj->n_running_tasks = 0; + proj->indexing_new_job_title = NULL; /* FIXME: Crappy error handling */ proj->n_backends = 2; |