| 1 |
#include "list_book_wrapper.h" |
| 2 |
#include "allocator_mgr.h" |
| 3 |
#include "wxgui_defs.h" |
| 4 |
#include <wx/listbook.h> |
| 5 |
|
| 6 |
ListBookWrapper::ListBookWrapper() |
| 7 |
: NotebookBaseWrapper(ID_WXLISTBOOK) |
| 8 |
{ |
| 9 |
SetPropertyString(_("Common Settings"), "wxListbook"); |
| 10 |
PREPEND_STYLE_TRUE(wxLB_DEFAULT); |
| 11 |
PREPEND_STYLE_FALSE(wxLB_LEFT); |
| 12 |
PREPEND_STYLE_FALSE(wxLB_RIGHT); |
| 13 |
PREPEND_STYLE_FALSE(wxLB_TOP); |
| 14 |
PREPEND_STYLE_FALSE(wxLB_BOTTOM); |
| 15 |
|
| 16 |
RegisterEvent(wxT("wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED"), wxT("wxListbookEvent"), |
| 17 |
_("The page selection was changed")); |
| 18 |
RegisterEvent(wxT("wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING"), wxT("wxListbookEvent"), |
| 19 |
_("The page selection is about to be changed. This event can be vetoed")); |
| 20 |
m_namePattern = wxT("m_listbook"); |
| 21 |
SetName(GenerateName()); |
| 22 |
} |
| 23 |
|
| 24 |
ListBookWrapper::~ListBookWrapper() {} |
| 25 |
|
| 26 |
wxString ListBookWrapper::GetXRCPageClass() const { return wxT("listbookpage"); } |
| 27 |
|
| 28 |
wxcWidget* ListBookWrapper::Clone() const { return new ListBookWrapper(); } |
| 29 |
|
| 30 |
void ListBookWrapper::GetIncludeFile(wxArrayString& headers) const { headers.Add(wxT("#include <wx/listbook.h>")); } |
| 31 |
|
| 32 |
wxString ListBookWrapper::GetWxClassName() const { return wxT("wxListbook"); } |