|
wex
v21.04.0
|
Offers a toolbar together with stock art. More...
#include <wex/toolbar.h>
Inherits wxAuiToolBar.
Public Types | |
| typedef std::vector< std::tuple< int, std::string, std::string, std::string, std::string, bool, std::function< void(wxCheckBox *)> > > | checkboxes_t |
| Type for adding checkboxes. | |
Public Member Functions | |
| toolbar (managed_frame *frame, const data::window &data=data::window().style(wxAUI_TB_DEFAULT_STYLE)) | |
| Constructor. | |
| void | add_checkboxes (const checkboxes_t &v, bool realize=true) |
| Adds a vector of checkbox controls to this toolbar. | |
| void | add_checkboxes_standard (bool realize=true) |
| Adds the standard checkboxes. More... | |
| void | add_find (bool realize=true) |
| Adds a find textctrl, up and down arrows and checkboxes. More... | |
| void | add_standard (bool realize=true) |
| Adds the standard controls (e.g. file open). | |
| bool | add_tool (std::vector< data::toolbar_item > v, bool realize=true) |
| Adds a vector of general toolbar items to this toolbar. More... | |
| bool | set_checkbox (const std::string &name, bool value) const |
| Sets checkbox state of checkboxes added using add_checkboxes. More... | |
Offers a toolbar together with stock art.
Default no controls are added, you have to call one of the add_ methods to do that.
| void wex::toolbar::add_checkboxes_standard | ( | bool | realize = true | ) |
Adds the standard checkboxes.
This is a hex and a sync checkbox, and a process check box if you called prepare_output previously.
| void wex::toolbar::add_find | ( | bool | realize = true | ) |
Adds a find textctrl, up and down arrows and checkboxes.
The find textctrl allows you to find in a grid, stc or listview component on the specified frame.
| bool wex::toolbar::add_tool | ( | std::vector< data::toolbar_item > | v, |
| bool | realize = true |
||
| ) |
Adds a vector of general toolbar items to this toolbar.
Returns false if one of the items could not be added.
| bool wex::toolbar::set_checkbox | ( | const std::string & | name, |
| bool | value | ||
| ) | const |
Sets checkbox state of checkboxes added using add_checkboxes.
Returns true if checkbox was found.
| name | name of checkbox to set |
| value | value |