|
wxMaxima
|
Lets the user reorder the main toolbar's sections and show or hide them. More...
#include <ToolBarSectionsPanel.h>
Public Member Functions | |
| ToolBarSectionsPanel (wxWindow *parent) | |
| std::vector< ToolBarSections::Section > | GetOrder () const |
| The sections in the order the list now shows them in. | |
| bool | IsSectionShown (ToolBarSections::Section section) const |
| Is the check box of this section set? | |
| void | SetSectionShown (ToolBarSections::Section section, bool show) |
| Check or uncheck the box of a section. | |
| void | MoveEntry (int from, int to) |
Move the entry at position from of the list to position to. | |
| void | ResetToDefaults () |
| Put the list back to the default order and visibility (stores nothing) | |
| void | Write () const |
| Store the order and visibility in the config. ToolBar::AddTools() applies it. | |
Lets the user reorder the main toolbar's sections and show or hide them.
A list of all sections with a check box each (shown or not), in the order the toolbar shows them. wxWidgets' toolbars can't be rearranged by dragging their buttons around, so the list is where that happens: an entry can be dragged to another position with the mouse, or moved using the "Up" and "Down" buttons – which also work from the keyboard.
Nothing is stored before Write() is called, so "Cancel" in the dialogue leaves the toolbar as it was.
| void ToolBarSectionsPanel::MoveEntry | ( | int | from, |
| int | to | ||
| ) |
Move the entry at position from of the list to position to.
What dragging an entry with the mouse does; also selects it. Positions outside the list are ignored.