![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include "widgets/collapsible_section.h"#include "widgets/expander.h"#include "widgets/label.h"#include "widgets/paint.h"#include "widgets/widget_settings.h"#include "widgets/widget_style.h"#include "widgets/togglebutton.h"
Include dependency graph for collapsible_section.c:Go to the source code of this file.
Functions | |
| static void | _collapsible_set_states (dt_gui_collapsible_section_t *cs, gboolean active) |
| static void | _collapsible_container_show (GtkWidget *widget, gpointer user_data) |
| static void | _coeffs_button_changed (GtkDarktableToggleButton *widget, gpointer user_data) |
| static void | _coeffs_expander_click (GtkWidget *widget, GdkEventButton *e, gpointer user_data) |
| void | dt_gui_update_collapsible_section (dt_gui_collapsible_section_t *cs) |
| void | dt_gui_hide_collapsible_section (dt_gui_collapsible_section_t *cs) |
| void | dt_gui_new_collapsible_section (dt_gui_collapsible_section_t *cs, const char *confname, const char *label, GtkBox *parent, GtkPackType pack) |
| Create a collapsible section and pack it into the parent box. | |
|
static |
Definition at line 54 of file collapsible_section.c.
References _collapsible_set_states(), dt_gui_collapsible_section_t::confname, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, dt_widget_store_bool(), dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_set_expanded(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), dt_gui_collapsible_section_t::expander, L, and dt_gui_collapsible_section_t::toggle.
Referenced by dt_gui_new_collapsible_section().
|
static |
Definition at line 66 of file collapsible_section.c.
References _collapsible_set_states(), L, and dt_gui_collapsible_section_t::toggle.
Referenced by dt_gui_new_collapsible_section().
Definition at line 43 of file collapsible_section.c.
References L, and dt_gui_collapsible_section_t::toggle.
Referenced by dt_gui_new_collapsible_section().
|
static |
Definition at line 28 of file collapsible_section.c.
References dt_gui_add_class(), dt_gui_remove_class(), dt_gui_collapsible_section_t::expander, L, and TRUE.
Referenced by _coeffs_button_changed(), _coeffs_expander_click(), dt_gui_hide_collapsible_section(), and dt_gui_update_collapsible_section().
| void dt_gui_hide_collapsible_section | ( | dt_gui_collapsible_section_t * | cs | ) |
Definition at line 92 of file collapsible_section.c.
References _collapsible_set_states(), dt_gui_collapsible_section_t::container, FALSE, L, and dt_gui_collapsible_section_t::toggle.
Referenced by gui_update().
| void dt_gui_new_collapsible_section | ( | dt_gui_collapsible_section_t * | cs, |
| const char * | confname, | ||
| const char * | label, | ||
| GtkBox * | parent, | ||
| GtkPackType | pack | ||
| ) |
Create a collapsible section and pack it into the parent box.
The pack argument makes the insertion side explicit so callers control layout order without reordering children later.
| cs | section storage owned by the caller. |
| confname | configuration key used to persist the expanded state. |
| label | UI label for the section header. |
| parent | GtkBox that receives the section. |
| pack | either GTK_PACK_START or GTK_PACK_END to choose insertion side. |
Definition at line 99 of file collapsible_section.c.
References _coeffs_button_changed(), _coeffs_expander_click(), _collapsible_container_show(), dt_gui_collapsible_section_t::confname, dt_gui_collapsible_section_t::container, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, dt_gui_add_class(), DT_GUI_BOX_SPACING, dt_ui_section_label_new(), dt_widget_stored_bool(), dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_new(), dtgtk_expander_set_expanded(), dtgtk_togglebutton_new(), dt_gui_collapsible_section_t::expander, FALSE, L, dt_gui_collapsible_section_t::label, dt_gui_collapsible_section_t::parent, dt_gui_collapsible_section_t::toggle, and TRUE.
Referenced by dt_iop_gui_init_masks(), gui_init(), and gui_init().
| void dt_gui_update_collapsible_section | ( | dt_gui_collapsible_section_t * | cs | ) |
Definition at line 77 of file collapsible_section.c.
References _collapsible_set_states(), dt_gui_collapsible_section_t::container, CPF_DIRECTION_DOWN, CPF_DIRECTION_LEFT, dtgtk_cairo_paint_solid_arrow(), DTGTK_EXPANDER, dtgtk_expander_set_expanded(), DTGTK_TOGGLEBUTTON, dtgtk_togglebutton_set_paint(), dt_gui_collapsible_section_t::expander, L, and dt_gui_collapsible_section_t::toggle.
Referenced by dt_iop_gui_init_blending_body(), gui_update(), and gui_update().