![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "gui/common/folder_survey_gui.h"#include "common/conf.h"#include "common/folder_survey.h"#include "gui/application.h"#include "views/view.h"#include <glib/gi18n.h>#include "widgets/dialog.h"#include "widgets/widget_settings.h"
Include dependency graph for folder_survey_gui.c:Go to the source code of this file.
Functions | |
| static gboolean | _confirm_pending_import (int new_files) |
| void | dt_folder_survey_gui_register_handlers () |
| gboolean | dt_folder_survey_propose_resume () |
| Propose to resume an interrupted studio session at application start. | |
|
static |
Definition at line 42 of file folder_survey_gui.c.
References dt_conf_get_bool(), dt_conf_set_bool(), DT_GUI_BOX_SPACING, dt_gui_main_window(), dt_gui_refocus_parent(), FALSE, and L.
Referenced by dt_folder_survey_gui_register_handlers().
| void dt_folder_survey_gui_register_handlers | ( | ) |
Register the handler common/folder_survey.c calls to ask about pending imports. Called from dt_gui_gtk_init(); without it the backend simply never asks.
Definition at line 71 of file folder_survey_gui.c.
References _confirm_pending_import(), and dt_folder_survey_set_confirm_import_handler().
Referenced by dt_gui_gtk_init().
| gboolean dt_folder_survey_propose_resume | ( | ) |
Propose to resume an interrupted studio session at application start.
When the previous session quit while monitoring, ask the user whether to resume; on acceptance, switch to the Studio Capture view and start monitoring, which in turn asks whether files that appeared meanwhile should be imported now. Call after the GUI and views are ready.
Definition at line 76 of file folder_survey_gui.c.
References dt_conf_get_string(), dt_folder_survey_forget_session(), dt_folder_survey_start(), dt_folder_survey_take_session_marker(), dt_free, dt_gui_main_window(), dt_view_manager_get_global(), dt_view_manager_switch(), and L.
Referenced by dt_init().