Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
dt_gui_module_t Struct Reference

The dt_gui_module_t type is the intersection between a dt_lib_module_t and a dt_iop_module_t structure. It acts as an abstract class from which we can connect to the common fields of both structures, for the sake of blindly connecting bauhaus widgets without inheriting modules. Indeed, modules need to inheritate the bauhaus API to instanciate its widgets. But then, if the bauhaus API also inheritates modules, the circular dependency becomes a mess. This allows to reference parent modules in bauhaus widget without inheriting their API, and without caring if the parent is a dt_iop_module_t or a dt_lib_module_t. More...

#include <gui_module_api.h>

+ Collaboration diagram for dt_gui_module_t:

Data Fields

GList * widget_list
 
GList * widget_list_bh
 
char * name
 
char * instance_name
 
char * view
 
gboolean deprecated
 
int(* focus )(dt_gui_module_t *module, gboolean toggle)
 
char * accel_path
 

Detailed Description

The dt_gui_module_t type is the intersection between a dt_lib_module_t and a dt_iop_module_t structure. It acts as an abstract class from which we can connect to the common fields of both structures, for the sake of blindly connecting bauhaus widgets without inheriting modules. Indeed, modules need to inheritate the bauhaus API to instanciate its widgets. But then, if the bauhaus API also inheritates modules, the circular dependency becomes a mess. This allows to reference parent modules in bauhaus widget without inheriting their API, and without caring if the parent is a dt_iop_module_t or a dt_lib_module_t.

The beginning of both structures needs to match exactly this abstract class, so we can cast them when needed.

Warning: keep in sync with the number and order of elements in libs/lib.h and develop/imageop.h

Field Documentation

◆ accel_path

char* dt_gui_module_t::accel_path

◆ deprecated

gboolean dt_gui_module_t::deprecated

this module will not appear in view for new edits

◆ focus

int(* dt_gui_module_t::focus) (dt_gui_module_t *module, gboolean toggle)

give focus to the current module and adapt other parts of the GUI if needed

Parameters
toggleif TRUE, adopt a show/hide behaviour. Otherwise, always show.

◆ instance_name

char* dt_gui_module_t::instance_name

Referenced by _iop_panel_label().

◆ name

char* dt_gui_module_t::name

translated name of the module

◆ view

char* dt_gui_module_t::view

translated name of the view

◆ widget_list

GList* dt_gui_module_t::widget_list

◆ widget_list_bh

GList* dt_gui_module_t::widget_list_bh

The documentation for this struct was generated from the following file: