![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "common/darktable.h"#include "gui/gdkkeys.h"#include "bauhaus/bauhaus.h"#include "common/calculator.h"#include "common/math.h"#include "common/debug.h"#include "control/conf.h"#include "control/control.h"#include "develop/imageop.h"#include "gui/accelerators.h"#include "gui/color_picker_proxy.h"#include "gui/gui_throttle.h"#include "gui/gtk.h"#include <strings.h>#include <pango/pangocairo.h>
Include dependency graph for bauhaus.c:Go to the source code of this file.
Data Structures | |
| struct | dt_bauhaus_resize_handle_t |
Macros | |
| #define | DEBUG 0 |
| #define | DT_BAUHAUS_FOCUS_IDLE_SOURCE_KEY "dt-bauhaus-focus-idle-source" |
| #define | DT_BAUHAUS_FOCUS_IDLE_TRIES_KEY "dt-bauhaus-focus-idle-tries" |
| #define | DT_BAUHAUS_FOCUS_IDLE_MAX_TRIES 20 |
Typedefs | |
| typedef enum _bh_active_region_t | _bh_active_region_t |
| typedef enum _bh_valign_t | _bh_valign_t |
| typedef enum _bh_halign_t | _bh_halign_t |
| typedef struct dt_bauhaus_resize_handle_t | dt_bauhaus_resize_handle_t |
Enumerations | |
| enum | _bh_active_region_t { BH_REGION_OUT = 0 , BH_REGION_MAIN , BH_REGION_QUAD } |
| enum | _bh_valign_t { BH_ALIGN_TOP = 0 , BH_ALIGN_BOTTOM = 1 , BH_ALIGN_MIDDLE = 2 } |
| enum | _bh_halign_t { BH_ALIGN_LEFT = 0 , BH_ALIGN_RIGHT = 1 , BH_ALIGN_CENTER = 2 } |
Functions | |
| static gboolean | dt_bauhaus_popup_draw (GtkWidget *widget, cairo_t *cr, gpointer user_data) |
| static gboolean | dt_bauhaus_popup_key_press (GtkWidget *widget, GdkEventKey *event, gpointer user_data) |
| static gboolean | _widget_draw (GtkWidget *widget, cairo_t *crf) |
| static gboolean | _widget_scroll (GtkWidget *widget, GdkEventScroll *event) |
| static gboolean | _widget_key_press (GtkWidget *widget, GdkEventKey *event) |
| static void | _get_preferred_width (GtkWidget *widget, gint *minimum_size, gint *natural_size) |
| static void | _get_preferred_height (GtkWidget *widget, gint *minimum_size, gint *natural_size) |
| static void | _style_updated (GtkWidget *widget) |
| static void | dt_bauhaus_widget_accept (struct dt_bauhaus_widget_t *w, gboolean timeout) |
| static void | dt_bauhaus_widget_reject (struct dt_bauhaus_widget_t *w) |
| static void | _combobox_set (GtkWidget *widget, const int pos, gboolean timeout) |
| Set a combobox to a given integer position. Private API function, called from user events. | |
| static void | _margins_retrieve (struct dt_bauhaus_widget_t *w) |
| Update the box margin and padding properties of the widget w by reading CSS context. | |
| static float | _bh_get_row_height (struct dt_bauhaus_widget_t *w) |
| Get the total height of a GUI row containing a line of text + top and bottom padding. | |
| static float | _bh_get_combobox_entry_height (struct dt_bauhaus_widget_t *w, const dt_bauhaus_combobox_entry_t *entry) |
| Get the vertical space used by a combobox popup entry. | |
| static double | _widget_get_quad_width (struct dt_bauhaus_widget_t *w) |
| Get the width of the quad without padding. | |
| static double | _widget_get_total_width (struct dt_bauhaus_widget_t *w, GtkWidget *widget) |
| Get the total width of the main Bauhaus widget area, accounting for padding and margins. | |
| static double | _widget_get_main_width (struct dt_bauhaus_widget_t *w, GtkWidget *widget, double *total_width) |
| Get the width of the main Bauhaus widget area (slider scale or combobox), accounting for quad space, padding and margins. | |
| static double | _widget_get_main_height (struct dt_bauhaus_widget_t *w, GtkWidget *widget) |
| Get the height of the main Bauhaus widget area (slider scale or combobox), that is the box allocation minus padding and margins. | |
| static double | _get_combobox_height (GtkWidget *widget) |
| static double | _get_slider_height (GtkWidget *widget) |
| static double | _get_indicator_y_position (struct dt_bauhaus_widget_t *w) |
| static double | _get_slider_bar_height (struct dt_bauhaus_widget_t *w) |
| static double | _get_combobox_popup_height (struct dt_bauhaus_widget_t *w) |
| static void | _translate_cursor (double *x, double *y, struct dt_bauhaus_widget_t *const w) |
| Translate in-place the cursor coordinates within the widget or popup according to padding and margin, so x = 0 is mapped to the starting point of the slider. | |
| static _bh_active_region_t | _bh_get_active_region (GtkWidget *widget, double *x, double *y, double *width, GtkWidget *popup) |
| Check if we have user cursor over quad area or over the slider/main area, then correct cursor coordinates for widget padding and margin. For sliders, it means that x = 0 is mapped to the origin of the scale. | |
| static float | _bh_round_to_n_digits (const struct dt_bauhaus_widget_t *const w, float x) |
Round a slider numeric value to the number of digits specified in the widget w. | |
| static float | _bh_slider_get_min_step (const struct dt_bauhaus_widget_t *const w) |
| Return the minimum representable value step, for current UI scaling factor and number of digits. | |
| static double | _bh_slider_get_scale (struct dt_bauhaus_widget_t *w) |
| static void | _bh_combobox_get_hovered_entry (struct dt_bauhaus_widget_t *w) |
| static _bh_active_region_t | _popup_coordinates (dt_bauhaus_t *bh, const double x_root, const double y_root, double *event_x, double *event_y) |
| static gboolean | ensure_focus_idle (gpointer data) |
| gboolean | dt_bauhaus_focus_in_callback (GtkWidget *widget, GdkEventFocus event, gpointer user_data) |
| gboolean | dt_bauhaus_focus_out_callback (GtkWidget *widget, GdkEventFocus event, gpointer user_data) |
| gboolean | dt_bauhaus_focus_callback (GtkWidget *widget, GtkDirectionType direction, gpointer data) |
| gboolean | _action_request_focus (GtkAccelGroup *accel_group, GObject *accelerable, guint keyval, GdkModifierType modifier, gpointer data) |
| static void | _combobox_next_sensitive (struct dt_bauhaus_widget_t *w, int delta) |
| static dt_bauhaus_combobox_entry_t * | new_combobox_entry (const char *label, const char *tooltip, dt_bauhaus_combobox_alignment_t alignment, gboolean sensitive, void *data, void(*free_func)(void *)) |
| static dt_bauhaus_combobox_entry_t * | new_combobox_separator (const float row_height_factor) |
| Create a new combobox separator entry. | |
| static void | free_combobox_entry (gpointer data) |
| static GdkRGBA * | default_color_assign () |
| static void | show_pango_text (struct dt_bauhaus_widget_t *w, GtkStyleContext *context, cairo_t *cr, GdkRectangle *bounding_box, const char *text, _bh_halign_t halign, _bh_valign_t valign, PangoEllipsizeMode ellipsize, GdkRGBA *bg_color, float *width, float *height, GtkStateFlags state) |
| Display text aligned in a bounding box, with pseudo-classes properties handled, and optional background color. | |
| static void | dt_bauhaus_slider_set_normalized (struct dt_bauhaus_widget_t *w, float pos, gboolean raise, gboolean timeout) |
| Set the value of a slider as a ratio of the GUI slider width. | |
| static void | _dt_bauhaus_slider_set_with_raise (GtkWidget *widget, float pos, gboolean raise) |
| static double | get_slider_line_offset (const double pos, const double scale, const double x, double y, const double line_height) |
| static void | draw_slider_line (cairo_t *cr, const double pos, const double off, const double scale, const double width, const double height, const double line_height, double line_width) |
| static void | _slider_zoom_range (struct dt_bauhaus_widget_t *w, float zoom) |
| static gboolean | dt_bauhaus_popup_scroll (GtkWidget *widget, GdkEventScroll *event, gpointer user_data) |
| static gboolean | dt_bauhaus_popup_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
| static gboolean | dt_bauhaus_popup_leave_notify (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
| static gboolean | dt_bauhaus_popup_button_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static gboolean | dt_bauhaus_popup_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static void | dt_bauhaus_window_show (GtkWidget *w, gpointer user_data) |
| static void | dt_bh_init (DtBauhausWidget *class) |
| static gboolean | _enter_leave (GtkWidget *widget, GdkEventCrossing *event) |
| static gboolean | _resize_handle_cursor (GtkWidget *widget, GdkEventCrossing *event, gpointer user_data) |
| static gboolean | _resize_handle_button (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static gboolean | _resize_handle_motion (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
| GtkWidget * | dt_bauhaus_resize_handle_new (GtkOrientation orientation, gboolean invert, const char *tooltip, dt_bauhaus_resize_handle_get_size_f get_size, dt_bauhaus_resize_handle_resize_f resize, gpointer user_data) |
| Create a themed handle widget driving one-dimensional resize gestures. | |
| static void | _widget_finalize (GObject *widget) |
| static void | dt_bh_class_init (DtBauhausWidgetClass *class) |
| void | dt_bauhaus_load_theme (dt_bauhaus_t *bauhaus) |
| dt_bauhaus_t * | dt_bauhaus_init () |
| void | dt_bauhaus_cleanup (dt_bauhaus_t *bauhaus) |
| static gboolean | dt_bauhaus_slider_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static gboolean | dt_bauhaus_slider_button_release (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static gboolean | dt_bauhaus_slider_motion_notify (GtkWidget *widget, GdkEventMotion *event, gpointer user_data) |
| static gboolean | dt_bauhaus_combobox_button_press (GtkWidget *widget, GdkEventButton *event, gpointer user_data) |
| static void | _bauhaus_widget_init (dt_bauhaus_t *bauhaus, dt_bauhaus_widget_t *w, dt_gui_module_t *self) |
| void | dt_bauhaus_combobox_set_default (GtkWidget *widget, int def) |
| void | dt_bauhaus_slider_set_hard_min (GtkWidget *widget, float val) |
| float | dt_bauhaus_slider_get_hard_min (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_hard_max (GtkWidget *widget, float val) |
| float | dt_bauhaus_slider_get_hard_max (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_soft_min (GtkWidget *widget, float val) |
| float | dt_bauhaus_slider_get_soft_min (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_soft_max (GtkWidget *widget, float val) |
| float | dt_bauhaus_slider_get_soft_max (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_default (GtkWidget *widget, float def) |
| void | dt_bauhaus_slider_set_soft_range (GtkWidget *widget, float soft_min, float soft_max) |
| void | dt_bauhaus_widget_set_label (GtkWidget *widget, const char *label) |
| const char * | dt_bauhaus_widget_get_label (GtkWidget *widget) |
| void | dt_bauhaus_widget_set_quad_paint (GtkWidget *widget, dt_bauhaus_quad_paint_f f, int paint_flags, void *paint_data) |
| void | dt_bauhaus_widget_set_field (GtkWidget *widget, gpointer field, dt_introspection_type_t field_type) |
| void | dt_bauhaus_widget_set_quad_toggle (GtkWidget *widget, int toggle) |
| void | dt_bauhaus_widget_set_quad_active (GtkWidget *widget, int active) |
| void | dt_bauhaus_widget_set_quad_visibility (GtkWidget *widget, const gboolean visible) |
| int | dt_bauhaus_widget_get_quad_active (GtkWidget *widget) |
| void | dt_bauhaus_widget_press_quad (GtkWidget *widget) |
| void | dt_bauhaus_widget_release_quad (GtkWidget *widget) |
| GtkWidget * | dt_bauhaus_slider_new (dt_bauhaus_t *bh, dt_gui_module_t *self) |
| GtkWidget * | dt_bauhaus_slider_new_with_range (dt_bauhaus_t *bh, dt_gui_module_t *self, float min, float max, float step, float defval, int digits) |
| GtkWidget * | dt_bauhaus_slider_new_with_range_and_feedback (dt_bauhaus_t *bh, dt_gui_module_t *self, float min, float max, float step, float defval, int digits, int feedback) |
| GtkWidget * | dt_bauhaus_slider_from_widget (dt_bauhaus_t *bh, dt_bauhaus_widget_t *w, dt_gui_module_t *self, float min, float max, float step, float defval, int digits, int feedback) |
| GtkWidget * | dt_bauhaus_combobox_new (dt_bauhaus_t *bh, dt_gui_module_t *self) |
| GtkWidget * | dt_bauhaus_combobox_new_full (dt_bauhaus_t *bh, dt_gui_module_t *self, const char *label, const char *tip, int pos, GtkCallback callback, gpointer data, const char **texts) |
| static void | _combobox_conf_value_changed (GtkWidget *widget, gpointer user_data) |
| GtkWidget * | dt_bauhaus_combobox_from_conf (dt_bauhaus_t *bh, dt_gui_module_t *self, const char *confkey) |
| void | dt_bauhaus_combobox_from_widget (dt_bauhaus_t *bh, dt_bauhaus_widget_t *w, dt_gui_module_t *self) |
| static dt_bauhaus_combobox_data_t * | _combobox_data (GtkWidget *widget) |
| static int | _combobox_selectable_count (const dt_bauhaus_combobox_data_t *d) |
| Count selectable combobox entries. | |
| static int | _combobox_public_to_entry_pos (const dt_bauhaus_combobox_data_t *d, const int pos, const gboolean allow_end) |
| Convert a public value index to the internal entry row. | |
| static int | _combobox_entry_pos_to_public (const dt_bauhaus_combobox_data_t *d, const int entry_pos) |
| Convert an internal entry row to the public value index. | |
| void | dt_bauhaus_combobox_add_populate_fct (GtkWidget *widget, void(*fct)(GtkWidget *w, void *module)) |
| void | dt_bauhaus_combobox_add_list (GtkWidget *widget, const char **texts) |
| void | dt_bauhaus_combobox_add (GtkWidget *widget, const char *text) |
| void | dt_bauhaus_combobox_add_with_tooltip (GtkWidget *widget, const char *text, const char *tooltip) |
| void | dt_bauhaus_combobox_add_aligned (GtkWidget *widget, const char *text, dt_bauhaus_combobox_alignment_t align) |
| void | dt_bauhaus_combobox_add_full (GtkWidget *widget, const char *text, dt_bauhaus_combobox_alignment_t align, gpointer data, void(free_func)(void *data), gboolean sensitive) |
| void | dt_bauhaus_combobox_add_separator (GtkWidget *widget) |
| void | dt_bauhaus_combobox_add_separator_with_height (GtkWidget *widget, const float row_height_factor) |
| void | dt_bauhaus_combobox_set_entries_ellipsis (GtkWidget *widget, PangoEllipsizeMode ellipis) |
| void | dt_bauhaus_combobox_set_editable (GtkWidget *widget, int editable) |
| int | dt_bauhaus_combobox_get_editable (GtkWidget *widget) |
| void | dt_bauhaus_combobox_set_selected_text_align (GtkWidget *widget, const dt_bauhaus_combobox_alignment_t text_align) |
| void | dt_bauhaus_combobox_remove_at (GtkWidget *widget, int pos) |
| void | dt_bauhaus_combobox_insert (GtkWidget *widget, const char *text, int pos) |
| void | dt_bauhaus_combobox_insert_full (GtkWidget *widget, const char *text, dt_bauhaus_combobox_alignment_t align, gpointer data, void(*free_func)(void *), int pos) |
| void | dt_bauhaus_combobox_insert_separator (GtkWidget *widget, int pos) |
| void | dt_bauhaus_combobox_insert_separator_with_height (GtkWidget *widget, int pos, const float row_height_factor) |
| int | dt_bauhaus_combobox_length (GtkWidget *widget) |
| const char * | dt_bauhaus_combobox_get_text (GtkWidget *widget) |
| gpointer | dt_bauhaus_combobox_get_data (GtkWidget *widget) |
| void | dt_bauhaus_combobox_clear (GtkWidget *widget) |
| const char * | dt_bauhaus_combobox_get_entry (GtkWidget *widget, int pos) |
| void | dt_bauhaus_combobox_set_text (GtkWidget *widget, const char *text) |
| static void | _delayed_combobox_commit (gpointer data) |
| void | dt_bauhaus_combobox_set (GtkWidget *widget, const int pos) |
| gboolean | dt_bauhaus_combobox_set_from_text (GtkWidget *widget, const char *text) |
| gboolean | dt_bauhaus_combobox_set_from_value (GtkWidget *widget, int value) |
| int | dt_bauhaus_combobox_get (GtkWidget *widget) |
| void | dt_bauhaus_combobox_entry_set_sensitive (GtkWidget *widget, int pos, gboolean sensitive) |
| void | dt_bauhaus_slider_clear_stops (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_stop (GtkWidget *widget, float stop, float r, float g, float b) |
| static void | dt_bauhaus_draw_indicator (struct dt_bauhaus_widget_t *w, float pos, cairo_t *cr, float wd) |
| static void | dt_bauhaus_draw_quad (struct dt_bauhaus_widget_t *w, cairo_t *cr, const double x, const double y) |
| static void | dt_bauhaus_draw_baseline (struct dt_bauhaus_widget_t *w, cairo_t *cr, float width) |
| Draw the slider baseline, aka the backgronud bar. | |
| static gchar * | _build_label (const struct dt_bauhaus_widget_t *w) |
| static float | _get_combobox_max_width (GtkWidget *widget) |
| void | dt_bauhaus_hide_popup (dt_bauhaus_t *bh) |
| void | dt_bauhaus_show_popup (GtkWidget *widget) |
| static void | _slider_add_step (GtkWidget *widget, float delta, guint state) |
| float | dt_bauhaus_slider_get (GtkWidget *widget) |
| float | dt_bauhaus_slider_get_val (GtkWidget *widget) |
| char * | dt_bauhaus_slider_get_text (GtkWidget *w, float val) |
| void | dt_bauhaus_slider_set (GtkWidget *widget, float pos) |
| void | dt_bauhaus_slider_set_val (GtkWidget *widget, float val) |
| void | dt_bauhaus_slider_set_digits (GtkWidget *widget, int val) |
| int | dt_bauhaus_slider_get_digits (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_step (GtkWidget *widget, float val) |
| float | dt_bauhaus_slider_get_step (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_feedback (GtkWidget *widget, int feedback) |
| void | dt_bauhaus_slider_reset (GtkWidget *widget) |
| void | dt_bauhaus_slider_set_format (GtkWidget *widget, const char *format) |
| void | dt_bauhaus_slider_set_factor (GtkWidget *widget, float factor) |
| void | dt_bauhaus_slider_set_offset (GtkWidget *widget, float offset) |
| static void | _delayed_slider_commit (gpointer data) |
| void | dt_bauhaus_disable_accels (GtkWidget *widget) |
| void | dt_bauhaus_disable_module_list (GtkWidget *widget) |
| void | dt_bauhaus_set_use_default_callback (GtkWidget *widget) |
| Tell the widget to use the globally-defined default callback in the bauhaus structure This callback needs to be defined first, of course. | |
| #define DT_BAUHAUS_FOCUS_IDLE_SOURCE_KEY "dt-bauhaus-focus-idle-source" |
| #define DT_BAUHAUS_FOCUS_IDLE_TRIES_KEY "dt-bauhaus-focus-idle-tries" |
| typedef enum _bh_active_region_t _bh_active_region_t |
| typedef enum _bh_halign_t _bh_halign_t |
| typedef enum _bh_valign_t _bh_valign_t |
| typedef struct dt_bauhaus_resize_handle_t dt_bauhaus_resize_handle_t |
| enum _bh_active_region_t |
| enum _bh_halign_t |
| enum _bh_valign_t |
| gboolean _action_request_focus | ( | GtkAccelGroup * | accel_group, |
| GObject * | accelerable, | ||
| guint | keyval, | ||
| GdkModifierType | modifier, | ||
| gpointer | data | ||
| ) |
Definition at line 539 of file bauhaus.c.
References darktable, dt_bauhaus_widget_t::data, darktable_t::develop, DT_BAUHAUS_FOCUS_IDLE_SOURCE_KEY, DT_BAUHAUS_FOCUS_IDLE_TRIES_KEY, DT_BAUHAUS_WIDGET, dt_iop_gui_set_expanded(), dt_iop_request_focus(), dt_toast_log(), ensure_focus_idle(), FALSE, dt_develop_t::gui_module, IS_NULL_PTR, and TRUE.
Referenced by dt_bauhaus_widget_set_label().
|
static |
Definition at line 1519 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, darktable, dt_bauhaus_focus_callback(), dt_bauhaus_focus_in_callback(), dt_bauhaus_focus_out_callback(), dt_gui_add_class(), dt_bauhaus_widget_t::expand, FALSE, dt_bauhaus_widget_t::field, darktable_t::gui, dt_bauhaus_widget_t::no_accels, dt_bauhaus_widget_t::no_module_list, dt_bauhaus_widget_t::quad_paint, dt_bauhaus_widget_t::quad_paint_data, dt_bauhaus_widget_t::quad_toggle, dt_gui_gtk_t::scroll_mask, dt_bauhaus_widget_t::show_quad, TRUE, and dt_bauhaus_widget_t::use_default_callback.
Referenced by dt_bauhaus_combobox_from_widget(), and dt_bauhaus_slider_from_widget().
|
static |
Definition at line 395 of file bauhaus.c.
References _bh_get_combobox_entry_height(), _bh_get_row_height(), dt_bauhaus_widget_t::bauhaus, dt_bauhaus_data_t::combobox, dt_bauhaus_t::current, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, i, dt_bauhaus_t::keys_cnt, dt_bauhaus_t::mouse_y, dt_bauhaus_t::popup_area, dt_bauhaus_combobox_entry_t::tooltip, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_popup_button_press(), and dt_bauhaus_popup_motion_notify().
|
static |
Check if we have user cursor over quad area or over the slider/main area, then correct cursor coordinates for widget padding and margin. For sliders, it means that x = 0 is mapped to the origin of the scale.
| widget | Bauhaus widget |
| event | User event |
| x | Initial coordinate x of the cursor. Will be corrected in-place for margin and padding. |
| y | Initial coordinate y of the cursor. Will be corrected in-place for margin and padding. |
| width | Return pointer for the main width. Can be NULL. Caller owns the memory and is responsible for freeing it. |
| popup | Pointer to the Gtk window for the popup if any. Can be NULL. Height is computed from there if defined. |
Definition at line 335 of file bauhaus.c.
References _translate_cursor(), _widget_get_main_height(), _widget_get_main_width(), BH_REGION_MAIN, BH_REGION_OUT, BH_REGION_QUAD, DT_BAUHAUS_WIDGET, INNER_PADDING, width, and x.
Referenced by _popup_coordinates(), dt_bauhaus_combobox_button_press(), dt_bauhaus_slider_button_press(), and dt_bauhaus_slider_motion_notify().
|
static |
Get the vertical space used by a combobox popup entry.
Real entries keep the regular row height. Separators may reserve a smaller row while remaining part of the popup geometry for mouse hit-testing.
Definition at line 161 of file bauhaus.c.
References _bh_get_row_height(), dt_bauhaus_combobox_entry_t::is_separator, MAX, and dt_bauhaus_combobox_entry_t::row_height_factor.
Referenced by _bh_combobox_get_hovered_entry(), _get_combobox_popup_height(), and dt_bauhaus_popup_draw().
|
static |
Get the total height of a GUI row containing a line of text + top and bottom padding.
This applies to comboboxes list elements only. Sliders text lines have only bottom padding.
Definition at line 150 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, and dt_bauhaus_t::line_height.
Referenced by _bh_combobox_get_hovered_entry(), _bh_get_combobox_entry_height(), _get_combobox_popup_height(), and dt_bauhaus_popup_draw().
|
static |
Round a slider numeric value to the number of digits specified in the widget w.
| w | |
| x | Value to round. |
Definition at line 370 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, factor, ipow(), dt_bauhaus_data_t::slider, and x.
Referenced by dt_bauhaus_slider_set_hard_max(), and dt_bauhaus_slider_set_hard_min().
|
static |
Return the minimum representable value step, for current UI scaling factor and number of digits.
| w |
Definition at line 383 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_data_t::factor, ipow(), and dt_bauhaus_data_t::slider.
Referenced by _bh_slider_get_scale(), and _slider_zoom_range().
|
static |
Definition at line 389 of file bauhaus.c.
References _bh_slider_get_min_step(), d, dt_bauhaus_widget_t::data, and dt_bauhaus_data_t::slider.
Referenced by dt_bauhaus_popup_draw(), and dt_bauhaus_popup_motion_notify().
|
static |
Definition at line 2680 of file bauhaus.c.
References dt_bauhaus_widget_t::label.
Referenced by _widget_draw(), and dt_bauhaus_popup_draw().
Definition at line 1865 of file bauhaus.c.
References dt_bauhaus_combobox_get_data(), dt_conf_set_string(), and value.
Referenced by dt_bauhaus_combobox_from_conf().
|
static |
Definition at line 1934 of file bauhaus.c.
References dt_bauhaus_combobox_data_t::active, dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, IS_NULL_PTR, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_combobox_entry_set_sensitive(), dt_bauhaus_combobox_get(), dt_bauhaus_combobox_get_data(), dt_bauhaus_combobox_get_editable(), dt_bauhaus_combobox_get_entry(), dt_bauhaus_combobox_get_text(), dt_bauhaus_combobox_length(), dt_bauhaus_combobox_remove_at(), dt_bauhaus_combobox_set(), dt_bauhaus_combobox_set_from_text(), dt_bauhaus_combobox_set_from_value(), and dt_bauhaus_combobox_set_text().
|
static |
Convert an internal entry row to the public value index.
Definition at line 1989 of file bauhaus.c.
References d, i, IS_NULL_PTR, and dt_bauhaus_combobox_entry_t::is_separator.
Referenced by dt_bauhaus_combobox_get().
|
static |
Definition at line 584 of file bauhaus.c.
References _combobox_set(), dt_bauhaus_combobox_data_t::active, dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, delta, entries, inc, dt_bauhaus_combobox_entry_t::sensitive, and TRUE.
Referenced by _widget_scroll(), and dt_bauhaus_popup_key_press().
|
static |
Convert a public value index to the internal entry row.
The internal row includes separators because the popup needs to draw them. The public index excludes separators because callers use it as a value.
Definition at line 1969 of file bauhaus.c.
References d, i, IS_NULL_PTR, and dt_bauhaus_combobox_entry_t::is_separator.
Referenced by dt_bauhaus_combobox_entry_set_sensitive(), dt_bauhaus_combobox_get_entry(), dt_bauhaus_combobox_insert_full(), dt_bauhaus_combobox_insert_separator_with_height(), dt_bauhaus_combobox_remove_at(), and dt_bauhaus_combobox_set().
|
static |
Count selectable combobox entries.
Separators are drawn as rows in the popup, but they are not values. Public indexes therefore stay stable when separators are inserted.
Definition at line 1952 of file bauhaus.c.
References d, i, IS_NULL_PTR, and dt_bauhaus_combobox_entry_t::is_separator.
Referenced by dt_bauhaus_combobox_length(), and dt_bauhaus_combobox_set().
Set a combobox to a given integer position. Private API function, called from user events.
| widget | |
| pos | -1 for "custom" value in editable comboboxes, >= 0 for items in the list |
| timeout | TRUE to apply an adaptative timeout preventing intermediate setting steps (e.g. while scrolling) to emit too many value-changed signals and committing to pipeline. FALSE forces immediate dispatch of new value, when there is no ambiguity that the setting is final (e.g left click). |
Definition at line 2259 of file bauhaus.c.
References _delayed_combobox_commit(), dt_bauhaus_combobox_data_t::active, dt_bauhaus_widget_t::bauhaus, dt_bauhaus_data_t::combobox, dt_bauhaus_t::current, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_gui_throttle_cancel(), dt_gui_throttle_queue(), dt_gui_widgets_suppressed(), IS_NULL_PTR, dt_bauhaus_combobox_entry_t::is_separator, and dt_bauhaus_t::popup_area.
Referenced by _combobox_next_sensitive(), dt_bauhaus_combobox_set(), dt_bauhaus_combobox_set_from_text(), dt_bauhaus_combobox_set_from_value(), and dt_bauhaus_widget_accept().
|
static |
Definition at line 2221 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, darktable, dt_bauhaus_widget_t::data, dt_bauhaus_t::default_value_changed_callback, dt_gui_widgets_suppressed(), darktable_t::gui, dt_bauhaus_widget_t::label, and dt_bauhaus_widget_t::use_default_callback.
Referenced by _combobox_set().
|
static |
Definition at line 3640 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, darktable, dt_bauhaus_widget_t::data, dt_bauhaus_t::default_value_changed_callback, dt_gui_widgets_suppressed(), darktable_t::gui, dt_bauhaus_widget_t::label, and dt_bauhaus_widget_t::use_default_callback.
Referenced by dt_bauhaus_slider_set_normalized().
|
static |
Definition at line 3509 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_set_normalized(), DT_BAUHAUS_WIDGET, FALSE, and dt_bauhaus_data_t::slider.
Referenced by dt_bauhaus_slider_set(), dt_bauhaus_slider_set_soft_max(), and dt_bauhaus_slider_set_soft_min().
|
static |
Definition at line 1064 of file bauhaus.c.
References darktable, dt_gui_widgets_suppressed(), FALSE, darktable_t::gui, and dt_gui_gtk_t::has_scroll_focus.
Referenced by dt_bh_class_init().
WARNING: keep bauhaus widget height consistent with native Gtk widgets. Widget spacing is handled by DT_GUI_BOX_SPACING so you shouldn't have to use margins/padding in general.
To debug bauhaus widget allocation issue, paint a colored background in ansel.css, like:
.dt_bauhaus, checkbutton { padding: 0; margin: 0; background-color: red; }
A combobox height should be consistent with a native Gtk checkbox height.
Definition at line 249 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::line_height, dt_bauhaus_widget_t::margin, and dt_bauhaus_widget_t::padding.
Referenced by _get_preferred_height(), _style_updated(), and _widget_draw().
|
static |
Definition at line 2910 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, BH_ALIGN_LEFT, BH_ALIGN_MIDDLE, BH_ALIGN_RIGHT, dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_cairo_image_surface_create(), i, INNER_PADDING, dt_bauhaus_combobox_entry_t::label, dt_bauhaus_widget_t::label, dt_bauhaus_widget_t::margin, dt_bauhaus_widget_t::padding, dt_bauhaus_t::quad_width, show_pango_text(), dt_bauhaus_widget_t::show_quad, state, and width.
Referenced by _widget_draw().
|
static |
Definition at line 275 of file bauhaus.c.
References _bh_get_combobox_entry_height(), _bh_get_row_height(), dt_bauhaus_widget_t::bauhaus, dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, height, i, dt_bauhaus_t::keys_cnt, and dt_bauhaus_combobox_data_t::populate.
Referenced by dt_bauhaus_show_popup().
|
static |
Definition at line 263 of file bauhaus.c.
References dt_bauhaus_t::baseline_size, dt_bauhaus_widget_t::bauhaus, INNER_PADDING, and dt_bauhaus_t::line_height.
Referenced by dt_bauhaus_draw_indicator().
|
static |
Definition at line 3159 of file bauhaus.c.
References _get_combobox_height(), _get_slider_height(), _margins_retrieve(), DT_BAUHAUS_COMBOBOX, height, and dt_bauhaus_widget_t::type.
Referenced by dt_bh_class_init().
|
static |
Definition at line 3141 of file bauhaus.c.
References darktable, DT_PIXEL_APPLY_DPI, dt_ui_panel_ancestor(), dt_ui_panel_get_size(), DT_UI_PANEL_LEFT, DT_UI_PANEL_RIGHT, darktable_t::gui, and dt_gui_gtk_t::ui.
Referenced by dt_bh_class_init().
|
static |
Definition at line 268 of file bauhaus.c.
References dt_bauhaus_t::baseline_size, dt_bauhaus_widget_t::bauhaus, INNER_PADDING, and dt_bauhaus_t::line_height.
Referenced by dt_bauhaus_popup_draw(), and dt_bauhaus_popup_motion_notify().
Definition at line 256 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::border_width, INNER_PADDING, dt_bauhaus_t::line_height, dt_bauhaus_widget_t::margin, dt_bauhaus_t::marker_size, and dt_bauhaus_widget_t::padding.
Referenced by _get_preferred_height(), _style_updated(), and _widget_draw().
|
static |
Update the box margin and padding properties of the widget w by reading CSS context.
| w | The widget to update and from which the CSS context is read. |
Definition at line 124 of file bauhaus.c.
References IS_NULL_PTR, dt_bauhaus_widget_t::margin, dt_bauhaus_widget_t::padding, and state.
Referenced by _get_preferred_height(), _style_updated(), _widget_draw(), and dt_bauhaus_show_popup().
|
static |
Definition at line 428 of file bauhaus.c.
References _bh_get_active_region(), dt_bauhaus_t::current, double(), dt_bauhaus_t::popup_window, and window.
Referenced by dt_bauhaus_popup_button_press(), and dt_bauhaus_popup_motion_notify().
|
static |
Definition at line 1122 of file bauhaus.c.
References dt_bauhaus_resize_handle_t::current_size, dt_bauhaus_resize_handle_t::dragging, dt_control_change_cursor, FALSE, dt_bauhaus_resize_handle_t::get_size, dt_bauhaus_resize_handle_t::orientation, dt_bauhaus_resize_handle_t::resize, dt_bauhaus_resize_handle_t::start_root, dt_bauhaus_resize_handle_t::start_size, TRUE, and dt_bauhaus_resize_handle_t::user_data.
Referenced by dt_bauhaus_resize_handle_new().
|
static |
Definition at line 1102 of file bauhaus.c.
References dt_bauhaus_resize_handle_t::dragging, dt_control_change_cursor, FALSE, dt_bauhaus_resize_handle_t::orientation, and TRUE.
Referenced by dt_bauhaus_resize_handle_new().
|
static |
Definition at line 1164 of file bauhaus.c.
References dt_bauhaus_resize_handle_t::current_size, delta, dt_bauhaus_resize_handle_t::dragging, FALSE, dt_bauhaus_resize_handle_t::invert, dt_bauhaus_resize_handle_t::orientation, dt_bauhaus_resize_handle_t::resize, dt_bauhaus_resize_handle_t::start_root, dt_bauhaus_resize_handle_t::start_size, TRUE, and dt_bauhaus_resize_handle_t::user_data.
Referenced by dt_bauhaus_resize_handle_new().
Definition at line 3289 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, delta, dt_bauhaus_slider_get(), dt_bauhaus_slider_get_step(), dt_bauhaus_slider_set(), DT_BAUHAUS_WIDGET, dt_modifier_is(), ipow(), dt_bauhaus_data_t::slider, state, and value.
Referenced by _widget_key_press(), and _widget_scroll().
|
static |
Definition at line 869 of file bauhaus.c.
References _bh_slider_get_min_step(), d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_get(), dt_bauhaus_slider_set(), dt_bauhaus_data_t::slider, and value.
Referenced by dt_bauhaus_popup_button_press(), and dt_bauhaus_slider_button_press().
Definition at line 1796 of file bauhaus.c.
References _get_combobox_height(), _get_slider_height(), _margins_retrieve(), DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_SLIDER, and dt_bauhaus_widget_t::type.
Referenced by dt_bh_class_init().
|
static |
Translate in-place the cursor coordinates within the widget or popup according to padding and margin, so x = 0 is mapped to the starting point of the slider.
| x | Cursor coordinate x |
| y | Cursor coordinate y |
| w | Widget |
Definition at line 307 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, DT_BAUHAUS_SLIDER, dt_bauhaus_widget_t::margin, dt_bauhaus_t::marker_size, dt_bauhaus_widget_t::padding, dt_bauhaus_widget_t::type, and x.
Referenced by _bh_get_active_region().
|
static |
Definition at line 2965 of file bauhaus.c.
References _build_label(), _get_combobox_height(), _get_combobox_max_width(), _get_slider_height(), _margins_retrieve(), _widget_get_main_height(), _widget_get_main_width(), dt_bauhaus_widget_t::bauhaus, BH_ALIGN_LEFT, BH_ALIGN_MIDDLE, BH_ALIGN_RIGHT, dt_bauhaus_t::color_value, dt_bauhaus_t::color_value_insensitive, dt_bauhaus_t::color_value_text, dt_bauhaus_t::color_value_text_insensitive, dt_bauhaus_data_t::combobox, CPF_ACTIVE, d, dt_bauhaus_widget_t::data, default_color_assign(), DT_BAUHAUS_COMBOBOX, dt_bauhaus_draw_baseline(), dt_bauhaus_draw_indicator(), dt_bauhaus_draw_quad(), DT_BAUHAUS_SLIDER, dt_bauhaus_slider_get(), dt_bauhaus_slider_get_text(), DT_BAUHAUS_WIDGET, dt_cairo_image_surface_create(), dt_free, dt_bauhaus_combobox_data_t::entries_ellipsis, dt_bauhaus_widget_t::expand, INNER_PADDING, dt_bauhaus_combobox_entry_t::label, dt_bauhaus_widget_t::label, dt_bauhaus_t::line_height, dt_bauhaus_widget_t::margin, dt_bauhaus_t::marker_size, dt_bauhaus_widget_t::padding, dt_bauhaus_slider_data_t::pos, dt_bauhaus_widget_t::quad_paint_flags, set_color(), show_pango_text(), dt_bauhaus_widget_t::show_quad, dt_bauhaus_data_t::slider, state, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bh_class_init().
|
static |
Definition at line 1232 of file bauhaus.c.
References dt_gui_gtk_t::accels, dt_bauhaus_data_t::combobox, d, darktable, dt_bauhaus_widget_t::data, dt_accels_remove_accel(), DT_BAUHAUS_FOCUS_IDLE_SOURCE_KEY, DT_BAUHAUS_FOCUS_IDLE_TRIES_KEY, DT_BAUHAUS_SLIDER, DT_BAUHAUS_WIDGET, dt_free, dt_gui_throttle_cancel(), darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, IS_NULL_PTR, dt_bauhaus_widget_t::margin, dt_bauhaus_widget_t::padding, dt_bauhaus_data_t::slider, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bh_class_init().
|
static |
Get the height of the main Bauhaus widget area (slider scale or combobox), that is the box allocation minus padding and margins.
| w | Pointer to the structure holding the widget attributes, aka the dt_bauhaus_widget_t |
| widget | Actual GtkWidget to get allocation from. Can be NULL if it's the same as the Bauhaus widget. |
Definition at line 223 of file bauhaus.c.
References dt_bauhaus_widget_t::margin, and dt_bauhaus_widget_t::padding.
Referenced by _bh_get_active_region(), _widget_draw(), dt_bauhaus_popup_draw(), and dt_bauhaus_popup_motion_notify().
|
static |
Get the width of the main Bauhaus widget area (slider scale or combobox), accounting for quad space, padding and margins.
| w | Pointer to the structure holding the widget attributes, aka the dt_bauhaus_widget_t |
| widget | Actual GtkWidget to get allocation from. Can be NULL if it's the same as the Bauhaus widget. |
| total_width | Pointer where to write the total width of the widget, which is used in intermediate computations. This will spare another call to gtk_widget_get_allocation() if both are needed. Can be NULL. |
Definition at line 206 of file bauhaus.c.
References _widget_get_quad_width(), _widget_get_total_width(), dt_bauhaus_widget_t::bauhaus, DT_BAUHAUS_SLIDER, INNER_PADDING, dt_bauhaus_t::marker_size, and dt_bauhaus_widget_t::type.
Referenced by _bh_get_active_region(), _widget_draw(), dt_bauhaus_popup_draw(), dt_bauhaus_popup_motion_notify(), and dt_bauhaus_slider_button_release().
|
static |
Get the width of the quad without padding.
| w |
Definition at line 174 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::quad_width, and dt_bauhaus_widget_t::show_quad.
Referenced by _widget_get_main_width().
|
static |
Get the total width of the main Bauhaus widget area, accounting for padding and margins.
| w | Pointer to the structure holding the widget attributes, aka the dt_bauhaus_widget_t |
| widget | Actual GtkWidget to get allocation from. Can be NULL if it's the same as the Bauhaus widget. |
Definition at line 189 of file bauhaus.c.
References dt_bauhaus_widget_t::margin, and dt_bauhaus_widget_t::padding.
Referenced by _widget_get_main_width().
|
static |
Definition at line 3374 of file bauhaus.c.
References _slider_add_step(), DT_BAUHAUS_COMBOBOX, dt_bauhaus_show_popup(), DT_BAUHAUS_SLIDER, DT_BAUHAUS_WIDGET, dt_bauhaus_widget_press_quad(), dt_bauhaus_widget_release_quad(), dt_keys_mainpad_alternatives(), FALSE, key, dt_bauhaus_widget_t::quad_toggle, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bh_class_init().
|
static |
Definition at line 3308 of file bauhaus.c.
References _combobox_next_sensitive(), _slider_add_step(), dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::current, darktable, DT_BAUHAUS_SLIDER, DT_BAUHAUS_WIDGET, dt_gui_get_scroll_unit_deltas(), FALSE, darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_popup_scroll(), and dt_bh_class_init().
|
static |
Definition at line 647 of file bauhaus.c.
Referenced by _widget_draw(), and dt_bauhaus_popup_draw().
| void dt_bauhaus_cleanup | ( | dt_bauhaus_t * | bauhaus | ) |
Definition at line 1501 of file bauhaus.c.
Referenced by dt_cleanup().
Definition at line 2019 of file bauhaus.c.
References dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, and TRUE.
Referenced by _build_rawoverexposed_popover(), _build_softproof_gamut_popover(), _colorchecker_rebuild_patch_list(), _lib_export_styles_changed_callback(), _new_printer_callback(), _on_storage_list_changed(), _piwigo_refresh_albums(), _populate_layer_list(), _presets_show_edit_dialog(), _set_paper_size(), _set_printer(), _update_formats_combobox(), dt_bauhaus_combobox_from_params(), dt_guides_add_guide(), dt_iop_gui_init_raster(), dt_lut_viewer_new(), dt_masks_iop_combo_populate(), dt_masks_iop_update(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init_aspect(), gui_init_positions(), gui_update(), gui_update(), keystone_type_populate(), lens_set(), load_watermarks(), update_colorchecker_color_list(), update_colorchecker_list(), update_filepath_combobox(), and update_profile_list().
| void dt_bauhaus_combobox_add_aligned | ( | GtkWidget * | widget, |
| const char * | text, | ||
| dt_bauhaus_combobox_alignment_t | align | ||
| ) |
Definition at line 2036 of file bauhaus.c.
References dt_bauhaus_combobox_add_full(), and TRUE.
Referenced by _piwigo_refresh_albums().
| void dt_bauhaus_combobox_add_full | ( | GtkWidget * | widget, |
| const char * | text, | ||
| dt_bauhaus_combobox_alignment_t | align, | ||
| gpointer | data, | ||
| void(free_func)(void *data) | , | ||
| gboolean | sensitive | ||
| ) |
Definition at line 2041 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, IS_NULL_PTR, new_combobox_entry(), and dt_bauhaus_widget_t::type.
Referenced by _add_blendmode_combo(), _combo_as_collections(), _combo_as_view_toggle(), _combobox_new_from_list(), _raster_combo_populate(), dt_bauhaus_combobox_add(), dt_bauhaus_combobox_add_aligned(), dt_bauhaus_combobox_add_list(), dt_bauhaus_combobox_from_conf(), dt_bauhaus_combobox_from_params(), dt_iop_gui_init_blending_body(), gui_init(), and gui_update().
Definition at line 2013 of file bauhaus.c.
References dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, and TRUE.
Referenced by dt_bauhaus_combobox_new_full().
| void dt_bauhaus_combobox_add_populate_fct | ( | GtkWidget * | widget, |
| void(*)(GtkWidget *w, void *module) | fct | ||
| ) |
Definition at line 2005 of file bauhaus.c.
References DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, and IS_NULL_PTR.
Referenced by dt_iop_gui_init_raster().
Definition at line 2053 of file bauhaus.c.
References DT_BAUHAUS_COMBO_SEPARATOR_DEFAULT_HEIGHT_FACTOR, and dt_bauhaus_combobox_add_separator_with_height().
Referenced by update_colorchecker_list(), and update_profile_list().
| void dt_bauhaus_combobox_add_separator_with_height | ( | GtkWidget * | widget, |
| const float | row_height_factor | ||
| ) |
Definition at line 2058 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, IS_NULL_PTR, new_combobox_separator(), and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_combobox_add_separator().
| void dt_bauhaus_combobox_add_with_tooltip | ( | GtkWidget * | widget, |
| const char * | text, | ||
| const char * | tooltip | ||
| ) |
Definition at line 2024 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, DT_BAUHAUS_WIDGET, IS_NULL_PTR, new_combobox_entry(), tooltip, TRUE, and dt_bauhaus_widget_t::type.
Referenced by update_profile_list().
|
static |
Definition at line 3426 of file bauhaus.c.
References _bh_get_active_region(), dt_bauhaus_widget_t::bauhaus, BH_REGION_OUT, BH_REGION_QUAD, dt_bauhaus_data_t::combobox, d, darktable, dt_bauhaus_widget_t::data, dt_bauhaus_combobox_set(), dt_bauhaus_hide_popup(), dt_bauhaus_show_popup(), dt_bauhaus_widget_press_quad(), dt_gui_throttle_cancel(), FALSE, darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, dt_bauhaus_t::mouse_x, dt_bauhaus_t::mouse_y, dt_bauhaus_t::opentime, dt_bauhaus_widget_t::quad_toggle, TRUE, and width.
Referenced by dt_bauhaus_combobox_from_widget().
Definition at line 2192 of file bauhaus.c.
References dt_bauhaus_combobox_data_t::active, dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, IS_NULL_PTR, and dt_bauhaus_widget_t::type.
Referenced by _colorchecker_rebuild_patch_list(), _combo_as_collections(), _combo_as_full(), _combo_as_view_toggle(), _lib_export_styles_changed_callback(), _on_storage_list_changed(), _piwigo_refresh_albums(), _raster_combo_populate(), _set_printer(), _update_formats_combobox(), dt_iop_gui_update_blending(), dt_masks_iop_update(), gui_update(), gui_update(), keystone_type_populate(), refresh_watermarks(), update_colorchecker_color_list(), update_colorchecker_list(), update_filepath_combobox(), and update_profile_list().
Definition at line 2357 of file bauhaus.c.
References _combobox_data(), _combobox_public_to_entry_pos(), d, FALSE, and dt_bauhaus_combobox_entry_t::sensitive.
| GtkWidget * dt_bauhaus_combobox_from_conf | ( | dt_bauhaus_t * | bh, |
| dt_gui_module_t * | self, | ||
| const char * | confkey | ||
| ) |
Definition at line 1871 of file bauhaus.c.
References _combobox_conf_value_changed(), dt_bauhaus_combobox_add_full(), DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_widget_set_label(), dt_conf_get_string(), dt_confgen_get(), dt_confgen_get_label(), dt_confgen_get_tooltip(), dt_confgen_type(), dt_confgen_value_exists(), DT_ENUM, dt_free, dt_free_gpointer(), dt_util_str_to_glist(), DT_VALUES, tooltip, and TRUE.
Referenced by dt_iop_gui_init_masks().
| void dt_bauhaus_combobox_from_widget | ( | dt_bauhaus_t * | bh, |
| dt_bauhaus_widget_t * | w, | ||
| dt_gui_module_t * | self | ||
| ) |
Definition at line 1915 of file bauhaus.c.
References _bauhaus_widget_init(), dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, dt_bauhaus_combobox_button_press(), dt_gui_add_class(), dt_bauhaus_combobox_data_t::entries, free_combobox_entry(), and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_combobox_new().
| int dt_bauhaus_combobox_get | ( | GtkWidget * | widget | ) |
Definition at line 2350 of file bauhaus.c.
References _combobox_data(), _combobox_entry_pos_to_public(), and d.
Referenced by _attach_selected_layer_clicked(), _attached_view_combo_changed(), _auto_set_exposure(), _auto_set_illuminant(), _callback_bool(), _channelmixerrgb_mixer_mode_callback(), _color_mode_changed(), _colorchecker_rebuild_patch_list(), _darkroom_change_rendering_size(), _dimensions_type_changed(), _draw_callback(), _edit_preset_response(), _event_aspect_presets_changed(), _intent_callback(), _intent_changed(), _interpolator_callback(), _layer_selected(), _mixer_mode_callback(), _orientation_changed(), _overexposed_colorscheme_callback(), _overexposed_mode_callback(), _printer_intent_callback(), _printer_profile_changed(), _profile_changed(), _profile_changed(), _rawoverexposed_colorscheme_callback(), _rawoverexposed_mode_callback(), _render_surface(), _settings_colors_changed(), _settings_flip_changed(), _settings_flip_update(), _settings_guides_changed(), _settings_update_visibility(), _size_in_px_update(), _size_update_display(), _softproof_profile_callback(), _sort_by_changed(), _sort_combo_changed(), _spot_settings_changed_callback(), _spot_settings_changed_callback(), _statistic_changed(), _style_callback(), _style_changed(), _sync_params_from_gui(), _unit_changed(), _update_point_gui(), ask_user_confirmation(), aspect_changed(), aspect_presets_changed(), bit_depth_changed(), bit_depth_changed(), blue_callback(), bpp_combobox_changed(), bpp_combobox_changed(), bpp_toggle_callback(), btn_toggled(), checker_changed_callback(), checker_color_changed_callback(), color_mode_changed(), compress_combobox_changed(), compression_changed(), compression_combobox_changed(), compression_toggle_callback(), compression_type_changed(), cropmode_callback(), dt_masks_iop_value_changed_callback(), fitting_option_changed(), format_changed(), get_params(), get_params(), green_callback(), gui_changed(), gui_reset(), gui_reset(), gui_update(), hint_combobox_changed(), hvflip_callback(), icc_toggle_callback(), interpolator_callback(), interpolator_callback(), interpolator_callback(), keystone_type_changed(), mode_callback(), mode_toggle_callback(), modflags_changed(), onsave_action_toggle_callback(), optimize_changed_callback(), orientation_toggle_callback(), output_callback(), pages_toggle_callback(), patch_callback(), pixels2print(), position_h_changed(), position_v_changed(), preset_changed(), preset_tune_callback(), print2pixels(), profile_callback(), profile_changed(), red_callback(), rotate_toggle_callback(), set_format_by_name(), set_visible_widgets(), shortfile_combobox_changed(), size_toggle_callback(), target_callback(), target_geometry_changed(), tiling_changed(), watermark_callback(), and workicc_changed().
| gpointer dt_bauhaus_combobox_get_data | ( | GtkWidget * | widget | ) |
Definition at line 2182 of file bauhaus.c.
References _combobox_data(), d, dt_bauhaus_combobox_entry_t::data, IS_NULL_PTR, and dt_bauhaus_combobox_entry_t::is_separator.
Referenced by _blendop_blend_mode_callback(), _blendop_compositing_changed(), _blendop_masks_combine_callback(), _combo_get_active_collection(), _combobox_conf_value_changed(), and _raster_value_changed_callback().
| int dt_bauhaus_combobox_get_editable | ( | GtkWidget * | widget | ) |
Definition at line 2088 of file bauhaus.c.
References _combobox_data(), and d.
| const char * dt_bauhaus_combobox_get_entry | ( | GtkWidget * | widget, |
| int | pos | ||
| ) |
Definition at line 2202 of file bauhaus.c.
References _combobox_data(), _combobox_public_to_entry_pos(), d, FALSE, and dt_bauhaus_combobox_entry_t::label.
Referenced by _set_paper_size(), and color_list_visibility().
| const char * dt_bauhaus_combobox_get_text | ( | GtkWidget * | widget | ) |
Definition at line 2165 of file bauhaus.c.
References _combobox_data(), d, IS_NULL_PTR, dt_bauhaus_combobox_entry_t::is_separator, and dt_bauhaus_combobox_entry_t::label.
Referenced by _aspect_ratio_get(), _attach_selected_layer_clicked(), _event_aspect_presets_changed(), _finalize_store(), _format_changed(), _layer_selected(), _media_changed(), _menuitem_preferences(), _paper_changed(), _piwigo_account_changed(), _piwigo_album_changed(), _piwigo_refresh_albums(), _printer_changed(), _ratio_get_aspect(), _set_printer(), _softproof_profile_callback(), _storage_changed(), _style_callback(), _style_changed(), aspect_changed(), aspect_presets_changed(), button_clicked(), filepath_callback(), get_params(), get_params(), lens_comboentry_aperture_update(), lens_comboentry_distance_update(), lens_comboentry_focal_update(), position_h_changed(), position_v_changed(), and size_toggle_callback().
Definition at line 2121 of file bauhaus.c.
References DT_BAUHAUS_COMBOBOX_ALIGN_RIGHT, and dt_bauhaus_combobox_insert_full().
| void dt_bauhaus_combobox_insert_full | ( | GtkWidget * | widget, |
| const char * | text, | ||
| dt_bauhaus_combobox_alignment_t | align, | ||
| gpointer | data, | ||
| void(*)(void *) | free_func, | ||
| int | pos | ||
| ) |
Definition at line 2126 of file bauhaus.c.
References _combobox_public_to_entry_pos(), dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, new_combobox_entry(), TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_combobox_insert().
Definition at line 2141 of file bauhaus.c.
References DT_BAUHAUS_COMBO_SEPARATOR_DEFAULT_HEIGHT_FACTOR, and dt_bauhaus_combobox_insert_separator_with_height().
| void dt_bauhaus_combobox_insert_separator_with_height | ( | GtkWidget * | widget, |
| int | pos, | ||
| const float | row_height_factor | ||
| ) |
Definition at line 2146 of file bauhaus.c.
References _combobox_public_to_entry_pos(), dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, IS_NULL_PTR, new_combobox_separator(), TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_combobox_insert_separator().
| int dt_bauhaus_combobox_length | ( | GtkWidget * | widget | ) |
Definition at line 2158 of file bauhaus.c.
References _combobox_data(), _combobox_selectable_count(), and d.
Referenced by _colorchecker_rebuild_patch_list(), _populate_layer_list(), _set_paper_size(), _sync_layer_controls(), aspect_changed(), dt_masks_iop_combo_populate(), gui_update(), gui_update(), position_h_changed(), and position_v_changed().
| GtkWidget * dt_bauhaus_combobox_new | ( | dt_bauhaus_t * | bh, |
| dt_gui_module_t * | self | ||
| ) |
Definition at line 1845 of file bauhaus.c.
References dt_bauhaus_combobox_from_widget(), DT_BAUHAUS_WIDGET, and DT_BAUHAUS_WIDGET_TYPE.
Referenced by _build_rawoverexposed_popover(), _build_softproof_gamut_popover(), _combobox_new_from_list(), _presets_show_edit_dialog(), dt_bauhaus_combobox_from_conf(), dt_bauhaus_combobox_from_params(), dt_bauhaus_combobox_new_full(), dt_iop_gui_init_blending_body(), dt_iop_gui_init_raster(), dt_lut_viewer_new(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), and lens_set().
| GtkWidget * dt_bauhaus_combobox_new_full | ( | dt_bauhaus_t * | bh, |
| dt_gui_module_t * | self, | ||
| const char * | label, | ||
| const char * | tip, | ||
| int | pos, | ||
| GtkCallback | callback, | ||
| gpointer | data, | ||
| const char ** | texts | ||
| ) |
Definition at line 1852 of file bauhaus.c.
References dt_bauhaus_widget_t::data, dt_bauhaus_combobox_add_list(), dt_bauhaus_combobox_new(), dt_bauhaus_combobox_set(), dt_bauhaus_widget_set_label(), and dt_bauhaus_widget_t::label.
Referenced by dt_guides_popover(), gui_init(), and gui_init().
Definition at line 2104 of file bauhaus.c.
References _combobox_data(), _combobox_public_to_entry_pos(), d, FALSE, and IS_NULL_PTR.
Referenced by _populate_layer_list(), dt_masks_iop_combo_populate(), gui_init(), and gui_update().
Definition at line 2304 of file bauhaus.c.
References _combobox_data(), _combobox_public_to_entry_pos(), _combobox_selectable_count(), _combobox_set(), d, and FALSE.
Referenced by _area_button_press_callback(), _area_button_press_callback(), _auto_set_illuminant(), _build_rawoverexposed_popover(), _build_softproof_gamut_popover(), _channel_tabs_switch_callback(), _channelmixerrgb_mixer_mode_callback(), _combo_box_set_active_text(), _configure_tab(), _develop_ui_pipe_finished_callback(), _enter_edit_mode(), _event_aspect_presets_changed(), _guides_add_guide(), _lib_export_styles_changed_callback(), _mixer_mode_callback(), _new_printer_callback(), _on_storage_list_changed(), _piwigo_refresh_albums(), _populate_layer_list(), _presets_show_edit_dialog(), _raster_combo_populate(), _set_orientation(), _set_paper_size(), _set_printer(), _settings_flip_update(), _update_layout(), _update_point_gui(), aspect_presets_changed(), btn_toggled(), checker_button_press(), color_picker_apply(), commit_profile_callback(), do_crop(), dt_bauhaus_combobox_button_press(), dt_bauhaus_combobox_from_conf(), dt_bauhaus_combobox_new_full(), dt_bauhaus_popup_button_press(), dt_bauhaus_update_module(), dt_guides_update_popover_values(), dt_iop_tonecurve_button_press(), dt_lut_viewer_new(), dt_masks_iop_update(), gui_changed(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_reset(), gui_reset(), gui_reset(), gui_reset(), gui_reset(), gui_update(), gui_update(), gui_update(), keystone_type_populate(), rt_load_shape_algo_in_gui(), set_format_by_name(), set_params(), set_params(), set_params(), set_storage_by_name(), and temp_tint_callback().
Definition at line 1552 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, dt_bauhaus_combobox_data_t::defpos, and DT_BAUHAUS_WIDGET.
Referenced by gui_init(), gui_init(), gui_update(), and gui_update().
Definition at line 2077 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBO_MAX_TEXT, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, dt_bauhaus_combobox_data_t::editable, IS_NULL_PTR, and dt_bauhaus_widget_t::type.
Referenced by gui_init(), gui_init(), and lens_set().
Definition at line 2067 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, dt_bauhaus_combobox_data_t::entries_ellipsis, IS_NULL_PTR, and dt_bauhaus_widget_t::type.
Referenced by _build_softproof_gamut_popover(), and gui_init().
| gboolean dt_bauhaus_combobox_set_from_text | ( | GtkWidget * | widget, |
| const char * | text | ||
| ) |
Definition at line 2314 of file bauhaus.c.
References _combobox_data(), _combobox_set(), d, FALSE, i, IS_NULL_PTR, dt_bauhaus_combobox_entry_t::is_separator, dt_bauhaus_combobox_entry_t::label, and TRUE.
Referenced by _set_printer(), gui_init(), gui_reset(), set_format_by_name(), set_params(), set_storage_by_name(), and update_filepath_combobox().
| gboolean dt_bauhaus_combobox_set_from_value | ( | GtkWidget * | widget, |
| int | value | ||
| ) |
Definition at line 2333 of file bauhaus.c.
References _combobox_data(), _combobox_set(), d, dt_bauhaus_combobox_entry_t::data, FALSE, i, dt_bauhaus_combobox_entry_t::is_separator, TRUE, and value.
Referenced by _combo_set_active_collection(), dt_bauhaus_update_module(), dt_iop_gui_update_blending(), gui_changed(), and gui_update().
| void dt_bauhaus_combobox_set_selected_text_align | ( | GtkWidget * | widget, |
| const dt_bauhaus_combobox_alignment_t | text_align | ||
| ) |
Definition at line 2095 of file bauhaus.c.
References dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_WIDGET, IS_NULL_PTR, dt_bauhaus_combobox_data_t::text_align, and dt_bauhaus_widget_t::type.
Referenced by _combo_as_collections(), _combo_as_full(), _combo_as_view_toggle(), and gui_init().
Definition at line 2212 of file bauhaus.c.
References _combobox_data(), d, DT_BAUHAUS_COMBO_MAX_TEXT, and IS_NULL_PTR.
Referenced by _event_aspect_presets_changed(), aspect_presets_changed(), and gui_update().
Definition at line 3957 of file bauhaus.c.
References dt_bauhaus_widget_t::no_accels, and TRUE.
Referenced by _combobox_new_from_list(), dt_iop_gui_init_blending_body(), and gui_init().
Prevent this Bauhaus widget from being tracked in the parent module refresh lists.
Definition at line 3963 of file bauhaus.c.
References dt_bauhaus_widget_t::no_module_list, and TRUE.
Referenced by _combobox_new_from_list(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), and dt_iop_gui_init_raster().
|
static |
Draw the slider baseline, aka the backgronud bar.
| w | Widget |
| cr | Cairo object |
| width | The width of the actual slider baseline (corrected for padding, margin and quad width if needed) |
Definition at line 2484 of file bauhaus.c.
References dt_bauhaus_t::baseline_size, dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::border_width, dt_bauhaus_t::color_bg, dt_bauhaus_t::color_border, dt_bauhaus_t::color_fg, dt_bauhaus_t::color_value, d, dt_bauhaus_widget_t::data, delta, dt_bauhaus_slider_data_t::grad_cnt, INNER_PADDING, k, dt_bauhaus_t::line_height, M_PI, dt_bauhaus_t::marker_size, position(), set_color(), dt_bauhaus_data_t::slider, and width.
Referenced by _widget_draw(), and dt_bauhaus_popup_draw().
|
static |
Definition at line 2412 of file bauhaus.c.
References _get_indicator_y_position(), dt_bauhaus_t::baseline_size, dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::color_fg, d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_data_t::grad_cnt, M_PI, dt_bauhaus_t::marker_size, set_color(), size, and dt_bauhaus_data_t::slider.
Referenced by _widget_draw(), and dt_bauhaus_popup_draw().
|
static |
Definition at line 2446 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, DT_BAUHAUS_COMBOBOX, dt_bauhaus_t::line_height, dt_bauhaus_widget_t::quad_paint, dt_bauhaus_widget_t::quad_paint_data, dt_bauhaus_widget_t::quad_paint_flags, dt_bauhaus_t::quad_width, r, dt_bauhaus_widget_t::show_quad, dt_bauhaus_widget_t::type, and x.
Referenced by _widget_draw().
| gboolean dt_bauhaus_focus_callback | ( | GtkWidget * | widget, |
| GtkDirectionType | direction, | ||
| gpointer | data | ||
| ) |
Definition at line 530 of file bauhaus.c.
Referenced by _bauhaus_widget_init().
| gboolean dt_bauhaus_focus_in_callback | ( | GtkWidget * | widget, |
| GdkEventFocus | event, | ||
| gpointer | user_data | ||
| ) |
Definition at line 511 of file bauhaus.c.
References darktable, FALSE, darktable_t::gui, and dt_gui_gtk_t::has_scroll_focus.
Referenced by _bauhaus_widget_init().
| gboolean dt_bauhaus_focus_out_callback | ( | GtkWidget * | widget, |
| GdkEventFocus | event, | ||
| gpointer | user_data | ||
| ) |
| void dt_bauhaus_hide_popup | ( | dt_bauhaus_t * | bh | ) |
Definition at line 3175 of file bauhaus.c.
References dt_bauhaus_t::current, darktable, darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, dt_bauhaus_t::popup_area, and dt_bauhaus_t::popup_window.
Referenced by dt_bauhaus_combobox_button_press(), dt_bauhaus_popup_button_press(), dt_bauhaus_popup_button_release(), dt_bauhaus_popup_key_press(), and dt_bauhaus_show_popup().
| dt_bauhaus_t * dt_bauhaus_init | ( | ) |
Definition at line 1383 of file bauhaus.c.
References dt_gui_gtk_t::accels, dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::current, dt_accels_t::darkroom_accels, darktable, dt_accels_build_path(), dt_accels_new_virtual_shortcut(), dt_bauhaus_load_theme(), dt_bauhaus_popup_button_press(), dt_bauhaus_popup_button_release(), dt_bauhaus_popup_draw(), dt_bauhaus_popup_key_press(), dt_bauhaus_popup_leave_notify(), dt_bauhaus_popup_motion_notify(), dt_bauhaus_popup_scroll(), dt_bauhaus_window_show(), dt_free, dt_osx_disallow_fullscreen(), dt_ui_main_window(), FALSE, darktable_t::gui, dt_bauhaus_t::keys_cnt, dt_bauhaus_t::pango_font_desc, dt_bauhaus_t::popup_area, dt_bauhaus_t::popup_window, dt_gui_gtk_t::scroll_mask, TRUE, dt_gui_gtk_t::ui, and window.
Referenced by dt_init().
| void dt_bauhaus_load_theme | ( | dt_bauhaus_t * | bauhaus | ) |
Definition at line 1290 of file bauhaus.c.
References dt_bauhaus_t::baseline_size, dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::border_width, dt_bauhaus_t::color_bg, dt_bauhaus_t::color_border, dt_bauhaus_t::color_fg, dt_bauhaus_t::color_fg_insensitive, dt_bauhaus_t::color_fill, dt_bauhaus_t::color_value, dt_bauhaus_t::color_value_insensitive, dt_bauhaus_t::color_value_text, dt_bauhaus_t::color_value_text_insensitive, dt_bauhaus_t::colorlabels, darktable, DT_COLORLABELS_BLUE, DT_COLORLABELS_GREEN, DT_COLORLABELS_PURPLE, DT_COLORLABELS_RED, DT_COLORLABELS_YELLOW, dt_gui_cairo_set_font_options(), dt_ui_main_window(), dt_bauhaus_t::graph_bg, dt_bauhaus_t::graph_border, dt_bauhaus_t::graph_colors, dt_bauhaus_t::graph_exterior, dt_bauhaus_t::graph_fg, dt_bauhaus_t::graph_fg_active, dt_bauhaus_t::graph_grid, dt_bauhaus_t::graph_overlay, dt_bauhaus_t::graph_scope_restricted, darktable_t::gui, dt_bauhaus_t::indicator_border, dt_bauhaus_t::inset_histogram, dt_bauhaus_t::line_height, dt_bauhaus_t::marker_size, dt_bauhaus_t::pango_font_desc, dt_bauhaus_t::quad_width, and dt_gui_gtk_t::ui.
Referenced by dpi_scaling_changed_callback(), dt_bauhaus_init(), reload_ui_last_theme(), and theme_callback().
|
static |
Definition at line 983 of file bauhaus.c.
References _bh_combobox_get_hovered_entry(), _popup_coordinates(), _slider_zoom_range(), BH_REGION_OUT, dt_bauhaus_data_t::combobox, dt_bauhaus_t::current, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, dt_bauhaus_combobox_set(), dt_bauhaus_hide_popup(), DT_BAUHAUS_SLIDER, dt_bauhaus_slider_set_normalized(), dt_bauhaus_widget_accept(), dt_bauhaus_widget_reject(), dt_bauhaus_t::end_mouse_x, dt_bauhaus_t::end_mouse_y, FALSE, dt_bauhaus_t::hiding, dt_bauhaus_slider_data_t::is_dragging, dt_bauhaus_t::mouse_x, dt_bauhaus_t::mouse_y, dt_bauhaus_t::opentime, dt_bauhaus_data_t::slider, TRUE, dt_bauhaus_widget_t::type, and value.
Referenced by dt_bauhaus_init().
|
static |
Definition at line 962 of file bauhaus.c.
References dt_bauhaus_t::current, DT_BAUHAUS_COMBOBOX, dt_bauhaus_hide_popup(), dt_bauhaus_t::hiding, dt_bauhaus_t::opentime, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_init().
|
static |
Definition at line 2685 of file bauhaus.c.
References _bh_get_combobox_entry_height(), _bh_get_row_height(), _bh_slider_get_scale(), _build_label(), _get_slider_bar_height(), _widget_get_main_height(), _widget_get_main_width(), dt_bauhaus_widget_t::bauhaus, BH_ALIGN_LEFT, BH_ALIGN_MIDDLE, BH_ALIGN_RIGHT, dt_bauhaus_t::color_value_text, dt_bauhaus_data_t::combobox, dt_bauhaus_t::current, d, dt_bauhaus_widget_t::data, default_color_assign(), draw_slider_line(), DT_BAUHAUS_COMBOBOX, dt_bauhaus_draw_baseline(), dt_bauhaus_draw_indicator(), DT_BAUHAUS_SLIDER, dt_bauhaus_slider_get(), dt_bauhaus_slider_get_text(), dt_cairo_image_surface_create(), dt_free, INNER_PADDING, dt_bauhaus_combobox_entry_t::is_separator, k, dt_bauhaus_t::keys, dt_bauhaus_t::keys_cnt, dt_bauhaus_combobox_entry_t::label, dt_bauhaus_t::line_height, dt_bauhaus_t::marker_size, dt_bauhaus_widget_t::padding, dt_bauhaus_combobox_entry_t::sensitive, set_color(), show_pango_text(), dt_bauhaus_data_t::slider, state, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_init().
|
static |
Definition at line 3719 of file bauhaus.c.
References _combobox_next_sensitive(), dt_bauhaus_data_t::combobox, dt_bauhaus_t::current, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, dt_bauhaus_hide_popup(), DT_BAUHAUS_SLIDER, dt_bauhaus_slider_get_val(), dt_bauhaus_slider_set_val(), dt_bauhaus_widget_accept(), dt_calculator_solve(), dt_keys_mainpad_alternatives(), dt_bauhaus_combobox_data_t::editable, dt_bauhaus_t::end_mouse_y, FALSE, key, dt_bauhaus_t::keys, dt_bauhaus_t::keys_cnt, dt_bauhaus_t::popup_area, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_init().
|
static |
|
static |
Definition at line 907 of file bauhaus.c.
References _bh_combobox_get_hovered_entry(), _bh_slider_get_scale(), _get_slider_bar_height(), _popup_coordinates(), _widget_get_main_height(), _widget_get_main_width(), BH_REGION_OUT, dt_bauhaus_t::current, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, dt_bauhaus_slider_set_normalized(), FALSE, get_slider_line_offset(), dt_bauhaus_t::mouse_x, dt_bauhaus_t::mouse_y, dt_bauhaus_t::popup_area, dt_bauhaus_data_t::slider, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_init().
|
static |
Definition at line 899 of file bauhaus.c.
References _widget_scroll(), dt_bauhaus_t::current, darktable, darktable_t::gui, and dt_gui_gtk_t::has_scroll_focus.
Referenced by dt_bauhaus_init().
| GtkWidget * dt_bauhaus_resize_handle_new | ( | GtkOrientation | orientation, |
| gboolean | invert, | ||
| const char * | tooltip, | ||
| dt_bauhaus_resize_handle_get_size_f | get_size, | ||
| dt_bauhaus_resize_handle_resize_f | resize, | ||
| gpointer | user_data | ||
| ) |
Create a themed handle widget driving one-dimensional resize gestures.
The handle owns the GTK event bookkeeping: hover state, cursor, grab lifetime, drawing and drag delta computation. The caller owns the resized target and keeps that ownership visible through get_size and resize. During pointer motion resize receives finished == FALSE; on button release it receives finished == TRUE so callers can persist the final size without writing settings at every motion sample.
| invert | When FALSE the target grows as the pointer moves in the positive axis direction (down for vertical, right for horizontal) — the natural case for a handle sitting below/at the right of its target. Set TRUE when the target grows in the opposite direction, e.g. a right panel that grows as it is dragged left, or a bottom panel that grows as it is dragged up. |
The grip is meant to be added as an overlay child on the resized widget. It pins itself to the correct edge (from orientation and invert) and tags itself with an edge CSS class (.resize-handle-{top,bottom,left,right}); its thickness and centering live in the stylesheet.
Definition at line 1180 of file bauhaus.c.
References _resize_handle_button(), _resize_handle_cursor(), _resize_handle_motion(), DT_PIXEL_APPLY_DPI, dt_bauhaus_resize_handle_t::get_size, get_size(), dt_bauhaus_resize_handle_t::invert, IS_NULL_PTR, dt_bauhaus_resize_handle_t::orientation, dt_bauhaus_resize_handle_t::resize, tooltip, and dt_bauhaus_resize_handle_t::user_data.
Referenced by _ui_init_panel_bottom(), _ui_init_panel_left(), _ui_init_panel_right(), dt_ui_resizable_drawing_area(), and dt_ui_scroll_wrap().
Tell the widget to use the globally-defined default callback in the bauhaus structure This callback needs to be defined first, of course.
| widget |
Definition at line 3969 of file bauhaus.c.
References TRUE, and dt_bauhaus_widget_t::use_default_callback.
Referenced by _combobox_new_from_list(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), and dt_iop_gui_init_raster().
Definition at line 3191 of file bauhaus.c.
References _get_combobox_popup_height(), _margins_retrieve(), dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::change_active, dt_bauhaus_t::current, d, darktable, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, dt_bauhaus_hide_popup(), DT_BAUHAUS_SLIDER, DT_BAUHAUS_WIDGET, dt_ui_main_window(), FALSE, darktable_t::gui, height, dt_bauhaus_t::hiding, IS_NULL_PTR, dt_bauhaus_t::keys, dt_bauhaus_t::keys_cnt, dt_bauhaus_widget_t::margin, MAX, dt_bauhaus_t::mouse_line_distance, dt_bauhaus_slider_data_t::oldpos, dt_bauhaus_t::popup_area, dt_bauhaus_t::popup_window, dt_bauhaus_data_t::slider, dt_bauhaus_widget_t::type, dt_gui_gtk_t::ui, width, and window.
Referenced by _widget_key_press(), dt_bauhaus_combobox_button_press(), and dt_bauhaus_slider_button_press().
|
static |
Definition at line 3843 of file bauhaus.c.
References _bh_get_active_region(), _slider_zoom_range(), dt_bauhaus_widget_t::bauhaus, BH_REGION_MAIN, BH_REGION_OUT, BH_REGION_QUAD, d, darktable, dt_bauhaus_widget_t::data, dt_bauhaus_show_popup(), dt_bauhaus_slider_reset(), dt_bauhaus_slider_set_normalized(), dt_bauhaus_widget_press_quad(), FALSE, darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, dt_bauhaus_t::line_height, dt_bauhaus_t::mouse_x, dt_bauhaus_t::mouse_y, dt_bauhaus_widget_t::quad_toggle, dt_bauhaus_data_t::slider, and TRUE.
Referenced by dt_bauhaus_slider_from_widget().
|
static |
Definition at line 3912 of file bauhaus.c.
References _widget_get_main_width(), dt_bauhaus_widget_t::bauhaus, d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_set_normalized(), dt_bauhaus_widget_release_quad(), dt_gui_throttle_cancel(), FALSE, dt_bauhaus_t::mouse_x, dt_bauhaus_data_t::slider, and TRUE.
Referenced by dt_bauhaus_slider_from_widget().
Definition at line 2367 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_SLIDER, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::grad_cnt, dt_bauhaus_data_t::slider, and dt_bauhaus_widget_t::type.
Referenced by _refresh_slider_gradients(), color_rgb_sliders(), color_temptint_sliders(), dt_iop_channelmixer_shared_paint_primaries_sliders(), dt_iop_channelmixer_shared_paint_row_sliders(), dt_iop_channelmixer_shared_paint_simple_sliders(), and dt_iop_channelmixer_shared_paint_temperature_slider().
| GtkWidget * dt_bauhaus_slider_from_widget | ( | dt_bauhaus_t * | bh, |
| dt_bauhaus_widget_t * | w, | ||
| dt_gui_module_t * | self, | ||
| float | min, | ||
| float | max, | ||
| float | step, | ||
| float | defval, | ||
| int | digits, | ||
| int | feedback | ||
| ) |
Definition at line 1810 of file bauhaus.c.
References _bauhaus_widget_init(), d, dt_bauhaus_widget_t::data, DT_BAUHAUS_SLIDER, dt_bauhaus_slider_button_press(), dt_bauhaus_slider_button_release(), dt_bauhaus_slider_motion_notify(), dt_gui_add_class(), max, dt_bauhaus_slider_data_t::min, min, dt_bauhaus_data_t::slider, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_slider_new_with_range_and_feedback().
| float dt_bauhaus_slider_get | ( | GtkWidget * | widget | ) |
Definition at line 3486 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::min, and dt_bauhaus_data_t::slider.
Referenced by _auto_set_exposure(), _auto_set_illuminant(), _blendop_blendif_boost_factor_callback(), _blendop_blendif_details_callback(), _button_press_callback(), _display_borders_callback(), _display_brightness_callback(), _draw_callback(), _draw_samples(), _general_callback(), _grid_horizontal_changed(), _grid_subdiv_changed(), _grid_vertical_changed(), _masks_gui_interaction_slider_changed(), _overexposed_lower_callback(), _overexposed_upper_callback(), _rawoverexposed_threshold_callback(), _render_surface(), _settings_contrast_changed(), _slider_add_step(), _slider_zoom_range(), _spot_settings_changed_callback(), _spot_settings_changed_callback(), _sync_params_from_gui(), _target_color_draw(), _widget_draw(), balance_callback(), black_point_source_callback(), black_point_target_callback(), blue_callback(), button_released(), color_rgb_sliders(), color_temptint_sliders(), compress_level_changed(), compression_level_changed(), contrast_callback(), display_mask_checker_size_callback(), dt_bauhaus_popup_draw(), dt_bauhaus_slider_get_val(), dt_bauhaus_slider_set_hard_max(), dt_bauhaus_slider_set_hard_min(), dt_bauhaus_slider_set_soft_max(), dt_bauhaus_slider_set_soft_min(), dt_bauhaus_value_changed_default_callback(), dt_iop_channelmixer_shared_primaries_from_sliders(), dt_iop_channelmixer_shared_simple_from_sliders(), extra_callback(), global_saturation_callback(), green_callback(), grey_point_source_callback(), grey_point_target_callback(), gui_changed(), gui_update(), illum_xy_callback(), latitude_stops_callback(), logbase_callback(), logbase_callback(), mix_callback(), output_power_callback(), paint_hue(), quality_changed(), quality_changed(), quality_changed(), quality_changed(), red_callback(), rt_mask_opacity_callback(), safety_changed_callback(), saturation_callback(), security_threshold_callback(), smoothing_callback(), target_a_callback(), target_b_callback(), target_C_callback(), target_color_draw(), target_L_callback(), temp_tint_callback(), toe_shoulder_callback(), white_point_source_callback(), and white_point_target_callback().
| int dt_bauhaus_slider_get_digits | ( | GtkWidget * | widget | ) |
Definition at line 3556 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_data_t::digits, DT_BAUHAUS_WIDGET, and dt_bauhaus_data_t::slider.
| float dt_bauhaus_slider_get_hard_max | ( | GtkWidget * | widget | ) |
Definition at line 1602 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::hard_max, and dt_bauhaus_data_t::slider.
Referenced by _paint_hue(), color_rgb_sliders(), dt_iop_channelmixer_shared_paint_primaries_sliders(), and dt_iop_channelmixer_shared_paint_row_sliders().
| float dt_bauhaus_slider_get_hard_min | ( | GtkWidget * | widget | ) |
Definition at line 1577 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::hard_min, and dt_bauhaus_data_t::slider.
Referenced by _paint_hue(), dt_iop_channelmixer_shared_paint_primaries_sliders(), and dt_iop_channelmixer_shared_paint_row_sliders().
| float dt_bauhaus_slider_get_soft_max | ( | GtkWidget * | widget | ) |
Definition at line 1636 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_data_t::slider, and dt_bauhaus_slider_data_t::soft_max.
| float dt_bauhaus_slider_get_soft_min | ( | GtkWidget * | widget | ) |
Definition at line 1619 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_data_t::slider, and dt_bauhaus_slider_data_t::soft_min.
| float dt_bauhaus_slider_get_step | ( | GtkWidget * | widget | ) |
Definition at line 3570 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, max, min, dt_bauhaus_data_t::slider, dt_bauhaus_slider_data_t::step, and top.
Referenced by _slider_add_step().
| char * dt_bauhaus_slider_get_text | ( | GtkWidget * | w, |
| float | val | ||
| ) |
Definition at line 3500 of file bauhaus.c.
References d, and DT_BAUHAUS_WIDGET.
Referenced by _widget_draw(), and dt_bauhaus_popup_draw().
| float dt_bauhaus_slider_get_val | ( | GtkWidget * | widget | ) |
Definition at line 3494 of file bauhaus.c.
References d, dt_bauhaus_slider_get(), DT_BAUHAUS_WIDGET, and dt_bauhaus_slider_data_t::factor.
Referenced by dt_bauhaus_popup_key_press().
|
static |
Definition at line 3936 of file bauhaus.c.
References _bh_get_active_region(), dt_bauhaus_widget_t::bauhaus, BH_REGION_OUT, d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_set_normalized(), dt_bauhaus_t::mouse_x, dt_bauhaus_t::mouse_y, dt_bauhaus_data_t::slider, and TRUE.
Referenced by dt_bauhaus_slider_from_widget().
| GtkWidget * dt_bauhaus_slider_new | ( | dt_bauhaus_t * | bh, |
| dt_gui_module_t * | self | ||
| ) |
Definition at line 1778 of file bauhaus.c.
References dt_bauhaus_slider_new_with_range().
Referenced by dt_bauhaus_slider_from_params().
| GtkWidget * dt_bauhaus_slider_new_with_range | ( | dt_bauhaus_t * | bh, |
| dt_gui_module_t * | self, | ||
| float | min, | ||
| float | max, | ||
| float | step, | ||
| float | defval, | ||
| int | digits | ||
| ) |
Definition at line 1783 of file bauhaus.c.
References dt_bauhaus_slider_new_with_range_and_feedback(), max, and min.
Referenced by _build_complete_ui(), _build_display_popover(), _build_overexposed_popover(), _build_primaries_ui(), _build_rawoverexposed_popover(), _build_simple_ui(), _guides_gui_grid(), _masks_gui_add_interaction_slider(), dt_bauhaus_slider_new(), dt_guides_popover(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), dt_lut_viewer_new(), gui_init(), gui_init(), gui_init(), and gui_init().
| GtkWidget * dt_bauhaus_slider_new_with_range_and_feedback | ( | dt_bauhaus_t * | bh, |
| dt_gui_module_t * | self, | ||
| float | min, | ||
| float | max, | ||
| float | step, | ||
| float | defval, | ||
| int | digits, | ||
| int | feedback | ||
| ) |
Definition at line 1789 of file bauhaus.c.
References dt_bauhaus_slider_from_widget(), DT_BAUHAUS_WIDGET, DT_BAUHAUS_WIDGET_TYPE, max, and min.
Referenced by dt_bauhaus_slider_from_params(), dt_bauhaus_slider_new_with_range(), and gui_init().
Definition at line 3603 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_set(), DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::min, and dt_bauhaus_data_t::slider.
Referenced by _button_press_callback(), and dt_bauhaus_slider_button_press().
Definition at line 3537 of file bauhaus.c.
References _dt_bauhaus_slider_set_with_raise(), and TRUE.
Referenced by _auto_set_exposure(), _auto_set_illuminant(), _blendop_blend_mode_callback(), _blendop_blendif_update_tab(), _build_display_popover(), _build_overexposed_popover(), _build_rawoverexposed_popover(), _channelmixerrgb_mixer_mode_callback(), _channelmixerrgb_primaries_slider_callback(), _channelmixerrgb_simple_slider_callback(), _colorchecker_update_sliders(), _develop_ui_pipe_finished_callback(), _exposure_set_black(), _exposure_set_white(), _guides_gui_grid(), _masks_gui_add_interaction_slider(), _motion_notify_callback(), _set_point_complete_widgets(), _slider_add_step(), _slider_zoom_range(), apply_auto_black(), apply_auto_black(), apply_auto_black(), apply_auto_black(), apply_auto_Dmax(), apply_auto_Dmin(), apply_auto_dynamic_range(), apply_auto_exposure(), apply_auto_grey(), apply_auto_grey(), apply_auto_grey(), apply_auto_offset(), apply_auto_WB_high(), apply_auto_WB_low(), apply_auto_white_point_source(), apply_auto_white_point_source(), apply_autocolor(), apply_autogrey(), apply_autoluma(), apply_autotune(), apply_autotune(), apply_autotune(), apply_gain_auto(), apply_gain_neutralize(), apply_gamma_auto(), apply_gamma_neutralize(), apply_lift_auto(), apply_lift_neutralize(), aspect_changed(), autoscale_pressed(), button_released(), color_picker_apply(), colorpick_callback(), commit_profile_callback(), Dmin_picker_callback(), do_fit(), dt_bauhaus_slider_reset(), dt_bauhaus_slider_set_hard_max(), dt_bauhaus_slider_set_hard_min(), dt_bauhaus_slider_set_val(), dt_bauhaus_update_module(), dt_guides_popover(), dt_guides_update_popover_values(), dt_iop_channelmixer_shared_primaries_to_sliders(), dt_iop_channelmixer_shared_simple_to_sliders(), dt_iop_colorcorrection_scrolled(), dt_iop_gui_update_blending(), extra_callback(), filmic_gui_sync_toe_shoulder(), grey_point_source_callback(), gui_changed(), gui_init(), gui_init(), gui_post_expose(), gui_reset(), gui_reset(), gui_update(), gui_update(), gui_update(), gui_update(), illum_xy_callback(), lens_menu_select(), mouse_moved(), output_callback(), position_h_changed(), position_v_changed(), preset_tune_callback(), reset_mix(), rt_load_shape_algo_in_gui(), sanitize_latitude(), scrolled(), security_threshold_callback(), set_HSL_sliders(), set_params(), set_RGB_sliders(), target_a_callback(), target_b_callback(), target_C_callback(), temp_tint_callback(), update_exposure_sliders(), Wb_high_norm_callback(), WB_high_picker_callback(), Wb_low_norm_callback(), and WB_low_picker_callback().
Definition at line 1643 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_data_t::defpos, DT_BAUHAUS_WIDGET, and dt_bauhaus_data_t::slider.
Referenced by _signal_profile_user_changed(), gui_init(), gui_init(), gui_init(), gui_update(), gui_update(), and output_callback().
Definition at line 3549 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_data_t::digits, DT_BAUHAUS_WIDGET, and dt_bauhaus_data_t::slider.
Referenced by _masks_gui_add_interaction_slider(), gui_init(), and gui_init().
Definition at line 3626 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::factor, factor, and dt_bauhaus_data_t::slider.
Referenced by _build_primaries_ui(), _build_simple_ui(), _masks_gui_add_interaction_slider(), gui_init(), and gui_init().
Definition at line 3595 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::fill_feedback, and dt_bauhaus_data_t::slider.
Referenced by color_rgb_sliders(), color_temptint_sliders(), gui_init(), gui_init(), and gui_init_section().
Definition at line 3613 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::format, and dt_bauhaus_data_t::slider.
Referenced by _build_display_popover(), _build_overexposed_popover(), _build_primaries_ui(), _build_simple_ui(), _masks_gui_add_interaction_slider(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), dt_lut_viewer_new(), gui_init(), gui_init(), gui_init(), and gui_init().
Definition at line 1584 of file bauhaus.c.
References _bh_round_to_n_digits(), d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_get(), dt_bauhaus_slider_set(), dt_bauhaus_slider_set_hard_min(), DT_BAUHAUS_WIDGET, MIN, and dt_bauhaus_data_t::slider.
Referenced by _guides_gui_grid(), dt_bauhaus_slider_set_hard_min(), gui_init(), and gui_init().
Definition at line 1560 of file bauhaus.c.
References _bh_round_to_n_digits(), d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_get(), dt_bauhaus_slider_set(), dt_bauhaus_slider_set_hard_max(), DT_BAUHAUS_WIDGET, MAX, and dt_bauhaus_data_t::slider.
Referenced by dt_bauhaus_slider_set_hard_max(), and gui_init().
|
static |
Set the value of a slider as a ratio of the GUI slider width.
| w | Bauhaus widget |
| pos | Relative position over the slider bar (ratio between 0 and 1) |
| raise | Set to FALSE to redraw slider position without committing the actual value to pipeline nor sending the value-changed event (e.g. in motion-notify events, while dragging). Set to TRUE when the change is finished (e.g. in button-pressed events). |
| timeout | TRUE to add a timeout preventing intermediate setting steps (e.g. while scrolling) to emit value-changed signal and commit to pipeline too often. FALSE to set immediately, when there is no ambiguity on the final setting (e.g. at init time and on click). Doesn't change anything if raise is FALSE. |
Definition at line 3681 of file bauhaus.c.
References _delayed_slider_commit(), dt_bauhaus_widget_t::bauhaus, dt_bauhaus_t::current, d, dt_bauhaus_widget_t::data, dt_gui_throttle_cancel(), dt_gui_throttle_queue(), dt_gui_widgets_suppressed(), ipow(), dt_bauhaus_t::popup_area, dt_bauhaus_slider_data_t::pos, precision(), and dt_bauhaus_data_t::slider.
Referenced by _dt_bauhaus_slider_set_with_raise(), dt_bauhaus_popup_button_press(), dt_bauhaus_popup_motion_notify(), dt_bauhaus_slider_button_press(), dt_bauhaus_slider_button_release(), dt_bauhaus_slider_motion_notify(), dt_bauhaus_widget_accept(), and dt_bauhaus_widget_reject().
Definition at line 3633 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_slider_data_t::offset, and dt_bauhaus_data_t::slider.
Referenced by gui_init(), and gui_init().
Definition at line 1626 of file bauhaus.c.
References _dt_bauhaus_slider_set_with_raise(), d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_get(), DT_BAUHAUS_WIDGET, FALSE, and dt_bauhaus_data_t::slider.
Referenced by dt_bauhaus_slider_set_soft_range(), gui_changed(), gui_init(), gui_init(), and mouse_moved().
Definition at line 1609 of file bauhaus.c.
References _dt_bauhaus_slider_set_with_raise(), d, dt_bauhaus_widget_t::data, dt_bauhaus_slider_get(), DT_BAUHAUS_WIDGET, FALSE, and dt_bauhaus_data_t::slider.
Referenced by dt_bauhaus_slider_set_soft_range(), gui_changed(), gui_init(), and mouse_moved().
Definition at line 1650 of file bauhaus.c.
References dt_bauhaus_slider_set_soft_max(), and dt_bauhaus_slider_set_soft_min().
Referenced by dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), gui_init(), gui_init(), and gui_update().
Definition at line 3563 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_WIDGET, dt_bauhaus_data_t::slider, and dt_bauhaus_slider_data_t::step.
Referenced by gui_init().
Definition at line 2375 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_SLIDER, DT_BAUHAUS_SLIDER_MAX_STOPS, DT_BAUHAUS_WIDGET, g, dt_bauhaus_slider_data_t::grad_col, IS_NULL_PTR, k, r, dt_bauhaus_data_t::slider, and dt_bauhaus_widget_t::type.
Referenced by _paint_hue(), _paint_RGB_slider_stop(), _set_slider_stop_from_hsb(), _set_slider_stop_from_profile_rgb(), _update_RGB_slider_stop(), color_rgb_sliders(), color_temptint_sliders(), dt_iop_channelmixer_shared_paint_primaries_sliders(), dt_iop_channelmixer_shared_paint_simple_sliders(), dt_iop_channelmixer_shared_paint_temperature_slider(), gui_init(), gui_init(), gui_init_section(), paint_chroma_slider(), paint_hue(), update_balance_slider_colors(), update_saturation_slider_color(), update_saturation_slider_end_color(), update_saturation_slider_end_color(), update_saturation_slider_end_color(), and update_xy_color().
Definition at line 3543 of file bauhaus.c.
References d, dt_bauhaus_slider_set(), and DT_BAUHAUS_WIDGET.
Referenced by dt_bauhaus_popup_key_press().
|
static |
Definition at line 2602 of file bauhaus.c.
References _combobox_set(), dt_bauhaus_widget_t::bauhaus, dt_bauhaus_data_t::combobox, d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBO_MAX_TEXT, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_SLIDER, dt_bauhaus_slider_set_normalized(), dt_free, dt_bauhaus_t::keys, dt_bauhaus_t::keys_cnt, dt_bauhaus_combobox_entry_t::label, dt_bauhaus_slider_data_t::pos, dt_bauhaus_combobox_entry_t::sensitive, dt_bauhaus_data_t::slider, TRUE, dt_bauhaus_widget_t::type, and value.
Referenced by dt_bauhaus_popup_button_press(), and dt_bauhaus_popup_key_press().
| const char * dt_bauhaus_widget_get_label | ( | GtkWidget * | widget | ) |
Definition at line 1699 of file bauhaus.c.
References DT_BAUHAUS_WIDGET, and dt_bauhaus_widget_t::label.
| int dt_bauhaus_widget_get_quad_active | ( | GtkWidget * | widget | ) |
Definition at line 1746 of file bauhaus.c.
References CPF_ACTIVE, DT_BAUHAUS_WIDGET, and dt_bauhaus_widget_t::quad_paint_flags.
Referenced by _visualize_callback(), and _visualize_callback().
Definition at line 1752 of file bauhaus.c.
References CPF_ACTIVE, DT_BAUHAUS_WIDGET, dt_bauhaus_widget_t::quad_paint_flags, and dt_bauhaus_widget_t::quad_toggle.
Referenced by _widget_key_press(), dt_bauhaus_combobox_button_press(), and dt_bauhaus_slider_button_press().
|
static |
Definition at line 2585 of file bauhaus.c.
References d, dt_bauhaus_widget_t::data, DT_BAUHAUS_COMBOBOX, DT_BAUHAUS_SLIDER, dt_bauhaus_slider_set_normalized(), FALSE, dt_bauhaus_data_t::slider, TRUE, and dt_bauhaus_widget_t::type.
Referenced by dt_bauhaus_popup_button_press().
Definition at line 1765 of file bauhaus.c.
References CPF_ACTIVE, DT_BAUHAUS_WIDGET, dt_bauhaus_widget_t::quad_paint_flags, and dt_bauhaus_widget_t::quad_toggle.
Referenced by _widget_key_press(), and dt_bauhaus_slider_button_release().
| void dt_bauhaus_widget_set_field | ( | GtkWidget * | widget, |
| gpointer | field, | ||
| dt_introspection_type_t | field_type | ||
| ) |
Definition at line 1713 of file bauhaus.c.
References DT_BAUHAUS_WIDGET, dt_bauhaus_widget_t::field, dt_bauhaus_widget_t::field_type, and dt_bauhaus_widget_t::label.
Referenced by _combobox_new_from_list(), dt_bauhaus_combobox_from_params(), dt_bauhaus_slider_from_params(), and dt_iop_gui_init_blending_body().
Definition at line 1656 of file bauhaus.c.
References _action_request_focus(), dt_accels_build_path(), dt_accels_new_darkroom_action, DT_BAUHAUS_WIDGET, dt_capitalize_label(), dt_free, dt_free_gpointer(), dt_bauhaus_widget_t::field, dt_bauhaus_widget_t::label, m, dt_bauhaus_widget_t::no_accels, dt_bauhaus_widget_t::no_module_list, and TRUE.
Referenced by _build_complete_ui(), _build_display_popover(), _build_overexposed_popover(), _build_primaries_ui(), _build_rawoverexposed_popover(), _build_simple_ui(), _build_softproof_gamut_popover(), _check_tuner_picker_labels(), _combo_as_collections(), _combo_as_full(), _combo_as_view_toggle(), _combobox_new_from_list(), _event_draw(), _guides_gui_grid(), _masks_gui_add_interaction_slider(), dt_bauhaus_combobox_from_conf(), dt_bauhaus_combobox_from_params(), dt_bauhaus_combobox_new_full(), dt_bauhaus_slider_from_params(), dt_guides_popover(), dt_iop_gui_init_blendif(), dt_iop_gui_init_blending_body(), dt_iop_gui_init_raster(), dt_lut_viewer_new(), gui_changed(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init(), gui_init_section(), gui_sliders_update(), gui_update(), lens_set(), and toggle_stock_controls().
Definition at line 1729 of file bauhaus.c.
References CPF_ACTIVE, DT_BAUHAUS_WIDGET, and dt_bauhaus_widget_t::quad_paint_flags.
Referenced by _color_picker_callback_button_press(), _color_picker_new(), _color_picker_reset(), gui_changed(), gui_focus(), gui_init(), gui_reset(), gui_update(), gui_update(), and mask_callback().
| void dt_bauhaus_widget_set_quad_paint | ( | GtkWidget * | widget, |
| dt_bauhaus_quad_paint_f | f, | ||
| int | paint_flags, | ||
| void * | paint_data | ||
| ) |
Definition at line 1705 of file bauhaus.c.
References DT_BAUHAUS_WIDGET, f, dt_bauhaus_widget_t::quad_paint, dt_bauhaus_widget_t::quad_paint_data, and dt_bauhaus_widget_t::quad_paint_flags.
Referenced by _color_picker_new(), gui_init(), and gui_init().
Definition at line 1723 of file bauhaus.c.
References DT_BAUHAUS_WIDGET, and dt_bauhaus_widget_t::quad_toggle.
Referenced by _color_picker_new(), gui_init(), and gui_init().
Definition at line 1739 of file bauhaus.c.
References DT_BAUHAUS_WIDGET, and dt_bauhaus_widget_t::show_quad.
Referenced by gui_changed().
Definition at line 1053 of file bauhaus.c.
Referenced by dt_bauhaus_init().
|
static |
Definition at line 1269 of file bauhaus.c.
References _enter_leave(), _get_preferred_height(), _get_preferred_width(), _style_updated(), _widget_draw(), _widget_finalize(), _widget_key_press(), _widget_scroll(), DT_BAUHAUS_QUAD_PRESSED_SIGNAL, and DT_BAUHAUS_VALUE_CHANGED_SIGNAL.
|
static |
|
static |
Definition at line 447 of file bauhaus.c.
References darktable, dt_bauhaus_widget_t::data, DT_BAUHAUS_FOCUS_IDLE_MAX_TRIES, DT_BAUHAUS_FOCUS_IDLE_SOURCE_KEY, DT_BAUHAUS_FOCUS_IDLE_TRIES_KEY, DT_DEBUG_SHORTCUTS, dt_print(), dt_ui_main_window(), darktable_t::gui, dt_gui_gtk_t::has_scroll_focus, IS_NULL_PTR, and dt_gui_gtk_t::ui.
Referenced by _action_request_focus().
|
static |
Definition at line 637 of file bauhaus.c.
References dt_bauhaus_combobox_entry_t::data, dt_bauhaus_widget_t::data, dt_free, dt_bauhaus_combobox_entry_t::free_func, dt_bauhaus_combobox_entry_t::label, and dt_bauhaus_combobox_entry_t::tooltip.
Referenced by dt_bauhaus_combobox_from_widget().
|
static |
Definition at line 826 of file bauhaus.c.
References x.
Referenced by dt_bauhaus_popup_motion_notify().
|
static |
Definition at line 605 of file bauhaus.c.
References dt_bauhaus_combobox_entry_t::alignment, dt_bauhaus_combobox_entry_t::data, dt_bauhaus_widget_t::data, dt_bauhaus_combobox_entry_t::free_func, dt_bauhaus_combobox_entry_t::label, dt_bauhaus_widget_t::label, dt_bauhaus_combobox_entry_t::row_height_factor, dt_bauhaus_combobox_entry_t::sensitive, dt_bauhaus_combobox_entry_t::tooltip, and tooltip.
Referenced by dt_bauhaus_combobox_add_full(), dt_bauhaus_combobox_add_with_tooltip(), and dt_bauhaus_combobox_insert_full().
|
static |
Create a new combobox separator entry.
| row_height_factor | The height factor for the separator row. |
Definition at line 626 of file bauhaus.c.
References CLAMPF, FALSE, dt_bauhaus_combobox_entry_t::is_separator, dt_bauhaus_combobox_entry_t::label, dt_bauhaus_combobox_entry_t::row_height_factor, dt_bauhaus_combobox_entry_t::sensitive, dt_bauhaus_combobox_entry_t::tooltip, and TRUE.
Referenced by dt_bauhaus_combobox_add_separator_with_height(), and dt_bauhaus_combobox_insert_separator_with_height().
|
static |
Display text aligned in a bounding box, with pseudo-classes properties handled, and optional background color.
| w | The current widget |
| context | Gtk CSS context |
| cr | Cairo drawing object |
| bounding_box | The bounding box in which the text should fit. |
| text | The text content to display. |
| halign | Horizontal alignment within the bounding box |
| valign | Vertical alignment within the bounding box |
| ellipsize | Pango ellipsization strategy, used only if text overflows its bounding box. |
| bg_color | Background color to paint in the bounding box. Can be NULL. |
| width | Pointer where text spanning width will be returned in Cairo units. Can be NULL. |
| height | Pointer where text spanning height will be returned in Cairo units. Can be NULL. |
| ignore_pseudo_classes | Disregard styling done in pseudo-classes and use the normal style. |
Definition at line 686 of file bauhaus.c.
References dt_bauhaus_widget_t::bauhaus, BH_ALIGN_BOTTOM, BH_ALIGN_CENTER, BH_ALIGN_LEFT, BH_ALIGN_MIDDLE, BH_ALIGN_RIGHT, BH_ALIGN_TOP, double(), dt_gui_cairo_set_font_options(), height, IS_NULL_PTR, dt_bauhaus_t::line_height, dt_bauhaus_t::pango_font_desc, state, width, and x.
Referenced by _get_combobox_max_width(), _widget_draw(), and dt_bauhaus_popup_draw().