fix aui sample breakage; added some accessor methods to wxAuiToolBarItem

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Benjamin Williams 2008-09-08 09:56:49 +00:00
parent 375f364ef2
commit 0766faa34e
2 changed files with 13 additions and 4 deletions

View File

@ -153,10 +153,19 @@ public:
}
void SetWindow(wxWindow* w) { window = w; }
wxWindow* GetWindow() { return window; }
void SetId(int new_id) { id = new_id; }
int GetId() const { return id; }
void SetKind(int new_kind) { kind = new_kind; }
int GetKind() const { return kind; }
void SetState(int new_state) { state = new_state; }
int GetState() const { return state; }
void SetSizerItem(wxSizerItem* s) { sizer_item = s; }
wxSizerItem* GetSizerItem() const { return sizer_item; }
void SetLabel(const wxString& s) { label = s; }

View File

@ -760,11 +760,11 @@ MyFrame::MyFrame(wxWindow* parent,
wxAuiToolBarItemArray prepend_items;
wxAuiToolBarItemArray append_items;
wxAuiToolBarItem item;
item.kind = wxITEM_SEPARATOR;
item.SetKind(wxITEM_SEPARATOR);
append_items.Add(item);
item.kind = wxITEM_NORMAL;
item.id = ID_CustomizeToolbar;
item.label = _("Customize...");
item.SetKind(wxITEM_NORMAL);
item.SetId(ID_CustomizeToolbar);
item.SetLabel(_("Customize..."));
append_items.Add(item);