![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "control/control.h"
#include "views/view.h"
#include "gui/window_manager.h"
#include "gui/actions/menu.h"
#include "dtgtk/sidepanel.h"
Data Structures | |
struct | dt_header_t |
Macros | |
#define | WINDOW_DEBUG 0 |
Typedefs | |
typedef struct dt_header_t | dt_header_t |
Functions | |
gchar * | panels_get_view_path (char *suffix) |
gchar * | panels_get_panel_path (dt_ui_panel_t panel, char *suffix) |
int | dt_ui_panel_get_size (dt_ui_t *ui, const dt_ui_panel_t p) |
get width of right, left, or bottom panel | |
gboolean | dt_ui_panel_ancestor (dt_ui_t *ui, const dt_ui_panel_t p, GtkWidget *w) |
is the panel ancestor of widget | |
GtkWidget * | dt_ui_center (dt_ui_t *ui) |
get the center drawable widget | |
GtkWidget * | dt_ui_center_base (dt_ui_t *ui) |
GtkWidget * | dt_ui_log_msg (dt_ui_t *ui) |
get the log message widget | |
GtkWidget * | dt_ui_toast_msg (dt_ui_t *ui) |
get the toast message widget | |
GtkWidget * | dt_ui_main_window (dt_ui_t *ui) |
get the main window widget | |
GtkBox * | dt_ui_get_container (dt_ui_t *ui, const dt_ui_container_t c) |
void | dt_ui_container_add_widget (dt_ui_t *ui, const dt_ui_container_t c, GtkWidget *w) |
static void | _ui_init_panel_size (GtkWidget *widget, dt_ui_t *ui) |
void | dt_ui_restore_panels (dt_ui_t *ui) |
static gboolean | _panel_handle_button_callback (GtkWidget *w, GdkEventButton *e, gpointer user_data) |
static gboolean | _panel_handle_cursor_callback (GtkWidget *w, GdkEventCrossing *e, gpointer user_data) |
static gboolean | _panel_handle_motion_callback (GtkWidget *w, GdkEventButton *e, gpointer user_data) |
static GtkWidget * | _ui_init_panel_container_top (GtkWidget *container) |
static void | _ui_panel_size_changed (GtkAdjustment *adjustment, GParamSpec *pspec, gpointer user_data) |
static GtkWidget * | _ui_init_panel_container_center (GtkWidget *container, gboolean left) |
static GtkWidget * | _ui_init_panel_container_bottom (GtkWidget *container) |
static void | _ui_init_panel_left (dt_ui_t *ui, GtkWidget *container) |
static void | _ui_init_panel_right (dt_ui_t *ui, GtkWidget *container) |
static void | _ui_init_panel_top (dt_ui_t *ui, GtkWidget *container) |
static void | _ui_init_panel_bottom (dt_ui_t *ui, GtkWidget *container) |
static void | _ui_widget_redraw_callback (gpointer instance, GtkWidget *widget) |
void | dt_ui_init_main_table (GtkWidget *parent, dt_ui_t *ui) |
void | dt_ui_cleanup_main_table (dt_ui_t *ui) |
void | dt_ui_init_titlebar (dt_ui_t *ui) |
void | dt_ui_titlebar_pack_start (dt_ui_t *ui, GtkWidget *widget) |
void | dt_ui_titlebar_pack_end (dt_ui_t *ui, GtkWidget *widget) |
void | _home_callback () |
void | _close_callback (GtkWidget *w, gpointer data) |
void | _iconify_callback (GtkWidget *w, gpointer data) |
void | _open_accel_search_callback (GtkWidget *w, gpointer data) |
void | dt_ui_init_global_menu (dt_ui_t *ui) |
void | dt_ui_set_image_info_label (dt_ui_t *ui, const char *label) |
void | dt_ui_set_window_buttons_visible (dt_ui_t *ui, gboolean visible) |
void | dt_hinter_set_message (dt_ui_t *ui, const char *message) |
void | dt_ui_cleanup_titlebar (dt_ui_t *ui) |
Variables | |
const char * | _ui_panel_config_names [] = { "header", "toolbar_top", "toolbar_bottom", "left", "right", "bottom" } |
#define WINDOW_DEBUG 0 |
typedef struct dt_header_t dt_header_t |
void _close_callback | ( | GtkWidget * | w, |
gpointer | data | ||
) |
Referenced by dt_ui_init_global_menu().
void _home_callback | ( | ) |
References dt_ctl_switch_mode_to().
Referenced by dt_ui_init_global_menu().
void _iconify_callback | ( | GtkWidget * | w, |
gpointer | data | ||
) |
Referenced by dt_ui_init_global_menu().
void _open_accel_search_callback | ( | GtkWidget * | w, |
gpointer | data | ||
) |
References dt_gui_gtk_t::accels, darktable, dt_accels_search(), darktable_t::gui, dt_ui_t::main_window, and dt_gui_gtk_t::ui.
Referenced by dt_ui_init_global_menu().
|
static |
References darktable, dt_ui_main_window(), FALSE, darktable_t::gui, dt_gui_widgets_t::panel_handle_dragging, dt_gui_widgets_t::panel_handle_x, dt_gui_widgets_t::panel_handle_y, TRUE, dt_gui_gtk_t::ui, and dt_gui_gtk_t::widgets.
Referenced by _ui_init_panel_bottom(), _ui_init_panel_left(), and _ui_init_panel_right().
|
static |
References dt_control_change_cursor(), and TRUE.
Referenced by _ui_init_panel_bottom(), _ui_init_panel_left(), and _ui_init_panel_right().
|
static |
References darktable, dt_conf_set_int(), dt_ui_main_window(), DT_UI_PANEL_BOTTOM, DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, FALSE, darktable_t::gui, key, dt_gui_widgets_t::panel_handle_dragging, dt_gui_widgets_t::panel_handle_x, dt_gui_widgets_t::panel_handle_y, panels_get_panel_path(), TRUE, dt_gui_gtk_t::ui, and dt_gui_gtk_t::widgets.
Referenced by _ui_init_panel_bottom(), _ui_init_panel_left(), and _ui_init_panel_right().
References _panel_handle_button_callback(), _panel_handle_cursor_callback(), _panel_handle_motion_callback(), _ui_init_panel_size(), container(), DT_PIXEL_APPLY_DPI, DT_THUMBTABLE_MODE_FILMSTRIP, dt_thumbtable_new(), DT_UI_PANEL_BOTTOM, dt_ui_t::panels, dt_thumbtable_t::parent_overlay, and dt_ui_t::thumbtable_filmstrip.
Referenced by dt_ui_init_main_table().
|
static |
References container(), and FALSE.
Referenced by _ui_init_panel_left(), and _ui_init_panel_right().
|
static |
References _ui_panel_size_changed(), container(), and TRUE.
Referenced by _ui_init_panel_left(), and _ui_init_panel_right().
|
static |
References container(), DT_UI_PANEL_MODULE_SPACING, and FALSE.
Referenced by _ui_init_panel_left(), and _ui_init_panel_right().
References _panel_handle_button_callback(), _panel_handle_cursor_callback(), _panel_handle_motion_callback(), _ui_init_panel_container_bottom(), _ui_init_panel_container_center(), _ui_init_panel_container_top(), _ui_init_panel_size(), container(), dt_ui_t::containers, darktable, DT_PIXEL_APPLY_DPI, DT_UI_CONTAINER_PANEL_LEFT_BOTTOM, DT_UI_CONTAINER_PANEL_LEFT_CENTER, DT_UI_CONTAINER_PANEL_LEFT_TOP, DT_UI_PANEL_LEFT, dtgtk_side_panel_new(), FALSE, darktable_t::gui, dt_gui_widgets_t::panel_handle_dragging, dt_ui_t::panels, and dt_gui_gtk_t::widgets.
Referenced by dt_ui_init_main_table().
References _panel_handle_button_callback(), _panel_handle_cursor_callback(), _panel_handle_motion_callback(), _ui_init_panel_container_bottom(), _ui_init_panel_container_center(), _ui_init_panel_container_top(), _ui_init_panel_size(), container(), dt_ui_t::containers, darktable, DT_PIXEL_APPLY_DPI, DT_UI_CONTAINER_PANEL_RIGHT_BOTTOM, DT_UI_CONTAINER_PANEL_RIGHT_CENTER, DT_UI_CONTAINER_PANEL_RIGHT_TOP, DT_UI_PANEL_RIGHT, dtgtk_side_panel_new(), FALSE, darktable_t::gui, dt_gui_widgets_t::panel_handle_dragging, dt_ui_t::panels, TRUE, and dt_gui_gtk_t::widgets.
Referenced by dt_ui_init_main_table().
References dt_conf_get_int(), dt_conf_key_exists(), DT_UI_PANEL_BOTTOM, DT_UI_PANEL_BOTTOM_DEFAULT_SIZE, DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, DT_UI_PANEL_SIDE_DEFAULT_SIZE, key, MAX, and panels_get_panel_path().
Referenced by _ui_init_panel_bottom(), _ui_init_panel_left(), _ui_init_panel_right(), and dt_ui_restore_panels().
References container(), dt_ui_t::containers, DT_UI_CONTAINER_PANEL_TOP_SECOND_ROW, DT_UI_PANEL_MODULE_SPACING, DT_UI_PANEL_TOP, FALSE, dt_ui_t::panels, dt_ui_t::top_panel, and TRUE.
Referenced by dt_ui_init_main_table().
|
static |
References darktable, darktable_t::gui, height, and dt_gui_gtk_t::scroll_to.
Referenced by _ui_init_panel_container_center().
|
static |
Referenced by dt_ui_init_main_table().
References dt_ui_t::header, and dt_header_t::hinter.
Referenced by dt_control_hinter_message().
GtkWidget * dt_ui_center | ( | dt_ui_t * | ui | ) |
get the center drawable widget
References dt_ui_t::center.
Referenced by _dt_ctl_switch_mode_prepare(), _unregister_modules_drag_n_drop(), dt_colorspaces_set_display_profile(), dt_control_expose(), dt_gui_gtk_init(), dt_gui_gtk_run(), dt_gui_refocus_center(), enter(), and leave().
GtkWidget * dt_ui_center_base | ( | dt_ui_t * | ui | ) |
References dt_ui_t::center_base.
Referenced by _ui_toast_redraw_callback(), and leave().
References dt_thumbtable_cleanup(), dt_ui_t::thumbtable_filmstrip, and dt_ui_t::thumbtable_lighttable.
Referenced by dt_view_manager_switch_by_view().
References DT_MENU_LAST, dt_ui_t::header, and dt_header_t::item_lists.
Referenced by dt_gui_gtk_quit().
void dt_ui_container_add_widget | ( | dt_ui_t * | ui, |
const dt_ui_container_t | c, | ||
GtkWidget * | w | ||
) |
References dt_ui_t::containers, DT_UI_CONTAINER_PANEL_TOP_SECOND_ROW, FALSE, and TRUE.
Referenced by dt_iop_gui_set_expander(), and dt_view_manager_switch_by_view().
GtkBox * dt_ui_get_container | ( | dt_ui_t * | ui, |
const dt_ui_container_t | c | ||
) |
References dt_ui_t::containers.
Referenced by _gui_delete_callback(), _gui_movedown_callback(), _gui_moveup_callback(), _iop_plugin_header_button_press(), _on_drag_begin(), _on_drag_data_received(), _on_drag_motion(), _register_modules_drag_n_drop(), _reorder_gui_module_list(), _unregister_modules_drag_n_drop(), dt_dev_reorder_gui_module_list(), and dt_iop_gui_duplicate().
References _close_callback(), _home_callback(), _iconify_callback(), _open_accel_search_callback(), add_top_menu_entry(), append_display(), append_edit(), append_file(), append_help(), append_image(), append_run(), append_select(), append_views(), dt_header_t::close, dt_gui_add_class(), DT_MENU_ATELIERS, DT_MENU_DISPLAY, DT_MENU_EDIT, DT_MENU_FILE, DT_MENU_HELP, DT_MENU_IMAGE, DT_MENU_LAST, DT_MENU_RUN, DT_MENU_SELECTION, dt_ui_titlebar_pack_end(), dt_ui_titlebar_pack_start(), FALSE, dt_ui_t::header, dt_header_t::hinter, dt_header_t::home, dt_header_t::iconify, dt_header_t::image_info, dt_header_t::item_lists, dt_ui_t::main_window, dt_header_t::menu_bar, dt_header_t::menus, dt_header_t::titlebar, dt_ui_t::top_panel, and TRUE.
Referenced by dt_init().
References _ui_init_panel_bottom(), _ui_init_panel_left(), _ui_init_panel_right(), _ui_init_panel_top(), _ui_widget_redraw_callback(), dt_ui_t::center, dt_ui_t::center_base, container(), darktable, DT_DEBUG_CONTROL_SIGNAL_CONNECT, DT_PIXEL_APPLY_DPI, DT_SIGNAL_CONTROL_REDRAW_CENTER, DT_THUMBTABLE_MODE_FILEMANAGER, dt_thumbtable_new(), darktable_t::gui, dt_thumbtable_t::parent_overlay, dt_gui_gtk_t::scroll_mask, darktable_t::signals, dt_ui_t::thumbtable_lighttable, and TRUE.
Referenced by _init_widgets().
References FALSE, dt_ui_t::header, dt_ui_t::main_window, dt_header_t::titlebar, and TRUE.
Referenced by _init_widgets().
GtkWidget * dt_ui_log_msg | ( | dt_ui_t * | ui | ) |
GtkWidget * dt_ui_main_window | ( | dt_ui_t * | ui | ) |
get the main window widget
References dt_ui_t::main_window.
Referenced by _apply_rename_path(), _ask_before_delete_style(), _choose_gpx_callback(), _datetime_key_pressed(), _discarded_files_popup(), _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(), _import_button_clicked(), _init_widgets(), _key_pressed(), _main_do_event_help(), _menuitem_delete_preset(), _menuitem_preferences(), _menuitem_update_preset(), _panel_handle_button_callback(), _panel_handle_motion_callback(), _pop_menu_dictionary_change_path(), _pop_menu_dictionary_create_tag(), _pop_menu_dictionary_delete_node(), _pop_menu_dictionary_delete_tag(), _pop_menu_dictionary_edit_tag(), _preview_gpx_file(), _scroll_wrap_resize(), _timezone_key_pressed(), _timezone_save(), ask_and_delete(), button_clicked(), button_clicked(), button_clicked(), dt_bauhaus_init(), dt_bauhaus_load_theme(), dt_bauhaus_show_popup(), dt_cleanup(), dt_control_change_cursor(), 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_gui_gtk_init(), dt_gui_gtk_quit(), dt_gui_gtk_write_config(), dt_gui_hist_dialog_new(), dt_gui_load_theme(), dt_gui_preferences_show(), dt_gui_refocus_center(), dt_gui_show_standalone_string_dialog(), dt_gui_show_standalone_yes_no_dialog(), dt_key_modifier_state(), dt_lib_export_metadata_configuration_dialog(), dt_preview_window_spawn(), dt_ui_notify_user(), dt_view_manager_button_pressed(), dt_view_manager_switch_by_view(), edit_preset(), enter(), export_clicked(), export_files_callback(), full_screen_callback(), full_screen_checked_callback(), get_stamp_params(), global_progress_end(), global_progress_set(), global_progress_start(), gui_init(), gui_reset(), import_clicked(), load_xmp_callback(), menuitem_delete_preset(), menuitem_update_preset(), mouse_leave(), mouse_moved(), open_booking_callback(), open_chat_callback(), open_doc_callback(), open_donate_callback(), open_forum_callback(), open_search_callback(), search_accels_callback(), shortcuts_callback(), show_about_dialog(), switch_cursors(), and view_popup_menu_onSearchFilmroll().
gboolean dt_ui_panel_ancestor | ( | dt_ui_t * | ui, |
const dt_ui_panel_t | p, | ||
GtkWidget * | w | ||
) |
is the panel ancestor of widget
References FALSE, and dt_ui_t::panels.
Referenced by _get_preferred_width().
int dt_ui_panel_get_size | ( | dt_ui_t * | ui, |
const dt_ui_panel_t | p | ||
) |
get width of right, left, or bottom panel
References dt_conf_get_int(), dt_conf_key_exists(), DT_UI_PANEL_BOTTOM, DT_UI_PANEL_BOTTOM_DEFAULT_SIZE, DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, DT_UI_PANEL_SIDE_DEFAULT_SIZE, key, panels_get_panel_path(), and size.
Referenced by _get_preferred_width(), and _panel_get_size_cb().
References _ui_init_panel_size(), dt_conf_get_bool(), dt_conf_get_int(), dt_conf_key_exists(), DT_UI_PANEL_BOTTOM, DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, dt_ui_panel_show(), DT_UI_PANEL_SIZE, FALSE, key, dt_ui_t::panels, panels_get_panel_path(), panels_get_view_path(), and TRUE.
Referenced by dt_ui_toggle_panels_visibility(), and dt_view_manager_switch_by_view().
References dt_ui_t::header, and dt_header_t::image_info.
Referenced by dt_view_image_info_update().
References dt_header_t::close, dt_ui_t::header, and dt_header_t::iconify.
Referenced by full_screen_callback().
References FALSE, dt_ui_t::header, and dt_header_t::titlebar.
Referenced by dt_ui_init_global_menu().
References FALSE, dt_ui_t::header, and dt_header_t::titlebar.
Referenced by dt_ui_init_global_menu().
GtkWidget * dt_ui_toast_msg | ( | dt_ui_t * | ui | ) |
gchar * panels_get_panel_path | ( | dt_ui_panel_t | panel, |
char * | suffix | ||
) |
References _ui_panel_config_names, dt_util_dstrcat(), and panels_get_view_path().
Referenced by _panel_handle_motion_callback(), _panel_is_visible(), _ui_init_panel_size(), dt_ui_panel_get_size(), dt_ui_panel_show(), and dt_ui_restore_panels().
gchar * panels_get_view_path | ( | char * | suffix | ) |
const char* _ui_panel_config_names[] = { "header", "toolbar_top", "toolbar_bottom", "left", "right", "bottom" } |
Referenced by panels_get_panel_path().