wxMaxima
Loading...
Searching...
No Matches
Public Member Functions
ToolBarSectionsPanel Class Reference

Lets the user reorder the main toolbar's sections and show or hide them. More...

#include <ToolBarSectionsPanel.h>

Inheritance diagram for ToolBarSectionsPanel:
[legend]
Collaboration diagram for ToolBarSectionsPanel:
[legend]

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.
 

Detailed Description

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.

Member Function Documentation

◆ MoveEntry()

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.


The documentation for this class was generated from the following files: