![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"
#include "common/collection.h"
#include "common/colorspaces.h"
#include "common/l10n.h"
#include "common/file_location.h"
#include "common/ratings.h"
#include "common/image.h"
#include "common/image_cache.h"
#include "gui/guides.h"
#include "bauhaus/bauhaus.h"
#include "develop/develop.h"
#include "develop/imageop.h"
#include "dtgtk/button.h"
#include "dtgtk/expander.h"
#include "dtgtk/sidepanel.h"
#include "gui/gtk.h"
#include "common/styles.h"
#include "control/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 <gtk/gtk.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <pthread.h>
Data Structures | |
struct | result_t |
Typedefs | |
typedef struct result_t | result_t |
Functions | |
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) |
void | dt_gui_add_class (GtkWidget *widget, const gchar *class_name) |
void | dt_gui_remove_class (GtkWidget *widget, const gchar *class_name) |
static void | _init_widgets (dt_gui_gtk_t *gui) |
gboolean | dt_gui_get_scroll_deltas (const GdkEventScroll *event, gdouble *delta_x, gdouble *delta_y) |
gboolean | dt_gui_get_scroll_unit_deltas (const GdkEventScroll *event, int *delta_x, int *delta_y) |
gboolean | dt_gui_get_scroll_delta (const GdkEventScroll *event, gdouble *delta) |
gboolean | dt_gui_get_scroll_unit_delta (const GdkEventScroll *event, int *delta) |
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_set_source_rgb (cairo_t *cr, dt_gui_color_t color) |
void | dt_gui_gtk_set_source_rgba (cairo_t *cr, dt_gui_color_t color, float opacity_coef) |
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 | _configure (GtkWidget *da, GdkEventConfigure *event, gpointer user_data) |
static gboolean | _window_configure (GtkWidget *da, GdkEvent *event, gpointer user_data) |
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 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) |
int | dt_gui_gtk_init (dt_gui_gtk_t *gui) |
void | dt_gui_gtk_run (dt_gui_gtk_t *gui) |
double | dt_get_system_gui_ppd (GtkWidget *widget) |
void | dt_configure_ppd_dpi (dt_gui_gtk_t *gui) |
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_ellipsize_combo (GtkComboBox *cbox) |
static void | _yes_no_button_handler (GtkButton *button, gpointer data) |
gboolean | dt_gui_show_standalone_yes_no_dialog (const char *title, const char *markup, const char *no_text, const char *yes_text) |
char * | dt_gui_show_standalone_string_dialog (const char *title, const char *markup, const char *placeholder, const char *no_text, const char *yes_text) |
void | dt_gui_add_help_link (GtkWidget *widget, const char *link) |
void | dt_gui_load_theme (const char *theme) |
GdkModifierType | dt_key_modifier_state () |
static void | _notebook_size_callback (GtkNotebook *notebook, GdkRectangle *allocation, gpointer *data) |
static gboolean | _notebook_motion_notify_callback (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
GtkNotebook * | dt_ui_notebook_new () |
GtkWidget * | dt_ui_notebook_page (GtkNotebook *notebook, const char *text, const char *tooltip) |
static gint | _get_container_row_heigth (GtkWidget *w) |
static gboolean | _scroll_wrap_resize (GtkWidget *w, void *cr, const char *config_str) |
static gboolean | _scroll_wrap_scroll (GtkScrolledWindow *sw, GdkEventScroll *event, const char *config_str) |
GtkWidget * | dt_ui_scroll_wrap (GtkWidget *w, gint min_size, char *config_str) |
gboolean | dt_gui_container_has_children (GtkContainer *container) |
int | dt_gui_container_num_children (GtkContainer *container) |
GtkWidget * | dt_gui_container_first_child (GtkContainer *container) |
GtkWidget * | dt_gui_container_nth_child (GtkContainer *container, int which) |
static void | _remove_child (GtkWidget *widget, gpointer data) |
void | dt_gui_container_remove_children (GtkContainer *container) |
static void | _delete_child (GtkWidget *widget, gpointer data) |
void | dt_gui_container_destroy_children (GtkContainer *container) |
void | dt_gui_menu_popup (GtkMenu *menu, GtkWidget *button, GdkGravity widget_anchor, GdkGravity menu_anchor) |
void | dt_gui_draw_rounded_rectangle (cairo_t *cr, float width, float height, float x, float y) |
gboolean | dt_gui_search_start (GtkWidget *widget, GdkEventKey *event, GtkSearchEntry *entry) |
void | dt_gui_search_stop (GtkSearchEntry *entry, GtkWidget *widget) |
static void | _collapsible_set_states (dt_gui_collapsible_section_t *cs, gboolean active) |
static void | _coeffs_button_changed (GtkDarktableToggleButton *widget, gpointer user_data) |
static void | _coeffs_expander_click (GtkWidget *widget, GdkEventButton *e, gpointer user_data) |
void | dt_gui_update_collapsible_section (dt_gui_collapsible_section_t *cs) |
void | dt_gui_hide_collapsible_section (dt_gui_collapsible_section_t *cs) |
void | dt_gui_new_collapsible_section (dt_gui_collapsible_section_t *cs, const char *confname, const char *label, GtkBox *parent) |
void | dt_capitalize_label (gchar *text) |
GtkBox * | attach_popover (GtkWidget *widget, const char *icon, GtkWidget *content) |
GtkBox * | attach_help_popover (GtkWidget *widget, const char *label) |
static gboolean | _text_entry_focus_in_event (GtkWidget *self, GdkEventFocus event, gpointer user_data) |
static gboolean | _text_entry_focus_out_event (GtkWidget *self, GdkEventFocus event, gpointer user_data) |
static gboolean | _text_entry_key_pressed (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
void | dt_accels_disconnect_on_text_input (GtkWidget *widget) |
Disconnects accels when a text or search entry gets the focus, and reconnects them when it looses it. This helps dealing with one-key shortcuts. | |
void | dt_gui_refocus_center () |
|
static |
References darktable, dt_control_button_pressed(), FALSE, darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, dt_ui_t::main_window, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
References darktable, dt_control_button_released(), FALSE, darktable_t::gui, dt_ui_t::main_window, TRUE, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
References dt_control_mouse_enter(), and TRUE.
Referenced by dt_gui_gtk_init().
|
static |
References dt_control_mouse_leave(), and TRUE.
Referenced by dt_gui_gtk_init().
|
static |
References _collapsible_set_states(), _gui_collapsible_section_t::confname, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, dt_conf_set_bool(), dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_set_expanded(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), _gui_collapsible_section_t::expander, and _gui_collapsible_section_t::toggle.
Referenced by dt_gui_new_collapsible_section().
|
static |
References _collapsible_set_states(), and _gui_collapsible_section_t::toggle.
Referenced by dt_gui_new_collapsible_section().
|
static |
|
static |
|
static |
References void().
Referenced by dt_gui_container_destroy_children().
|
static |
References darktable, dt_control_expose(), darktable_t::gui, dt_gui_gtk_t::surface, and TRUE.
Referenced by dt_gui_gtk_init().
|
static |
References FALSE.
Referenced by _init_widgets().
|
static |
Referenced by dt_gui_gtk_init().
|
static |
References dt_gui_container_first_child(), DT_PIXEL_APPLY_DPI, and height.
Referenced by _scroll_wrap_resize(), and _scroll_wrap_scroll().
|
static |
Referenced by dt_gui_gtk_init().
|
static |
Referenced by dt_gui_gtk_init().
|
static |
References _focus_in_out_event(), _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_configure_ppd_dpi(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_gui_add_class(), dt_gui_quit_callback(), 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(), FALSE, darktable_t::gui, height, dt_ui_t::log_msg, dt_ui_t::main_window, dt_gui_gtk_t::scroll_mask, darktable_t::signals, dt_ui_t::toast_msg, dt_gui_gtk_t::ui, and width.
Referenced by dt_gui_gtk_init().
|
static |
References darktable, dt_control_key_pressed(), FALSE, darktable_t::gui, dt_ui_t::main_window, TRUE, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
References darktable, dt_control_mouse_moved(), FALSE, darktable_t::gui, dt_ui_t::main_window, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init().
|
static |
References FALSE.
Referenced by dt_ui_notebook_page().
|
static |
Referenced by dt_ui_notebook_page().
|
static |
Referenced by dt_gui_container_remove_children().
|
static |
References _get_container_row_heigth(), container(), darktable, dt_conf_get_int(), dt_conf_set_int(), DT_PIXEL_APPLY_DPI, dt_ui_main_window(), FALSE, darktable_t::gui, height, and dt_gui_gtk_t::ui.
Referenced by _scroll_wrap_scroll(), and dt_ui_scroll_wrap().
|
static |
References _get_container_row_heigth(), _scroll_wrap_resize(), dt_conf_get_int(), dt_conf_set_int(), dt_gui_get_scroll_unit_deltas(), dt_modifier_is(), dt_toast_log(), FALSE, and TRUE.
Referenced by dt_ui_scroll_wrap().
|
static |
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 |
References dt_gui_gtk_t::accels, darktable, dt_accels_disable(), FALSE, darktable_t::gui, and TRUE.
Referenced by dt_accels_disconnect_on_text_input().
|
static |
References dt_gui_gtk_t::accels, darktable, dt_accels_disable(), FALSE, and darktable_t::gui.
Referenced by dt_accels_disconnect_on_text_input().
|
static |
References dt_gui_refocus_center(), FALSE, and TRUE.
Referenced by dt_accels_disconnect_on_text_input().
|
static |
References TRUE.
Referenced by _init_widgets().
|
static |
References darktable_t::control, darktable, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_control_t::log_ack, dt_control_t::log_message, dt_control_t::log_mutex, and dt_control_t::log_pos.
Referenced by _init_widgets().
|
static |
References TRUE.
Referenced by _init_widgets().
|
static |
References darktable_t::control, darktable, DT_PIXEL_APPLY_DPI, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_ui_center_base(), darktable_t::gui, dt_control_t::toast_ack, dt_control_t::toast_message, dt_control_t::toast_mutex, dt_control_t::toast_pos, and dt_gui_gtk_t::ui.
Referenced by _init_widgets().
|
static |
Referenced by _init_widgets().
|
static |
References DT_COLORSPACE_DISPLAY, dt_colorspaces_set_display_profile(), and FALSE.
Referenced by dt_gui_gtk_init().
|
static |
References result_t::button_no, result_t::button_yes, result_t::entry, result_t::entry_text, result_t::result, and result_t::window.
Referenced by dt_gui_show_standalone_string_dialog(), and dt_gui_show_standalone_yes_no_dialog().
GtkBox * attach_help_popover | ( | GtkWidget * | widget, |
const char * | label | ||
) |
Add an help button triggering a popover label next to an arbitrary widget, to document its action. This is a better take at help tooltips that most people don't see, unless they know about them. Also tooltips window positionning is wonky (can easily overflow viewport), line breaks are added manually (ugly hack), and they appear and disappear on hover (not available on touch screens), so it's flimsy UI.
widget | the original widget to document. DON'T add it to a container. |
label | the in-app "docstring" for the widget |
References attach_popover(), and TRUE.
Referenced by gui_init().
GtkBox * attach_popover | ( | GtkWidget * | widget, |
const char * | icon, | ||
GtkWidget * | content | ||
) |
Add an arbitrary button next to the widget that opens a popover with arbitrary content.
widget | the original widget next to which the popover button will be added. DON'T add it to a container. |
icon | the Freedesktop icon name to put in the button |
content | the widget that will fit inside the popover |
References DT_PIXEL_APPLY_DPI, and FALSE.
Referenced by attach_help_popover(), and gui_init().
void dt_accels_disconnect_on_text_input | ( | GtkWidget * | widget | ) |
Disconnects accels when a text or search entry gets the focus, and reconnects them when it looses it. This helps dealing with one-key shortcuts.
widget |
References _text_entry_focus_in_event(), _text_entry_focus_out_event(), and _text_entry_key_pressed().
Referenced by _add_tag_button_clicked(), _gui_init_datetime(), _gui_styles_dialog_run(), _lib_duplicate_init_callback(), _pop_menu_dictionary_change_path(), _pop_menu_dictionary_create_tag(), _pop_menu_dictionary_edit_tag(), _presets_show_edit_dialog(), dt_gui_preferences_string(), dt_gui_show_standalone_string_dialog(), dt_iop_gui_rename_module(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), init_tab_general(), and init_tab_presets().
void dt_capitalize_label | ( | gchar * | text | ) |
void dt_configure_ppd_dpi | ( | dt_gui_gtk_t * | gui | ) |
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_osx_autoset_dpi(), dt_print(), 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().
void dt_ellipsize_combo | ( | GtkComboBox * | cbox | ) |
double dt_get_system_gui_ppd | ( | GtkWidget * | widget | ) |
References DT_DEBUG_CONTROL, dt_osx_get_ppd(), and dt_print().
Referenced by dt_configure_ppd_dpi().
void dt_gui_add_class | ( | GtkWidget * | widget, |
const gchar * | class_name | ||
) |
Referenced by _add_sample(), _attach_grid_separator(), _bauhaus_widget_init(), _blendif_options_callback(), _changes_tooltip_callback(), _collapsible_set_states(), _color_picker_new(), _gui_presets_popup_menu_show_internal(), _init_widgets(), _iop_dim_all_but(), _iop_tooltip_callback(), _lib_backgroundjobs_added(), _lib_history_create_button(), _mouse_over_image_callback(), _on_drag_begin(), _on_drag_motion(), _sample_tooltip_callback(), _set_widget_dimmed(), _thumb_update_rating_class(), _view_map_drag_set_icon(), add_generic_top_menu_entry(), dt_bauhaus_combobox_from_widget(), dt_bauhaus_slider_from_widget(), dt_gui_gtk_quit(), dt_gui_new_collapsible_section(), dt_guides_popover(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending(), dt_iop_gui_init_masks(), dt_iop_gui_init_raster(), dt_iop_gui_set_expander(), dt_iop_request_focus(), dt_lib_gui_get_expander(), dt_lib_presets_popup_menu_show(), dt_thumbnail_create_widget(), dt_thumbnail_set_group_border(), dt_thumbtable_new(), dt_thumbtable_set_overlays_mode(), dt_ui_init_global_menu(), dt_ui_section_label_set(), dtgtk_button_new(), dtgtk_gradient_slider_multivalue_new(), dtgtk_gradient_slider_multivalue_new_with_color(), dtgtk_gradient_slider_new(), dtgtk_gradient_slider_new_with_color(), dtgtk_thumbnail_btn_new(), dtgtk_togglebutton_new(), gui_init(), gui_init(), gui_init(), init_tab_general(), and update_entry().
void dt_gui_add_help_link | ( | GtkWidget * | widget, |
const char * | link | ||
) |
void dt_gui_container_destroy_children | ( | GtkContainer * | container | ) |
References _delete_child(), and container().
Referenced by _lib_duplicate_init_callback(), _lib_history_change_callback(), clear_search(), dt_iop_gui_update_blendif(), and dt_ui_container_destroy_children().
GtkWidget * dt_gui_container_first_child | ( | GtkContainer * | container | ) |
References container().
Referenced by _get_container_row_heigth(), and gui_init().
gboolean dt_gui_container_has_children | ( | GtkContainer * | container | ) |
References container(), and FALSE.
Referenced by _destroyed_gui_thread().
GtkWidget * dt_gui_container_nth_child | ( | GtkContainer * | container, |
int | which | ||
) |
References container().
Referenced by _iop_panel_label(), and _lib_history_button_clicked_callback().
int dt_gui_container_num_children | ( | GtkContainer * | container | ) |
References container(), and FALSE.
Referenced by container_len().
void dt_gui_container_remove_children | ( | GtkContainer * | container | ) |
References _remove_child(), and container().
Referenced by _on_storage_list_changed(), and container_cleanup().
void dt_gui_draw_rounded_rectangle | ( | cairo_t * | cr, |
float | width, | ||
float | height, | ||
float | x, | ||
float | y | ||
) |
References height, M_PI, and width.
Referenced by gui_draw_sym(), gui_post_expose(), and gui_post_expose().
gboolean dt_gui_get_scroll_delta | ( | const GdkEventScroll * | event, |
gdouble * | delta | ||
) |
References dt_gui_get_scroll_deltas(), FALSE, and TRUE.
Referenced by _area_scrolled_callback(), _scrolled(), and _scrolled().
gboolean dt_gui_get_scroll_deltas | ( | const GdkEventScroll * | event, |
gdouble * | delta_x, | ||
gdouble * | delta_y | ||
) |
References dt_conf_get_bool(), FALSE, and TRUE.
Referenced by _area_scrolled_callback(), and dt_gui_get_scroll_delta().
gboolean dt_gui_get_scroll_unit_delta | ( | const GdkEventScroll * | event, |
int * | delta | ||
) |
References dt_gui_get_scroll_unit_deltas(), FALSE, and TRUE.
Referenced by _area_scrolled_callback(), _gradient_slider_scroll_event(), and _scrolled().
gboolean dt_gui_get_scroll_unit_deltas | ( | const GdkEventScroll * | event, |
int * | delta_x, | ||
int * | delta_y | ||
) |
References dt_conf_get_bool(), FALSE, and TRUE.
Referenced by _area_scroll_callback(), _area_scrolled_callback(), _area_scrolled_callback(), _datetime_scroll_over(), _lib_modulegroups_scroll(), _scroll_wrap_scroll(), _thumbtable_scroll(), _widget_scroll(), area_scroll_callback(), area_scroll_callback(), area_scrolled(), denoiseprofile_scrolled(), dt_gui_get_scroll_unit_delta(), dt_iop_colorcorrection_scrolled(), dt_iop_levels_scroll(), dt_iop_monochrome_scrolled(), dt_iop_zonesystem_bar_scrolled(), lowlight_scrolled(), rawdenoise_scrolled(), and rt_wdbar_scrolled().
int dt_gui_gtk_init | ( | dt_gui_gtk_t * | gui | ) |
References _button_pressed(), _button_released(), _center_enter(), _center_leave(), _configure(), _draw(), _get_axis_name(), _get_mode_name(), _get_source_name(), _init_widgets(), _key_pressed(), _mouse_moved(), _scrolled(), _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_COLORSPACE_DISPLAY, dt_colorspaces_set_display_profile(), dt_conf_get_bool(), dt_conf_get_string_const(), dt_control_change_cursor(), DT_DEBUG_INPUT, dt_gui_load_theme(), dt_gui_presets_init(), dt_guides_set_overlay_colors(), dt_l10n_get_current_lang(), dt_loc_get_datadir(), dt_loc_get_sharedir(), dt_loc_get_user_config_dir(), dt_print(), dt_pthread_mutex_init(), dt_ui_center(), dt_ui_main_window(), dt_gui_gtk_t::export_popup, FALSE, flags, dt_gui_gtk_t::gtkrc, darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, dt_gui_gtk_t::input_devices, darktable_t::l10n, dt_gui_gtk_t::last_preset, dt_gui_gtk_t::mutex, PATH_MAX, dt_gui_gtk_t::presets_popup_menu, dt_gui_gtk_t::reset, dt_gui_gtk_t::scroll_mask, dt_gui_gtk_t::selection_stacked, 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 | ( | ) |
References darktable, dt_gui_add_class(), dt_gui_gtk_write_config(), dt_ui_cleanup_titlebar(), dt_ui_main_window(), darktable_t::gui, dt_gui_gtk_t::input_devices, and dt_gui_gtk_t::ui.
Referenced by dt_control_quit().
void dt_gui_gtk_run | ( | dt_gui_gtk_t * | gui | ) |
void dt_gui_gtk_set_source_rgb | ( | cairo_t * | cr, |
dt_gui_color_t | color | ||
) |
References dt_gui_gtk_t::colors, darktable, and darktable_t::gui.
Referenced by _draw_ellipse(), _draw_rectangle(), _view_map_images_count(), dt_control_draw_busy_msg(), dt_view_manager_expose(), and expose().
void dt_gui_gtk_set_source_rgba | ( | cairo_t * | cr, |
dt_gui_color_t | color, | ||
float | opacity_coef | ||
) |
References dt_gui_gtk_t::colors, darktable, and darktable_t::gui.
Referenced by _brush_events_post_expose(), and _get_pixbuf_from_cairo().
int dt_gui_gtk_write_config | ( | ) |
References darktable, dt_conf_set_bool(), dt_conf_set_int(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_ui_main_window(), darktable_t::gui, height, dt_gui_gtk_t::mutex, dt_gui_gtk_t::ui, and width.
Referenced by dt_gui_gtk_quit().
void dt_gui_hide_collapsible_section | ( | dt_gui_collapsible_section_t * | cs | ) |
References _collapsible_set_states(), _gui_collapsible_section_t::container, FALSE, and _gui_collapsible_section_t::toggle.
Referenced by gui_update().
void dt_gui_load_theme | ( | const char * | theme | ) |
References dt_gui_gtk_t::colors, darktable, dt_conf_get_bool(), dt_conf_get_float(), dt_conf_key_exists(), dt_conf_set_bool(), dt_conf_set_string(), 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_loc_get_datadir(), dt_loc_get_user_config_dir(), dt_ui_main_window(), dt_util_str_replace(), error(), darktable_t::gui, init(), name, PATH_MAX, TRUE, and dt_gui_gtk_t::ui.
Referenced by dt_gui_gtk_init(), reload_ui_last_theme(), and theme_callback().
void dt_gui_menu_popup | ( | GtkMenu * | menu, |
GtkWidget * | button, | ||
GdkGravity | widget_anchor, | ||
GdkGravity | menu_anchor | ||
) |
References darktable, darktable_t::gui, dt_ui_t::main_window, and dt_gui_gtk_t::ui.
Referenced by _blendif_options_callback(), _darkroom_ui_apply_style_popupmenu(), _gui_multiinstance_callback(), _lib_navigation_button_press_callback(), _presets_popup_callback(), camera_autosearch_clicked(), camera_menusearch_clicked(), lens_autosearch_clicked(), lens_menusearch_clicked(), and presets_popup_callback().
void dt_gui_new_collapsible_section | ( | dt_gui_collapsible_section_t * | cs, |
const char * | confname, | ||
const char * | label, | ||
GtkBox * | parent | ||
) |
References _coeffs_button_changed(), _coeffs_expander_click(), _gui_collapsible_section_t::confname, _gui_collapsible_section_t::container, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, DT_BAUHAUS_SPACE, dt_conf_get_bool(), dt_gui_add_class(), dt_ui_section_label_new(), dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_new(), dtgtk_expander_set_expanded(), dtgtk_togglebutton_new(), _gui_collapsible_section_t::expander, FALSE, _gui_collapsible_section_t::label, _gui_collapsible_section_t::parent, _gui_collapsible_section_t::toggle, and TRUE.
Referenced by gui_init().
gboolean dt_gui_quit_callback | ( | GtkWidget * | widget, |
GdkEvent * | event, | ||
gpointer | user_data | ||
) |
References dt_control_quit(), and TRUE.
Referenced by _init_widgets().
void dt_gui_refocus_center | ( | ) |
References dt_gui_gtk_t::accels, darktable, dt_accels_disable(), dt_ui_center(), dt_ui_main_window(), dt_view_manager_name(), FALSE, dt_thumbtable_t::grid, darktable_t::gui, dt_ui_t::thumbtable_lighttable, dt_gui_gtk_t::ui, and darktable_t::view_manager.
Referenced by _gui_delete_callback(), _process_file_list(), _text_entry_key_pressed(), default_iop_focus(), dt_iop_request_focus(), dt_lib_colorpicker_set_box_area(), dt_lib_colorpicker_set_point(), dt_lib_gui_set_expanded(), enter(), and row_activated_with_event().
void dt_gui_remove_class | ( | GtkWidget * | widget, |
const gchar * | class_name | ||
) |
Referenced by _collapsible_set_states(), _event_dnd_end(), _iop_dim_all_but(), _mouse_over_image_callback(), _on_drag_begin(), _on_drag_data_received(), _on_drag_leave(), _on_drag_motion(), _set_widget_dimmed(), _thumb_update_rating_class(), dt_iop_request_focus(), dt_thumbnail_set_group_border(), dt_thumbtable_set_overlays_mode(), and update_entry().
gboolean dt_gui_search_start | ( | GtkWidget * | widget, |
GdkEventKey * | event, | ||
GtkSearchEntry * | entry | ||
) |
Referenced by init_tab_presets().
void dt_gui_search_stop | ( | GtkSearchEntry * | entry, |
GtkWidget * | widget | ||
) |
Referenced by init_tab_presets().
char * dt_gui_show_standalone_string_dialog | ( | const char * | title, |
const char * | markup, | ||
const char * | placeholder, | ||
const char * | no_text, | ||
const char * | yes_text | ||
) |
gboolean dt_gui_show_standalone_yes_no_dialog | ( | const char * | title, |
const char * | markup, | ||
const char * | no_text, | ||
const char * | yes_text | ||
) |
References _yes_no_button_handler(), result_t::button_no, result_t::button_yes, darktable, dt_osx_disallow_fullscreen(), dt_ui_main_window(), darktable_t::gui, result_t::result, darktable_t::themes, TRUE, dt_gui_gtk_t::ui, and result_t::window.
Referenced by _ask_for_maintenance(), ask_for_upgrade(), and dt_database_show_error().
void dt_gui_store_last_preset | ( | const char * | name | ) |
References darktable, 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().
void dt_gui_update_collapsible_section | ( | dt_gui_collapsible_section_t * | cs | ) |
References _collapsible_set_states(), _gui_collapsible_section_t::container, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_set_expanded(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), _gui_collapsible_section_t::expander, and _gui_collapsible_section_t::toggle.
Referenced by gui_update().
GdkModifierType dt_key_modifier_state | ( | ) |
References darktable, dt_ui_main_window(), darktable_t::gui, and dt_gui_gtk_t::ui.
Referenced by _color_picker_callback_button_press(), blend_color_picker_apply(), and color_picker_apply().
void dt_ui_container_destroy_children | ( | dt_ui_t * | ui, |
const dt_ui_container_t | c | ||
) |
destroy all child widgets from container
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
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
References dt_ui_t::containers.
Referenced by dt_view_manager_switch_by_view().
GtkNotebook * dt_ui_notebook_new | ( | ) |
Referenced by gui_init(), gui_init(), and gui_init().
GtkWidget * dt_ui_notebook_page | ( | GtkNotebook * | notebook, |
const char * | text, | ||
const char * | tooltip | ||
) |
References _notebook_motion_notify_callback(), _notebook_size_callback(), dt_capitalize_label(), FALSE, tooltip, and TRUE.
Referenced by dt_iop_gui_update_blendif(), gui_init(), gui_init(), and gui_init().
void dt_ui_notify_user | ( | ) |
draw user's attention
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().
GtkWidget * dt_ui_scroll_wrap | ( | GtkWidget * | w, |
gint | min_size, | ||
char * | config_str | ||
) |
References _scroll_wrap_resize(), _scroll_wrap_scroll(), and DT_PIXEL_APPLY_DPI.
Referenced by gui_init().