![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "darktable.h"#include "common/paths.h"#include "metadata/colorlabels.h"#include "gui/screen_metrics.h"#include "widgets/widget_settings.h"#include "widgets/resize_handle.h"#include "colorprofiles/colorspaces.h"#include "common/l10n.h"#include "common/file_location.h"#include "common/utility.h"#include "gui/guides.h"#include "gui/import.h"#include "widgets/expander.h"#include "common/collection.h"#include "common/selection.h"#include "gui/application.h"#include "common/thumbnail_notify.h"#include "gui/common/film_gui.h"#include "gui/common/folder_survey_gui.h"#include "gui/develop/history_merge_gui.h"#include "gui/common/collection_gui.h"#include "common/startup_progress.h"#include "gui/dtgtk/thumbtable.h"#include "gui/splash.h"#include "common/conf.h"#include "control/control.h"#include "control/jobs.h"#include "control/signal.h"#include "gui/presets.h"#include "views/view.h"#include <gdk/gdkkeysyms.h>#include <gdk/gdkwin32.h>#include <gtk/gtk.h>#include <math.h>#include <stdlib.h>#include <stdio.h>#include <string.h>#include "widgets/container.h"#include "widgets/widget_style.h"
Include dependency graph for application.c:Go to the source code of this file.
Data Structures | |
| struct | dt_tablet_motion_state_t |
| struct | _thumbnail_refresh_request_t |
| struct | _spacing_ctx_t |
Macros | |
| #define | DT_WIN32_CURSOR_SUBCLASS_CENTER ((UINT_PTR)0x41534e4e) |
| #define | DT_ACCEL_SEARCH_RECENT_KEY "plugins/accel_search/recent_entries" |
Typedefs | |
| typedef struct dt_tablet_motion_state_t | dt_tablet_motion_state_t |
| typedef struct _thumbnail_refresh_request_t | _thumbnail_refresh_request_t |
| typedef struct _spacing_ctx_t | _spacing_ctx_t |
Functions | |
| static void | _update_display_profile (void) |
| static void | _ui_widget_redraw_callback (gpointer instance, GtkWidget *widget) |
| static void | _ui_log_redraw_callback (gpointer instance, GtkWidget *widget) |
| static void | _ui_toast_redraw_callback (gpointer instance, GtkWidget *widget) |
| struct dt_ui_t * | dt_gui_get_ui (void) |
| struct dt_accels_t * | dt_gui_get_accels (void) |
| GtkWidget * | dt_gui_main_window (void) |
| GtkWidget * | dt_gui_center_widget (void) |
| static void | _init_widgets (dt_gui_gtk_t *gui) |
| static gboolean | _configure (GtkWidget *da, GdkEventConfigure *event, gpointer user_data) |
| static gboolean | _draw (GtkWidget *da, cairo_t *cr, gpointer user_data) |
| static gboolean | _scrolled (GtkWidget *widget, GdkEventScroll *event, gpointer user_data) |
| int | dt_gui_gtk_write_config () |
| void | dt_gui_gtk_quit () |
| gboolean | dt_gui_quit_callback (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
| void | dt_gui_store_last_preset (const char *name) |
| static gboolean | _window_configure (GtkWidget *da, GdkEvent *event, gpointer user_data) |
| static double | _clamp01d (const double value) |
| static const gdouble * | _event_axes (const GdkEvent *event) |
| static gboolean | _get_axis_value_for_source (const GdkEvent *event, GdkDevice *source_device, const GdkAxisUse axis, double *value, gboolean *from_source_map) |
| static gboolean | _sample_axis_from_device_state (GdkWindow *window, GdkDevice *device, const GdkAxisUse axis, double *value) |
| static gboolean | _sample_tablet_state_from_devices (const GdkEvent *event, double *pressure, gboolean *have_pressure, double *tilt_x, double *tilt_y, gboolean *have_tilt, const char **picked_device_name) |
| static dt_control_pointer_input_t | _extract_pointer_input (const GdkEvent *event, const double x, const double y, const guint32 time_ms, const gboolean reset_kinematics, const char *tag) |
| static gboolean | _button_pressed (GtkWidget *w, GdkEventButton *event, gpointer user_data) |
| static gboolean | _button_released (GtkWidget *w, GdkEventButton *event, gpointer user_data) |
| static gboolean | _mouse_moved (GtkWidget *w, GdkEventMotion *event, gpointer user_data) |
| static LRESULT CALLBACK | _center_win32_cursor_proc (HWND hwnd, UINT message, WPARAM w_param, LPARAM l_param, UINT_PTR subclass_id, DWORD_PTR ref_data) |
| static void | _center_realize (GtkWidget *widget, gpointer user_data) |
| static void | _center_unrealize (GtkWidget *widget, gpointer user_data) |
| static gboolean | _key_pressed (GtkWidget *w, GdkEventKey *event) |
| static gboolean | _center_leave (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
| static gboolean | _center_enter (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
| static const char * | _get_source_name (int pos) |
| static const char * | _get_mode_name (int pos) |
| static const char * | _get_axis_name (int pos) |
| static GtkWidget * | _widget_root_window (void) |
| static gint | _widget_natural_width (GtkWidget *widget) |
| static gboolean | _widget_stored_int (const char *key, int *value) |
| static void | _widget_store_int (const char *key, int value) |
| static gboolean | _widget_stored_bool (const char *key) |
| static void | _widget_store_bool (const char *key, gboolean value) |
| static void | _notify_profile_changed (void) |
| static void | _notebook_page_changed (gpointer owner) |
| static void | _widget_cursor (GdkCursorType cursor) |
| static void | _widget_message (const char *message) |
| static gint | _accels_top_offset (void) |
| static gchar * | _accels_recent_get (int index) |
| static void | _accels_recent_set (int index, const char *value) |
| static void | _gui_startup_progress (const char *message) |
| static void | _refresh_thumbnail_widgets (int32_t imgid, gboolean refresh_filmstrip) |
| static gboolean | _refresh_thumbnail_on_gui_thread (gpointer user_data) |
| static void | _gui_refresh_thumbnail (int32_t imgid, gboolean refresh_filmstrip) |
| int | dt_gui_gtk_init (dt_gui_gtk_t *gui) |
| void | dt_gui_gtk_run (dt_gui_gtk_t *gui) |
| void | dt_configure_ppd_dpi (dt_gui_gtk_t *gui) |
| static void | _refresh_container_spacing (GtkWidget *w, gpointer user_data) |
| static void | _refresh_all_container_spacing (void) |
| void | dt_gui_update_em (void) |
| void | dt_gui_set_pango_resolution (PangoLayout *layout) |
| static gboolean | _focus_in_out_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
| static gboolean | _ui_log_button_press_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
| static gboolean | _ui_toast_button_press_event (GtkWidget *widget, GdkEvent *event, gpointer user_data) |
| void | dt_ui_container_focus_widget (dt_ui_t *ui, const dt_ui_container_t c, GtkWidget *w) |
| gives a widget focus in the container | |
| void | dt_ui_container_foreach (dt_ui_t *ui, const dt_ui_container_t c, GtkCallback callback) |
| calls a callback on all children widgets from container | |
| void | dt_ui_container_destroy_children (dt_ui_t *ui, const dt_ui_container_t c) |
| destroy all child widgets from container | |
| void | dt_ui_notify_user () |
| draw user's attention | |
| void | dt_gui_add_help_link (GtkWidget *widget, char *link) |
| void | dt_gui_load_theme (const char *theme) |
| void | dt_gui_refocus_center () |
Variables | |
| static dt_tablet_motion_state_t | _tablet_motion_state = { 0 } |
| static gint | _last_box_spacing = 10 |
| #define DT_ACCEL_SEARCH_RECENT_KEY "plugins/accel_search/recent_entries" |
Definition at line 925 of file application.c.
| #define DT_WIN32_CURSOR_SUBCLASS_CENTER ((UINT_PTR)0x41534e4e) |
Definition at line 844 of file application.c.
| typedef struct _spacing_ctx_t _spacing_ctx_t |
| typedef struct _thumbnail_refresh_request_t _thumbnail_refresh_request_t |
| typedef struct dt_tablet_motion_state_t dt_tablet_motion_state_t |
|
static |
Definition at line 1005 of file application.c.
References DT_ACCEL_SEARCH_RECENT_KEY, dt_conf_get_string(), dt_conf_key_exists(), dt_free, key, and value.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 1013 of file application.c.
References DT_ACCEL_SEARCH_RECENT_KEY, dt_conf_set_string(), dt_free, key, and value.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 997 of file application.c.
References dt_gui_get_global(), dt_gui_get_ui(), DT_UI_PANEL_TOP, IS_NULL_PTR, and dt_ui_t::panels.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 803 of file application.c.
References _extract_pointer_input(), darktable, dt_control_button_pressed(), dt_control_set_pointer_input(), dt_widget_set_scroll_focus(), FALSE, darktable_t::gui, dt_control_pointer_input_t::has_pressure, dt_ui_t::main_window, dt_control_pointer_input_t::pressure, TRUE, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 819 of file application.c.
References _extract_pointer_input(), darktable, dt_control_button_released(), dt_control_set_pointer_input(), FALSE, darktable_t::gui, dt_ui_t::main_window, TRUE, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 890 of file application.c.
References dt_control_mouse_enter(), and TRUE.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 884 of file application.c.
References dt_control_mouse_leave(), and TRUE.
Referenced by dt_gui_gtk_init().
Definition at line 860 of file application.c.
References _center_win32_cursor_proc(), DT_WIN32_CURSOR_SUBCLASS_CENTER, and IS_NULL_PTR.
Referenced by dt_gui_gtk_init().
Definition at line 868 of file application.c.
References _center_win32_cursor_proc(), DT_WIN32_CURSOR_SUBCLASS_CENTER, and IS_NULL_PTR.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 846 of file application.c.
References DT_WIN32_CURSOR_SUBCLASS_CENTER, and TRUE.
Referenced by _center_realize(), and _center_unrealize().
Definition at line 397 of file application.c.
References MAX, MIN, and value.
Referenced by _extract_pointer_input().
|
static |
Definition at line 330 of file application.c.
References _update_display_profile(), darktable, dt_cairo_image_surface_create(), dt_configure_ppd_dpi(), dt_control_configure(), darktable_t::gui, and dt_gui_gtk_t::surface.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 190 of file application.c.
References darktable, dt_control_expose(), darktable_t::gui, dt_gui_gtk_t::surface, and TRUE.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 402 of file application.c.
References IS_NULL_PTR.
Referenced by _get_axis_value_for_source().
|
static |
Definition at line 573 of file application.c.
References _clamp01d(), _get_axis_value_for_source(), _sample_axis_from_device_state(), _sample_tablet_state_from_devices(), _tablet_motion_state, dt_control_pointer_input_t::acceleration, darktable, DT_DEBUG_INPUT, dt_print(), dt_ui_center(), FALSE, darktable_t::gui, dt_control_pointer_input_t::has_pressure, dt_control_pointer_input_t::has_tilt, dt_tablet_motion_state_t::have_pressure, dt_tablet_motion_state_t::have_tilt, IS_NULL_PTR, MAX, dt_control_pointer_input_t::pressure, dt_tablet_motion_state_t::pressure, dt_tablet_motion_state_t::speed_px_s, dt_control_pointer_input_t::tilt, dt_control_pointer_input_t::tilt_x, dt_tablet_motion_state_t::tilt_x, dt_control_pointer_input_t::tilt_y, dt_tablet_motion_state_t::tilt_y, dt_control_pointer_input_t::time_ms, dt_tablet_motion_state_t::time_ms, TRUE, dt_gui_gtk_t::ui, dt_tablet_motion_state_t::valid, window, x, dt_control_pointer_input_t::x, dt_tablet_motion_state_t::x, dt_control_pointer_input_t::y, and dt_tablet_motion_state_t::y.
Referenced by _button_pressed(), _button_released(), and _mouse_moved().
|
static |
|
static |
Definition at line 913 of file application.c.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 419 of file application.c.
References _event_axes(), FALSE, IS_NULL_PTR, TRUE, and value.
Referenced by _extract_pointer_input().
|
static |
Definition at line 906 of file application.c.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 896 of file application.c.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 1077 of file application.c.
References _refresh_thumbnail_on_gui_thread(), _refresh_thumbnail_widgets(), dt_widget_on_gui_thread(), _thumbnail_refresh_request_t::imgid, and _thumbnail_refresh_request_t::refresh_filmstrip.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 1022 of file application.c.
References dt_gui_splash_init(), and dt_gui_splash_updatef().
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 1535 of file application.c.
References _focus_in_out_event(), _key_pressed(), _scrolled(), _ui_log_button_press_event(), _ui_log_redraw_callback(), _ui_toast_button_press_event(), _ui_toast_redraw_callback(), _ui_widget_redraw_callback(), dt_ui_t::center_base, container(), darktable, dt_conf_get_bool(), dt_conf_get_int(), dt_conf_key_exists(), dt_configure_ppd_dpi(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gui_add_class(), DT_GUI_BOX_SPACING, dt_gui_quit_callback(), dt_gui_splash_set_transient_for(), DT_PIXEL_APPLY_DPI, DT_SIGNAL_CONTROL_LOG_REDRAW, DT_SIGNAL_CONTROL_REDRAW_ALL, DT_SIGNAL_CONTROL_TOAST_REDRAW, dt_ui_init_main_table(), dt_ui_init_titlebar(), dt_ui_log_msg(), dt_ui_main_window(), dt_ui_toast_msg(), dt_widget_scroll_mask(), FALSE, darktable_t::gui, height, IS_NULL_PTR, dt_ui_t::log_msg, dt_ui_t::main_window, MAX, dt_ui_t::toast_msg, TRUE, dt_gui_gtk_t::ui, width, and x.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 877 of file application.c.
References darktable, dt_control_key_pressed(), FALSE, darktable_t::gui, dt_ui_t::main_window, TRUE, and dt_gui_gtk_t::ui.
Referenced by _init_widgets(), and dt_gui_gtk_init().
|
static |
Definition at line 830 of file application.c.
References _extract_pointer_input(), darktable, dt_control_mouse_moved(), dt_control_set_pointer_input(), FALSE, darktable_t::gui, dt_control_pointer_input_t::has_pressure, dt_ui_t::main_window, dt_control_pointer_input_t::pressure, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 982 of file application.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, and DT_SIGNAL_CONTROL_NOTEBOOK_TAB_CHANGED.
Referenced by dt_gui_gtk_init().
Definition at line 977 of file application.c.
References dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, and DT_SIGNAL_CONTROL_PROFILE_CHANGED.
Referenced by dt_gui_gtk_init().
Definition at line 1466 of file application.c.
References _last_box_spacing, _refresh_container_spacing(), and DT_GUI_BOX_SPACING.
Referenced by dt_gui_update_em().
Definition at line 1436 of file application.c.
References _refresh_container_spacing().
Referenced by _refresh_all_container_spacing(), and _refresh_container_spacing().
|
static |
Definition at line 1056 of file application.c.
References _refresh_thumbnail_widgets(), _thumbnail_refresh_request_t::imgid, and _thumbnail_refresh_request_t::refresh_filmstrip.
Referenced by _gui_refresh_thumbnail().
|
static |
Definition at line 1032 of file application.c.
References dt_gui_get_ui(), dt_thumbtable_refresh_thumbnail, IS_NULL_PTR, dt_ui_t::thumbtable_filmstrip, dt_ui_t::thumbtable_lighttable, and TRUE.
Referenced by _gui_refresh_thumbnail(), and _refresh_thumbnail_on_gui_thread().
|
static |
Definition at line 440 of file application.c.
References FALSE, IS_NULL_PTR, value, and window.
Referenced by _extract_pointer_input().
|
static |
Definition at line 461 of file application.c.
References darktable, dt_ui_center(), FALSE, darktable_t::gui, i, IS_NULL_PTR, p, TRUE, dt_gui_gtk_t::ui, and window.
Referenced by _extract_pointer_input().
|
static |
Definition at line 202 of file application.c.
References darktable, dt_gui_get_scroll_unit_delta(), dt_view_manager_scrolled(), FALSE, darktable_t::gui, dt_ui_t::main_window, dt_gui_gtk_t::ui, and darktable_t::view_manager.
Referenced by _init_widgets(), and dt_gui_gtk_init().
|
static |
Definition at line 1776 of file application.c.
References dt_control_get_global(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), and dt_control_t::log_mutex.
Referenced by _init_widgets().
|
static |
Definition at line 1799 of file application.c.
References darktable, dt_control_get_global(), DT_PIXEL_APPLY_DPI, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_ui_center_base(), darktable_t::gui, dt_control_t::toast_mutex, and dt_gui_gtk_t::ui.
Referenced by _init_widgets().
Definition at line 1771 of file application.c.
Referenced by _init_widgets().
Definition at line 970 of file application.c.
References DT_COLORSPACE_DISPLAY, dt_colorspaces_set_display_profile(), dt_control_running(), and dt_gui_center_widget().
Referenced by _configure(), _window_configure(), dt_colorspaces_set_display_profile(), and dt_gui_gtk_init().
|
static |
Definition at line 987 of file application.c.
References dt_control_change_cursor.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 992 of file application.c.
References dt_toast_log().
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 932 of file application.c.
References dt_gui_get_ui(), dt_ui_panel_ancestor(), dt_ui_panel_get_size(), DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, and IS_NULL_PTR.
Referenced by dt_gui_gtk_init().
Definition at line 927 of file application.c.
References dt_gui_main_window().
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 962 of file application.c.
References dt_conf_set_bool(), key, and value.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 952 of file application.c.
References dt_conf_set_int(), key, and value.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 957 of file application.c.
References dt_conf_get_bool(), and key.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 945 of file application.c.
References dt_conf_get_int(), dt_conf_key_exists(), FALSE, key, TRUE, and value.
Referenced by dt_gui_gtk_init().
|
static |
Definition at line 367 of file application.c.
References _update_display_profile(), and FALSE.
Referenced by dt_gui_gtk_init().
| void dt_configure_ppd_dpi | ( | dt_gui_gtk_t * | gui | ) |
Definition at line 1383 of file application.c.
References dt_gui_gtk_t::dpi, dt_gui_gtk_t::dpi_factor, dt_conf_get_float(), DT_DEBUG_CONTROL, dt_get_system_gui_ppd(), dt_gui_update_em(), dt_osx_autoset_dpi(), dt_print(), dt_screen_set_dpi(), dt_widget_set_dpi_factor(), dt_widget_set_image_filter(), dt_widget_set_ppd(), dt_gui_gtk_t::filter_image, dt_ui_t::main_window, dt_gui_gtk_t::ppd, and dt_gui_gtk_t::ui.
Referenced by _configure(), _init_widgets(), and dpi_scaling_changed_callback().
Definition at line 1838 of file application.c.
Referenced by _blendop_create_notebook_page(), _blendop_create_toggle_page(), _build_overexposed_popover(), _build_rawoverexposed_popover(), _build_softproof_gamut_popover(), _filmstrip_setup_parent(), _grid_setup_parent(), _styles_open_popup_callback(), dt_iop_gui_init_blending_body(), dt_iop_gui_set_expander(), dt_thumbtable_new(), dt_view_manager_switch_by_view(), export_files_callback(), and gui_init().
Definition at line 172 of file application.c.
References dt_gui_get_global(), and dt_ui_center().
Referenced by _control_apply_cursor(), _darkroom_edge_pan_tick(), _dt_ctl_switch_mode_prepare(), _focus_main_image(), _lib_tagging_tag_show_accel(), _masks_shape_button_pressed(), _slideshow_request_slot(), _update_display_profile(), _view_surface_commit_main(), button_pressed(), dt_control_button_down(), dt_control_expose(), dt_dev_pixelpipe_change_zoom_main(), dt_masks_creation_mode_enter(), enter(), expose(), expose(), gui_init(), leave(), and mouse_moved().
| struct dt_accels_t * dt_gui_get_accels | ( | void | ) |
Definition at line 162 of file application.c.
References dt_gui_gtk_t::accels, and dt_gui_get_global().
Referenced by _iop_panel_label(), _is_scroll_captured_by_widget(), _open_accel_search_callback(), _styles_add_menu_entry(), _styles_get_submenu(), add_sub_menu_entry(), add_sub_sub_menu_entry(), add_top_menu_entry(), add_top_submenu_entry(), dt_dev_toolbox_add_accels(), dt_iop_gui_cleanup_module(), dt_lib_init_module(), dt_lib_unload_module(), dt_thumbtable_new(), enter(), gui_cleanup(), gui_init(), gui_init(), leave(), search_accels_callback(), set_menu_entry(), and shortcuts_callback().
Definition at line 157 of file application.c.
References dt_gui_get_global(), and dt_gui_gtk_t::ui.
Referenced by _accels_top_offset(), _cache_wait_cursor_progress(), _cache_wait_cursor_restore(), _control_apply_cursor(), _culling_mode(), _dt_collection_changed_callback(), _ensure_page_widgets(), _film_strip_activated(), _focus_checked(), _focus_next_module(), _focus_previous_module(), _focus_toggle_callback(), _gui_set_single_expanded(), _jpg_combobox_changed(), _metadata_view_get_thumb_info(), _open_accel_search_callback(), _open_uri(), _populate(), _preview_pipe_finished(), _prompt_layer_name_dialog(), _refresh_thumbnail_widgets(), _set_columns(), _show_drawlayer_modal_message(), _show_drawlayer_wait_dialog(), _thumbtable_clone_lut(), _thumbtable_dnd_scan_folders_and_import(), _toggle_side_borders_accel_callback(), _view_map_button_press_callback(), _view_map_filmstrip_activate_callback(), _view_map_selection_changed(), _widget_natural_width(), _zoom_checked(), _zoom_combobox_changed(), always_hide_overlays_callback(), always_show_overlays_callback(), clear_image_cache(), configure(), dt_control_hinter_message(), dt_iop_gui_set_expander(), dt_masks_gui_confirm_delete_form_dialog(), dt_masks_gui_confirm_permanent_delete(), dt_privacy_ask_consent(), dt_thumbtable_key_pressed_grid(), dt_thumbtable_key_released_grid(), dt_view_image_info_update(), dt_view_manager_switch_by_view(), enter(), filmstrip_callback(), filmstrip_checked_callback(), focus_peaking_callback(), focus_peaking_checked_callback(), full_screen_callback(), group_borders_callback(), gui_cleanup(), gui_init(), hover_overlays_callback(), invert_selection_callback(), key_pressed(), leave(), panel_left_callback(), panel_left_checked_callback(), panel_right_callback(), panel_right_checked_callback(), panel_top_callback(), panel_top_checked_callback(), preload_auto_callback(), scroll_to_selection_callback(), and select_all_callback().
| int dt_gui_gtk_init | ( | dt_gui_gtk_t * | gui | ) |
Definition at line 1091 of file application.c.
References _accels_recent_get(), _accels_recent_set(), _accels_top_offset(), _button_pressed(), _button_released(), _center_enter(), _center_leave(), _center_realize(), _center_unrealize(), _configure(), _draw(), _get_axis_name(), _get_mode_name(), _get_source_name(), _gui_refresh_thumbnail(), _gui_startup_progress(), _init_widgets(), _key_pressed(), _mouse_moved(), _notebook_page_changed(), _notify_profile_changed(), _scrolled(), _update_display_profile(), _widget_cursor(), _widget_message(), _widget_natural_width(), _widget_root_window(), _widget_store_bool(), _widget_store_int(), _widget_stored_bool(), _widget_stored_int(), _window_configure(), dt_gui_gtk_t::accels, dt_gui_gtk_t::center_tooltip, dt_gui_gtk_t::culling_mode, darktable, dt_accels_dispatch(), dt_accels_init(), dt_accels_load_user_config(), dt_accels_set_global(), dt_accels_set_recent_handlers(), dt_accels_set_refocus_handler(), dt_accels_set_top_offset_handler(), dt_collection_gui_register_handlers(), dt_collection_init_global(), dt_colorspaces_set_profile_changed_handler(), dt_concat_path_file(), dt_conf_get_bool(), dt_conf_get_string_const(), dt_control_change_cursor, dt_control_get_global(), DT_DEBUG_INPUT, DT_DEBUG_MASKS, dt_film_gui_register_handlers(), dt_folder_survey_gui_register_handlers(), dt_free, dt_get_debug_flags(), dt_gui_freeze_reset(), dt_gui_import_init_handlers(), dt_gui_load_theme(), dt_gui_presets_init(), dt_gui_refocus_center(), dt_guides_init(), dt_guides_set_overlay_colors(), dt_history_merge_gui_register_handlers(), dt_l10n_get_current_lang(), dt_l10n_get_global(), dt_loc_get_datadir(), dt_loc_get_sharedir(), dt_loc_get_user_config_dir(), DT_PATH_MAX, dt_print(), dt_pthread_mutex_init(), dt_selection_init_global(), dt_startup_progress_set_handler(), dt_thumbnail_notify_set_handler(), dt_ui_center(), dt_ui_main_window(), DT_UI_SCALE_DEVICE, dt_widget_scroll_mask(), dt_widget_set_cursor_handler(), dt_widget_set_debug_overlays(), dt_widget_set_gui_thread(), dt_widget_set_message_handler(), dt_widget_set_mouse_radius(), dt_widget_set_natural_width_handler(), dt_widget_set_notebook_page_handler(), dt_widget_set_refocus_handler(), dt_widget_set_root_window_handler(), dt_widget_set_scroll_focus(), dt_widget_set_scroll_mask(), dt_widget_set_scroll_reversed(), dt_widget_set_storage_handlers(), dt_gui_gtk_t::export_popup, FALSE, flags, dt_gui_gtk_t::gtkrc, darktable_t::gui, i, IS_NULL_PTR, dt_gui_gtk_t::last_preset, dt_gui_gtk_t::mutex, dt_gui_gtk_t::presets_popup_menu, dt_gui_gtk_t::styles_popup, dt_gui_gtk_t::surface, TRUE, dt_gui_gtk_t::ui, and dt_gui_gtk_t::window.
Referenced by dt_init().
| void dt_gui_gtk_quit | ( | ) |
Definition at line 275 of file application.c.
References darktable, dt_gui_add_class(), dt_gui_gtk_write_config(), dt_ui_cleanup_titlebar(), dt_ui_main_window(), darktable_t::gui, and dt_gui_gtk_t::ui.
Referenced by dt_control_quit().
| void dt_gui_gtk_run | ( | dt_gui_gtk_t * | gui | ) |
Definition at line 1334 of file application.c.
References darktable, dt_cairo_image_surface_create(), dt_cleanup(), dt_osx_focus_window(), dt_ui_center(), dt_view_manager_configure(), darktable_t::gui, dt_gui_gtk_t::surface, dt_gui_gtk_t::ui, and darktable_t::view_manager.
Referenced by main().
| int dt_gui_gtk_write_config | ( | ) |
Definition at line 218 of file application.c.
References darktable, dt_conf_set_bool(), dt_conf_set_int(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_ui_main_window(), FALSE, darktable_t::gui, height, i, IS_NULL_PTR, dt_gui_gtk_t::mutex, TRUE, dt_gui_gtk_t::ui, width, and x.
Referenced by dt_gui_gtk_quit().
| void dt_gui_load_theme | ( | const char * | theme | ) |
Definition at line 1845 of file application.c.
References darktable, dt_conf_get_bool(), dt_conf_get_float(), dt_conf_key_exists(), dt_conf_set_bool(), dt_conf_set_string(), dt_free, DT_GUI_COLOR_BG, DT_GUI_COLOR_BRUSH_CURSOR, DT_GUI_COLOR_BRUSH_TRACE, DT_GUI_COLOR_BUTTON_FG, DT_GUI_COLOR_DARKROOM_BG, DT_GUI_COLOR_DARKROOM_PREVIEW_BG, DT_GUI_COLOR_FILMSTRIP_BG, DT_GUI_COLOR_LAST, DT_GUI_COLOR_LIGHTTABLE_BG, DT_GUI_COLOR_LIGHTTABLE_FONT, DT_GUI_COLOR_LIGHTTABLE_PREVIEW_BG, DT_GUI_COLOR_LOG_BG, DT_GUI_COLOR_LOG_FG, DT_GUI_COLOR_MAP_COUNT_BG, DT_GUI_COLOR_MAP_COUNT_DIFF_LOC, DT_GUI_COLOR_MAP_COUNT_SAME_LOC, DT_GUI_COLOR_MAP_LOC_SHAPE_DEF, DT_GUI_COLOR_MAP_LOC_SHAPE_HIGH, DT_GUI_COLOR_MAP_LOC_SHAPE_LOW, DT_GUI_COLOR_PREVIEW_HOVER_BORDER, DT_GUI_COLOR_PRINT_BG, DT_GUI_COLOR_THUMBNAIL_BG, DT_GUI_COLOR_THUMBNAIL_BORDER, DT_GUI_COLOR_THUMBNAIL_FONT, DT_GUI_COLOR_THUMBNAIL_HOVER_BG, DT_GUI_COLOR_THUMBNAIL_HOVER_FONT, DT_GUI_COLOR_THUMBNAIL_HOVER_OUTLINE, DT_GUI_COLOR_THUMBNAIL_OUTLINE, DT_GUI_COLOR_THUMBNAIL_SELECTED_BG, DT_GUI_COLOR_THUMBNAIL_SELECTED_BORDER, DT_GUI_COLOR_THUMBNAIL_SELECTED_FONT, DT_GUI_COLOR_THUMBNAIL_SELECTED_OUTLINE, DT_GUI_COLOR_WARNING, dt_gui_update_em(), dt_loc_get_datadir(), dt_loc_get_user_config_dir(), DT_PATH_MAX, dt_ui_main_window(), dt_util_str_replace(), dt_widget_colors(), dt_widget_set_theme_loaded(), error(), darktable_t::gui, i, init(), IS_NULL_PTR, name, TRUE, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init(), reload_ui_last_theme(), and theme_callback().
Definition at line 167 of file application.c.
References dt_gui_get_global(), and dt_ui_main_window().
Referenced by _act_folders_relocate(), _active_modules_popup(), _apply_rename_path(), _ask_and_delete(), _ask_before_delete_style(), _ask_text(), _choose_gpx_callback(), _confirm(), _confirm_delete_layer(), _confirm_pending_import(), _control_apply_cursor(), _datetime_key_pressed(), _delete_tagids(), _dt_delete_dialog_main_thread(), _edit_preset(), _enter_key_pressed(), _export_button_clicked(), _export_button_clicked(), _gui_styles_dialog_run(), _gui_styles_edit_style_response(), _gui_styles_new_style_response(), _hm_ask_user_constraints_choice(), _hm_show_merge_report_popup(), _hm_show_toposort_cycle_popup(), _hm_warn_missing_raster_producers(), _import_button_clicked(), _import_discarded_files_popup(), _ioporder_add_preset(), _ioporder_init_popup(), _ioporder_rebuild_graph(), _key_pressed(), _lib_tagging_tag_key_press(), _lib_tagging_tag_show_accel(), _main_do_event_help(), _menuitem_delete_preset(), _menuitem_preferences(), _menuitem_update_preset(), _open_uri(), _panel_handle_resize(), _pop_menu_dictionary_change_path(), _pop_menu_dictionary_create_tag(), _pop_menu_dictionary_delete_node(), _pop_menu_dictionary_edit_tag(), _populate(), _preview_gpx_file(), _prompt_layer_name_dialog(), _render_widget(), _save_clut_callback(), _save_layer_clicked(), _scope_resize_handle_resize(), _show_drawlayer_modal_message(), _show_drawlayer_wait_dialog(), _styles_open_popup_callback(), _switch_preview_cursor(), _timezone_key_pressed(), _timezone_save(), _warn_gmz_deprecated(), _widget_root_window(), button_clicked(), button_clicked(), button_clicked(), delete_history_callback(), dt_control_copy_images(), dt_control_crawler_show_image_list(), dt_control_delete_image(), dt_control_delete_images(), dt_control_move_images(), dt_control_remove_images(), dt_folder_survey_propose_resume(), dt_gui_doc_screenshot_window_show(), dt_gui_hist_dialog_new(), dt_gui_merge_options_dialog(), dt_gui_preferences_show(), dt_gui_supervisor_window_show(), dt_lib_export_metadata_configuration_dialog(), dt_masks_gui_confirm_delete_form_dialog(), dt_masks_gui_confirm_permanent_delete(), dt_preview_window_spawn(), dt_privacy_ask_consent(), dt_view_manager_button_pressed(), dt_view_manager_switch_by_view(), edit_preset(), enter(), export_clicked(), export_files_callback(), export_image_list_callback(), full_screen_callback(), full_screen_checked_callback(), get_stamp_params(), global_progress_end(), global_progress_set(), global_progress_start(), gui_init(), gui_init(), import_clicked(), load_xmp_callback(), menuitem_delete_preset(), menuitem_update_preset(), open_chat_callback(), open_doc_callback(), open_forum_callback(), open_search_callback(), search_accels_callback(), shortcuts_callback(), show_about_dialog(), and update_nightly_callback().
| gboolean dt_gui_quit_callback | ( | GtkWidget * | widget, |
| GdkEvent * | event, | ||
| gpointer | user_data | ||
| ) |
Definition at line 290 of file application.c.
References dt_control_quit(), and TRUE.
Referenced by _init_widgets().
| void dt_gui_refocus_center | ( | ) |
Definition at line 2076 of file application.c.
References dt_gui_gtk_t::accels, darktable, dt_accels_disable(), dt_ui_center(), dt_ui_main_window(), dt_view_manager_get_current_view(), FALSE, dt_thumbtable_t::grid, darktable_t::gui, IS_NULL_PTR, dt_view_t::module_name, dt_ui_t::thumbtable_lighttable, dt_gui_gtk_t::ui, and darktable_t::view_manager.
Referenced by _gui_delete_callback(), _process_file_list(), default_iop_focus(), dt_gui_gtk_init(), dt_iop_request_focus(), dt_lib_colorpicker_set_box_area(), dt_lib_colorpicker_set_point(), dt_lib_gui_set_expanded(), enter(), and row_activated().
| void dt_gui_set_pango_resolution | ( | PangoLayout * | layout | ) |
Definition at line 1508 of file application.c.
References darktable, dt_gui_gtk_t::dpi, darktable_t::gui, and IS_NULL_PTR.
Referenced by _init_drawing(), dt_iop_tonecurve_draw(), dt_iop_tonecurve_draw(), and gui_post_expose().
| void dt_gui_store_last_preset | ( | const char * | name | ) |
Definition at line 296 of file application.c.
References darktable, dt_free, darktable_t::gui, dt_gui_gtk_t::last_preset, and name.
Referenced by _edit_preset_final_callback(), dt_gui_presets_apply_preset(), and dt_lib_presets_apply().
Definition at line 1480 of file application.c.
References _refresh_all_container_spacing(), darktable, double(), dt_gui_gtk_t::dpi, dt_widget_set_em_size(), dt_gui_gtk_t::em, darktable_t::gui, dt_ui_t::main_window, size, and dt_gui_gtk_t::ui.
Referenced by dt_configure_ppd_dpi(), and dt_gui_load_theme().
| void dt_ui_container_destroy_children | ( | dt_ui_t * | ui, |
| const dt_ui_container_t | c | ||
| ) |
destroy all child widgets from container
Definition at line 1750 of file application.c.
References dt_ui_t::containers, and dt_gui_container_destroy_children().
Referenced by dt_view_manager_switch_by_view().
| void dt_ui_container_focus_widget | ( | dt_ui_t * | ui, |
| const dt_ui_container_t | c, | ||
| GtkWidget * | w | ||
| ) |
gives a widget focus in the container
Definition at line 1734 of file application.c.
References dt_ui_t::containers.
Referenced by _gui_set_single_expanded().
| void dt_ui_container_foreach | ( | dt_ui_t * | ui, |
| const dt_ui_container_t | c, | ||
| GtkCallback | callback | ||
| ) |
calls a callback on all children widgets from container
Definition at line 1744 of file application.c.
References dt_ui_t::containers.
Referenced by dt_view_manager_switch_by_view().
| void dt_ui_notify_user | ( | ) |
draw user's attention
Definition at line 1755 of file application.c.
References darktable, dt_ui_main_window(), darktable_t::gui, TRUE, and dt_gui_gtk_t::ui.
Referenced by _pathlist_import_run(), dt_control_export_job_run(), and dt_film_import1_run().
|
static |
Definition at line 1429 of file application.c.
Referenced by _refresh_all_container_spacing().
|
static |
Definition at line 395 of file application.c.
Referenced by _extract_pointer_input().