Cairo-Dock
3.4.0
|
Data Structures | |
struct | _CairoDockGroupKeyWidget |
Definition of a widget corresponding to a given (group;key) pair. More... | |
Functions | |
CairoDockGroupKeyWidget * | cairo_dock_gui_find_group_key_widget_in_list (GSList *pWidgetList, const gchar *cGroupName, const gchar *cKeyName) |
This class handles the construction of the common widgets used in the conf files.
A conf file is a common group/key file, with the following syntax :
Each key in the conf file has a comment.
The first character of the comment defines the type of widget. Known types are listed in the CairoDockGUIWidgetType enum.
A key can be a behaviour key or an appearance key. Appearance keys are keys that defines the look of the appli, they belong to the theme. Behaviour keys are keys that define some configuration parameters, that depends on the user. To mark a key as an apppearance one, suffix the widget character with a '+'. Thus, keys not marked with a '+' won't be loaded when the user loads a theme, except if he forces it.
After the widget character and its suffix, some widget accept a list of values. For instance, a spinbutton can have a min and a max limits, a list can have pre-defined elements, etc. Such values are set between '[' and ']' brackets, and separated by ';' inside.
After that, let a blank to start the widget description. It will appear on the left of the widget; description must be short enough to fit the config panel width.
You can complete this description with a tooltip. To do that, on a new comment line, add some text between '{' and '}' brackets. Tooltips appear above the widget when you let the mouse over it for ~1 second. They can be as long as you want. Use '
' to insert new lines inside the tooltip.
Types of widgets that Cairo-Dock can automatically build.
CairoDockGroupKeyWidget* cairo_dock_gui_find_group_key_widget_in_list | ( | GSList * | pWidgetList, |
const gchar * | cGroupName, | ||
const gchar * | cKeyName | ||
) |
Get a widget from a list of widgets representing a configuration window. The widgets represent a pair (group,key) as defined in the config file.
pWidgetList | list of widgets built from the config file |
cGroupName | name of the group the widget belongs to |
cKeyName | name of the key the widget represents |