| 1 |
#ifndef WXCNOTEBOOKCODEHELPER_H |
| 2 |
#define WXCNOTEBOOKCODEHELPER_H |
| 3 |
|
| 4 |
#include <wx/string.h> |
| 5 |
|
| 6 |
/// A helper class that allows us to place |
| 7 |
/// code after the pages creation has completed |
| 8 |
/// An example is calling ExpandNode() after all |
| 9 |
/// pages were added to the wxTreebook |
| 10 |
class wxcNotebookCodeHelper |
| 11 |
{ |
| 12 |
wxString m_code; |
| 13 |
|
| 14 |
private: |
| 15 |
wxcNotebookCodeHelper(); |
| 16 |
virtual ~wxcNotebookCodeHelper(); |
| 17 |
|
| 18 |
public: |
| 19 |
static wxcNotebookCodeHelper& Get(); |
| 20 |
|
| 21 |
void Clear(); |
| 22 |
wxString& Code(); |
| 23 |
}; |
| 24 |
|
| 25 |
#endif // WXCNOTEBOOKCODEHELPER_H |