| 1 |
#ifndef NOTEBOOKPAGEWRAPPER_H |
| 2 |
#define NOTEBOOKPAGEWRAPPER_H |
| 3 |
|
| 4 |
#include "wxc_widget.h" |
| 5 |
class NotebookBaseWrapper; |
| 6 |
class NotebookPageWrapper : public wxcWidget |
| 7 |
{ |
| 8 |
bool m_selected; |
| 9 |
|
| 10 |
protected: |
| 11 |
void DoTreebookXRC(wxString& text, XRC_TYPE type, int depth) const; |
| 12 |
virtual void LoadPropertiesFromXRC(const wxXmlNode* node); |
| 13 |
virtual void LoadPropertiesFromwxSmith(const wxXmlNode* node); |
| 14 |
wxString DoTreebookCppCtorCode() const; |
| 15 |
|
| 16 |
public: |
| 17 |
NotebookPageWrapper(); |
| 18 |
virtual ~NotebookPageWrapper(); |
| 19 |
virtual void SetParent(wxcWidget* parent); |
| 20 |
|
| 21 |
bool IsTreebookPage() const; |
| 22 |
bool IsChoicebookPage() const; |
| 23 |
NotebookBaseWrapper* GetNotebook() const; |
| 24 |
|
| 25 |
int GetPageIndex() const; |
| 26 |
|
| 27 |
wxcWidget* Clone() const; |
| 28 |
wxString CppCtorCode() const; |
| 29 |
void GetIncludeFile(wxArrayString& headers) const; |
| 30 |
wxString GetWxClassName() const; |
| 31 |
void ToXRC(wxString& text, XRC_TYPE type) const; |
| 32 |
|
| 33 |
// This class is a container |
| 34 |
virtual bool IsContainer() const { return true; } |
| 35 |
|
| 36 |
void SetSelected(bool selected) { this->m_selected = selected; } |
| 37 |
bool IsSelected() const { return m_selected; } |
| 38 |
|
| 39 |
wxSize GetImageSize() const; |
| 40 |
}; |
| 41 |
|
| 42 |
#endif // NOTEBOOKPAGEWRAPPER_H |