![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "develop/imageop_gui.h"#include "develop/masks.h"#include "develop/masks_group.h"#include "develop/masks_gui.h"#include "develop/masks/masks_history.h"#include "common/logging.h"#include "system/macros.h"#include "common/module_versioning.h"#include "control/redraw.h"#include "develop/blend.h"#include "develop/blend_gui.h"#include "develop/develop.h"#include "develop/imageop.h"#include "widgets/draw.h"#include "widgets/accelerators.h"#include "gui/application.h"#include "libs/lib.h"#include "libs/lib_api.h"#include "views/view.h"#include "widgets/scroll_wrap.h"#include "widgets/widget_settings.h"#include "common/conf.h"#include "widgets/label.h"#include "widgets/dialog.h"#include "widgets/togglebutton.h"#include "control/signal.h"#include "control/user_message.h"
Include dependency graph for libs/shape_manager.c:Go to the source code of this file.
Data Structures | |
| struct | dt_shape_manager_list_t |
| struct | dt_shape_manager_t |
| struct | _tree_row_t |
Macros | |
| #define | DT_MASKS_PANEL_CONF_WIDTH "plugins/darkroom/masks/windowwidth" |
| #define | DT_MASKS_PANEL_CONF_X "plugins/darkroom/masks/window_x" |
| #define | DT_MASKS_PANEL_CONF_Y "plugins/darkroom/masks/window_y" |
Typedefs | |
| typedef enum dt_shape_list_t | dt_shape_list_t |
| typedef struct dt_shape_manager_list_t | dt_shape_manager_list_t |
| typedef struct dt_shape_manager_t | dt_shape_manager_t |
| typedef enum dt_masks_tree_cols_t | dt_masks_tree_cols_t |
| typedef enum dt_modchooser_col_t | dt_modchooser_col_t |
| typedef struct _tree_row_t | _tree_row_t |
Enumerations | |
| enum | dt_shape_list_t { DT_SHAPE_LIST_SHAPES = 0 , DT_SHAPE_LIST_MODULES , DT_SHAPE_LIST_COUNT } |
| enum | dt_masks_tree_cols_t { TREE_TEXT = 0 , TREE_MODULE , TREE_GROUPID , TREE_FORMID , TREE_EDITABLE , TREE_IC_OP , TREE_IC_OP_VISIBLE , TREE_IC_INVERSE , TREE_IC_INVERSE_VISIBLE , TREE_IC_USED_VISIBLE , TREE_USED_TEXT , TREE_IC_DELETE_VISIBLE , TREE_IC_UNLINK_VISIBLE , TREE_NOTE , TREE_STRIKE , TREE_IS_SEPARATOR , TREE_COUNT } |
| enum | dt_modchooser_col_t { MODCHOOSER_CHECKED = 0 , MODCHOOSER_WAS_CHECKED , MODCHOOSER_SENSITIVE , MODCHOOSER_NAME , MODCHOOSER_NOTE , MODCHOOSER_MODULE , MODCHOOSER_COUNT } |
Functions | |
| static void | _shape_manager_recreate_list (dt_lib_module_t *self) |
| static void | _shape_manager_update_list (dt_lib_module_t *self) |
| static GList * | _modules_owning_group (const dt_masks_form_t *group) |
| static void | _shape_manager_broadcast (dt_lib_module_t *self, const int formid, const int parentid, const dt_masks_event_t event) |
| static void | _tree_edit_group_name (dt_lib_module_t *self, dt_shape_list_t which, int formid, gboolean cursor_at_end) |
| const char * | name (struct dt_lib_module_t *self __attribute__((unused))) |
| const char ** | views (dt_lib_module_t *self __attribute__((unused))) |
| uint32_t | container (dt_lib_module_t *self __attribute__((unused))) |
| static void | _shape_manager_get_values (GtkTreeModel *model, GtkTreeIter *iter, dt_iop_module_t **module, int *groupid, int *formid) |
| static void | _tree_add_shape (GtkWidget *menu_item, dt_iop_module_t *module) |
| static void | _tree_add_shape_menu_item (GtkWidget *menu, const dt_masks_type_t type, dt_iop_module_t *module) |
| static void | _shape_manager_shape_button_started (GtkWidget *button __attribute__((unused)), dt_iop_module_t *module __attribute__((unused)), dt_masks_type_t type __attribute__((unused)), gpointer user_data __attribute__((unused))) |
| static void | _refresh_owning_modules (const dt_masks_form_t *grp) |
| static void | _tree_add_exist (GtkButton *button, dt_masks_form_t *grp) |
| static GList * | _selected_form_ids (dt_shape_manager_list_t *list) |
| static void | _tree_group (GtkButton *button __attribute__((unused)), dt_shape_manager_list_t *list) |
| static int | _tree_format_form_usage_label (char *str, const size_t str_size, const dt_masks_form_t *form, const dt_iop_module_t *module) |
| static void | _set_iter_name (dt_shape_manager_t *lm, dt_masks_form_t *form, int state, float opacity, GtkTreeModel *model, GtkTreeIter *iter, int index) |
| static void | _tree_delete_unused (GtkButton *button __attribute__((unused)), dt_shape_manager_list_t *list) |
| static void | _add_masks_history_item (dt_shape_manager_t *lm) |
| static void | _tree_apply_operation (GtkWidget *menu_item, dt_shape_manager_list_t *list) |
| static void | _tree_moveup (GtkButton *button __attribute__((unused)), dt_shape_manager_list_t *list) |
| static void | _tree_movedown (GtkButton *button __attribute__((unused)), dt_shape_manager_list_t *list) |
| static void | _tree_delete_shape (GtkButton *button __attribute__((unused)), dt_shape_manager_list_t *list) |
| static int | _tree_root_formid (GtkTreeModel *model, GtkTreeIter iter) |
| static int | _selected_group_in_module_list (const dt_shape_manager_t *lm) |
| static gboolean | _form_can_join_group (dt_develop_t *dev, const int group_id, const int fid) |
| static gboolean | _row_can_be_added (const dt_shape_manager_t *lm, GtkTreeModel *model, GtkTreeIter *iter) |
| static void | _tree_add_to_group (GtkMenuItem *item, dt_shape_manager_list_t *list) |
| static void | _add_cell_data_func (GtkTreeViewColumn *col __attribute__((unused)), GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer data) |
| static void | _shape_manager_sync_add_sensitivity (const dt_shape_manager_t *lm) |
| static void | _tree_name_editing_done (GtkCellEditable *editable __attribute__((unused)), dt_shape_manager_t *lm) |
| static void | _tree_name_caret_to_end (GtkWidget *editable, gpointer user_data __attribute__((unused))) |
| static void | _tree_name_editing_started (GtkCellRenderer *renderer __attribute__((unused)), GtkCellEditable *editable, const gchar *path __attribute__((unused)), dt_shape_manager_list_t *list) |
| static void | _tree_start_name_editing (const dt_shape_manager_list_t *list, GtkTreeModel *model, GtkTreeIter *iter, GtkTreePath *path, const gboolean cursor_at_end) |
| static gboolean | _tree_edit_group_name_idle (gpointer user_data) |
| static void | _modchooser_toggled (GtkCellRendererToggle *cell __attribute__((unused)), const gchar *path_string, GtkListStore *store) |
| static gboolean | _modchooser_button_pressed (GtkWidget *treeview, const GdkEventButton *event, GtkListStore *store) |
| static gboolean | _modchooser_button_press (GtkWidget *dialog, const GdkEventButton *event, gpointer user_data __attribute__((unused))) |
| static void | _modchooser_collect (GtkListStore *store, GList **to_attach, GList **to_detach) |
| static gboolean | _modchooser_run (const dt_masks_form_t *form, GList **to_attach, GList **to_detach) |
| static dt_masks_form_t * | _module_create_own_mask (dt_develop_t *dev, dt_iop_module_t *module, int *own_id) |
| static void | _tree_row_assign_to_modules (dt_shape_manager_list_t *list, GtkTreeModel *model, GtkTreeIter *iter) |
| static void | _tree_row_add_to_group (dt_shape_manager_list_t *list, GtkTreeModel *model, GtkTreeIter *iter) |
| static void | _tree_row_action (dt_shape_manager_list_t *list, GtkTreeModel *model, GtkTreeIter *iter) |
| static void | _tree_duplicate_shape (GtkButton *button __attribute__((unused)), dt_shape_manager_list_t *list) |
| static void | _tree_cell_edited (GtkCellRendererText *cell __attribute__((unused)), const gchar *path_string, const gchar *new_text, dt_shape_manager_list_t *list) |
| static void | _show_masks_on_owning_module (GtkTreeModel *model, GtkTreeIter *iter) |
| static void | _tree_selection_change (GtkTreeSelection *selection, dt_shape_manager_list_t *list) |
| static void | _menu_append_separator (GtkMenuShell *menu) |
| static void | _menu_append_new_shape_submenu (GtkMenuShell *menu, dt_iop_module_t *module) |
| static void | _menu_append_existing_shapes (GtkMenuShell *menu, dt_masks_form_t *grp, const int grpid, dt_iop_module_t *module) |
| static void | _menu_append_join_group (GtkMenuShell *menu, dt_shape_manager_list_t *list) |
| static void | _menu_append_operations (GtkMenuShell *menu, dt_shape_manager_list_t *list, const int nb) |
| static GtkWidget * | _tree_context_menu (GtkTreeSelection *selection, GtkTreeModel *model, dt_shape_manager_list_t *list, dt_iop_module_t *module) |
| static int | _tree_apply_click_selection (GtkWidget *treeview, GtkTreeSelection *selection, const GdkEventButton *event, GtkTreePath *mouse_path) |
| static int | _tree_button_pressed (GtkWidget *treeview, GdkEventButton *event, dt_shape_manager_list_t *list) |
| static void | _tree_row_activated (GtkTreeView *treeview, GtkTreePath *path, GtkTreeViewColumn *column, dt_shape_manager_list_t *list) |
| static gboolean | _tree_restrict_select (GtkTreeSelection *selection, GtkTreeModel *model __attribute__((unused)), GtkTreePath *path, gboolean path_currently_selected, gpointer data) |
| static const char * | _tooltip_action_text (const int grid) |
| static gchar * | _tooltip_assign_text (GtkTreeModel *model, GtkTreeIter *iter) |
| static gchar * | _tooltip_add_text (const dt_shape_manager_t *lm, GtkTreeModel *model, GtkTreeIter *iter) |
| static gboolean | _tree_button_tooltip (const dt_shape_manager_list_t *list, GtkTreeView *tree_view, const gint x, const gint y, GtkTooltip *tooltip) |
| static gboolean | _tree_query_tooltip (GtkWidget *widget, gint x, gint y, gboolean keyboard_tip, GtkTooltip *tooltip, gpointer data) |
| static void | _groups_naming_form (const int formid, const dt_masks_form_t *grp, char *text, const size_t text_length, int *nb) |
| static void | _is_form_used (const int formid, char *text, const size_t text_length, int *nb) |
| static dt_iop_module_t * | _module_owning_group (const dt_masks_form_t *group) |
| static void | _tree_append_row (GtkTreeStore *treestore, GtkTreeIter *toplevel, dt_shape_manager_t *lm, const _tree_row_t *row, GtkTreeIter *child) |
| static void | _shape_manager_list_recurs (GtkTreeStore *treestore, GtkTreeIter *toplevel, dt_shape_manager_t *lm, const _tree_row_t *row) |
| gboolean | _find_mask_iter_by_values (GtkTreeModel *model, GtkTreeIter *iter, const dt_iop_module_t *module, const int formid, const int level) |
| GList * | _shape_manager_get_selected (dt_shape_manager_list_t *list) |
| static void | _tree_reveal_row (dt_shape_manager_list_t *list, GtkTreeModel *model, GtkTreeIter *iter, const gboolean exclusive) |
| static gboolean | _group_is_module_mask (const dt_masks_form_t *form) |
| static gboolean | _tree_store_append_group_row (GtkTreeStore *treestore, dt_shape_manager_t *lm, dt_masks_form_t *form, const gboolean is_module_mask, const gboolean flat) |
| static gboolean | _tree_store_add_forms (GtkTreeStore *treestore, dt_shape_manager_t *lm, const dt_shape_list_t which, const gboolean groups) |
| static gboolean | _tree_row_is_separator (GtkTreeModel *model, GtkTreeIter *iter, gpointer data __attribute__((unused))) |
| static GtkTreeStore * | _tree_store_new (void) |
| static GtkTreeStore * | _tree_store_build (dt_shape_manager_t *lm, const dt_shape_list_t which) |
| static void | _tree_restore_selection (dt_shape_manager_list_t *list, GtkTreeModel *model, const GList *selectids) |
| static gboolean | _tree_select_module_group (dt_shape_manager_list_t *list, GtkTreeModel *model, const dt_masks_form_gui_t *gui) |
| static gboolean | _shape_manager_is_active (void) |
| static void | _shape_manager_update_item (dt_lib_module_t *self __attribute__((unused)), int formid, int parentid, dt_shape_manager_t *lm, GtkTreeModel *model, GtkTreeIter *iter) |
| static gboolean | _update_foreach (GtkTreeModel *model, GtkTreePath *path __attribute__((unused)), GtkTreeIter *iter, gpointer data) |
| static gboolean | _remove_foreach (GtkTreeModel *model, GtkTreePath *path, GtkTreeIter *iter, gpointer data) |
| static void | _shape_manager_remove_item_from (const dt_shape_manager_list_t *list, int formid, int parentid) |
| static void | _shape_manager_remove_item (dt_lib_module_t *self, int formid, int parentid) |
| static gboolean | _shape_manager_selection_change_r (GtkTreeModel *model, GtkTreeSelection *selection, GtkTreeIter *iter, struct dt_iop_module_t *module, const int selectid, int throw_event, const int level) |
| static gboolean | _shape_manager_selection_change_in (dt_shape_manager_t *lm, const dt_shape_manager_list_t *list, struct dt_iop_module_t *module, const int selectid, const int throw_event) |
| static void | _shape_manager_selection_change (dt_lib_module_t *self, struct dt_iop_module_t *module, const int selectid, const int throw_event) |
| static gboolean | _find_child_iter_by_formid (GtkTreeModel *model, GtkTreeIter *parent_iter, int formid, GtkTreeIter *child_iter) |
| static gboolean | _find_iter_by_parentid_and_formid (GtkTreeModel *model, int parentid, int formid, GtkTreeIter *iter) |
| static gboolean | _shape_manager_refresh_row (dt_lib_module_t *self, dt_shape_manager_t *lm, const int formid, const int parentid, const dt_masks_event_t event) |
| static void | _shape_manager_handler_callback (gpointer instance __attribute__((unused)), const int formid, const int parentid, const dt_masks_event_t event, dt_lib_module_t *self) |
| static void | _shape_manager_view_changed (gpointer instance __attribute__((unused)), dt_view_t *old_view __attribute__((unused)), dt_view_t *new_view __attribute__((unused)), dt_lib_module_t *self) |
| static void | _shape_manager_modules_moved (gpointer instance __attribute__((unused)), dt_lib_module_t *self) |
| static gboolean | _shape_manager_popup_position_is_usable (GtkWidget *window) |
| Is this window on a backend where absolute coordinates mean anything? Wayland gives a client neither its own position nor the right to set it, so there we remember the width only. | |
| static void | _shape_manager_popup_save_geometry (dt_shape_manager_t *d) |
| Remember where the user put the panel and how wide they made it. Called on every path that takes the window off screen, since a hidden window no longer has a position to read. | |
| static void | _shape_manager_popup_restore_geometry (dt_shape_manager_t *d) |
| Put the panel back where it was left, before it is mapped. With nothing stored – first run, or a session that never moved it – nothing is imposed and GTK_WIN_POS_CENTER_ON_PARENT still decides, which is what puts the window on the screen the application is on. | |
| static gint | _shape_manager_height_ceiling (void) |
| The toolbox button is the panel's only state: showing and hiding both go through its active flag, so every way of closing the panel leaves the button un-pressed. Re-entrant by design – the window-manager close path toggles the button, which comes back here. | |
| static void | _shape_manager_relax_height_caps (const dt_shape_manager_t *d) |
| Forget how far the user last dragged each list, so the auto-sizing pass that follows measures true, full content instead of stopping at a small stale cap from a previous session. | |
| static void | _shape_manager_popup_button_toggled_cb (GtkWidget *button, gpointer user_data) |
| static gboolean | _shape_manager_popup_delete_cb (GtkWidget *window __attribute__((unused)), GdkEvent *event __attribute__((unused)), gpointer user_data) |
| Closing from the window manager hides the panel, same as the toolbox button, so its widgets and state survive. Un-pressing the button is what actually hides the window (and saves the geometry before it goes), so the two ways of closing cannot disagree. | |
| static gboolean | _shape_manager_is_window_visible (dt_lib_module_t *self) |
| static gboolean | _shape_manager_add_popup_button_idle (gpointer user_data) |
| void | gui_init (dt_lib_module_t *self) |
| void | gui_cleanup (dt_lib_module_t *self) |
| #define DT_MASKS_PANEL_CONF_WIDTH "plugins/darkroom/masks/windowwidth" |
Definition at line 3148 of file libs/shape_manager.c.
| #define DT_MASKS_PANEL_CONF_X "plugins/darkroom/masks/window_x" |
Definition at line 3149 of file libs/shape_manager.c.
| #define DT_MASKS_PANEL_CONF_Y "plugins/darkroom/masks/window_y" |
Definition at line 3150 of file libs/shape_manager.c.
| typedef struct _tree_row_t _tree_row_t |
| typedef enum dt_masks_tree_cols_t dt_masks_tree_cols_t |
| typedef enum dt_modchooser_col_t dt_modchooser_col_t |
| typedef enum dt_shape_list_t dt_shape_list_t |
| typedef struct dt_shape_manager_list_t dt_shape_manager_list_t |
| typedef struct dt_shape_manager_t dt_shape_manager_t |
| enum dt_masks_tree_cols_t |
Definition at line 190 of file libs/shape_manager.c.
| enum dt_modchooser_col_t |
| Enumerator | |
|---|---|
| MODCHOOSER_CHECKED | |
| MODCHOOSER_WAS_CHECKED | |
| MODCHOOSER_SENSITIVE | |
| MODCHOOSER_NAME | |
| MODCHOOSER_NOTE | |
| MODCHOOSER_MODULE | |
| MODCHOOSER_COUNT | |
Definition at line 1005 of file libs/shape_manager.c.
| enum dt_shape_list_t |
| Enumerator | |
|---|---|
| DT_SHAPE_LIST_SHAPES | |
| DT_SHAPE_LIST_MODULES | |
| DT_SHAPE_LIST_COUNT | |
Definition at line 93 of file libs/shape_manager.c.
|
static |
Definition at line 838 of file libs/shape_manager.c.
References _row_can_be_added(), FALSE, dt_shape_manager_t::ic_add, dt_shape_manager_t::ic_add_off, IS_NULL_PTR, model, and TREE_IC_DELETE_VISIBLE.
Referenced by gui_init().
|
static |
Definition at line 521 of file libs/shape_manager.c.
References dt_dev_add_history_item, dt_dev_get_global(), FALSE, dt_shape_manager_t::gui_reset, reset(), and TRUE.
Referenced by _tree_apply_operation(), _tree_duplicate_shape(), _tree_movedown(), and _tree_moveup().
|
static |
Definition at line 2987 of file libs/shape_manager.c.
References FALSE, model, TREE_FORMID, and TRUE.
Referenced by _find_iter_by_parentid_and_formid().
|
static |
Definition at line 3012 of file libs/shape_manager.c.
References _find_child_iter_by_formid(), FALSE, model, and TREE_FORMID.
Referenced by _shape_manager_refresh_row().
| gboolean _find_mask_iter_by_values | ( | GtkTreeModel * | model, |
| GtkTreeIter * | iter, | ||
| const dt_iop_module_t * | module, | ||
| const int | formid, | ||
| const int | level | ||
| ) |
Definition at line 2401 of file libs/shape_manager.c.
References _find_mask_iter_by_values(), _shape_manager_get_values(), FALSE, IS_NULL_PTR, model, and dt_iop_module_t::op.
Referenced by _find_mask_iter_by_values(), _tree_restore_selection(), and _tree_select_module_group().
|
static |
Definition at line 756 of file libs/shape_manager.c.
References dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_contains(), dt_masks_group_covers_shapes(), DT_MASKS_OK, FALSE, IS_NULL_PTR, TRUE, and dt_masks_form_t::type.
Referenced by _menu_append_existing_shapes(), _menu_append_join_group(), _modchooser_run(), _row_can_be_added(), _tree_add_to_group(), and _tree_row_assign_to_modules().
|
static |
Definition at line 2478 of file libs/shape_manager.c.
References _modules_owning_group(), DT_MASKS_GROUP, FALSE, IS_NULL_PTR, and dt_masks_form_t::type.
Referenced by _tree_store_add_forms().
|
static |
Definition at line 2220 of file libs/shape_manager.c.
References _groups_naming_form(), dt_dev_get_global(), dt_masks_get_from_id(), DT_MASKS_GROUP, IS_NULL_PTR, dt_masks_form_t::name, dt_masks_form_t::points, and dt_masks_form_t::type.
Referenced by _groups_naming_form(), and _is_form_used().
|
static |
Definition at line 2244 of file libs/shape_manager.c.
References _groups_naming_form(), dt_dev_get_global(), DT_MASKS_GROUP, and dt_masks_form_t::type.
Referenced by _tree_append_row().
|
static |
Definition at line 1663 of file libs/shape_manager.c.
References _form_can_join_group(), _tree_add_exist(), _tree_format_form_usage_label(), dt_dev_get_global(), DT_MASKS_CLONE, dt_masks_form_get_info(), DT_MASKS_NON_CLONE, FALSE, dt_masks_form_info_t::formid, TRUE, and dt_masks_form_info_t::type.
Referenced by _tree_context_menu().
|
static |
Definition at line 1707 of file libs/shape_manager.c.
References _form_can_join_group(), _selected_form_ids(), _tree_add_to_group(), dt_dev_get_global(), dt_free, dt_masks_group_list(), FALSE, g, groups(), IS_NULL_PTR, MAX, MIN, name, and TRUE.
Referenced by _tree_context_menu().
|
static |
Definition at line 1645 of file libs/shape_manager.c.
References _tree_add_shape_menu_item(), DT_MASKS_BRUSH, DT_MASKS_CIRCLE, DT_MASKS_ELLIPSE, DT_MASKS_GRADIENT, and DT_MASKS_POLYGON.
Referenced by _tree_context_menu().
|
static |
Definition at line 1751 of file libs/shape_manager.c.
References _menu_append_separator(), _tree_apply_operation(), _tree_movedown(), _tree_moveup(), DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_UNION, i, and state.
Referenced by _tree_context_menu().
|
static |
Definition at line 1633 of file libs/shape_manager.c.
References IS_NULL_PTR.
Referenced by _menu_append_operations(), and _tree_context_menu().
|
static |
Definition at line 1061 of file libs/shape_manager.c.
References FALSE, IS_NULL_PTR, and TRUE.
Referenced by _modchooser_run().
|
static |
Definition at line 1034 of file libs/shape_manager.c.
References _modchooser_toggled(), dt_free, FALSE, store, and TRUE.
Referenced by _modchooser_run().
|
static |
Definition at line 1077 of file libs/shape_manager.c.
References FALSE, IS_NULL_PTR, MODCHOOSER_CHECKED, MODCHOOSER_MODULE, MODCHOOSER_WAS_CHECKED, and store.
Referenced by _modchooser_run().
|
static |
Definition at line 1119 of file libs/shape_manager.c.
References _form_can_join_group(), _modchooser_button_press(), _modchooser_button_pressed(), _modchooser_collect(), _modchooser_toggled(), dt_control_log(), dt_dev_get_global(), dt_free, DT_GUI_BOX_SPACING, dt_gui_main_window(), dt_gui_refocus_parent(), dt_history_item_get_name(), dt_iop_module_is_in_pipeline(), dt_iop_module_supports_drawn_mask(), dt_masks_form_get_info(), DT_MASKS_FORM_NAME_LEN, dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_contains(), dt_masks_group_first_use(), dt_masks_group_get_member(), DT_MASKS_OK, dt_ui_label_new(), DT_UI_RESIZE_DYNAMIC, dt_ui_scroll_wrap(), FALSE, dt_masks_form_info_t::formid, dt_masks_form_info_t::is_group, IS_NULL_PTR, MODCHOOSER_CHECKED, MODCHOOSER_COUNT, MODCHOOSER_MODULE, MODCHOOSER_NAME, MODCHOOSER_NOTE, MODCHOOSER_SENSITIVE, MODCHOOSER_WAS_CHECKED, dt_masks_form_info_t::name, store, and TRUE.
Referenced by _tree_row_assign_to_modules().
|
static |
Definition at line 1016 of file libs/shape_manager.c.
References FALSE, MODCHOOSER_CHECKED, MODCHOOSER_SENSITIVE, store, and TRUE.
Referenced by _modchooser_button_pressed(), and _modchooser_run().
|
static |
Definition at line 1284 of file libs/shape_manager.c.
References dt_dev_add_history_item, dt_iop_gui_blend_set_drawn_mask_group(), dt_masks_append_form(), dt_masks_create_ext(), dt_masks_form_get_info(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_set_name_from_module(), dt_masks_form_info_t::formid, IS_NULL_PTR, and TRUE.
Referenced by _tree_row_assign_to_modules().
|
static |
Definition at line 2297 of file libs/shape_manager.c.
References _modules_owning_group(), and IS_NULL_PTR.
Referenced by _shape_manager_list_recurs().
|
static |
Definition at line 2279 of file libs/shape_manager.c.
References dt_iop_module_t::blend_params, dt_dev_get_global(), dt_iop_module_supports_drawn_mask(), dt_masks_form_t::formid, IS_NULL_PTR, and dt_develop_blend_params_t::mask_id.
Referenced by _group_is_module_mask(), _module_owning_group(), and _refresh_owning_modules().
|
static |
Definition at line 281 of file libs/shape_manager.c.
References _modules_owning_group(), dt_iop_gui_blend_masks_update(), and m.
Referenced by _tree_add_exist(), and _tree_add_to_group().
|
static |
Definition at line 2833 of file libs/shape_manager.c.
References _shape_manager_get_values(), IS_NULL_PTR, and model.
Referenced by _shape_manager_remove_item_from().
|
static |
Definition at line 788 of file libs/shape_manager.c.
References _form_can_join_group(), _selected_group_in_module_list(), _shape_manager_get_values(), dt_dev_get_global(), and model.
Referenced by _add_cell_data_func(), _tooltip_add_text(), and _tree_row_add_to_group().
|
static |
Definition at line 319 of file libs/shape_manager.c.
References _shape_manager_get_values(), IS_NULL_PTR, model, row, and dt_shape_manager_list_t::treeview.
Referenced by _menu_append_join_group(), _tree_add_to_group(), and _tree_group().
|
static |
Definition at line 728 of file libs/shape_manager.c.
References _tree_root_formid(), DT_SHAPE_LIST_MODULES, IS_NULL_PTR, dt_shape_manager_t::lists, model, and dt_shape_manager_list_t::treeview.
Referenced by _row_can_be_added(), _tooltip_add_text(), and _tree_row_add_to_group().
|
static |
Definition at line 428 of file libs/shape_manager.c.
References DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_UNION, dt_shape_manager_t::ic_difference, dt_shape_manager_t::ic_exclusion, dt_shape_manager_t::ic_intersection, dt_shape_manager_t::ic_inverse, dt_shape_manager_t::ic_union, IS_NULL_PTR, model, dt_masks_form_t::name, state, TREE_IC_INVERSE, TREE_IC_INVERSE_VISIBLE, TREE_IC_OP, TREE_IC_OP_VISIBLE, and TREE_TEXT.
Referenced by _shape_manager_update_item(), _tree_append_row(), _tree_apply_operation(), and _update_foreach().
|
static |
Definition at line 3313 of file libs/shape_manager.c.
References d, DT_VIEW_DARKROOM, dt_view_manager_get_global(), dt_view_manager_module_toolbox_add(), FALSE, dt_view_manager_t::module_toolbox, dt_view_manager_t::proxy, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 509 of file libs/shape_manager.c.
References dt_lib_module_t::data, dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_SIGNAL_MASK_CHANGED, dt_shape_manager_t::gui_reset, IS_NULL_PTR, and reset().
Referenced by _tree_add_to_group(), _tree_delete_shape(), _tree_delete_unused(), _tree_duplicate_shape(), _tree_group(), _tree_movedown(), _tree_moveup(), _tree_row_action(), _tree_row_add_to_group(), and _tree_row_assign_to_modules().
| GList * _shape_manager_get_selected | ( | dt_shape_manager_list_t * | list | ) |
Definition at line 2429 of file libs/shape_manager.c.
References _shape_manager_get_values(), items, model, res, and dt_shape_manager_list_t::treeview.
Referenced by _shape_manager_recreate_list().
|
static |
Definition at line 217 of file libs/shape_manager.c.
References model, TREE_FORMID, TREE_GROUPID, and TREE_MODULE.
Referenced by _find_mask_iter_by_values(), _remove_foreach(), _row_can_be_added(), _selected_form_ids(), _shape_manager_get_selected(), _shape_manager_selection_change_r(), _show_masks_on_owning_module(), _tooltip_add_text(), _tooltip_assign_text(), _tree_apply_operation(), _tree_button_pressed(), _tree_button_tooltip(), _tree_cell_edited(), _tree_context_menu(), _tree_delete_shape(), _tree_duplicate_shape(), _tree_edit_group_name_idle(), _tree_movedown(), _tree_moveup(), _tree_row_action(), _tree_row_add_to_group(), _tree_row_assign_to_modules(), _tree_selection_change(), and _update_foreach().
|
static |
Definition at line 3066 of file libs/shape_manager.c.
References _shape_manager_recreate_list(), _shape_manager_refresh_row(), dt_masks_form_gui_t::creation, dt_lib_module_t::data, dt_control_queue_redraw_center(), DT_DEBUG_MASKS, dt_dev_get_global(), DT_MASKS_EVENT_ADD, DT_MASKS_EVENT_CHANGE, DT_MASKS_EVENT_DELETE, DT_MASKS_EVENT_NONE, DT_MASKS_EVENT_REMOVE, DT_MASKS_EVENT_RESET, DT_MASKS_EVENT_UPDATE, dt_masks_get_from_id(), dt_masks_set_visible_form(), dt_print(), dt_develop_t::form_gui, and IS_NULL_PTR.
Referenced by gui_cleanup(), and gui_init().
|
static |
The toolbox button is the panel's only state: showing and hiding both go through its active flag, so every way of closing the panel leaves the button un-pressed. Re-entrant by design – the window-manager close path toggles the button, which comes back here.
The room a fresh, un-dragged dt_ui_scroll_wrap area is allowed to grow to – the same ceiling scroll_wrap.c's own ungated case uses, so raising a list's cap to this number is indistinguishable from that list never having been dragged at all.
Definition at line 3240 of file libs/shape_manager.c.
References DT_PIXEL_APPLY_DPI, and dt_widget_root_window().
Referenced by _shape_manager_relax_height_caps().
|
static |
Definition at line 2664 of file libs/shape_manager.c.
References DT_VIEW_DARKROOM, dt_view_manager_get_current_view(), dt_view_manager_get_global(), and IS_NULL_PTR.
Referenced by _shape_manager_recreate_list().
|
static |
Definition at line 3306 of file libs/shape_manager.c.
References d, dt_lib_module_t::data, FALSE, and IS_NULL_PTR.
Referenced by gui_init().
|
static |
Definition at line 2366 of file libs/shape_manager.c.
References _module_owning_group(), _shape_manager_list_recurs(), _tree_append_row(), dt_dev_get_global(), DT_MASKS_CLONE, dt_masks_get_from_id(), DT_MASKS_GROUP, DT_MASKS_NON_CLONE, _tree_row_t::flat, _tree_row_t::form, dt_masks_form_t::formid, dt_masks_form_group_t::formid, _tree_row_t::grp_id, _tree_row_t::gstate, IS_NULL_PTR, dt_masks_form_group_t::opacity, dt_masks_form_t::points, _tree_row_t::root_id, row, dt_masks_form_group_t::state, and dt_masks_form_t::type.
Referenced by _shape_manager_list_recurs(), and _tree_store_append_group_row().
|
static |
Definition at line 3141 of file libs/shape_manager.c.
References _shape_manager_recreate_list().
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 3263 of file libs/shape_manager.c.
References _shape_manager_popup_restore_geometry(), _shape_manager_popup_save_geometry(), _shape_manager_relax_height_caps(), d, and IS_NULL_PTR.
Referenced by gui_init().
|
static |
Closing from the window manager hides the panel, same as the toolbox button, so its widgets and state survive. Un-pressing the button is what actually hides the window (and saves the geometry before it goes), so the two ways of closing cannot disagree.
Definition at line 3292 of file libs/shape_manager.c.
References d, FALSE, and TRUE.
Referenced by gui_init().
|
static |
Is this window on a backend where absolute coordinates mean anything? Wayland gives a client neither its own position nor the right to set it, so there we remember the width only.
Definition at line 3154 of file libs/shape_manager.c.
Referenced by _shape_manager_popup_restore_geometry(), and _shape_manager_popup_save_geometry().
|
static |
Put the panel back where it was left, before it is mapped. With nothing stored – first run, or a session that never moved it – nothing is imposed and GTK_WIN_POS_CENTER_ON_PARENT still decides, which is what puts the window on the screen the application is on.
Definition at line 3186 of file libs/shape_manager.c.
References _shape_manager_popup_position_is_usable(), d, dt_conf_get_int(), dt_conf_key_exists(), DT_MASKS_PANEL_CONF_WIDTH, DT_MASKS_PANEL_CONF_X, DT_MASKS_PANEL_CONF_Y, height, IS_NULL_PTR, MAX, width, and x.
Referenced by _shape_manager_popup_button_toggled_cb().
|
static |
Remember where the user put the panel and how wide they made it. Called on every path that takes the window off screen, since a hidden window no longer has a position to read.
Definition at line 3165 of file libs/shape_manager.c.
References _shape_manager_popup_position_is_usable(), d, dt_conf_set_int(), DT_MASKS_PANEL_CONF_WIDTH, DT_MASKS_PANEL_CONF_X, DT_MASKS_PANEL_CONF_Y, height, width, and x.
Referenced by _shape_manager_popup_button_toggled_cb(), and gui_cleanup().
|
static |
Definition at line 2671 of file libs/shape_manager.c.
References _shape_manager_get_selected(), _shape_manager_is_active(), _shape_manager_sync_add_sensitivity(), _tree_restore_selection(), _tree_select_module_group(), _tree_selection_change(), _tree_store_build(), _tree_store_new(), dt_masks_form_gui_t::creation, dt_lib_module_t::data, dt_dev_get_global(), dt_masks_shape_buttons_deactivate_all(), DT_SHAPE_LIST_COUNT, DT_SHAPE_LIST_MODULES, dt_develop_t::form_gui, gui_reset(), dt_shape_manager_t::gui_reset, i, IS_NULL_PTR, dt_shape_manager_t::lists, model, dt_shape_manager_t::popup_window, dt_shape_manager_list_t::treeview, and dt_shape_manager_list_t::which.
Referenced by _shape_manager_handler_callback(), _shape_manager_modules_moved(), _shape_manager_view_changed(), _tree_add_to_group(), _tree_delete_shape(), _tree_delete_unused(), _tree_duplicate_shape(), _tree_group(), _tree_movedown(), _tree_moveup(), _tree_row_action(), _tree_row_add_to_group(), _tree_row_assign_to_modules(), and gui_init().
|
static |
Definition at line 3041 of file libs/shape_manager.c.
References _find_iter_by_parentid_and_formid(), _shape_manager_update_item(), DT_MASKS_EVENT_UPDATE, DT_SHAPE_LIST_COUNT, FALSE, i, IS_NULL_PTR, dt_shape_manager_t::lists, model, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by _shape_manager_handler_callback().
|
static |
Forget how far the user last dragged each list, so the auto-sizing pass that follows measures true, full content instead of stopping at a small stale cap from a previous session.
There is no "erase this conf key" call, so the ceiling itself is stored in its place: as far as dt_ui_scroll_wrap()'s own sizing rule can tell, that is exactly what an un-dragged list looks like. A later manual drag overwrites it with a real choice again, same as always – this only resets what STARTUP sees.
Definition at line 3253 of file libs/shape_manager.c.
References _shape_manager_height_ceiling(), d, DT_SHAPE_LIST_COUNT, dt_widget_store_int(), dt_shape_manager_list_t::height_key, i, and IS_NULL_PTR.
Referenced by _shape_manager_popup_button_toggled_cb().
|
static |
Definition at line 2882 of file libs/shape_manager.c.
References _shape_manager_remove_item_from(), dt_lib_module_t::data, DT_SHAPE_LIST_COUNT, i, IS_NULL_PTR, and dt_shape_manager_t::lists.
Referenced by gui_init().
|
static |
Definition at line 2853 of file libs/shape_manager.c.
References _remove_foreach(), IS_NULL_PTR, model, and dt_shape_manager_list_t::treeview.
Referenced by _shape_manager_remove_item().
|
static |
Definition at line 2978 of file libs/shape_manager.c.
References _shape_manager_selection_change_in(), dt_lib_module_t::data, DT_SHAPE_LIST_COUNT, i, IS_NULL_PTR, and dt_shape_manager_t::lists.
Referenced by gui_init().
|
static |
Definition at line 2926 of file libs/shape_manager.c.
References _shape_manager_selection_change_r(), FALSE, dt_shape_manager_t::gui_reset, IS_NULL_PTR, model, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by _shape_manager_selection_change().
|
static |
Definition at line 2891 of file libs/shape_manager.c.
References _shape_manager_get_values(), _shape_manager_selection_change_r(), FALSE, i, IS_NULL_PTR, model, dt_iop_module_t::op, and TRUE.
Referenced by _shape_manager_selection_change_in(), and _shape_manager_selection_change_r().
|
static |
Definition at line 270 of file libs/shape_manager.c.
References dt_dev_get_global(), dt_develop_t::form_gui, and dt_masks_form_gui_t::group_selected.
Referenced by gui_init().
|
static |
Definition at line 857 of file libs/shape_manager.c.
References dt_shape_manager_list_t::add_col, DT_SHAPE_LIST_SHAPES, IS_NULL_PTR, dt_shape_manager_t::lists, and dt_shape_manager_list_t::treeview.
Referenced by _shape_manager_recreate_list(), and _tree_selection_change().
|
static |
Definition at line 2746 of file libs/shape_manager.c.
References _set_iter_name(), dt_dev_get_global(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_form_group_t::formid, IS_NULL_PTR, model, dt_masks_form_group_t::opacity, dt_masks_form_t::points, dt_masks_form_group_t::state, state, and dt_masks_form_t::type.
Referenced by _shape_manager_refresh_row().
|
static |
Definition at line 2816 of file libs/shape_manager.c.
References _update_foreach(), dt_lib_module_t::data, DT_SHAPE_LIST_COUNT, i, IS_NULL_PTR, dt_shape_manager_t::lists, model, and dt_shape_manager_list_t::treeview.
Referenced by gui_init().
|
static |
Definition at line 3131 of file libs/shape_manager.c.
References _shape_manager_recreate_list().
Referenced by gui_cleanup(), and gui_init().
|
static |
Definition at line 1533 of file libs/shape_manager.c.
References _shape_manager_get_values(), dt_iop_module_supports_drawn_mask(), IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_inited, dt_iop_gui_blend_data_t::masks_shown, model, and TRUE.
Referenced by _tree_selection_change().
|
static |
Definition at line 2095 of file libs/shape_manager.c.
Referenced by _tree_button_tooltip().
|
static |
Definition at line 2120 of file libs/shape_manager.c.
References _row_can_be_added(), _selected_group_in_module_list(), _shape_manager_get_values(), dt_dev_get_global(), dt_masks_get_from_id(), dt_masks_group_contains(), DT_MASKS_OK, IS_NULL_PTR, model, and dt_masks_form_t::name.
Referenced by _tree_button_tooltip().
|
static |
Definition at line 2104 of file libs/shape_manager.c.
References _shape_manager_get_values(), dt_dev_get_global(), dt_masks_form_get_info(), dt_masks_get_from_id(), dt_masks_form_info_t::is_group, and model.
Referenced by _tree_button_tooltip().
|
static |
Definition at line 289 of file libs/shape_manager.c.
References _refresh_owning_modules(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_add_history_item, dt_dev_get_global(), dt_dev_masks_selection_change(), dt_masks_cow_touch(), DT_MASKS_EVENT_CHANGE, dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_add_form(), DT_SIGNAL_MASK_CHANGED, FALSE, dt_masks_form_t::formid, IS_NULL_PTR, TRUE, and dt_masks_form_t::type.
Referenced by _menu_append_existing_shapes().
|
static |
Definition at line 254 of file libs/shape_manager.c.
References dt_control_queue_redraw_center(), dt_dev_get_global(), dt_masks_creation_mode_enter(), dt_develop_t::form_gui, dt_masks_form_gui_t::group_selected, and type.
Referenced by _tree_add_shape_menu_item().
|
static |
Definition at line 264 of file libs/shape_manager.c.
References _tree_add_shape(), dt_masks_shape_menu_item_new(), IS_NULL_PTR, and type.
Referenced by _menu_append_new_shape_submenu().
|
static |
Definition at line 798 of file libs/shape_manager.c.
References _form_can_join_group(), _refresh_owning_modules(), _selected_form_ids(), _shape_manager_broadcast(), _shape_manager_recreate_list(), dt_dev_add_history_item, dt_dev_get_global(), dt_masks_cow_touch(), DT_MASKS_EVENT_CHANGE, dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_add_form(), FALSE, IS_NULL_PTR, dt_shape_manager_list_t::self, TRUE, and dt_masks_form_t::type.
Referenced by _menu_append_join_group().
|
static |
Definition at line 2307 of file libs/shape_manager.c.
References _is_form_used(), _set_iter_name(), dt_dev_get_global(), dt_free, dt_masks_form_get_info(), DT_MASKS_FORM_NAME_LEN, dt_masks_group_first_use(), DT_MASKS_OK, DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_UNION, dt_masks_form_info_t::formid, dt_shape_manager_t::ic_difference, dt_shape_manager_t::ic_exclusion, dt_shape_manager_t::ic_intersection, dt_shape_manager_t::ic_inverse, dt_shape_manager_t::ic_union, dt_masks_form_info_t::is_group, IS_NULL_PTR, dt_masks_form_info_t::name, row, TREE_EDITABLE, TREE_FORMID, TREE_GROUPID, TREE_IC_DELETE_VISIBLE, TREE_IC_INVERSE, TREE_IC_INVERSE_VISIBLE, TREE_IC_OP, TREE_IC_OP_VISIBLE, TREE_IC_UNLINK_VISIBLE, TREE_IC_USED_VISIBLE, TREE_MODULE, TREE_NOTE, TREE_STRIKE, TREE_TEXT, and TREE_USED_TEXT.
Referenced by _shape_manager_list_recurs().
|
static |
Definition at line 1913 of file libs/shape_manager.c.
References dt_modifier_is(), DT_PRIMARY_MASK, and IS_NULL_PTR.
Referenced by _tree_button_pressed().
|
static |
Definition at line 533 of file libs/shape_manager.c.
References _add_masks_history_item(), _set_iter_name(), _shape_manager_get_values(), dt_lib_module_t::data, dt_control_queue_redraw_center(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_get_global(), DT_MASKS_EVENT_CHANGE, dt_masks_get_from_id(), dt_masks_group_set_member_operation(), DT_MASKS_OK, DT_MASKS_STATE_NONE, DT_SIGNAL_MASK_CHANGED, dt_masks_member_t::index, items, model, dt_masks_member_t::opacity, dt_shape_manager_list_t::self, dt_masks_member_t::state, and dt_shape_manager_list_t::treeview.
Referenced by _menu_append_operations().
|
static |
Definition at line 1954 of file libs/shape_manager.c.
References _shape_manager_get_values(), _tree_apply_click_selection(), _tree_context_menu(), _tree_row_action(), _tree_row_add_to_group(), _tree_row_assign_to_modules(), dt_shape_manager_list_t::action_col, dt_shape_manager_list_t::add_col, dt_shape_manager_list_t::assign_col, dt_modifier_is(), DT_PRIMARY_MASK, FALSE, IS_NULL_PTR, model, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 2152 of file libs/shape_manager.c.
References _shape_manager_get_values(), _tooltip_action_text(), _tooltip_add_text(), _tooltip_assign_text(), dt_shape_manager_list_t::action_col, dt_shape_manager_list_t::add_col, dt_shape_manager_list_t::assign_col, dt_lib_module_t::data, dt_free, FALSE, IS_NULL_PTR, model, dt_shape_manager_list_t::self, tooltip, TRUE, and x.
Referenced by _tree_query_tooltip().
|
static |
Definition at line 1502 of file libs/shape_manager.c.
References _shape_manager_get_values(), dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_add_history_item, dt_dev_get_global(), DT_MASKS_EVENT_CHANGE, dt_masks_get_from_id(), DT_SIGNAL_MASK_CHANGED, FALSE, IS_NULL_PTR, model, dt_masks_form_t::name, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 1799 of file libs/shape_manager.c.
References _menu_append_existing_shapes(), _menu_append_join_group(), _menu_append_new_shape_submenu(), _menu_append_operations(), _menu_append_separator(), _shape_manager_get_values(), _tree_delete_shape(), _tree_delete_unused(), _tree_duplicate_shape(), _tree_group(), dt_dev_get_global(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_find_holder(), dt_masks_gui_populate_interaction_sliders(), IS_NULL_PTR, model, selected, and dt_masks_form_t::type.
Referenced by _tree_button_pressed().
|
static |
Definition at line 667 of file libs/shape_manager.c.
References _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_lib_module_t::data, dt_dev_add_history_item, dt_dev_get_global(), dt_masks_change_form_gui(), DT_MASKS_EVENT_CHANGE, dt_masks_form_delete(), dt_masks_get_from_id(), FALSE, dt_shape_manager_t::gui_reset, items, model, dt_shape_manager_list_t::self, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by _tree_context_menu().
|
static |
Definition at line 464 of file libs/shape_manager.c.
References _shape_manager_broadcast(), _shape_manager_recreate_list(), dt_dev_add_history_item, dt_dev_get_global(), dt_dev_undo_end_record(), dt_dev_undo_start_record(), dt_masks_cleanup_unused(), DT_MASKS_EVENT_CHANGE, FALSE, dt_shape_manager_list_t::self, and TRUE.
Referenced by _tree_context_menu().
|
static |
Definition at line 1454 of file libs/shape_manager.c.
References _add_masks_history_item(), _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_lib_module_t::data, dt_dev_get_global(), dt_dev_masks_selection_change(), dt_iop_gui_blend_masks_update(), DT_MASKS_EVENT_CHANGE, dt_masks_form_duplicate_in_group(), IS_NULL_PTR, items, model, dt_shape_manager_list_t::self, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by _tree_context_menu().
|
static |
Definition at line 986 of file libs/shape_manager.c.
References _tree_edit_group_name_idle(), dt_lib_module_t::data, dt_shape_manager_t::name_edit_at_end, dt_shape_manager_t::name_edit_formid, and dt_shape_manager_t::name_edit_which.
Referenced by _tree_group().
|
static |
Definition at line 940 of file libs/shape_manager.c.
References _shape_manager_get_values(), _tree_start_name_editing(), dt_lib_module_t::data, IS_NULL_PTR, dt_shape_manager_t::lists, model, dt_shape_manager_t::name_edit_at_end, dt_shape_manager_t::name_edit_formid, dt_shape_manager_t::name_edit_which, and dt_shape_manager_list_t::treeview.
Referenced by _tree_edit_group_name().
|
static |
Definition at line 393 of file libs/shape_manager.c.
References dt_dev_get_global(), dt_free, dt_history_item_get_name(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_form_t::formid, dt_masks_form_group_t::formid, IS_NULL_PTR, m, dt_masks_form_t::name, dt_masks_form_t::points, and dt_masks_form_t::type.
Referenced by _menu_append_existing_shapes().
|
static |
Definition at line 341 of file libs/shape_manager.c.
References _selected_form_ids(), _shape_manager_broadcast(), _shape_manager_recreate_list(), _tree_edit_group_name(), dt_dev_add_history_item, dt_dev_get_global(), dt_masks_append_form(), dt_masks_create_ext(), DT_MASKS_EVENT_CHANGE, dt_masks_form_get_info(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_add_form_with_state(), dt_masks_group_list(), DT_MASKS_STATE_UNION, DT_MASKS_STATE_USE, DT_SHAPE_LIST_SHAPES, FALSE, dt_masks_form_info_t::formid, IS_NULL_PTR, dt_shape_manager_list_t::self, and TRUE.
Referenced by _tree_context_menu().
|
static |
Definition at line 627 of file libs/shape_manager.c.
References _add_masks_history_item(), _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_lib_module_t::data, dt_dev_get_global(), dt_masks_change_form_gui(), dt_masks_cow_touch(), DT_MASKS_EVENT_CHANGE, dt_masks_form_move(), dt_masks_get_from_id(), dt_shape_manager_t::gui_reset, items, model, dt_shape_manager_list_t::self, and dt_shape_manager_list_t::treeview.
Referenced by _menu_append_operations().
|
static |
Definition at line 587 of file libs/shape_manager.c.
References _add_masks_history_item(), _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_lib_module_t::data, dt_dev_get_global(), dt_masks_change_form_gui(), dt_masks_cow_touch(), DT_MASKS_EVENT_CHANGE, dt_masks_form_move(), dt_masks_get_from_id(), dt_shape_manager_t::gui_reset, items, model, dt_shape_manager_list_t::self, and dt_shape_manager_list_t::treeview.
Referenced by _menu_append_operations().
|
static |
Definition at line 888 of file libs/shape_manager.c.
References _tree_name_caret_to_end().
Referenced by _tree_name_caret_to_end(), and _tree_name_editing_started().
|
static |
Definition at line 871 of file libs/shape_manager.c.
References dt_gui_main_window(), dt_gui_refocus_parent(), FALSE, IS_NULL_PTR, and dt_shape_manager_t::popup_window.
Referenced by _tree_name_editing_started().
|
static |
Definition at line 894 of file libs/shape_manager.c.
References _tree_name_caret_to_end(), _tree_name_editing_done(), dt_lib_module_t::data, IS_NULL_PTR, dt_shape_manager_t::name_edit_cursor_at_end, dt_shape_manager_t::popup_window, dt_shape_manager_list_t::self, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 2188 of file libs/shape_manager.c.
References _tree_button_tooltip(), dt_free, FALSE, IS_NULL_PTR, model, tooltip, TREE_IC_USED_VISIBLE, TREE_USED_TEXT, TRUE, and x.
Referenced by gui_init().
|
static |
Definition at line 2617 of file libs/shape_manager.c.
References _find_mask_iter_by_values(), _tree_reveal_row(), FALSE, and model.
Referenced by _shape_manager_recreate_list().
|
static |
Definition at line 2049 of file libs/shape_manager.c.
References dt_shape_manager_t::gui_reset, items, and TRUE.
Referenced by gui_init().
|
static |
Definition at line 2463 of file libs/shape_manager.c.
References model, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by _tree_restore_selection(), and _tree_select_module_group().
|
static |
Definition at line 717 of file libs/shape_manager.c.
References model, and TREE_FORMID.
Referenced by _selected_group_in_module_list().
|
static |
Definition at line 1421 of file libs/shape_manager.c.
References _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_lib_module_t::data, dt_dev_add_history_item, dt_dev_get_global(), dt_masks_change_form_gui(), DT_MASKS_EVENT_CHANGE, dt_masks_form_delete(), dt_masks_get_from_id(), dt_masks_gui_confirm_permanent_delete(), FALSE, dt_shape_manager_t::gui_reset, IS_NULL_PTR, model, dt_masks_form_t::name, dt_shape_manager_list_t::self, and TRUE.
Referenced by _tree_button_pressed().
|
static |
Definition at line 2036 of file libs/shape_manager.c.
References _tree_start_name_editing(), FALSE, model, and dt_shape_manager_list_t::name_col.
Referenced by gui_init().
|
static |
Definition at line 1388 of file libs/shape_manager.c.
References _row_can_be_added(), _selected_group_in_module_list(), _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_lib_module_t::data, dt_dev_add_history_item, dt_dev_get_global(), dt_masks_cow_touch(), DT_MASKS_EVENT_CHANGE, dt_masks_get_from_id(), dt_masks_group_add_form(), FALSE, IS_NULL_PTR, model, dt_shape_manager_list_t::self, and TRUE.
Referenced by _tree_button_pressed().
|
static |
Definition at line 1322 of file libs/shape_manager.c.
References _form_can_join_group(), _modchooser_run(), _module_create_own_mask(), _shape_manager_broadcast(), _shape_manager_get_values(), _shape_manager_recreate_list(), dt_develop_t::blend_params, dt_dev_add_history_item, dt_dev_get_global(), dt_iop_gui_blend_masks_update(), dt_masks_cow_touch(), DT_MASKS_EVENT_CHANGE, dt_masks_form_delete(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_add_form(), FALSE, IS_NULL_PTR, m, model, dt_shape_manager_list_t::self, TRUE, and dt_masks_form_t::type.
Referenced by _tree_button_pressed().
|
static |
Definition at line 2568 of file libs/shape_manager.c.
References FALSE, model, and TREE_IS_SEPARATOR.
Referenced by gui_init().
|
static |
Definition at line 2642 of file libs/shape_manager.c.
References _find_mask_iter_by_values(), _tree_reveal_row(), dt_masks_form_gui_t::creation, dt_iop_module_supports_drawn_mask(), FALSE, IS_NULL_PTR, model, and TRUE.
Referenced by _shape_manager_recreate_list().
|
static |
Definition at line 1553 of file libs/shape_manager.c.
References _shape_manager_get_values(), _shape_manager_sync_add_sensitivity(), _show_masks_on_owning_module(), dt_masks_form_gui_t::creation, dt_lib_module_t::data, dt_control_queue_redraw_center(), dt_dev_get_global(), dt_dev_pixelpipe_change_zoom_main(), dt_masks_center_view_on_form(), dt_masks_change_form_gui(), dt_masks_create(), DT_MASKS_EDIT_FULL, dt_masks_form_unref(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_group_add_form_with_state(), dt_masks_group_ungroup(), dt_masks_reset_show_masks_icons(), DT_MASKS_STATE_USE, DT_SHAPE_LIST_MODULES, dt_masks_form_gui_t::edit_mode, dt_develop_t::form_gui, dt_masks_form_t::formid, dt_shape_manager_t::gui_reset, IS_NULL_PTR, items, model, dt_shape_manager_list_t::self, dt_shape_manager_list_t::treeview, dt_masks_form_t::type, and dt_shape_manager_list_t::which.
Referenced by _shape_manager_recreate_list(), and gui_init().
|
static |
Definition at line 919 of file libs/shape_manager.c.
References dt_lib_module_t::data, FALSE, IS_NULL_PTR, model, dt_shape_manager_list_t::name_col, dt_shape_manager_t::name_edit_cursor_at_end, dt_shape_manager_list_t::name_renderer, dt_shape_manager_list_t::self, TREE_EDITABLE, dt_shape_manager_list_t::treeview, and TRUE.
Referenced by _tree_edit_group_name_idle(), and _tree_row_activated().
|
static |
Definition at line 2515 of file libs/shape_manager.c.
References _group_is_module_mask(), _tree_store_append_group_row(), dt_develop_t::blend_params, dt_dev_get_global(), dt_iop_module_supports_drawn_mask(), dt_masks_get_from_id(), DT_MASKS_GROUP, DT_SHAPE_LIST_MODULES, DT_SHAPE_LIST_SHAPES, FALSE, groups(), dt_develop_t::iop, IS_NULL_PTR, TRUE, and dt_masks_form_t::type.
Referenced by _tree_store_build().
|
static |
Definition at line 2497 of file libs/shape_manager.c.
References _shape_manager_list_recurs(), dt_masks_form_get_info(), FALSE, _tree_row_t::form, dt_masks_form_info_t::formid, row, and TRUE.
Referenced by _tree_store_add_forms().
|
static |
Definition at line 2588 of file libs/shape_manager.c.
References _tree_store_add_forms(), _tree_store_new(), DT_SHAPE_LIST_MODULES, FALSE, TREE_EDITABLE, TREE_FORMID, TREE_GROUPID, TREE_IS_SEPARATOR, and TRUE.
Referenced by _shape_manager_recreate_list().
|
static |
Definition at line 2577 of file libs/shape_manager.c.
References TREE_COUNT.
Referenced by _shape_manager_recreate_list(), and _tree_store_build().
|
static |
Definition at line 2777 of file libs/shape_manager.c.
References _set_iter_name(), _shape_manager_get_values(), dt_dev_get_global(), dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_form_group_t::formid, IS_NULL_PTR, model, dt_masks_form_group_t::opacity, dt_masks_form_t::points, dt_masks_form_group_t::state, state, and dt_masks_form_t::type.
Referenced by _shape_manager_update_list().
| uint32_t container | ( | dt_lib_module_t *self | __attribute__(unused) | ) |
Definition at line 185 of file libs/shape_manager.c.
References DT_UI_CONTAINER_SIZE.
| void gui_cleanup | ( | dt_lib_module_t * | self | ) |
Definition at line 3668 of file libs/shape_manager.c.
References _shape_manager_handler_callback(), _shape_manager_modules_moved(), _shape_manager_popup_save_geometry(), _shape_manager_view_changed(), d, dt_lib_module_t::data, dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, and IS_NULL_PTR.
| void gui_init | ( | dt_lib_module_t * | self | ) |
Definition at line 3326 of file libs/shape_manager.c.
References _add_cell_data_func(), _shape_manager_add_popup_button_idle(), _shape_manager_handler_callback(), _shape_manager_is_window_visible(), _shape_manager_modules_moved(), _shape_manager_popup_button_toggled_cb(), _shape_manager_popup_delete_cb(), _shape_manager_recreate_list(), _shape_manager_remove_item(), _shape_manager_selection_change(), _shape_manager_shape_button_started(), _shape_manager_update_list(), _shape_manager_view_changed(), _tree_button_pressed(), _tree_cell_edited(), _tree_name_editing_started(), _tree_query_tooltip(), _tree_restrict_select(), _tree_row_activated(), _tree_row_is_separator(), _tree_selection_change(), dt_shape_manager_list_t::action_col, dt_shape_manager_list_t::add_col, dt_shape_manager_list_t::assign_col, d, dt_lib_module_t::data, dt_masks_shape_buttons_config_t::dev, dt_control_signal_get_global(), DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_dev_get_global(), dt_draw_get_pixbuf_from_cairo(), DT_GUI_BOX_SPACING, dt_gui_main_window(), dt_gui_symbolic_icon_pixbuf(), DT_MASKS_SHAPE_BUTTONS_ALL, dt_masks_shape_buttons_create(), DT_MASKS_SHAPE_BUTTONS_NONE, dt_osx_disallow_fullscreen(), DT_PIXEL_APPLY_DPI, DT_SHAPE_LIST_COUNT, DT_SHAPE_LIST_MODULES, DT_SHAPE_LIST_SHAPES, DT_SIGNAL_DEVELOP_MODULE_MOVED, DT_SIGNAL_MASK_CHANGED, DT_SIGNAL_VIEWMANAGER_VIEW_CHANGED, DT_UI_RESIZE_DYNAMIC, dt_ui_scroll_wrap(), dt_ui_scroll_wrap_get_scrolled_window(), dt_ui_scroll_wrap_reserve_trailing_row(), dt_ui_section_label_new(), dtgtk_cairo_paint_masks_difference(), dtgtk_cairo_paint_masks_drawn(), dtgtk_cairo_paint_masks_exclusion(), dtgtk_cairo_paint_masks_intersection(), dtgtk_cairo_paint_masks_inverse(), dtgtk_cairo_paint_masks_union(), dtgtk_togglebutton_new(), FALSE, dt_shape_manager_list_t::height_key, i, IS_NULL_PTR, dt_develop_t::is_visible, dt_develop_t::list_change, dt_develop_t::list_remove, dt_develop_t::list_update, dt_develop_t::masks, dt_shape_manager_list_t::name_col, dt_shape_manager_list_t::name_renderer, dt_develop_t::proxy, scrolled(), dt_develop_t::selection_change, dt_shape_manager_list_t::self, tooltip, TREE_IC_DELETE_VISIBLE, TREE_IC_INVERSE, TREE_IC_INVERSE_VISIBLE, TREE_IC_OP, TREE_IC_OP_VISIBLE, TREE_IC_UNLINK_VISIBLE, TREE_IC_USED_VISIBLE, TREE_NOTE, TREE_STRIKE, TREE_TEXT, dt_shape_manager_list_t::treeview, TRUE, and dt_shape_manager_list_t::which.
| const char * name | ( | struct dt_lib_module_t *self | __attribute__(unused) | ) |
Definition at line 171 of file libs/shape_manager.c.
| const char ** views | ( | dt_lib_module_t *self | __attribute__(unused) | ) |
Definition at line 179 of file libs/shape_manager.c.
References v.