Fix tristate toolbar toggling via toolbar (#12177)

This commit is contained in:
Juergen Spitzmueller 2021-03-05 17:12:51 +01:00
parent 4828dfb441
commit 11d6708781

View File

@ -100,9 +100,9 @@ ToolbarSet
DynamicMenu "dynamic-custom-insets" "Custom insets" DynamicMenu "dynamic-custom-insets" "Custom insets"
Separator Separator
Item "Toggle outline" "dialog-toggle toc" Item "Toggle outline" "dialog-toggle toc"
Item "Toggle math toolbar" "toolbar-toggle math" PopupMenu "toolbar-toggle_math" "Show math toolbar"
Item "Toggle table toolbar" "toolbar-toggle table" PopupMenu "toolbar-toggle_table" "Show table toolbar"
Item "Toggle review toolbar" "toolbar-toggle review" PopupMenu "toolbar-toggle_review" "Show review toolbar"
End End
Toolbar "view/update" "View/Update" Toolbar "view/update" "View/Update"
@ -209,7 +209,7 @@ ToolbarSet
Item "Delete row" "tabular-feature delete-row" Item "Delete row" "tabular-feature delete-row"
Item "Delete column" "tabular-feature delete-column" Item "Delete column" "tabular-feature delete-column"
Separator Separator
Item "Toggle math panels" "toolbar-toggle math_panels" PopupMenu "toolbar-toggle_math_panels" "Show math panels"
End End
Toolbar "math_panels" "Math Panels" Toolbar "math_panels" "Math Panels"
@ -297,6 +297,30 @@ ToolbarSet
UpdateFormats UpdateFormats
End End
Toolbar "toolbar-toggle_math" "Show math toolbar"
Item "[[Toolbar]]On" "toolbar-set math on"
Item "[[Toolbar]]Off" "toolbar-set math off"
Item "[[Toolbar]]Automatic" "toolbar-set math auto"
End
Toolbar "toolbar-toggle_math_panels" "Show math panels"
Item "[[Toolbar]]On" "toolbar-set math_panels on"
Item "[[Toolbar]]Off" "toolbar-set math_panels off"
Item "[[Toolbar]]Automatic" "toolbar-set math_panels auto"
End
Toolbar "toolbar-toggle_table" "Show table toolbar"
Item "[[Toolbar]]On" "toolbar-set table on"
Item "[[Toolbar]]Off" "toolbar-set table off"
Item "[[Toolbar]]Automatic" "toolbar-set table auto"
End
Toolbar "toolbar-toggle_review" "Show review toolbar"
Item "[[Toolbar]]On" "toolbar-set review on"
Item "[[Toolbar]]Off" "toolbar-set review off"
Item "[[Toolbar]]Automatic" "toolbar-set review auto"
End
# The following three toolbars are disabled because of missing icons. # The following three toolbars are disabled because of missing icons.
# Toolbar "import/export" "Import/Export" # Toolbar "import/export" "Import/Export"
# Item "Import" "buffer-import" # Item "Import" "buffer-import"