![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "gui/actions/menu.h"#include "common/paths.h"#include "control/control.h"#include "control/crawler.h"#include "database/database.h"#include "caches/mipmap_cache.h"#include "common/selection.h"#include "common/utility.h"#include "control/jobs.h"#include "develop/dev_pixelpipe.h"#include "develop/develop.h"#include "gui/actions/doc_screenshot.h"#include "gui/application.h"#include "gui/dtgtk/thumbnail.h"#include "gui/dtgtk/thumbtable.h"
Include dependency graph for run.c:Go to the source code of this file.
Data Structures | |
| struct | _preload_cache_params_t |
| Job parameters for preloading image cache with a maximum mipmap size. More... | |
Typedefs | |
| typedef struct _preload_cache_params_t | preload_cache_params_t |
| Job parameters for preloading image cache with a maximum mipmap size. | |
Functions | |
| static gboolean | clear_caches_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | optimize_database_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | backup_database_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | crawl_xmp_changes (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static int32_t | preload_image_cache (dt_job_t *job) |
| static gboolean | _preload_image_cache_with_max_size (dt_mipmap_size_t max_size, const char *description) |
| Helper function to create a preload job with the specified maximum mipmap size. | |
| static gboolean | preload_to_mipmap_0_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_1_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_2_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_3_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_4_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_5_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_6_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_7_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_to_mipmap_8_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | preload_auto_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | clear_image_cache (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | doc_screenshot_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| void | append_run (GtkWidget **menus, GList **lists, const dt_menus_t index) |
| typedef struct _preload_cache_params_t preload_cache_params_t |
Job parameters for preloading image cache with a maximum mipmap size.
|
static |
Helper function to create a preload job with the specified maximum mipmap size.
Definition at line 120 of file run.c.
References description(), dt_control_add_job(), dt_control_get_global(), dt_control_job_add_progress(), dt_control_job_create(), dt_control_job_set_params(), DT_JOB_QUEUE_USER_BG, max_size, preload_image_cache(), and TRUE.
Referenced by preload_auto_callback(), preload_to_mipmap_0_callback(), preload_to_mipmap_1_callback(), preload_to_mipmap_2_callback(), preload_to_mipmap_3_callback(), preload_to_mipmap_4_callback(), preload_to_mipmap_5_callback(), preload_to_mipmap_6_callback(), preload_to_mipmap_7_callback(), and preload_to_mipmap_8_callback().
| void append_run | ( | GtkWidget ** | menus, |
| GList ** | lists, | ||
| const dt_menus_t | index | ||
| ) |
Definition at line 215 of file run.c.
References add_menu_separator(), add_sub_menu_entry(), add_sub_menu_separator(), add_sub_sub_menu_entry(), add_top_submenu_entry(), backup_database_callback(), clear_caches_callback(), clear_image_cache(), crawl_xmp_changes(), doc_screenshot_callback(), dt_control_write_sidecar_files(), dt_gui_doc_screenshot_enabled(), dt_image_local_copy_synch(), GET_ACCEL_WRAPPER, get_last_widget(), has_active_images(), optimize_database_callback(), preload_auto_callback(), preload_to_mipmap_0_callback(), preload_to_mipmap_1_callback(), preload_to_mipmap_2_callback(), preload_to_mipmap_3_callback(), preload_to_mipmap_4_callback(), preload_to_mipmap_5_callback(), preload_to_mipmap_6_callback(), preload_to_mipmap_7_callback(), and preload_to_mipmap_8_callback().
Referenced by dt_ui_init_global_menu().
|
static |
Definition at line 54 of file run.c.
References dt_database_snapshot(), and TRUE.
Referenced by append_run().
|
static |
Definition at line 40 of file run.c.
References dt_dev_get_global(), dt_dev_pixelpipe_reset_all(), dt_dev_pixelpipe_resync_history_all, and TRUE.
Referenced by append_run().
|
static |
Definition at line 188 of file run.c.
References dt_gui_get_ui(), dt_mipmap_cache_remove(), dt_selection_get_global(), dt_selection_get_list(), dt_thumbtable_refresh_thumbnail, TRUE, and UNKNOWN_IMAGE.
Referenced by append_run().
|
static |
Definition at line 60 of file run.c.
References dt_control_crawler_run(), dt_control_crawler_show_image_list(), and TRUE.
Referenced by append_run().
|
static |
Definition at line 206 of file run.c.
References dt_gui_doc_screenshot_window_show(), and TRUE.
Referenced by append_run().
|
static |
Definition at line 48 of file run.c.
References dt_database_perform_maintenance(), and TRUE.
Referenced by append_run().
|
static |
Definition at line 178 of file run.c.
References _preload_image_cache_with_max_size(), dt_gui_get_global(), dt_gui_get_ui(), dt_mipmap_cache_get_matching_size(), height, dt_thumbtable_t::thumb_height, dt_thumbtable_t::thumb_width, dt_ui_t::thumbtable_lighttable, UNKNOWN_IMAGE, and width.
Referenced by append_run().
|
static |
Definition at line 67 of file run.c.
References dt_control_job_get_params(), dt_control_job_get_state(), dt_control_job_set_progress(), DT_JOB_STATE_CANCELLED, dt_mimap_cache_evict(), DT_MIPMAP_0, DT_MIPMAP_2, DT_MIPMAP_BLOCKING, dt_mipmap_cache_get, dt_mipmap_cache_release, dt_mipmap_get_cache_filename(), DT_PATH_MAX, dt_selection_get_global(), dt_selection_get_length(), dt_selection_get_list(), dt_util_test_image_file(), i, and k.
Referenced by _preload_image_cache_with_max_size().
|
static |
Definition at line 133 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_0.
Referenced by append_run().
|
static |
Definition at line 138 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_1.
Referenced by append_run().
|
static |
Definition at line 143 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_2.
Referenced by append_run().
|
static |
Definition at line 148 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_3.
Referenced by append_run().
|
static |
Definition at line 153 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_4.
Referenced by append_run().
|
static |
Definition at line 158 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_5.
Referenced by append_run().
|
static |
Definition at line 163 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_6.
Referenced by append_run().
|
static |
Definition at line 168 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_7.
Referenced by append_run().
|
static |
Definition at line 173 of file run.c.
References _preload_image_cache_with_max_size(), and DT_MIPMAP_8.
Referenced by append_run().