forked from darktable-org/darktable
-
Notifications
You must be signed in to change notification settings - Fork 0
Testing bauhaus
dterrahe edited this page Aug 30, 2023
·
7 revisions
- slider:
- widget:
- click
- modifier+click
- drag
- modifier+drag
- (modifier+) scroll
- (modifier+) arrow keys (up/down/left/right/pageup/pagedown)
- <10% >90% range scroll or drag
- right-click
- enter
- popup
- type
- arrow
- mouse click
- mouse move
- mouse drag
- esc
- enter
- widget:
- combo
- widget
- click (left or right)
- left-click+drag vertically
- scroll
- popup
- type
- arrow
- mouse click
- mouse move
- mouse drag
- esc
- enter
- widget
- button
- click
- ctrl+click
#popup
mouse release after change/enter after change
right-click on collect when near top can make it slowly autoscroll down
combo clicking on already active item after opening combo does not close it
if widget focused, space toggles button
To use bauhaus in preferences, add the below in generate_prefs.xsl:
<xsl:text>const gchar *string_list[] = {</xsl:text>
<xsl:for-each select="./type/enum/option">
<xsl:text>N_("</xsl:text>
<xsl:value-of select="."/>
<xsl:text>"), </xsl:text>
</xsl:for-each>
<xsl:text>NULL };</xsl:text>
<xsl:text>
widget = dt_bauhaus_combobox_new(NULL);
dt_bauhaus_combobox_set_selected_text_align(widget, DT_BAUHAUS_COMBOBOX_ALIGN_LEFT);
dt_bauhaus_combobox_add_list(widget, NULL, string_list);
dt_bauhaus_combobox_add_list should pick up alignment from widget text_align. but really, prefs should store strings (including translation codes) in introspection compatible format.