![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "develop/blend.h"#include "bauhaus/bauhaus.h"#include "common/debug.h"#include "common/dtpthread.h"#include "common/math.h"#include "common/opencl.h"#include "common/iop_profile.h"#include "control/conf.h"#include "control/control.h"#include "develop/develop.h"#include "develop/imageop.h"#include "develop/imageop_gui.h"#include "develop/masks.h"#include "develop/tiling.h"#include "dtgtk/button.h"#include "dtgtk/gradientslider.h"#include "gui/actions/menu.h"#include "gui/gtk.h"#include "gui/presets.h"#include "libs/colorpicker.h"#include <assert.h>#include <gmodule.h>#include <stdlib.h>#include <string.h>#include <strings.h>
Include dependency graph for blend_gui.c:Go to the source code of this file.
Data Structures | |
| struct | raster_combo_entry_t |
Macros | |
| #define | NEUTRAL_GRAY 0.5 |
| #define | BLEND_MASKMODE_CONF_KEY "plugins/darkroom/blending/mask_mode_tab" |
| #define | COLORSTOPS(gradient) sizeof(gradient) / sizeof(dt_iop_gui_blendif_colorstop_t), gradient |
Typedefs | |
| typedef enum _blendop_masks_all_cols_t | _blendop_masks_all_cols_t |
| typedef enum _blendop_masks_group_cols_t | _blendop_masks_group_cols_t |
| typedef struct raster_combo_entry_t | raster_combo_entry_t |
Enumerations | |
| enum | _channel_indexes { CHANNEL_INDEX_L = 0 , CHANNEL_INDEX_a = 1 , CHANNEL_INDEX_b = 2 , CHANNEL_INDEX_C = 3 , CHANNEL_INDEX_h = 4 , CHANNEL_INDEX_g = 0 , CHANNEL_INDEX_R = 1 , CHANNEL_INDEX_G = 2 , CHANNEL_INDEX_B = 3 , CHANNEL_INDEX_H = 4 , CHANNEL_INDEX_S = 5 , CHANNEL_INDEX_l = 6 , CHANNEL_INDEX_Jz = 4 , CHANNEL_INDEX_Cz = 5 , CHANNEL_INDEX_hz = 6 } |
| enum | _blendop_masks_all_cols_t { BLENDOP_MASKS_ALL_COL_ACTIVE = 0 , BLENDOP_MASKS_ALL_COL_NAME , BLENDOP_MASKS_ALL_COL_FORMID , BLENDOP_MASKS_ALL_COL_SENSITIVE , BLENDOP_MASKS_ALL_COL_MARKUP , BLENDOP_MASKS_ALL_COL_STATUS_MARKUP , BLENDOP_MASKS_ALL_COL_COUNT } |
| enum | _blendop_masks_group_cols_t { BLENDOP_MASKS_GROUP_COL_OP_ICON = 0 , BLENDOP_MASKS_GROUP_COL_INV_ICON , BLENDOP_MASKS_GROUP_COL_NAME , BLENDOP_MASKS_GROUP_COL_FORMID , BLENDOP_MASKS_GROUP_COL_PARENTID , BLENDOP_MASKS_GROUP_COL_STATE , BLENDOP_MASKS_GROUP_COL_INDEX , BLENDOP_MASKS_GROUP_COL_COUNT } |
| #define BLEND_MASKMODE_CONF_KEY "plugins/darkroom/blending/mask_mode_tab" |
Definition at line 79 of file blend_gui.c.
| #define COLORSTOPS | ( | gradient | ) | sizeof(gradient) / sizeof(dt_iop_gui_blendif_colorstop_t), gradient |
Definition at line 3272 of file blend_gui.c.
| #define NEUTRAL_GRAY 0.5 |
Definition at line 78 of file blend_gui.c.
| typedef enum _blendop_masks_all_cols_t _blendop_masks_all_cols_t |
| typedef enum _blendop_masks_group_cols_t _blendop_masks_group_cols_t |
| typedef struct raster_combo_entry_t raster_combo_entry_t |
Definition at line 1379 of file blend_gui.c.
Definition at line 1390 of file blend_gui.c.
| enum _channel_indexes |
Definition at line 280 of file blend_gui.c.
|
static |
Definition at line 4054 of file blend_gui.c.
References dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_develop_blend_mode_names, FALSE, dt_iop_blend_name_value_t::name, and TRUE.
Referenced by dt_iop_gui_update_blending().
|
static |
Definition at line 480 of file blend_gui.c.
References dt_develop_blend_params_t::blendif, DEVELOP_BLEND_CS_LAB, DEVELOP_BLENDIF_Lab_MASK, DEVELOP_BLENDIF_OUTPUT_MASK, DEVELOP_BLENDIF_RGB_MASK, DEVELOP_COMBINE_INCL, and dt_develop_blend_params_t::mask_combine.
Referenced by dt_iop_gui_update_blending().
|
static |
Definition at line 324 of file blend_gui.c.
References DEVELOP_BLEND_ADD, DEVELOP_BLEND_CS_RGB_SCENE, DEVELOP_BLEND_DIVIDE, DEVELOP_BLEND_DIVIDE_INVERSE, DEVELOP_BLEND_MULTIPLY, DEVELOP_BLEND_REVERSE, DEVELOP_BLEND_RGB_B, DEVELOP_BLEND_RGB_G, DEVELOP_BLEND_RGB_R, DEVELOP_BLEND_SUBTRACT, DEVELOP_BLEND_SUBTRACT_INVERSE, FALSE, and TRUE.
Referenced by _blendop_blend_mode_callback(), and dt_iop_gui_update_blending().
|
static |
Definition at line 2829 of file blend_gui.c.
References _blendop_blendif_get_picker_colorspace(), dt_develop_blend_params_t::blend_cst, dt_develop_blend_params_t::blend_mode, dt_develop_blend_params_t::blend_parameter, dt_dev_history_item_t::blend_params, dt_iop_module_t::blend_params, dt_develop_blend_params_t::blendif, dt_develop_blend_params_t::blendif_boost_factors, dt_develop_blend_params_t::blendif_parameters, dt_iop_gui_blend_data_t::colorpicker, dt_iop_gui_blend_data_t::colorpicker_set_values, darktable, darktable_t::develop, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_RAW, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, dt_dev_add_history_item, dt_dev_pixelpipe_update_history_all, dt_develop_blend_default_module_blend_colorspace(), dt_develop_blend_init_blendif_parameters(), dt_iop_color_picker_set_cst(), dt_iop_gui_update(), FALSE, dt_develop_t::history, and TRUE.
Referenced by _blendif_select_colorspace().
|
static |
Definition at line 493 of file blend_gui.c.
References dt_iop_module_t::blend_data, dt_develop_blend_params_t::blendif, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, ch, dt_iop_gui_blend_data_t::csp, d, DEVELOP_BLEND_CS_LAB, DEVELOP_BLENDIF_Lab_MASK, DEVELOP_BLENDIF_OUTPUT_MASK, DEVELOP_BLENDIF_RGB_MASK, DEVELOP_BLENDIF_SIZE, DEVELOP_COMBINE_INCL, FALSE, IS_NULL_PTR, dt_iop_gui_blend_data_t::output_channels_shown, and TRUE.
Referenced by _blendif_hide_output_channels(), _blendop_masks_combine_callback(), and _blendop_masks_invert_toggled().
|
inlinestatic |
Definition at line 301 of file blend_gui.c.
References dt_iop_gui_blend_data_t::channel_tabs_csp, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_NONE, DEVELOP_BLEND_CS_RAW, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, dt_iop_color_picker_get_active_cst(), IOP_CS_LAB, IOP_CS_NONE, and IOP_CS_RGB.
Referenced by _update_gradient_slider_pickers().
|
static |
Definition at line 398 of file blend_gui.c.
References CHANNEL_INDEX_a, CHANNEL_INDEX_b, CHANNEL_INDEX_B, CHANNEL_INDEX_C, CHANNEL_INDEX_Cz, CHANNEL_INDEX_g, CHANNEL_INDEX_G, CHANNEL_INDEX_h, CHANNEL_INDEX_H, CHANNEL_INDEX_hz, CHANNEL_INDEX_Jz, CHANNEL_INDEX_L, CHANNEL_INDEX_l, CHANNEL_INDEX_R, CHANNEL_INDEX_S, IOP_CS_HSL, IOP_CS_JZCZHZ, IOP_CS_LAB, IOP_CS_LCH, IOP_CS_RGB, IOP_CS_RGB_DISPLAY, IS_NULL_PTR, dt_iop_order_iccprofile_info_t::lut_in, dt_iop_order_iccprofile_info_t::lutsize, dt_iop_order_iccprofile_info_t::matrix_in, dt_iop_order_iccprofile_info_t::nonlinearlut, and out.
Referenced by _update_gradient_slider_pickers().
|
static |
Definition at line 2902 of file blend_gui.c.
References _blendif_clean_output_channels(), dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, darktable, darktable_t::develop, dt_dev_add_history_item, dt_iop_gui_update(), FALSE, IS_NULL_PTR, dt_iop_gui_blend_data_t::output_channels_shown, and TRUE.
Referenced by _blendif_options_callback().
|
static |
Definition at line 2917 of file blend_gui.c.
References _blendif_hide_output_channels(), _blendif_select_colorspace(), _blendif_show_output_channels(), dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, darktable, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_NONE, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, dt_develop_blend_default_module_blend_colorspace(), dt_gui_add_class(), dt_gui_menu_popup(), DTGTK_BUTTON, dtgtk_button_set_active(), FALSE, darktable_t::gui, IS_NULL_PTR, dt_iop_gui_blend_data_t::output_channels_shown, dt_gui_gtk_t::presets_popup_menu, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
inlinestatic |
Definition at line 454 of file blend_gui.c.
References value.
Referenced by _blendif_scale_print_ab().
|
inlinestatic |
Definition at line 443 of file blend_gui.c.
References value.
Referenced by _blendif_scale_print_default().
|
inlinestatic |
Definition at line 833 of file blend_gui.c.
References value.
Referenced by _update_gradient_slider_pickers().
|
static |
Definition at line 352 of file blend_gui.c.
References _get_boost_factor(), CHANNEL_INDEX_a, CHANNEL_INDEX_b, CHANNEL_INDEX_B, CHANNEL_INDEX_C, CHANNEL_INDEX_Cz, CHANNEL_INDEX_g, CHANNEL_INDEX_G, CHANNEL_INDEX_h, CHANNEL_INDEX_H, CHANNEL_INDEX_hz, CHANNEL_INDEX_Jz, CHANNEL_INDEX_L, CHANNEL_INDEX_l, CHANNEL_INDEX_R, CHANNEL_INDEX_S, IOP_CS_HSL, IOP_CS_JZCZHZ, IOP_CS_LAB, IOP_CS_LCH, IOP_CS_RGB, IOP_CS_RGB_DISPLAY, IS_NULL_PTR, dt_iop_order_iccprofile_info_t::lut_in, dt_iop_order_iccprofile_info_t::lutsize, dt_iop_order_iccprofile_info_t::matrix_in, dt_iop_order_iccprofile_info_t::nonlinearlut, and out.
Referenced by _update_gradient_slider_pickers().
|
static |
Definition at line 463 of file blend_gui.c.
References _blendif_print_digits_ab(), n, and value.
|
static |
Definition at line 474 of file blend_gui.c.
References _blendif_print_digits_default(), n, and value.
|
static |
Definition at line 469 of file blend_gui.c.
|
static |
Definition at line 2882 of file blend_gui.c.
References _blendif_change_blend_colorspace(), and dt_iop_module_t::widget.
Referenced by _blendif_options_callback().
|
static |
Definition at line 2891 of file blend_gui.c.
References dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, dt_iop_gui_update(), IS_NULL_PTR, dt_iop_gui_blend_data_t::output_channels_shown, and TRUE.
Referenced by _blendif_options_callback().
|
static |
Definition at line 544 of file blend_gui.c.
References _blendif_blend_parameter_enabled(), dt_develop_blend_params_t::blend_mode, dt_iop_gui_blend_data_t::blend_mode_parameter_slider, dt_iop_gui_blend_data_t::blend_modes_csp, dt_develop_blend_params_t::blend_parameter, darktable, darktable_t::develop, DEVELOP_BLEND_MODE_MASK, DEVELOP_BLEND_REVERSE, dt_bauhaus_combobox_get_data(), dt_bauhaus_slider_set(), dt_dev_add_history_item, dt_iop_gui_update_header(), FALSE, darktable_t::gui, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 1069 of file blend_gui.c.
References _blendop_blendif_update_tab(), dt_develop_blend_params_t::blendif, dt_develop_blend_params_t::blendif_boost_factors, dt_iop_gui_blend_data_t::blendif_inited, dt_develop_blend_params_t::blendif_parameters, dt_iop_gui_blendif_channel_t::boost_factor_offset, ch, dt_iop_gui_blend_data_t::channel, clamp_range_f(), dt_iop_gui_blend_data_t::colorpicker_set_values, dt_iop_gui_blend_data_t::csp, darktable, darktable_t::develop, DEVELOP_BLEND_CS_LAB, DEVELOP_BLENDIF_A_in, DEVELOP_BLENDIF_A_out, DEVELOP_BLENDIF_B_in, DEVELOP_BLENDIF_B_out, dt_bauhaus_slider_get(), dt_dev_add_history_item, dt_iop_gui_update_header(), factor, darktable_t::gui, IS_NULL_PTR, dt_iop_gui_blendif_channel_t::param_channels, dt_iop_gui_blend_data_t::picker_set_values_manual_boost_lock, dt_gui_gtk_t::reset, dt_iop_gui_blend_data_t::tab, TRUE, and value.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 3001 of file blend_gui.c.
References dt_iop_gui_blend_data_t::channel, dt_iop_module_t::dev, dt_iop_gui_blendif_channel_t::display_channel, DT_DEV_PIXELPIPE_DISPLAY_CHANNEL, DT_DEV_PIXELPIPE_DISPLAY_NONE, DT_DEV_PIXELPIPE_DISPLAY_OUTPUT, dt_dev_pixelpipe_update_history_main, dt_iop_set_cache_bypass(), dt_iop_gui_blend_data_t::filter, dt_iop_module_t::request_mask_display, dt_iop_gui_blendif_filter_t::slider, and dt_iop_gui_blend_data_t::tab.
Referenced by _blendop_blendif_enter().
|
static |
Definition at line 3048 of file blend_gui.c.
References dt_iop_gui_blend_data_t::channel, dt_iop_module_t::dev, dt_iop_gui_blendif_channel_t::display_channel, DT_DEV_PIXELPIPE_DISPLAY_CHANNEL, DT_DEV_PIXELPIPE_DISPLAY_NONE, DT_DEV_PIXELPIPE_DISPLAY_OUTPUT, DT_DEV_PIXELPIPE_DISPLAY_STICKY, dt_dev_pixelpipe_update_history_main, dt_iop_set_cache_bypass(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_iop_gui_blend_data_t::filter, dt_iop_gui_blend_data_t::lock, dt_iop_module_t::request_mask_display, dt_iop_gui_blend_data_t::save_for_leave, dt_iop_gui_blendif_filter_t::slider, and dt_iop_gui_blend_data_t::tab.
Referenced by _blendop_blendif_key_press().
|
static |
Definition at line 1109 of file blend_gui.c.
References dt_iop_gui_blend_data_t::blendif_inited, darktable, dt_develop_blend_params_t::details, darktable_t::develop, dt_bauhaus_slider_get(), dt_dev_add_history_item, dt_dev_pixelpipe_update_history_all, dt_iop_gui_update_header(), darktable_t::gui, IS_NULL_PTR, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 793 of file blend_gui.c.
References _blendop_blendif_disp_alternative_worker(), and log10_scale_callback().
|
static |
Definition at line 788 of file blend_gui.c.
References _blendop_blendif_disp_alternative_worker(), and magnifier_scale_callback().
|
static |
Definition at line 798 of file blend_gui.c.
References _blendop_blendif_disp_alternative_worker(), and void().
Referenced by _blendop_blendif_update_tab().
|
static |
Definition at line 769 of file blend_gui.c.
References dt_free, dtgtk_gradient_slider_multivalue_set_scale_callback(), dt_iop_gui_blend_data_t::filter, dt_iop_gui_blendif_filter_t::head, and dt_iop_gui_blendif_filter_t::slider.
Referenced by _blendop_blendif_disp_alternative_log(), _blendop_blendif_disp_alternative_mag(), and _blendop_blendif_disp_alternative_reset().
|
static |
Definition at line 3111 of file blend_gui.c.
References _blendop_blendif_channel_mask_view(), darktable, DT_DEV_PIXELPIPE_DISPLAY_CHANNEL, DT_DEV_PIXELPIPE_DISPLAY_MASK, DT_DEV_PIXELPIPE_DISPLAY_STICKY, dt_modifier_is(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, darktable_t::gui, dt_iop_gui_blend_data_t::lock, dt_gui_gtk_t::reset, dt_iop_gui_blend_data_t::save_for_leave, and dt_iop_gui_blend_data_t::timeout_handle.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 804 of file blend_gui.c.
References dt_iop_gui_blend_data_t::channel_tabs_csp, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, IOP_CS_HSL, IOP_CS_JZCZHZ, IOP_CS_LAB, IOP_CS_LCH, IOP_CS_NONE, IOP_CS_RGB, and dt_iop_gui_blend_data_t::tab.
Referenced by _blendif_change_blend_colorspace(), _blendop_blendif_tab_switch(), and _update_gradient_slider_pickers().
|
static |
Definition at line 1257 of file blend_gui.c.
References dt_iop_gui_blend_data_t::channel_tabs_csp, darktable, darktable_t::develop, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_NONE, DEVELOP_BLEND_CS_RAW, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, DEVELOP_BLENDIF_Lab_MASK, DEVELOP_BLENDIF_RGB_MASK, dt_dev_add_history_item, dt_iop_gui_update_blending(), dt_iop_gui_update_header(), darktable_t::gui, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 3233 of file blend_gui.c.
References _blendop_blendif_channel_mask_view_toggle(), dt_iop_gui_blendif_channel_t::altdisplay, dt_iop_gui_blend_data_t::altmode, dt_iop_gui_blend_data_t::channel, darktable, DT_DEV_PIXELPIPE_DISPLAY_CHANNEL, DT_DEV_PIXELPIPE_DISPLAY_MASK, DT_DEV_PIXELPIPE_DISPLAY_STICKY, dt_iop_request_focus(), FALSE, dt_iop_gui_blend_data_t::filter, darktable_t::gui, dt_gui_gtk_t::reset, dt_iop_gui_blendif_filter_t::slider, dt_iop_gui_blend_data_t::tab, and TRUE.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 3216 of file blend_gui.c.
References _blendop_blendif_leave_delayed(), darktable, DT_DEV_PIXELPIPE_DISPLAY_STICKY, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, darktable_t::gui, dt_iop_gui_blend_data_t::lock, dt_iop_module_t::request_mask_display, dt_gui_gtk_t::reset, dt_iop_gui_blend_data_t::save_for_leave, and dt_iop_gui_blend_data_t::timeout_handle.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 3173 of file blend_gui.c.
References dt_iop_module_t::dev, DT_DEV_PIXELPIPE_DISPLAY_NONE, DT_DEV_PIXELPIPE_DISPLAY_STICKY, dt_dev_pixelpipe_update_history_main, dt_iop_set_cache_bypass(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, and dt_iop_module_t::request_mask_display.
Referenced by _blendop_blendif_leave().
|
static |
Definition at line 688 of file blend_gui.c.
References dt_develop_blend_params_t::blendif, ch, dt_iop_gui_blend_data_t::channel, darktable, darktable_t::develop, dt_control_queue_redraw_widget(), dt_dev_add_history_item, dt_iop_gui_update_header(), dtgtk_gradient_slider_multivalue_set_marker(), dt_iop_gui_blend_data_t::filter, GRADIENT_SLIDER_MARKER_LOWER_FILLED_BIG, GRADIENT_SLIDER_MARKER_LOWER_OPEN_BIG, GRADIENT_SLIDER_MARKER_UPPER_FILLED_BIG, GRADIENT_SLIDER_MARKER_UPPER_OPEN_BIG, darktable_t::gui, dt_iop_gui_blendif_channel_t::param_channels, dt_iop_gui_blendif_filter_t::polarity, dt_gui_gtk_t::reset, dt_iop_gui_blendif_filter_t::slider, dt_iop_gui_blend_data_t::tab, and TRUE.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 1242 of file blend_gui.c.
References dt_iop_module_t::blend_params, dt_develop_blend_params_t::blendif_parameters, darktable, dt_iop_module_t::default_blendop_params, darktable_t::develop, DEVELOP_BLENDIF_SIZE, dt_dev_add_history_item, dt_iop_color_picker_reset(), dt_iop_gui_update_blendif(), dt_iop_gui_update_header(), FALSE, and TRUE.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 1124 of file blend_gui.c.
References darktable, dt_iop_module_t::dev, DT_DEV_PIXELPIPE_DISPLAY_NONE, dt_dev_pixelpipe_update_zoom_main, dt_iop_request_focus(), dt_iop_set_cache_bypass(), dt_modifier_is(), darktable_t::gui, dt_iop_module_t::mask_indicator, dt_iop_module_t::off, dt_iop_module_t::request_mask_display, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
de-activate processing of this channel if maximum span is selected
Definition at line 623 of file blend_gui.c.
References _get_boost_factor(), dt_develop_blend_params_t::blendif, dt_develop_blend_params_t::blendif_parameters, ch, dt_iop_gui_blend_data_t::channel, dt_iop_gui_blend_data_t::colorpicker, dt_iop_gui_blend_data_t::colorpicker_set_values, darktable, darktable_t::develop, dt_dev_add_history_item, dt_iop_color_picker_reset(), dt_iop_gui_update_header(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dtgtk_gradient_slider_multivalue_get_value(), FALSE, dt_iop_gui_blend_data_t::filter, darktable_t::gui, k, dt_iop_gui_blendif_filter_t::label, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blendif_channel_t::param_channels, dt_gui_gtk_t::reset, dt_iop_gui_blendif_channel_t::scale_print, dt_iop_gui_blendif_filter_t::slider, dt_iop_gui_blend_data_t::tab, and TRUE.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 665 of file blend_gui.c.
References _blendop_blendif_update_tab(), dt_develop_blend_params_t::blendif, ch, dt_iop_gui_blend_data_t::channel, darktable, darktable_t::develop, DEVELOP_COMBINE_INCL, dt_dev_add_history_item, dt_iop_gui_update_header(), dt_iop_gui_blend_data_t::filter, darktable_t::gui, dt_develop_blend_params_t::mask_combine, dt_iop_gui_blendif_channel_t::param_channels, dt_gui_gtk_t::reset, dt_iop_gui_blendif_filter_t::slider, dt_iop_gui_blend_data_t::tab, and TRUE.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 1033 of file blend_gui.c.
References _blendop_blendif_get_picker_colorspace(), _blendop_blendif_update_tab(), dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::colorpicker, dt_iop_gui_blend_data_t::colorpicker_set_values, darktable, dt_dev_pixelpipe_update_history_all, dt_iop_color_picker_reset(), dt_iop_color_picker_set_cst(), FALSE, darktable_t::gui, IS_NULL_PTR, dt_gui_gtk_t::reset, and dt_iop_gui_blend_data_t::tab.
Referenced by dt_iop_gui_init_blendif().
|
static |
Definition at line 913 of file blend_gui.c.
References _blendop_blendif_disp_alternative_reset(), _get_boost_factor(), _update_gradient_slider_pickers(), dt_iop_gui_blendif_channel_t::altdisplay, dt_iop_gui_blend_data_t::altmode, dt_develop_blend_params_t::blendif, dt_develop_blend_params_t::blendif_boost_factors, dt_develop_blend_params_t::blendif_parameters, dt_iop_gui_blendif_channel_t::boost_factor_enabled, dt_iop_gui_blendif_channel_t::boost_factor_offset, ch, dt_iop_gui_blend_data_t::channel, dt_iop_gui_blend_data_t::channel_boost_factor_slider, dt_iop_gui_blend_data_t::channel_tabs, dt_iop_gui_blendif_colorstop_t::color, dt_iop_gui_blendif_channel_t::colorstops, darktable, dt_bauhaus_slider_set(), dt_free, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dtgtk_gradient_slider_multivalue_clear_stops(), dtgtk_gradient_slider_multivalue_set_increment(), dtgtk_gradient_slider_multivalue_set_marker(), dtgtk_gradient_slider_multivalue_set_resetvalue(), dtgtk_gradient_slider_multivalue_set_stop(), dtgtk_gradient_slider_multivalue_set_value(), FALSE, dt_iop_gui_blend_data_t::filter, GRADIENT_SLIDER_MARKER_LOWER_FILLED_BIG, GRADIENT_SLIDER_MARKER_LOWER_OPEN_BIG, GRADIENT_SLIDER_MARKER_UPPER_FILLED_BIG, GRADIENT_SLIDER_MARKER_UPPER_OPEN_BIG, darktable_t::gui, dt_iop_gui_blendif_channel_t::increment, IS_NULL_PTR, k, dt_iop_gui_blendif_channel_t::label, dt_iop_gui_blendif_filter_t::label, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blendif_channel_t::numberstops, dt_iop_gui_blendif_channel_t::param_channels, dt_iop_gui_blendif_filter_t::polarity, dt_gui_gtk_t::reset, dt_iop_gui_blendif_channel_t::scale_print, dt_iop_gui_blendif_filter_t::slider, dt_iop_gui_blendif_colorstop_t::stoppoint, and TRUE.
Referenced by _blendop_blendif_boost_factor_callback(), _blendop_blendif_sliders_reset_callback(), _blendop_blendif_tab_switch(), _blendop_masks_combine_callback(), and dt_iop_gui_update_blendif().
|
static |
Persist the active blending notebook tab in anselrc.
The blending UI is rebuilt per module instance, so we store only the last-used page index to restore a consistent view across sessions.
Definition at line 1059 of file blend_gui.c.
References BLEND_MASKMODE_CONF_KEY, dt_conf_set_int(), IS_NULL_PTR, and void().
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 568 of file blend_gui.c.
References dt_develop_blend_params_t::blend_mode, darktable, darktable_t::develop, DEVELOP_BLEND_REVERSE, dt_bauhaus_combobox_get_data(), dt_control_queue_redraw_widget(), dt_dev_add_history_item, dt_iop_gui_update_header(), darktable_t::gui, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 4095 of file blend_gui.c.
References _blendop_masks_mode_changed(), DEVELOP_MASK_PARAMETRIC, DEVELOP_MASK_RASTER, and DEVELOP_MASK_SHAPE.
Referenced by _blendop_create_toggle_page(), and dt_iop_gui_init_blending_body().
|
static |
Definition at line 4129 of file blend_gui.c.
References _notebook_append_full_width_page(), dt_gui_add_help_link(), and DT_GUI_BOX_SPACING.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 4140 of file blend_gui.c.
References _blendop_create_enable_toggle(), _notebook_append_full_width_page(), dt_gui_add_help_link(), DT_GUI_BOX_SPACING, FALSE, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 2044 of file blend_gui.c.
References _blendop_masks_all_delete_callback(), _blendop_masks_all_duplicate_callback(), _blendop_masks_all_handle_left_click(), _blendop_masks_all_rename_callback(), BLENDOP_MASKS_ALL_COL_FORMID, FALSE, IS_NULL_PTR, model, and TRUE.
Referenced by _blendop_masks_refresh_lists(), and dt_iop_gui_init_masks().
|
static |
Definition at line 1963 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_masks_change_form_gui(), DT_MASKS_EVENT_DELETE, dt_masks_form_delete(), dt_masks_get_from_id(), DT_SIGNAL_MASK_CHANGED, IS_NULL_PTR, and darktable_t::signals.
Referenced by _blendop_masks_all_button_pressed().
|
static |
Definition at line 1977 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_MASKS_EVENT_RESET, dt_masks_form_duplicate(), DT_SIGNAL_MASK_CHANGED, IS_NULL_PTR, and darktable_t::signals.
Referenced by _blendop_masks_all_button_pressed().
|
static |
Definition at line 2010 of file blend_gui.c.
References _blendop_masks_all_toggled(), dt_iop_gui_blend_data_t::all_shapes_col, dt_iop_module_t::blend_data, BLENDOP_MASKS_ALL_COL_FORMID, BLENDOP_MASKS_ALL_COL_SENSITIVE, dt_free, FALSE, IS_NULL_PTR, model, and TRUE.
Referenced by _blendop_masks_all_button_pressed().
|
static |
Definition at line 1826 of file blend_gui.c.
References _blendop_masks_refresh_lists(), dt_iop_module_t::blend_data, BLENDOP_MASKS_ALL_COL_FORMID, darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_add_history_item, DT_MASKS_EVENT_CHANGE, dt_masks_get_from_id(), DT_SIGNAL_MASK_CHANGED, FALSE, dt_masks_form_t::formid, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_treeview, model, dt_masks_form_t::name, darktable_t::signals, TRUE, and void().
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 1988 of file blend_gui.c.
References _blendop_masks_find_iter_by_formid(), dt_iop_module_t::blend_data, BLENDOP_MASKS_ALL_COL_FORMID, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_treeview, model, TRUE, and view().
Referenced by _blendop_masks_all_button_pressed().
|
static |
Definition at line 1854 of file blend_gui.c.
References BLENDOP_MASKS_ALL_COL_FORMID, darktable, dt_iop_module_t::dev, darktable_t::develop, dt_dev_masks_selection_change(), dt_masks_center_view_on_form(), dt_masks_change_form_gui(), dt_masks_get_from_id(), FALSE, dt_develop_t::form_gui, darktable_t::gui, IS_NULL_PTR, model, and dt_gui_gtk_t::reset.
Referenced by _blendop_masks_refresh_lists(), and dt_iop_gui_init_masks().
|
static |
Definition at line 1884 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), _blendop_masks_find_group_entry(), _blendop_masks_group_create(), _blendop_masks_group_from_module(), _blendop_masks_is_group_with_shapes(), dt_iop_module_t::blend_data, BLENDOP_MASKS_ALL_COL_ACTIVE, BLENDOP_MASKS_ALL_COL_FORMID, BLENDOP_MASKS_ALL_COL_SENSITIVE, darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_MASKS_EDIT_FULL, DT_MASKS_EVENT_ADD, DT_MASKS_EVENT_REMOVE, dt_masks_form_delete(), dt_masks_get_from_id(), dt_masks_group_add_form(), dt_masks_set_edit_mode(), DT_SIGNAL_MASK_CHANGED, FALSE, dt_masks_form_t::formid, darktable_t::gui, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_treeview, model, dt_gui_gtk_t::reset, darktable_t::signals, TRUE, and void().
Referenced by _blendop_masks_all_handle_left_click(), and dt_iop_gui_init_masks().
|
static |
Definition at line 1781 of file blend_gui.c.
References dt_iop_module_t::dev, dt_control_queue_redraw_center(), dt_dev_add_history_item, dt_iop_gui_update_header(), dt_masks_iop_update(), IS_NULL_PTR, and TRUE.
Referenced by _blendop_masks_all_delete_callback(), _blendop_masks_all_duplicate_callback(), _blendop_masks_all_toggled(), _blendop_masks_group_delete(), _blendop_masks_group_move_callback(), _blendop_masks_group_name_commit(), _blendop_masks_group_operation_callback(), and _blendop_masks_group_unlink().
|
static |
Definition at line 1409 of file blend_gui.c.
References darktable, darktable_t::develop, dt_masks_form_t::formid, dt_develop_t::forms, and IS_NULL_PTR.
Referenced by _blendop_masks_group_create().
|
static |
Definition at line 584 of file blend_gui.c.
References _blendif_clean_output_channels(), _blendop_blendif_update_tab(), dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, dt_iop_gui_blend_data_t::csp, d, darktable, darktable_t::develop, DEVELOP_BLEND_CS_LAB, DEVELOP_BLENDIF_Lab_MASK, DEVELOP_BLENDIF_RGB_MASK, DEVELOP_COMBINE_INCL, DEVELOP_COMBINE_INV, dt_bauhaus_combobox_get_data(), dt_dev_add_history_item, dt_iop_gui_update_header(), dt_iop_gui_blend_data_t::masks_combine_combo, dt_iop_gui_blend_data_t::tab, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 2369 of file blend_gui.c.
References darktable, dt_ui_main_window(), FALSE, darktable_t::gui, IS_NULL_PTR, and dt_gui_gtk_t::ui.
Referenced by _blendop_masks_group_delete().
|
static |
Definition at line 2244 of file blend_gui.c.
References _blendop_masks_shape_can_start(), DT_MASKS_SHAPE_BUTTONS_ALL, dt_masks_shape_buttons_create(), DT_MASKS_SHAPE_BUTTONS_POLYGON, FALSE, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_shapes, dt_iop_gui_blend_data_t::masks_type, and dt_masks_shape_buttons_config_t::owner_module.
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 2221 of file blend_gui.c.
References dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::group_shapes_label, and dt_iop_gui_blend_data_t::lists_stack.
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 1453 of file blend_gui.c.
References DT_MASKS_GROUP, dt_masks_form_group_t::formid, IS_NULL_PTR, dt_masks_form_t::points, and dt_masks_form_t::type.
Referenced by _blendop_masks_all_toggled(), _blendop_masks_group_update_row(), and _blendop_masks_refresh_lists().
|
static |
Definition at line 1636 of file blend_gui.c.
References FALSE, IS_NULL_PTR, model, and TRUE.
Referenced by _blendop_masks_all_rename_callback().
|
static |
Definition at line 1508 of file blend_gui.c.
References DT_MASKS_STATE_INVERSE, dt_iop_gui_blend_data_t::masks_ic_inverse, and state.
Referenced by _blendop_masks_group_tree_append_entry(), and _blendop_masks_group_update_row().
|
static |
Definition at line 1496 of file blend_gui.c.
References DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_UNION, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_ic_difference, dt_iop_gui_blend_data_t::masks_ic_exclusion, dt_iop_gui_blend_data_t::masks_ic_intersection, dt_iop_gui_blend_data_t::masks_ic_union, and state.
Referenced by _blendop_masks_group_tree_append_entry(), and _blendop_masks_group_update_row().
|
static |
Definition at line 2438 of file blend_gui.c.
References _blendop_masks_group_ctx_menu(), _blendop_masks_group_handle_action_click(), dt_iop_module_t::blend_data, BLENDOP_MASKS_GROUP_COL_FORMID, BLENDOP_MASKS_GROUP_COL_INDEX, BLENDOP_MASKS_GROUP_COL_PARENTID, BLENDOP_MASKS_GROUP_COL_STATE, darktable, darktable_t::develop, dt_masks_get_from_id(), DT_MASKS_GROUP, FALSE, IS_NULL_PTR, model, dt_masks_form_t::points, state, TRUE, and dt_masks_form_t::type.
Referenced by _blendop_masks_refresh_lists(), and dt_iop_gui_init_masks().
|
static |
Definition at line 1429 of file blend_gui.c.
References _blendop_masks_check_id(), darktable, darktable_t::develop, dt_free, dt_history_item_get_name(), dt_masks_append_form(), dt_masks_create(), DT_MASKS_GROUP, IS_NULL_PTR, dt_iop_module_t::multi_name, and dt_masks_form_t::name.
Referenced by _blendop_masks_all_toggled().
|
static |
Definition at line 2268 of file blend_gui.c.
References _blendop_masks_group_move_callback(), _blendop_masks_group_operation_callback(), _blendop_masks_init_icons(), ctx_gtk_check_menu_item_new_with_markup_and_pixbuf(), DT_MASKS_STATE_DIFFERENCE, DT_MASKS_STATE_EXCLUSION, DT_MASKS_STATE_INTERSECTION, DT_MASKS_STATE_INVERSE, DT_MASKS_STATE_UNION, FALSE, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_ic_difference, dt_iop_gui_blend_data_t::masks_ic_exclusion, dt_iop_gui_blend_data_t::masks_ic_intersection, dt_iop_gui_blend_data_t::masks_ic_inverse, dt_iop_gui_blend_data_t::masks_ic_union, state, and TRUE.
Referenced by _blendop_masks_group_button_pressed().
|
static |
Definition at line 2390 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), _blendop_masks_confirm_delete(), _blendop_masks_refresh_lists(), darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_masks_change_form_gui(), DT_MASKS_EVENT_REMOVE, dt_masks_form_delete(), dt_masks_get_from_id(), DT_SIGNAL_MASK_CHANGED, IS_NULL_PTR, dt_masks_form_t::name, and darktable_t::signals.
Referenced by _blendop_masks_group_handle_action_click().
|
static |
Definition at line 2525 of file blend_gui.c.
References _blendop_masks_group_find_row(), BLENDOP_MASKS_GROUP_COL_FORMID, BLENDOP_MASKS_GROUP_COL_PARENTID, FALSE, model, out, and TRUE.
Referenced by _blendop_masks_group_find_row(), and _blendop_masks_group_update_row().
|
static |
Definition at line 1402 of file blend_gui.c.
References dt_iop_module_t::blend_params, darktable, darktable_t::develop, dt_masks_get_from_id(), IS_NULL_PTR, and dt_develop_blend_params_t::mask_id.
Referenced by _blendop_masks_all_toggled(), _blendop_masks_group_name_commit(), and _blendop_masks_refresh_lists().
|
static |
Definition at line 2412 of file blend_gui.c.
References _blendop_masks_group_delete(), _blendop_masks_group_unlink(), dt_iop_module_t::blend_data, BLENDOP_MASKS_GROUP_COL_FORMID, BLENDOP_MASKS_GROUP_COL_PARENTID, FALSE, dt_iop_gui_blend_data_t::group_delete_col, dt_iop_gui_blend_data_t::group_unlink_col, IS_NULL_PTR, model, and TRUE.
Referenced by _blendop_masks_group_button_pressed().
|
static |
Definition at line 2185 of file blend_gui.c.
References DT_MASKS_GROUP, FALSE, IS_NULL_PTR, dt_masks_form_t::points, TRUE, and dt_masks_form_t::type.
Referenced by _blendop_masks_group_move_callback().
|
static |
Definition at line 2206 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), _blendop_masks_group_move_by_index(), darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_masks_change_form_gui(), DT_MASKS_EVENT_UPDATE, dt_masks_get_from_id(), DT_SIGNAL_MASK_CHANGED, IS_NULL_PTR, and darktable_t::signals.
Referenced by _blendop_masks_group_ctx_menu().
|
static |
Definition at line 1811 of file blend_gui.c.
References _blendop_masks_group_name_commit().
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 1792 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), _blendop_masks_group_from_module(), _blendop_masks_refresh_lists(), darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_get_masks_group_name(), DT_MASKS_EVENT_CHANGE, DT_SIGNAL_MASK_CHANGED, dt_masks_form_t::formid, IS_NULL_PTR, dt_masks_form_t::name, and darktable_t::signals.
Referenced by _blendop_masks_group_name_activate(), and _blendop_masks_group_name_focus_out().
|
static |
Definition at line 1817 of file blend_gui.c.
References _blendop_masks_group_name_commit(), FALSE, and void().
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 2102 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), apply_operation(), darktable, DT_DEBUG_CONTROL_SIGNAL_RAISE, DT_MASKS_EVENT_UPDATE, dt_masks_form_group_from_parentid(), DT_SIGNAL_MASK_CHANGED, IS_NULL_PTR, darktable_t::signals, dt_masks_form_group_t::state, and state.
Referenced by _blendop_masks_group_ctx_menu().
|
static |
Definition at line 2496 of file blend_gui.c.
References dt_iop_module_t::blend_data, FALSE, dt_iop_gui_blend_data_t::group_delete_col, dt_iop_gui_blend_data_t::group_unlink_col, IS_NULL_PTR, tooltip, TRUE, and x.
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 2123 of file blend_gui.c.
References BLENDOP_MASKS_GROUP_COL_FORMID, dt_masks_form_gui_t::border_selected, darktable, dt_iop_module_t::dev, darktable_t::develop, dt_dev_masks_selection_change(), dt_masks_center_view_on_form(), DT_MASKS_EDIT_FULL, dt_masks_get_from_id(), dt_masks_get_visible_form(), dt_masks_group_index_from_formid(), dt_masks_set_edit_mode(), dt_masks_form_gui_t::edit_mode, FALSE, dt_masks_form_gui_t::form_dragging, dt_develop_t::form_gui, dt_masks_form_gui_t::form_rotating, dt_masks_form_gui_t::form_selected, dt_masks_form_gui_t::group_selected, darktable_t::gui, dt_masks_form_gui_t::handle_border_selected, dt_masks_form_gui_t::handle_selected, IS_NULL_PTR, model, dt_masks_form_gui_t::node_selected, dt_masks_form_gui_t::node_selected_idx, dt_masks_form_gui_t::pivot_selected, dt_gui_gtk_t::reset, dt_masks_form_gui_t::seg_selected, dt_masks_form_gui_t::source_dragging, dt_masks_form_gui_t::source_selected, and TRUE.
Referenced by _blendop_masks_refresh_lists(), and dt_iop_gui_init_masks().
|
static |
Definition at line 1593 of file blend_gui.c.
References _blendop_masks_group_tree_append_entry(), _blendop_masks_is_group_with_shapes(), darktable, darktable_t::develop, dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_form_group_t::formid, IS_NULL_PTR, dt_masks_form_t::points, and dt_masks_form_t::type.
Referenced by _blendop_masks_group_tree_append_entry(), and _blendop_masks_refresh_lists().
|
static |
Definition at line 1558 of file blend_gui.c.
References _blendop_masks_get_inverse_icon(), _blendop_masks_get_op_icon(), _blendop_masks_group_tree_append(), BLENDOP_MASKS_GROUP_COL_FORMID, BLENDOP_MASKS_GROUP_COL_INDEX, BLENDOP_MASKS_GROUP_COL_INV_ICON, BLENDOP_MASKS_GROUP_COL_NAME, BLENDOP_MASKS_GROUP_COL_OP_ICON, BLENDOP_MASKS_GROUP_COL_PARENTID, BLENDOP_MASKS_GROUP_COL_STATE, DT_MASKS_GROUP, dt_masks_form_group_t::formid, IS_NULL_PTR, dt_masks_form_t::name, dt_masks_form_group_t::opacity, dt_masks_form_group_t::parentid, dt_masks_form_group_t::state, and dt_masks_form_t::type.
Referenced by _blendop_masks_group_tree_append().
|
static |
Definition at line 2350 of file blend_gui.c.
References _blendop_masks_apply_and_commit(), _blendop_masks_refresh_lists(), darktable, darktable_t::develop, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_masks_change_form_gui(), DT_MASKS_EVENT_REMOVE, dt_masks_form_delete(), dt_masks_get_from_id(), DT_MASKS_GROUP, DT_SIGNAL_MASK_CHANGED, IS_NULL_PTR, darktable_t::signals, and dt_masks_form_t::type.
Referenced by _blendop_masks_group_handle_action_click().
|
static |
Definition at line 2551 of file blend_gui.c.
References _blendop_masks_find_group_entry(), _blendop_masks_get_inverse_icon(), _blendop_masks_get_op_icon(), _blendop_masks_group_find_row(), dt_iop_module_t::blend_data, BLENDOP_MASKS_GROUP_COL_INV_ICON, BLENDOP_MASKS_GROUP_COL_NAME, BLENDOP_MASKS_GROUP_COL_OP_ICON, BLENDOP_MASKS_GROUP_COL_STATE, darktable, darktable_t::develop, dt_masks_get_from_id(), IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_group_treeview, model, dt_masks_form_t::name, dt_masks_form_group_t::opacity, and dt_masks_form_group_t::state.
Referenced by _blendop_masks_handler_callback().
|
static |
Definition at line 2580 of file blend_gui.c.
References _blendop_masks_group_update_row(), _blendop_masks_refresh_lists(), DT_MASKS_EVENT_UPDATE, and void().
Referenced by dt_iop_gui_cleanup_blending(), and dt_iop_gui_init_blending().
|
static |
Definition at line 1474 of file blend_gui.c.
References dt_draw_get_pixbuf_from_cairo(), DT_PIXEL_APPLY_DPI, dtgtk_cairo_paint_masks_difference(), dtgtk_cairo_paint_masks_exclusion(), dtgtk_cairo_paint_masks_intersection(), dtgtk_cairo_paint_masks_inverse(), dtgtk_cairo_paint_masks_union(), IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_ic_difference, dt_iop_gui_blend_data_t::masks_ic_exclusion, dt_iop_gui_blend_data_t::masks_ic_intersection, dt_iop_gui_blend_data_t::masks_ic_inverse, and dt_iop_gui_blend_data_t::masks_ic_union.
Referenced by _blendop_masks_group_ctx_menu(), and dt_iop_gui_init_masks().
|
static |
Definition at line 610 of file blend_gui.c.
References _blendif_clean_output_channels(), darktable, darktable_t::develop, DEVELOP_COMBINE_INV, dt_dev_add_history_item, dt_iop_gui_update_header(), darktable_t::gui, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
|
static |
Definition at line 1538 of file blend_gui.c.
References _blendop_masks_is_group_with_shapes(), darktable, darktable_t::develop, dt_masks_get_from_id(), DT_MASKS_GROUP, FALSE, dt_masks_form_group_t::formid, IS_NULL_PTR, dt_masks_form_t::points, TRUE, and dt_masks_form_t::type.
Referenced by _blendop_masks_all_toggled(), _blendop_masks_group_tree_append(), _blendop_masks_is_group_with_shapes(), and _blendop_masks_refresh_lists().
|
static |
Definition at line 1518 of file blend_gui.c.
References darktable, darktable_t::develop, dt_masks_get_from_id(), DT_MASKS_GROUP, FALSE, dt_masks_form_group_t::formid, IS_NULL_PTR, dt_masks_form_t::points, TRUE, and dt_masks_form_t::type.
Referenced by _blendop_masks_refresh_lists().
|
static |
Definition at line 534 of file blend_gui.c.
References dt_iop_gui_blend_data_t::blending_box, dt_iop_gui_update_blending(), and dt_iop_set_mask_mode().
Referenced by _blendop_masks_mode_changed().
|
static |
Definition at line 1184 of file blend_gui.c.
References _blendop_masks_mode_callback(), dt_iop_module_t::blend_data, darktable, darktable_t::develop, DEVELOP_MASK_ENABLED, DEVELOP_MASK_PARAMETRIC, DEVELOP_MASK_RASTER, DEVELOP_MASK_SHAPE, DT_DEBUG_CONTROL_SIGNAL_RAISE, dt_dev_add_history_item, dt_iop_add_remove_mask_indicator(), dt_iop_gui_update_header(), DT_SIGNAL_DEVELOP_MASKS_GUI_CHANGED, darktable_t::gui, IS_NULL_PTR, dt_gui_gtk_t::reset, darktable_t::signals, and TRUE.
Referenced by _blendop_create_enable_toggle().
|
static |
Definition at line 1358 of file blend_gui.c.
References dt_iop_module_t::blend_params, darktable, darktable_t::develop, DEVELOP_COMBINE_MASKS_POS, dt_control_queue_redraw_widget(), dt_dev_add_history_item, dt_iop_gui_update_header(), darktable_t::gui, dt_develop_blend_params_t::mask_combine, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 1663 of file blend_gui.c.
References _blendop_masks_all_button_pressed(), _blendop_masks_all_selection_changed(), _blendop_masks_find_group_entry(), _blendop_masks_group_button_pressed(), _blendop_masks_group_from_module(), _blendop_masks_group_selection_changed(), _blendop_masks_group_tree_append(), _blendop_masks_is_group_with_shapes(), _blendop_masks_is_single_group_wrapper(), dt_iop_module_t::blend_data, BLENDOP_MASKS_ALL_COL_ACTIVE, BLENDOP_MASKS_ALL_COL_FORMID, BLENDOP_MASKS_ALL_COL_MARKUP, BLENDOP_MASKS_ALL_COL_NAME, BLENDOP_MASKS_ALL_COL_SENSITIVE, BLENDOP_MASKS_ALL_COL_STATUS_MARKUP, darktable, darktable_t::develop, DT_MASKS_CLONE, DT_MASKS_GROUP, DT_MASKS_NON_CLONE, FALSE, dt_masks_form_t::formid, dt_develop_t::forms, dt_iop_gui_blend_data_t::group_shapes_label, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_group_treeview, dt_iop_gui_blend_data_t::masks_treeview, dt_masks_form_t::name, TRUE, and dt_masks_form_t::type.
Referenced by _blendop_masks_all_name_edited(), _blendop_masks_group_delete(), _blendop_masks_group_name_commit(), _blendop_masks_group_unlink(), _blendop_masks_handler_callback(), dt_iop_gui_init_masks(), and dt_masks_iop_update().
|
static |
Definition at line 1290 of file blend_gui.c.
References dt_iop_color_picker_reset(), dt_iop_request_focus(), DT_MASKS_EDIT_FULL, FALSE, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_shown, and TRUE.
Referenced by _blendop_masks_create_shape_buttons().
|
static |
Definition at line 1305 of file blend_gui.c.
References dt_iop_module_t::blend_data, dt_iop_module_t::blend_params, darktable_t::control, darktable, darktable_t::develop, dt_control_hinter_message(), dt_iop_color_picker_reset(), dt_iop_request_focus(), DT_MASKS_EDIT_FULL, DT_MASKS_EDIT_OFF, DT_MASKS_EDIT_RESTRICTED, dt_masks_get_from_id(), DT_MASKS_GROUP, dt_masks_set_edit_mode(), dt_masks_shape_buttons_deactivate_all(), dt_modifier_is(), FALSE, darktable_t::gui, dt_develop_blend_params_t::mask_id, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_shown, dt_masks_form_t::points, dt_gui_gtk_t::reset, TRUE, and dt_masks_form_t::type.
Referenced by dt_iop_gui_init_masks().
|
static |
Definition at line 4174 of file blend_gui.c.
References _blendop_toggle_button_set_active().
Referenced by dt_iop_gui_update_blending().
Definition at line 4162 of file blend_gui.c.
References DEVELOP_MASK_PARAMETRIC, DEVELOP_MASK_RASTER, and DEVELOP_MASK_SHAPE.
Referenced by _blendop_sync_toggle_state(), dt_iop_gui_blending_lose_focus(), dt_iop_gui_init_blending_body(), and dt_iop_gui_update_blending().
|
static |
Definition at line 4106 of file blend_gui.c.
References dt_iop_module_t::blend_data, delete_underscore(), dt_free, IS_NULL_PTR, dt_iop_gui_blend_data_t::top_enable, and TRUE.
Referenced by dt_iop_gui_init_blending_body(), and dt_iop_gui_update_blending().
|
static |
Definition at line 4069 of file blend_gui.c.
References darktable_t::bauhaus, darktable, dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_new(), dt_bauhaus_disable_accels(), dt_bauhaus_disable_module_list(), dt_bauhaus_set_use_default_callback(), dt_bauhaus_widget_set_field(), dt_bauhaus_widget_set_label(), DT_GUI_MODULE, DT_INTROSPECTION_TYPE_ENUM, dt_iop_blend_name_value_t::name, tooltip, TRUE, and dt_iop_blend_name_value_t::value.
Referenced by dt_iop_gui_init_blending_body().
|
inlinestatic |
Definition at line 347 of file blend_gui.c.
References dt_iop_gui_blend_data_t::channel, and dt_iop_gui_blendif_channel_t::param_channels.
Referenced by _blendif_scale(), _blendop_blendif_sliders_callback(), and _blendop_blendif_update_tab().
|
static |
Definition at line 4088 of file blend_gui.c.
References TRUE.
Referenced by _blendop_create_notebook_page(), and _blendop_create_toggle_page().
Definition at line 3893 of file blend_gui.c.
References darktable, darktable_t::develop, dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_set(), dt_iop_request_focus(), i, raster_combo_entry_t::id, dt_iop_module_t::id, dt_develop_t::iop, IS_NULL_PTR, key, dt_iop_module_t::masks, dt_iop_module_t::raster_mask, dt_iop_module_t::sink, dt_iop_module_t::source, TRUE, and value.
Referenced by dt_iop_gui_init_raster(), and dt_iop_gui_update_raster().
|
static |
Definition at line 3986 of file blend_gui.c.
References dt_iop_module_t::blend_params, darktable, darktable_t::develop, dt_control_queue_redraw_widget(), dt_dev_add_history_item, dt_iop_gui_update_header(), darktable_t::gui, dt_develop_blend_params_t::raster_mask_invert, dt_gui_gtk_t::reset, and TRUE.
Referenced by dt_iop_gui_init_raster().
|
static |
Definition at line 3931 of file blend_gui.c.
References dt_iop_module_t::blend_params, dt_iop_module_t::dev, dt_bauhaus_combobox_get_data(), dt_dev_add_history_item, dt_iop_gui_update_header(), raster_combo_entry_t::id, dt_iop_module_t::id, dt_iop_module_t::raster_mask, dt_develop_blend_params_t::raster_mask_source, dt_iop_module_t::sink, dt_iop_module_t::source, TRUE, and dt_iop_module_t::users.
Referenced by dt_iop_gui_init_raster().
|
static |
Definition at line 842 of file blend_gui.c.
References _blendif_colorpicker_cst(), _blendif_cook(), _blendif_print_digits_picker(), _blendif_scale(), _blendop_blendif_get_picker_colorspace(), dt_iop_gui_blend_data_t::channel_tabs_csp, dt_iop_gui_blend_data_t::colorpicker, dt_iop_gui_blend_data_t::colorpicker_set_values, darktable, dt_iop_module_t::dev, DEVELOP_BLEND_CS_RGB_SCENE, dt_free, dt_iop_color_picker_set_cst(), dt_ioppr_get_iop_work_profile_info(), dt_ioppr_get_pipe_current_profile_info(), dtgtk_gradient_slider_multivalue_set_picker(), dtgtk_gradient_slider_multivalue_set_picker_meanminmax(), FALSE, dt_iop_gui_blend_data_t::filter, darktable_t::gui, dt_develop_t::iop, dt_iop_gui_blendif_filter_t::picker_label, dt_iop_gui_blend_data_t::picker_set_values_box_valid, dt_iop_gui_blend_data_t::picker_set_values_manual_boost_lock, dt_develop_t::pipe, dt_gui_gtk_t::reset, dt_iop_gui_blendif_filter_t::slider, and dt_iop_gui_blend_data_t::tab.
Referenced by _blendop_blendif_update_tab(), and dt_iop_gui_init_blendif().
| void dt_iop_gui_blending_lose_focus | ( | dt_iop_module_t * | module | ) |
Definition at line 4458 of file blend_gui.c.
References _blendop_toggle_button_set_active(), dt_iop_module_t::blend_data, darktable, dt_iop_module_t::dev, DT_DEV_PIXELPIPE_DISPLAY_NONE, dt_dev_pixelpipe_update_history_main, dt_iop_set_cache_bypass(), DT_MASKS_EDIT_OFF, dt_masks_set_edit_mode(), dt_masks_shape_buttons_deactivate_all(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, darktable_t::gui, IOP_FLAGS_SUPPORTS_BLENDING, IS_NULL_PTR, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_support, dt_gui_gtk_t::reset, dt_iop_gui_blend_data_t::save_for_leave, dt_iop_gui_blend_data_t::showmask, and dt_iop_gui_blend_data_t::timeout_handle.
Referenced by dt_iop_request_focus().
| void dt_iop_gui_blending_reload_defaults | ( | dt_iop_module_t * | module | ) |
Definition at line 4518 of file blend_gui.c.
References dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, FALSE, IS_NULL_PTR, and dt_iop_gui_blend_data_t::output_channels_shown.
Referenced by dt_iop_load_default_params().
| void dt_iop_gui_cleanup_blending | ( | dt_iop_module_t * | module | ) |
Definition at line 4033 of file blend_gui.c.
References _blendop_masks_handler_callback(), dt_iop_module_t::blend_data, darktable, DT_DEBUG_CONTROL_SIGNAL_DISCONNECT, dt_free, dt_iop_gui_cleanup_blending_body(), dt_pthread_mutex_destroy(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), IS_NULL_PTR, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blend_data_t::masks_combo_ids, darktable_t::signals, and dt_iop_gui_blend_data_t::timeout_handle.
Referenced by _init_module_so(), and dt_iop_gui_cleanup_module().
| void dt_iop_gui_cleanup_blending_body | ( | dt_iop_module_t * | module | ) |
Definition at line 4526 of file blend_gui.c.
References dt_iop_gui_blend_data_t::all_shapes_buttons, dt_iop_gui_blend_data_t::all_shapes_col, dt_iop_gui_blend_data_t::all_shapes_store, dt_iop_gui_blend_data_t::all_shapes_sw, dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blend_mode_parameter_slider, dt_iop_gui_blend_data_t::blend_modes_blend_order, dt_iop_gui_blend_data_t::blend_modes_combo, dt_iop_gui_blend_data_t::blend_modes_csp, dt_iop_gui_blend_data_t::blendif_box, dt_iop_gui_blend_data_t::blendif_content, dt_iop_gui_blend_data_t::blendif_enable, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blending_box, dt_iop_gui_blend_data_t::blending_notebook, dt_iop_gui_blend_data_t::blur_radius_slider, dt_iop_gui_blend_data_t::brightness_slider, dt_iop_gui_blend_data_t::channel_boost_factor_slider, dt_iop_gui_blend_data_t::channel_tabs, dt_iop_gui_blend_data_t::channel_tabs_csp, dt_iop_gui_blend_data_t::colorpicker, dt_iop_gui_blend_data_t::colorpicker_set_values, dt_iop_gui_blend_data_t::contours_content, dt_iop_gui_blend_data_t::contrast_slider, dt_iop_gui_blend_data_t::details_slider, DEVELOP_BLEND_CS_NONE, dt_free, dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), FALSE, dt_iop_gui_blend_data_t::feathering_radius_slider, dt_iop_gui_blend_data_t::filter, dt_iop_gui_blend_data_t::group_delete_col, dt_iop_gui_blend_data_t::group_shapes_col, dt_iop_gui_blend_data_t::group_shapes_label, dt_iop_gui_blend_data_t::group_shapes_store, dt_iop_gui_blend_data_t::group_shapes_sw, dt_iop_gui_blend_data_t::group_unlink_col, IS_NULL_PTR, dt_iop_gui_blend_data_t::lists_box, dt_iop_gui_blend_data_t::lists_stack, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blend_data_t::masks_box, dt_iop_gui_blend_data_t::masks_combine_combo, dt_iop_gui_blend_data_t::masks_combo, dt_iop_gui_blend_data_t::masks_combo_ids, dt_iop_gui_blend_data_t::masks_content, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_enable, dt_iop_gui_blend_data_t::masks_feathering_guide_combo, dt_iop_gui_blend_data_t::masks_group_treeview, dt_iop_gui_blend_data_t::masks_ic_difference, dt_iop_gui_blend_data_t::masks_ic_exclusion, dt_iop_gui_blend_data_t::masks_ic_intersection, dt_iop_gui_blend_data_t::masks_ic_inverse, dt_iop_gui_blend_data_t::masks_ic_union, dt_iop_gui_blend_data_t::masks_inited, dt_iop_gui_blend_data_t::masks_invert_combo, dt_iop_gui_blend_data_t::masks_polarity, dt_iop_gui_blend_data_t::masks_shapes, dt_iop_gui_blend_data_t::masks_treeview, dt_iop_gui_blend_data_t::opacity_slider, dt_iop_gui_blend_data_t::picker_set_values_box, dt_iop_gui_blend_data_t::picker_set_values_box_valid, dt_iop_gui_blend_data_t::picker_set_values_manual_boost_lock, dt_iop_gui_blend_data_t::raster_box, dt_iop_gui_blend_data_t::raster_combo, dt_iop_gui_blend_data_t::raster_content, dt_iop_gui_blend_data_t::raster_enable, dt_iop_gui_blend_data_t::raster_inited, dt_iop_gui_blend_data_t::raster_polarity, dt_iop_gui_blend_data_t::showmask, dt_iop_gui_blend_data_t::timeout_handle, dt_iop_gui_blend_data_t::top_enable, and dt_iop_gui_blend_data_t::wire_shape_toggle.
Referenced by _lib_masks_release_blending(), and dt_iop_gui_cleanup_blending().
| void dt_iop_gui_init_blendif | ( | GtkBox * | blendw, |
| dt_iop_module_t * | module, | ||
| GtkWidget * | header | ||
| ) |
gui related stuff
Definition at line 3444 of file blend_gui.c.
References _blendop_blendif_boost_factor_callback(), _blendop_blendif_enter(), _blendop_blendif_invert(), _blendop_blendif_key_press(), _blendop_blendif_leave(), _blendop_blendif_polarity_callback(), _blendop_blendif_reset(), _blendop_blendif_sliders_callback(), _blendop_blendif_sliders_reset_callback(), _blendop_blendif_tab_switch(), _update_gradient_slider_pickers(), darktable_t::bauhaus, dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blendif_box, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, dt_iop_gui_blendif_filter_t::box, dt_iop_gui_blend_data_t::channel_boost_factor_slider, dt_iop_gui_blend_data_t::channel_tabs, dt_iop_gui_blend_data_t::channel_tabs_csp, dt_iop_gui_blend_data_t::colorpicker, dt_iop_gui_blend_data_t::colorpicker_set_values, CPF_ALTER, darktable, DEVELOP_BLEND_CS_NONE, dt_bauhaus_disable_module_list(), dt_bauhaus_set_use_default_callback(), dt_bauhaus_slider_new_with_range(), dt_bauhaus_slider_set_format(), dt_bauhaus_slider_set_soft_range(), dt_bauhaus_widget_set_label(), DT_COLOR_PICKER_AREA, dt_color_picker_new(), DT_COLOR_PICKER_POINT_AREA, dt_free, dt_gui_add_class(), DT_GUI_BOX_SPACING, DT_GUI_MODULE, dt_history_item_get_name(), dt_iop_togglebutton_new_no_register(), dt_ui_label_new(), dtgtk_cairo_paint_colorpicker(), dtgtk_cairo_paint_invert(), dtgtk_cairo_paint_reset(), DTGTK_GRADIENT_SLIDER_MULTIVALUE, dtgtk_gradient_slider_multivalue_new_with_name(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_new(), dtgtk_togglebutton_set_paint(), FALSE, dt_iop_gui_blend_data_t::filter, dt_iop_gui_blendif_filter_t::head, k, dt_iop_gui_blendif_filter_t::label, dt_iop_gui_blendif_filter_t::picker_label, dt_iop_gui_blendif_filter_t::polarity, dt_iop_gui_blendif_filter_t::slider, slider_tooltip, dt_iop_gui_blend_data_t::tab, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
| void dt_iop_gui_init_blending | ( | dt_iop_module_t * | module | ) |
Definition at line 4856 of file blend_gui.c.
References _blendop_masks_handler_callback(), dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blend_modes_csp, dt_iop_gui_blend_data_t::blendif_support, dt_iop_gui_blend_data_t::channel_tabs_csp, dt_iop_gui_blend_data_t::csp, darktable, DEVELOP_BLEND_CS_NONE, DT_DEBUG_CONTROL_SIGNAL_CONNECT, dt_iop_colorspace_is_rgb(), dt_pthread_mutex_init(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), DT_SIGNAL_MASK_CHANGED, IOP_CS_LAB, IOP_FLAGS_SUPPORTS_BLENDING, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blend_data_t::masks_support, and darktable_t::signals.
Referenced by _init_module_so(), and dt_iop_gui_set_expander().
| void dt_iop_gui_init_blending_body | ( | GtkWidget * | container, |
| dt_iop_module_t * | module | ||
| ) |
Definition at line 4620 of file blend_gui.c.
References _blendif_options_callback(), _blendop_blend_mode_callback(), _blendop_blendif_details_callback(), _blendop_blendif_showmask_clicked(), _blendop_blending_notebook_switch(), _blendop_compositing_changed(), _blendop_create_enable_toggle(), _blendop_create_notebook_page(), _blendop_create_toggle_page(), _blendop_masks_combine_callback(), _blendop_masks_invert_toggled(), _blendop_toggle_button_set_active(), _blendop_update_top_enable_label(), _combobox_new_from_list(), darktable_t::bauhaus, dt_iop_module_t::blend_data, BLEND_MASKMODE_CONF_KEY, dt_iop_gui_blend_data_t::blend_mode_parameter_slider, dt_iop_gui_blend_data_t::blend_modes_blend_order, dt_iop_gui_blend_data_t::blend_modes_combo, dt_develop_blend_params_t::blend_parameter, dt_iop_module_t::blend_params, dt_iop_gui_blend_data_t::blendif_content, dt_iop_gui_blend_data_t::blendif_enable, dt_iop_gui_blend_data_t::blendif_support, dt_iop_gui_blend_data_t::blending_box, dt_iop_gui_blend_data_t::blending_notebook, dt_develop_blend_params_t::blur_radius, dt_iop_gui_blend_data_t::blur_radius_slider, dt_develop_blend_params_t::brightness, dt_iop_gui_blend_data_t::brightness_slider, container(), dt_iop_gui_blend_data_t::contours_content, dt_develop_blend_params_t::contrast, dt_iop_gui_blend_data_t::contrast_slider, darktable, dt_iop_gui_blend_data_t::details_slider, DEVELOP_MASK_ENABLED, DEVELOP_MASK_PARAMETRIC, DEVELOP_MASK_RASTER, DEVELOP_MASK_SHAPE, dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_new(), dt_bauhaus_disable_accels(), dt_bauhaus_disable_module_list(), dt_bauhaus_set_use_default_callback(), dt_bauhaus_slider_new_with_range(), dt_bauhaus_slider_set_format(), dt_bauhaus_slider_set_soft_range(), dt_bauhaus_widget_set_field(), dt_bauhaus_widget_set_label(), dt_conf_get_int(), dt_develop_combine_masks_names, dt_develop_feathering_guide_names, dt_get_help_url(), dt_gui_add_help_link(), DT_GUI_BOX_SPACING, DT_GUI_MODULE, dt_gui_update_collapsible_section(), DT_INTROSPECTION_TYPE_FLOAT, dt_iop_gui_init_blendif(), dt_iop_gui_init_contours(), dt_iop_gui_init_masks(), dt_iop_gui_init_raster(), dt_iop_togglebutton_new_no_register(), dtgtk_button_new(), dtgtk_cairo_paint_presets(), dtgtk_cairo_paint_showmask(), FALSE, dt_develop_blend_params_t::feathering_guide, dt_develop_blend_params_t::feathering_radius, dt_iop_gui_blend_data_t::feathering_radius_slider, darktable_t::gui, IOP_FLAGS_SUPPORTS_BLENDING, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_combine_combo, dt_iop_gui_blend_data_t::masks_content, dt_iop_gui_blend_data_t::masks_cs, dt_iop_gui_blend_data_t::masks_enable, dt_iop_gui_blend_data_t::masks_feathering_guide_combo, dt_iop_gui_blend_data_t::masks_inited, dt_iop_gui_blend_data_t::masks_invert_combo, dt_develop_blend_params_t::opacity, dt_iop_gui_blend_data_t::opacity_slider, dt_iop_gui_blend_data_t::raster_content, dt_iop_gui_blend_data_t::raster_enable, dt_gui_gtk_t::reset, dt_iop_gui_blend_data_t::showmask, dt_iop_gui_blend_data_t::top_enable, and TRUE.
Referenced by _lib_masks_blending_gui_changed_callback().
| void dt_iop_gui_init_contours | ( | GtkBox * | blendw, |
| dt_iop_module_t * | module | ||
| ) |
Definition at line 3579 of file blend_gui.c.
References dt_iop_module_t::blend_data, dt_iop_gui_blend_data_t::blur_radius_slider, dt_iop_gui_blend_data_t::brightness_slider, dt_iop_gui_blend_data_t::contrast_slider, dt_iop_gui_blend_data_t::details_slider, FALSE, dt_iop_gui_blend_data_t::feathering_radius_slider, and dt_iop_gui_blend_data_t::masks_feathering_guide_combo.
Referenced by dt_iop_gui_init_blending_body().
| void dt_iop_gui_init_masks | ( | GtkBox * | blendw, |
| dt_iop_module_t * | module | ||
| ) |
Definition at line 3667 of file blend_gui.c.
References _blendop_masks_all_button_pressed(), _blendop_masks_all_name_edited(), _blendop_masks_all_selection_changed(), _blendop_masks_all_toggled(), _blendop_masks_create_shape_buttons(), _blendop_masks_edit_list_toggle(), _blendop_masks_group_button_pressed(), _blendop_masks_group_name_activate(), _blendop_masks_group_name_focus_out(), _blendop_masks_group_query_tooltip(), _blendop_masks_group_selection_changed(), _blendop_masks_init_icons(), _blendop_masks_polarity_callback(), _blendop_masks_refresh_lists(), _blendop_masks_show_and_edit(), dt_iop_gui_blend_data_t::all_shapes_buttons, dt_iop_gui_blend_data_t::all_shapes_col, dt_iop_gui_blend_data_t::all_shapes_store, dt_iop_gui_blend_data_t::all_shapes_sw, darktable_t::bauhaus, dt_iop_module_t::blend_data, BLENDOP_MASKS_ALL_COL_ACTIVE, BLENDOP_MASKS_ALL_COL_COUNT, BLENDOP_MASKS_ALL_COL_MARKUP, BLENDOP_MASKS_ALL_COL_SENSITIVE, BLENDOP_MASKS_ALL_COL_STATUS_MARKUP, BLENDOP_MASKS_GROUP_COL_COUNT, BLENDOP_MASKS_GROUP_COL_INV_ICON, BLENDOP_MASKS_GROUP_COL_NAME, BLENDOP_MASKS_GROUP_COL_OP_ICON, _gui_collapsible_section_t::container, darktable, dt_bauhaus_combobox_from_conf(), dt_dev_get_masks_group_name(), dt_free, dt_gui_add_class(), DT_GUI_BOX_SPACING, DT_GUI_MODULE, dt_gui_new_collapsible_section(), dt_history_item_get_name(), dt_iop_togglebutton_new_no_register(), DT_MASKS_EDIT_OFF, DT_PIXEL_APPLY_DPI, DT_UI_RESIZE_DYNAMIC, dt_ui_scroll_wrap(), dtgtk_cairo_paint_invert(), dtgtk_cairo_paint_masks_edit(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), FALSE, dt_iop_gui_blend_data_t::group_delete_col, dt_iop_gui_blend_data_t::group_shapes_col, dt_iop_gui_blend_data_t::group_shapes_label, dt_iop_gui_blend_data_t::group_shapes_store, dt_iop_gui_blend_data_t::group_shapes_sw, dt_iop_gui_blend_data_t::group_unlink_col, dt_iop_gui_blend_data_t::lists_box, dt_iop_gui_blend_data_t::lists_stack, dt_iop_gui_blend_data_t::masks_box, dt_iop_gui_blend_data_t::masks_combo_ids, dt_iop_gui_blend_data_t::masks_cs, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_group_treeview, dt_iop_gui_blend_data_t::masks_inited, dt_iop_gui_blend_data_t::masks_polarity, dt_iop_gui_blend_data_t::masks_shown, dt_iop_gui_blend_data_t::masks_support, dt_iop_gui_blend_data_t::masks_treeview, TRUE, and dt_iop_gui_blend_data_t::wire_shape_toggle.
Referenced by dt_iop_gui_init_blending_body().
| void dt_iop_gui_init_raster | ( | GtkBox * | blendw, |
| dt_iop_module_t * | module | ||
| ) |
Definition at line 3999 of file blend_gui.c.
References _raster_combo_populate(), _raster_polarity_callback(), _raster_value_changed_callback(), darktable_t::bauhaus, dt_iop_module_t::blend_data, darktable, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_add_populate_fct(), dt_bauhaus_combobox_new(), dt_bauhaus_disable_module_list(), dt_bauhaus_set_use_default_callback(), dt_bauhaus_widget_set_label(), dt_gui_add_class(), DT_GUI_BOX_SPACING, DT_GUI_MODULE, dtgtk_cairo_paint_invert(), dtgtk_togglebutton_new(), FALSE, dt_iop_gui_blend_data_t::masks_support, dt_iop_gui_blend_data_t::raster_box, dt_iop_gui_blend_data_t::raster_combo, dt_iop_gui_blend_data_t::raster_inited, dt_iop_gui_blend_data_t::raster_polarity, and TRUE.
Referenced by dt_iop_gui_init_blending_body().
| void dt_iop_gui_update_blendif | ( | dt_iop_module_t * | module | ) |
Definition at line 3355 of file blend_gui.c.
References _blendop_blendif_update_tab(), dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blendif_support, dt_iop_gui_blendif_filter_t::box, ch, dt_iop_gui_blend_data_t::channel, dt_iop_gui_blend_data_t::channel_tabs, dt_iop_gui_blend_data_t::channel_tabs_csp, dt_iop_gui_blend_data_t::csp, darktable, dt_iop_module_t::dev, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, DT_DEV_PIXELPIPE_DISPLAY_NONE, DT_DEV_PIXELPIPE_DISPLAY_STICKY, dt_dev_pixelpipe_update_history_all, dt_gui_container_destroy_children(), dt_iop_add_remove_mask_indicator(), dt_iop_color_picker_reset(), dt_iop_set_cache_bypass(), dt_pthread_mutex_lock(), dt_pthread_mutex_unlock(), dt_ui_notebook_page(), FALSE, dt_iop_gui_blend_data_t::filter, darktable_t::gui, IS_NULL_PTR, Lab_channels, dt_iop_gui_blend_data_t::lock, dt_iop_gui_blend_data_t::output_channels_shown, dt_iop_module_t::request_mask_display, dt_gui_gtk_t::reset, rgb_channels, rgbj_channels, dt_iop_gui_blend_data_t::save_for_leave, dt_iop_gui_blend_data_t::tab, dt_iop_gui_blend_data_t::timeout_handle, and TRUE.
Referenced by _blendop_blendif_reset(), _pop_undo(), and dt_iop_gui_update_blending().
| void dt_iop_gui_update_blending | ( | dt_iop_module_t * | module | ) |
Definition at line 4184 of file blend_gui.c.
References _add_blendmode_combo(), _blendif_are_output_channels_used(), _blendif_blend_parameter_enabled(), _blendop_sync_toggle_state(), _blendop_toggle_button_set_active(), _blendop_update_top_enable_label(), dt_iop_gui_blend_data_t::altmode, dt_develop_blend_params_t::blend_cst, dt_iop_module_t::blend_data, dt_develop_blend_params_t::blend_mode, dt_iop_gui_blend_data_t::blend_mode_parameter_slider, dt_iop_gui_blend_data_t::blend_modes_blend_order, dt_iop_gui_blend_data_t::blend_modes_combo, dt_iop_gui_blend_data_t::blend_modes_csp, dt_develop_blend_params_t::blend_parameter, dt_iop_module_t::blend_params, dt_iop_gui_blend_data_t::blendif_content, dt_iop_gui_blend_data_t::blendif_enable, dt_iop_gui_blend_data_t::blendif_inited, dt_iop_gui_blend_data_t::blending_box, dt_develop_blend_params_t::blur_radius, dt_iop_gui_blend_data_t::blur_radius_slider, dt_develop_blend_params_t::brightness, dt_iop_gui_blend_data_t::brightness_slider, dt_develop_blend_params_t::contrast, dt_iop_gui_blend_data_t::contrast_slider, dt_iop_gui_blend_data_t::csp, darktable, dt_develop_blend_params_t::details, dt_iop_gui_blend_data_t::details_slider, DEVELOP_BLEND_ADD, DEVELOP_BLEND_AVERAGE, DEVELOP_BLEND_BOUNDED, DEVELOP_BLEND_CHROMATICITY, DEVELOP_BLEND_COLOR, DEVELOP_BLEND_COLORADJUST, DEVELOP_BLEND_CS_LAB, DEVELOP_BLEND_CS_NONE, DEVELOP_BLEND_CS_RAW, DEVELOP_BLEND_CS_RGB_DISPLAY, DEVELOP_BLEND_CS_RGB_SCENE, DEVELOP_BLEND_DARKEN, DEVELOP_BLEND_DIFFERENCE2, DEVELOP_BLEND_DIVIDE, DEVELOP_BLEND_GEOMETRIC_MEAN, DEVELOP_BLEND_HARDLIGHT, DEVELOP_BLEND_HARMONIC_MEAN, DEVELOP_BLEND_HSV_COLOR, DEVELOP_BLEND_HSV_VALUE, DEVELOP_BLEND_HUE, DEVELOP_BLEND_LAB_A, DEVELOP_BLEND_LAB_B, DEVELOP_BLEND_LAB_COLOR, DEVELOP_BLEND_LAB_LIGHTNESS, DEVELOP_BLEND_LIGHTEN, DEVELOP_BLEND_LIGHTNESS, DEVELOP_BLEND_LINEARLIGHT, DEVELOP_BLEND_MULTIPLY, DEVELOP_BLEND_NORMAL2, DEVELOP_BLEND_OVERLAY, DEVELOP_BLEND_PINLIGHT, DEVELOP_BLEND_RGB_B, DEVELOP_BLEND_RGB_G, DEVELOP_BLEND_RGB_R, DEVELOP_BLEND_SCREEN, DEVELOP_BLEND_SOFTLIGHT, DEVELOP_BLEND_SUBTRACT, DEVELOP_BLEND_VIVIDLIGHT, DEVELOP_COMBINE_INCL, DEVELOP_COMBINE_INV, DEVELOP_MASK_ENABLED, DEVELOP_MASK_PARAMETRIC, DEVELOP_MASK_RASTER, DEVELOP_MASK_SHAPE, dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_set_from_value(), dt_bauhaus_slider_set(), dt_control_log(), dt_develop_blend_default_module_blend_colorspace(), dt_iop_add_remove_mask_indicator(), dt_iop_color_picker_reset(), dt_iop_gui_update_blendif(), dt_iop_gui_update_raster(), dt_iop_set_cache_bypass(), DT_MASKS_EDIT_OFF, dt_masks_iop_update(), dt_masks_set_edit_mode(), dt_masks_shape_buttons_deactivate_all(), FALSE, dt_develop_blend_params_t::feathering_guide, dt_develop_blend_params_t::feathering_radius, dt_iop_gui_blend_data_t::feathering_radius_slider, darktable_t::gui, IOP_CS_RAW, IOP_FLAGS_SUPPORTS_BLENDING, IS_NULL_PTR, dt_develop_blend_params_t::mask_combine, dt_iop_gui_blend_data_t::masks_combine_combo, dt_iop_gui_blend_data_t::masks_content, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_enable, dt_iop_gui_blend_data_t::masks_feathering_guide_combo, dt_iop_gui_blend_data_t::masks_inited, dt_iop_gui_blend_data_t::masks_invert_combo, dt_iop_gui_blend_data_t::masks_support, dt_iop_module_t::op, dt_develop_blend_params_t::opacity, dt_iop_gui_blend_data_t::opacity_slider, dt_iop_gui_blend_data_t::output_channels_shown, dt_iop_gui_blend_data_t::raster_content, dt_iop_gui_blend_data_t::raster_enable, dt_iop_gui_blend_data_t::raster_inited, dt_gui_gtk_t::reset, dt_iop_gui_blend_data_t::showmask, dt_iop_gui_blend_data_t::top_enable, and TRUE.
Referenced by _blendop_blendif_invert(), _blendop_masks_mode_callback(), _lib_masks_blending_gui_changed_callback(), dt_iop_gui_duplicate(), and dt_iop_gui_update().
| void dt_iop_gui_update_raster | ( | dt_iop_module_t * | module | ) |
Definition at line 3974 of file blend_gui.c.
References _raster_combo_populate(), dt_iop_module_t::blend_data, IS_NULL_PTR, dt_iop_gui_blend_data_t::masks_support, dt_iop_gui_blend_data_t::raster_combo, dt_iop_gui_blend_data_t::raster_inited, dt_develop_blend_params_t::raster_mask_invert, and dt_iop_gui_blend_data_t::raster_polarity.
Referenced by dt_iop_gui_update_blending().
| void dt_masks_iop_update | ( | dt_iop_module_t * | module | ) |
Definition at line 3591 of file blend_gui.c.
References _blendop_masks_refresh_lists(), dt_iop_module_t::blend_data, dt_iop_module_t::blend_params, dt_masks_form_gui_t::creation, dt_masks_form_gui_t::creation_module, dt_masks_form_gui_t::creation_type, darktable, dt_iop_module_t::dev, darktable_t::develop, DEVELOP_COMBINE_MASKS_POS, DEVELOP_MASKS_NB_SHAPES, dt_bauhaus_combobox_add(), dt_bauhaus_combobox_clear(), dt_bauhaus_combobox_set(), dt_iop_add_remove_mask_indicator(), DT_MASKS_EDIT_OFF, dt_masks_get_from_id(), dt_masks_get_visible_form(), DT_MASKS_GROUP, DT_MASKS_NONE, dt_masks_set_edit_mode(), FALSE, darktable_t::gui, IS_NULL_PTR, dt_develop_blend_params_t::mask_combine, dt_develop_blend_params_t::mask_id, dt_iop_gui_blend_data_t::masks_combo, dt_iop_gui_blend_data_t::masks_edit, dt_iop_gui_blend_data_t::masks_inited, dt_iop_gui_blend_data_t::masks_polarity, dt_iop_gui_blend_data_t::masks_shapes, dt_iop_gui_blend_data_t::masks_shown, dt_iop_gui_blend_data_t::masks_support, dt_iop_gui_blend_data_t::masks_type, n, dt_masks_form_t::points, dt_gui_gtk_t::reset, TRUE, and dt_masks_form_t::type.
Referenced by _blendop_masks_apply_and_commit(), _brush_events_button_released(), _menu_add_exist(), _menu_no_masks(), _tree_add_exist(), dt_iop_gui_update_blending(), dt_masks_form_delete(), dt_masks_form_exit_creation(), dt_masks_group_update_name(), dt_masks_gui_form_save_creation(), and dt_masks_iop_value_changed_callback().
|
static |
Definition at line 721 of file blend_gui.c.
References GRADIENT_SLIDER_GET, GRADIENT_SLIDER_SET, and M_LN10.
Referenced by _blendop_blendif_disp_alternative_log().
|
static |
Definition at line 742 of file blend_gui.c.
References eps, GRADIENT_SLIDER_GET, and GRADIENT_SLIDER_SET.
Referenced by _blendop_blendif_disp_alternative_mag().
| const dt_iop_gui_blendif_colorstop_t _gradient_a[] |
Definition at line 173 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_b[] |
Definition at line 185 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_blue[] |
Definition at line 218 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_chroma[] |
Definition at line 227 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_gray[] |
Definition at line 195 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_green[] |
Definition at line 210 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_HSL_hue[] |
Definition at line 254 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_JzCzhz_hue[] |
Definition at line 267 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_L[] |
Definition at line 164 of file blend_gui.c.
Referenced by gui_init(), and gui_init().
| const dt_iop_gui_blendif_colorstop_t _gradient_LCh_hue[] |
Definition at line 238 of file blend_gui.c.
| const dt_iop_gui_blendif_colorstop_t _gradient_red[] |
Definition at line 202 of file blend_gui.c.
| const dt_develop_name_value_t dt_develop_blend_colorspace_names[] |
Definition at line 128 of file blend_gui.c.
Referenced by _create_tooltip_text().
| const dt_develop_name_value_t dt_develop_blend_mode_flag_names[] |
Definition at line 123 of file blend_gui.c.
Referenced by _create_tooltip_text().
| const dt_develop_name_value_t dt_develop_blend_mode_names[] |
Definition at line 81 of file blend_gui.c.
Referenced by _add_blendmode_combo(), and _create_tooltip_text().
| const dt_develop_name_value_t dt_develop_combine_masks_names[] |
Definition at line 145 of file blend_gui.c.
Referenced by _create_tooltip_text(), and dt_iop_gui_init_blending_body().
| const dt_develop_name_value_t dt_develop_feathering_guide_names[] |
Definition at line 152 of file blend_gui.c.
Referenced by _create_tooltip_text(), and dt_iop_gui_init_blending_body().
| const dt_develop_name_value_t dt_develop_invert_mask_names[] |
Definition at line 159 of file blend_gui.c.
Referenced by _create_tooltip_text().
| const dt_develop_name_value_t dt_develop_mask_mode_names[] |
Definition at line 136 of file blend_gui.c.
Referenced by _create_tooltip_text().
| const dt_iop_gui_blendif_channel_t Lab_channels[] |
Definition at line 3274 of file blend_gui.c.
Referenced by dt_iop_gui_update_blendif().
| const dt_iop_gui_blendif_channel_t rgb_channels[] |
Definition at line 3294 of file blend_gui.c.
Referenced by dt_iop_gui_update_blendif().
| const dt_iop_gui_blendif_channel_t rgbj_channels[] |
Definition at line 3321 of file blend_gui.c.
Referenced by dt_iop_gui_update_blendif().
| const char* slider_tooltip[] |
Definition at line 3348 of file blend_gui.c.
Referenced by dt_iop_gui_init_blendif().