![]() |
Ember
|
Custom wxAuiNotebook that integrates Add Tab and Menu buttons into the tab bar. More...
#include <CustomAuiNotebook.h>
Public Member Functions | |
| CustomAuiNotebook (wxWindow *parent, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxAUI_NB_DEFAULT_STYLE) | |
| virtual | ~CustomAuiNotebook ()=default |
| CustomTabArt * | GetCustomTabArt () const |
| Get the custom tab art provider. | |
| void | SetTabBarButtonsEnabled (bool enabled) |
| Enable or disable the integrated tab bar buttons. | |
| bool | AreTabBarButtonsEnabled () const |
| Check if tab bar buttons are enabled. | |
Protected Member Functions | |
| void | OnSize (wxSizeEvent &event) |
| void | OnAddButtonClicked (wxCommandEvent &event) |
| void | OnMenuButtonClicked (wxCommandEvent &event) |
Private Member Functions | |
| void | CreateButtons () |
| void | UpdateButtonPositions () |
| void | LoadButtonIcons () |
| wxDECLARE_EVENT_TABLE () | |
Private Attributes | |
| CustomTabArt * | m_customTabArt |
| wxBitmapButton * | m_addButton |
| wxBitmapButton * | m_menuButton |
| bool | m_buttonsEnabled |
| wxBitmap | m_plusNormal |
| wxBitmap | m_plusHovered |
| wxBitmap | m_plusPressed |
| wxBitmap | m_menuNormal |
| wxBitmap | m_menuHovered |
| wxBitmap | m_menuPressed |
Static Private Attributes | |
| static const int | BUTTON_SIZE = 36 |
| static const int | BUTTON_SPACING = 4 |
| static const int | BUTTON_MARGIN = 8 |
Custom wxAuiNotebook that integrates Add Tab and Menu buttons into the tab bar.
This class extends wxAuiNotebook to:
Definition at line 16 of file CustomAuiNotebook.h.
| EmberForge::CustomAuiNotebook::CustomAuiNotebook | ( | wxWindow * | parent, |
| wxWindowID | id = wxID_ANY, | ||
| const wxPoint & | pos = wxDefaultPosition, | ||
| const wxSize & | size = wxDefaultSize, | ||
| long | style = wxAUI_NB_DEFAULT_STYLE ) |
|
virtualdefault |
|
inline |
Check if tab bar buttons are enabled.
Definition at line 39 of file CustomAuiNotebook.h.
|
private |
Definition at line 39 of file CustomAuiNotebook.cpp.
|
inline |
Get the custom tab art provider.
Definition at line 27 of file CustomAuiNotebook.h.
|
private |
Definition at line 25 of file CustomAuiNotebook.cpp.
|
protected |
Definition at line 136 of file CustomAuiNotebook.cpp.
|
protected |
Definition at line 143 of file CustomAuiNotebook.cpp.
|
protected |
Definition at line 130 of file CustomAuiNotebook.cpp.
| void EmberForge::CustomAuiNotebook::SetTabBarButtonsEnabled | ( | bool | enabled | ) |
Enable or disable the integrated tab bar buttons.
| enabled | Whether buttons should be shown |
Definition at line 119 of file CustomAuiNotebook.cpp.
|
private |
Definition at line 82 of file CustomAuiNotebook.cpp.
|
private |
|
staticprivate |
Definition at line 62 of file CustomAuiNotebook.h.
|
staticprivate |
Definition at line 60 of file CustomAuiNotebook.h.
|
staticprivate |
Definition at line 61 of file CustomAuiNotebook.h.
|
private |
Definition at line 52 of file CustomAuiNotebook.h.
|
private |
Definition at line 54 of file CustomAuiNotebook.h.
|
private |
Definition at line 51 of file CustomAuiNotebook.h.
|
private |
Definition at line 53 of file CustomAuiNotebook.h.
|
private |
Definition at line 58 of file CustomAuiNotebook.h.
|
private |
Definition at line 58 of file CustomAuiNotebook.h.
|
private |
Definition at line 58 of file CustomAuiNotebook.h.
|
private |
Definition at line 57 of file CustomAuiNotebook.h.
|
private |
Definition at line 57 of file CustomAuiNotebook.h.
|
private |
Definition at line 57 of file CustomAuiNotebook.h.