| 1 |
#include "notebook_wrapper.h" |
| 2 |
#include "allocator_mgr.h" |
| 3 |
#include "wxgui_defs.h" |
| 4 |
#include <wx/notebook.h> |
| 5 |
|
| 6 |
NotebookWrapper::NotebookWrapper() |
| 7 |
: NotebookBaseWrapper(ID_WXNOTEBOOK) |
| 8 |
{ |
| 9 |
SetPropertyString(_("Common Settings"), "wxNotebook"); |
| 10 |
PREPEND_STYLE_FALSE(wxNB_FIXEDWIDTH); |
| 11 |
PREPEND_STYLE_FALSE(wxNB_MULTILINE); |
| 12 |
PREPEND_STYLE_FALSE(wxNB_NOPAGETHEME); |
| 13 |
|
| 14 |
RegisterEvent(wxT("wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED"), wxT("wxNotebookEvent"), |
| 15 |
_("The page selection was changed")); |
| 16 |
RegisterEvent(wxT("wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING"), wxT("wxNotebookEvent"), |
| 17 |
_("The page selection is about to be changed. This event can be vetoed")); |
| 18 |
m_namePattern = wxT("m_notebook"); |
| 19 |
SetName(GenerateName()); |
| 20 |
} |
| 21 |
|
| 22 |
NotebookWrapper::~NotebookWrapper() {} |
| 23 |
|
| 24 |
wxcWidget* NotebookWrapper::Clone() const { return new NotebookWrapper(); } |
| 25 |
|
| 26 |
void NotebookWrapper::GetIncludeFile(wxArrayString& headers) const { headers.Add(wxT("#include <wx/notebook.h>")); } |
| 27 |
|
| 28 |
wxString NotebookWrapper::GetWxClassName() const { return wxT("wxNotebook"); } |
| 29 |
|
| 30 |
wxString NotebookWrapper::GetXRCPageClass() const { return wxT("notebookpage"); } |