![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "gui/actions/menu.h"#include "gui/gtk.h"#include "gui/styles.h"#include "common/act_on.h"#include "common/history.h"#include "common/history_merge.h"#include "common/history_merge_gui.h"#include "common/styles.h"#include "common/undo.h"#include "gui/accelerators.h"#include "control/conf.h"#include "control/control.h"#include "control/signal.h"#include "libs/lib.h"#include <glib.h>
Include dependency graph for src/gui/actions/styles.c:Go to the source code of this file.
Functions | |
| static gboolean | _styles_menu_disabled (GtkWidget *widget) |
| static gboolean | _styles_apply_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | _styles_create_sensitive_callback (GtkWidget *widget) |
| static gboolean | _styles_create_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static void | _close_styles_popup (GtkWidget *dialog, gint response_id, gpointer data) |
| static gboolean | _styles_open_popup_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gchar * | _styles_build_tooltip (const dt_style_t *style) |
| static GtkWidget * | _styles_get_submenu (GtkWidget **menus, GList **lists, GHashTable *submenus, GtkWidget *parent, const gchar *path, const gchar *label, const dt_menus_t index) |
| static void | _styles_add_menu_entry (GtkWidget **menus, GList **lists, GtkWidget *parent, const dt_menus_t index, const gchar *label, const gchar *tooltip, const gchar *style_name) |
| static gboolean | _styles_history_prepend_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | _styles_history_prepend_checked_callback (GtkWidget *widget) |
| static gboolean | _styles_history_append_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | _styles_history_append_checked_callback (GtkWidget *widget) |
| static gboolean | _styles_history_replace_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | _styles_history_replace_checked_callback (GtkWidget *widget) |
| static gboolean | _styles_copy_iop_order_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | _styles_copy_iop_order_checked_callback (GtkWidget *widget) |
| static gboolean | _styles_ask_callback (GtkAccelGroup *group, GObject *acceleratable, guint keyval, GdkModifierType mods, gpointer user_data) |
| static gboolean | _styles_ask_checked_callback (GtkWidget *widget) |
| static void | _styles_menu_clear (void) |
| static gboolean | _styles_menu_rebuild_idle (gpointer user_data) |
| static void | _styles_menu_rebuild_callback (gpointer instance, gpointer user_data) |
| void | append_styles (GtkWidget **menus, GList **lists, const dt_menus_t index) |
Variables | |
| static GtkWidget ** | _styles_menus = NULL |
| static GList ** | _styles_lists = NULL |
| static dt_menus_t | _styles_index = DT_MENU_STYLES |
| static gboolean | _styles_signal_connected = FALSE |
| static guint | _styles_menu_rebuild_source = 0 |
Definition at line 103 of file src/gui/actions/styles.c.
References darktable, darktable_t::gui, dt_gui_gtk_t::styles_popup, and dt_gui_gtk_t::window.
Referenced by _styles_open_popup_callback().
|
static |
Definition at line 216 of file src/gui/actions/styles.c.
References _styles_apply_callback(), dt_gui_gtk_t::accels, darktable, dt_accels_t::global_accels, darktable_t::gui, has_active_images(), set_menu_entry(), tooltip, TRUE, and dt_menu_entry_t::widget.
Referenced by append_styles().
|
static |
Definition at line 48 of file src/gui/actions/styles.c.
References darktable, darktable_t::develop, dt_act_on_get_images(), dt_conf_get_bool(), dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_free, dt_gui_merge_options_dialog(), dt_history_style_on_image(), dt_history_style_on_list(), dt_menu_apply_dev_history_update(), dt_menu_is_image_in_dev(), dt_styles_has_module_order(), FALSE, get_custom_data(), dt_image_t::id, dt_develop_t::image_storage, IS_NULL_PTR, and TRUE.
Referenced by _styles_add_menu_entry().
|
static |
Definition at line 279 of file src/gui/actions/styles.c.
References dt_conf_get_bool(), dt_conf_set_bool(), and TRUE.
Referenced by append_styles().
|
static |
Definition at line 286 of file src/gui/actions/styles.c.
References dt_conf_get_bool().
Referenced by append_styles().
|
static |
Definition at line 154 of file src/gui/actions/styles.c.
References dt_style_t::description, dt_free, dt_styles_get_item_list_as_string(), dt_style_t::name, and tooltip.
Referenced by append_styles().
|
static |
Definition at line 267 of file src/gui/actions/styles.c.
References dt_conf_get_bool(), dt_conf_set_bool(), and TRUE.
Referenced by append_styles().
|
static |
Definition at line 274 of file src/gui/actions/styles.c.
References dt_conf_get_bool().
Referenced by append_styles().
|
static |
Definition at line 93 of file src/gui/actions/styles.c.
References dt_act_on_get_first_image(), dt_gui_styles_dialog_new(), FALSE, and TRUE.
Referenced by append_styles().
|
static |
Definition at line 88 of file src/gui/actions/styles.c.
References dt_act_on_get_images_nb(), and FALSE.
Referenced by append_styles().
|
static |
Definition at line 181 of file src/gui/actions/styles.c.
References dt_gui_gtk_t::accels, darktable, dt_accels_build_path(), dt_free, dt_accels_t::global_accels, darktable_t::gui, IS_NULL_PTR, set_menu_entry(), strip_markup(), and dt_menu_entry_t::widget.
Referenced by append_styles().
|
static |
Definition at line 243 of file src/gui/actions/styles.c.
References dt_conf_set_int(), DT_HISTORY_MERGE_APPEND, and TRUE.
Referenced by append_styles().
|
static |
Definition at line 250 of file src/gui/actions/styles.c.
References dt_conf_get_int(), and DT_HISTORY_MERGE_APPEND.
Referenced by append_styles().
|
static |
Definition at line 231 of file src/gui/actions/styles.c.
References dt_conf_set_int(), DT_HISTORY_MERGE_PREPEND, and TRUE.
Referenced by append_styles().
|
static |
Definition at line 238 of file src/gui/actions/styles.c.
References dt_conf_get_int(), and DT_HISTORY_MERGE_PREPEND.
Referenced by append_styles().
|
static |
Definition at line 255 of file src/gui/actions/styles.c.
References dt_conf_set_int(), DT_HISTORY_MERGE_REPLACE, and TRUE.
Referenced by append_styles().
|
static |
Definition at line 262 of file src/gui/actions/styles.c.
References dt_conf_get_int(), and DT_HISTORY_MERGE_REPLACE.
Referenced by append_styles().
Definition at line 291 of file src/gui/actions/styles.c.
References _styles_index, _styles_lists, _styles_menus, and IS_NULL_PTR.
Referenced by _styles_menu_rebuild_idle().
|
static |
Definition at line 43 of file src/gui/actions/styles.c.
References FALSE.
Referenced by append_styles().
|
static |
Definition at line 329 of file src/gui/actions/styles.c.
References _styles_menu_rebuild_idle(), and _styles_menu_rebuild_source.
Referenced by append_styles().
|
static |
Definition at line 312 of file src/gui/actions/styles.c.
References _styles_index, _styles_lists, _styles_menu_clear(), _styles_menu_rebuild_source, _styles_menus, append_styles(), and IS_NULL_PTR.
Referenced by _styles_menu_rebuild_callback().
|
static |
Definition at line 111 of file src/gui/actions/styles.c.
References _close_styles_popup(), darktable, dt_get_help_url(), dt_gui_add_help_link(), dt_lib_gui_get_expander(), dt_lib_gui_set_expanded(), dt_osx_disallow_fullscreen(), DT_PIXEL_APPLY_DPI, dt_ui_main_window(), FALSE, darktable_t::gui, IS_NULL_PTR, dt_gui_gtk_t::styles_popup, TRUE, dt_gui_gtk_t::ui, and dt_gui_gtk_t::window.
Referenced by append_styles().
| void append_styles | ( | GtkWidget ** | menus, |
| GList ** | lists, | ||
| const dt_menus_t | index | ||
| ) |
Definition at line 336 of file src/gui/actions/styles.c.
References _styles_add_menu_entry(), _styles_ask_callback(), _styles_ask_checked_callback(), _styles_build_tooltip(), _styles_copy_iop_order_callback(), _styles_copy_iop_order_checked_callback(), _styles_create_callback(), _styles_create_sensitive_callback(), _styles_get_submenu(), _styles_history_append_callback(), _styles_history_append_checked_callback(), _styles_history_prepend_callback(), _styles_history_prepend_checked_callback(), _styles_history_replace_callback(), _styles_history_replace_checked_callback(), _styles_index, _styles_lists, _styles_menu_disabled(), _styles_menu_rebuild_callback(), _styles_menus, _styles_open_popup_callback(), _styles_signal_connected, add_menu_separator(), add_sub_menu_entry(), add_sub_sub_menu_entry(), add_top_submenu_entry(), darktable, DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_free, dt_free_gpointer(), DT_SIGNAL_STYLE_CHANGED, dt_style_free(), dt_styles_get_list(), get_last_widget(), i, IS_NULL_PTR, dt_style_t::name, darktable_t::signals, tooltip, and TRUE.
Referenced by _styles_menu_rebuild_idle(), and dt_ui_init_global_menu().
|
static |
Definition at line 39 of file src/gui/actions/styles.c.
Referenced by _styles_menu_clear(), _styles_menu_rebuild_idle(), and append_styles().
|
static |
Definition at line 38 of file src/gui/actions/styles.c.
Referenced by _styles_menu_clear(), _styles_menu_rebuild_idle(), and append_styles().
|
static |
Definition at line 41 of file src/gui/actions/styles.c.
Referenced by _styles_menu_rebuild_callback(), and _styles_menu_rebuild_idle().
|
static |
Definition at line 37 of file src/gui/actions/styles.c.
Referenced by _styles_menu_clear(), _styles_menu_rebuild_idle(), and append_styles().
|
static |
Definition at line 40 of file src/gui/actions/styles.c.
Referenced by append_styles().