6 #ifndef CBAUIBOOK_H_INCLUDED 7 #define CBAUIBOOK_H_INCLUDED 63 bool LoadPerspective(
const wxString& layout,
bool mergeLayouts =
false);
72 int GetTabIndexFromTooltip(
const wxString& text);
80 int GetTabPositionFromIndex(
int index);
81 #if !wxCHECK_VERSION(3, 0, 0) 99 #endif // !wxCHECK_VERSION(3, 0, 0) 105 void MinimizeFreeSpace();
133 bool MovePage(
wxWindow* page,
size_t new_idx);
170 void SetZoom(
int zoom);
173 void FocusActiveTabCtrl();
177 wxAuiTabCtrl* GetTabCtrl(
wxWindow *page);
182 void GetPagesInTabCtrl(std::vector<wxWindow*> &result,
wxWindow *page);
201 void MinimizeFreeSpace(wxAuiTabCtrl* tabCtrl);
208 #if wxCHECK_VERSION(3, 0, 0) 212 #endif // wxCHECK_VERSION(3, 0, 0) 218 #if !wxCHECK_VERSION(3, 0, 0) 226 #endif // !wxCHECK_VERSION(3, 0, 0) 290 void ResetTabCtrlEvents();
293 void UpdateTabControlsArray();
301 bool CheckKeyModifier();
321 #if !wxCHECK_VERSION(3, 0, 0) 329 #endif // !wxCHECK_VERSION(3, 0, 0) 351 static void UseToolTips(
bool use =
true);
356 static void AllowScrolling(
bool allow =
true);
359 static void SetModKeys(
wxString keys =
_T(
"Strg"));
362 static void UseModToAdvance(
bool use =
false);
367 static void InvertAdvanceDirection(
bool invert =
false);
372 static void InvertMoveDirection(
bool invert =
false);
401 DECLARE_EVENT_TABLE()
404 #endif // CBAUIBOOK_H_INCLUDED
void AdvanceSelection(bool forward=true)
static bool s_modToAdvance
Use modkey to advance through tabs with mousewheel.
wxSize m_TabCtrlSize
Holds the size of a tabCtrl after a resize event.
static int s_advanceDirection
Mouseweheel advance direction: negative => invert.
static cbAuiNotebookArray s_cbAuiNotebookArray
Holds an array of all existing cbAuiNotebooks.
static bool s_AllowMousewheel
Enable or disable scrolling tabs with mousewheel.
static int s_moveDirection
Mousewheel move direction: negative => invert.
bool InsertPage(size_t page_idx, wxWindow *page, const wxString &caption, bool select=false, const wxBitmap &bitmap=wxNullBitmap)
bool DeletePage(size_t page)
const wxSize wxDefaultSize
const wxPoint wxDefaultPosition
wxString GetPageToolTip(size_t pageIdx) const
bool AddPage(wxWindow *page, const wxString &caption, bool select=false, const wxBitmap &bitmap=wxNullBitmap)
WX_DEFINE_ARRAY_PTR(wxAuiTabCtrl *, cbAuiTabCtrlArray)
bool RemovePage(size_t page)
bool SetPageToolTip(size_t page, const wxString &text)
A notebook class This class is derived from wxAuiNotebook, to enhance its abilities.
long m_LastId
Id of last focused window.
cbAuiTabCtrlArray m_TabCtrls
Holds the wxTabCtrls used by the notebook.
bool m_SetZoomOnIdle
If true, zoom for all editors is set in next OnIdle-call.
int m_LastSelected
Last selected tab.
bool m_MinimizeFreeSpaceOnIdle
If true, MinimizeFreeSpace is called in next OnIdle-call.
static wxString s_modKeys
Holds the modifier keys for scrolling.