| 1 |
#include "choice_book_wrapper.h" |
| 2 |
#include "allocator_mgr.h" |
| 3 |
#include "wxgui_defs.h" |
| 4 |
#include <wx/choicebk.h> |
| 5 |
|
| 6 |
ChoiceBookWrapper::ChoiceBookWrapper() |
| 7 |
: NotebookBaseWrapper(ID_WXCHOICEBOOK) |
| 8 |
{ |
| 9 |
RegisterEvent(wxT("wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGED"), wxT("wxChoicebookEvent"), |
| 10 |
_("The page selection was changed")); |
| 11 |
RegisterEvent(wxT("wxEVT_COMMAND_CHOICEBOOK_PAGE_CHANGING"), wxT("wxChoicebookEvent"), |
| 12 |
_("The page selection is about to be changed. This event can be vetoed")); |
| 13 |
|
| 14 |
SetPropertyString(_("Common Settings"), "wxChoicebook"); |
| 15 |
m_namePattern = wxT("m_choicebook"); |
| 16 |
SetName(GenerateName()); |
| 17 |
} |
| 18 |
|
| 19 |
ChoiceBookWrapper::~ChoiceBookWrapper() {} |
| 20 |
|
| 21 |
wxcWidget* ChoiceBookWrapper::Clone() const { return new ChoiceBookWrapper(); } |
| 22 |
|
| 23 |
void ChoiceBookWrapper::GetIncludeFile(wxArrayString& headers) const { headers.Add(wxT("#include <wx/choicebk.h>")); } |
| 24 |
|
| 25 |
wxString ChoiceBookWrapper::GetWxClassName() const { return wxT("wxChoicebook"); } |
| 26 |
|
| 27 |
wxString ChoiceBookWrapper::GetXRCPageClass() const { return wxT("choicebookpage"); } |