| 1 |
#ifndef NOTEBOOKBASEWRAPPER_H |
| 2 |
#define NOTEBOOKBASEWRAPPER_H |
| 3 |
|
| 4 |
#include "wxc_widget.h" // Base class: WrapperBase |
| 5 |
class NotebookPageWrapper; |
| 6 |
// Base wrapper for all the Notebook classes |
| 7 |
// Note that this class is pure virtual and can not be instantiated |
| 8 |
class NotebookBaseWrapper : public wxcWidget |
| 9 |
{ |
| 10 |
public: |
| 11 |
NotebookBaseWrapper(int id); |
| 12 |
virtual ~NotebookBaseWrapper(); |
| 13 |
|
| 14 |
protected: |
| 15 |
void DoSetSelection(NotebookPageWrapper* page, wxcWidget* pageToSelect); |
| 16 |
NotebookPageWrapper* DoGetSelection(NotebookPageWrapper* page) const; |
| 17 |
bool DoGetPageIndex(const NotebookPageWrapper* page, const NotebookPageWrapper* pageToFind, int& count) const; |
| 18 |
NotebookPageWrapper* GetLastPage() const; |
| 19 |
NotebookPageWrapper* DoGetChildPageAtDepth(NotebookPageWrapper* page, size_t targetlevel, |
| 20 |
size_t currentlevel) const; |
| 21 |
|
| 22 |
public: |
| 23 |
virtual wxString CppCtorCode() const; |
| 24 |
virtual void ToXRC(wxString& text, XRC_TYPE type) const; |
| 25 |
virtual wxString GetXRCPageClass() const = 0; |
| 26 |
void SetSelection(wxcWidget* page); |
| 27 |
NotebookPageWrapper* GetSelection() const; |
| 28 |
wxcWidget* GetChildPageAtDepth(size_t level); |
| 29 |
|
| 30 |
int GetPageIndex(const NotebookPageWrapper* page) const; |
| 31 |
}; |
| 32 |
|
| 33 |
#endif // NOTEBOOKWRAPPER_H |