+ void OnAddPage(wxCommandEvent& event);
+ void OnAddPageNoSelect(wxCommandEvent& event);
+ void OnInsertPage(wxCommandEvent& event);
+ void OnDeleteCurPage(wxCommandEvent& event);
+ void OnDeleteLastPage(wxCommandEvent& event);
+ void OnNextPage(wxCommandEvent& event);
+ void OnChangeSelection(wxCommandEvent &event);
+ void OnSetSelection(wxCommandEvent &event);
+ void OnGetPageSize(wxCommandEvent &event);
+ void OnSetPageSize(wxCommandEvent &event);
+
+ void OnAddSubPage(wxCommandEvent& event);
+ void OnAddPageBefore(wxCommandEvent& event);
+
+#if wxUSE_HELP
+ void OnContextHelp(wxCommandEvent& event);
+#endif // wxUSE_HELP
+
+ void OnHitTest(wxCommandEvent& event);
+
+ void OnBookCtrl(wxBookCtrlBaseEvent& event);
+#if wxUSE_NOTEBOOK
+ void OnNotebook(wxNotebookEvent& event) { OnBookCtrl(event); }
+#endif
+#if wxUSE_CHOICEBOOK
+ void OnChoicebook(wxChoicebookEvent& event) { OnBookCtrl(event); }
+#endif
+#if wxUSE_LISTBOOK
+ void OnListbook(wxListbookEvent& event) { OnBookCtrl(event); }
+#endif
+#if wxUSE_TREEBOOK
+ void OnTreebook(wxTreebookEvent& event) { OnBookCtrl(event); }
+#endif
+#if wxUSE_TOOLBOOK
+ void OnToolbook(wxToolbookEvent& event) { OnBookCtrl(event); }
+#endif
+#if wxUSE_AUI
+ void OnAuiNotebook(wxAuiNotebookEvent& event) { OnBookCtrl(event); }
+#endif
+
+ void OnIdle(wxIdleEvent& event);
+
+#if wxUSE_TREEBOOK
+ void OnUpdateTreeMenu(wxUpdateUIEvent& event);
+#endif // wxUSE_TREEBOOK
+
+ wxBookCtrlBase *GetCurrentBook() const { return m_bookCtrl; }
+
+private:
+ wxLog *m_logTargetOld;
+
+ void RecreateBook();
+ wxPanel *CreateNewPage() const;
+ void AddFlagStrIfFlagPresent(wxString & flagStr, long flags, long flag, const wxChar * flagName) const;
+
+ // Sample setup
+ enum BookType
+ {
+ Type_Notebook,
+ Type_Listbook,
+ Type_Choicebook,
+ Type_Treebook,
+ Type_Toolbook,
+ Type_AuiNotebook,
+ Type_Simplebook,
+ Type_Max
+ } m_type;
+ int m_orient;
+ bool m_chkShowImages;
+ bool m_fixedWidth;
+ bool m_multi;
+ bool m_noPageTheme;
+ bool m_buttonBar;
+ bool m_horzLayout;
+
+ // Controls
+
+ wxPanel *m_panel; // Panel containing notebook and other controls
+ wxBookCtrlBase *m_bookCtrl;
+
+#if USE_LOG
+ // Log window
+ wxTextCtrl *m_text;
+#endif // USE_LOG
+
+ wxBoxSizer *m_sizerFrame;
+
+ wxImageList *m_imageList;