fix aui sample breakage; added some accessor methods to wxAuiToolBarItem
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55522 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -155,10 +155,19 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void SetWindow(wxWindow* w) { window = w; }
|
||||||
wxWindow* GetWindow() { return window; }
|
wxWindow* GetWindow() { return window; }
|
||||||
|
|
||||||
|
void SetId(int new_id) { id = new_id; }
|
||||||
int GetId() const { return id; }
|
int GetId() const { return id; }
|
||||||
|
|
||||||
|
void SetKind(int new_kind) { kind = new_kind; }
|
||||||
int GetKind() const { return kind; }
|
int GetKind() const { return kind; }
|
||||||
|
|
||||||
|
void SetState(int new_state) { state = new_state; }
|
||||||
int GetState() const { return state; }
|
int GetState() const { return state; }
|
||||||
|
|
||||||
|
void SetSizerItem(wxSizerItem* s) { sizer_item = s; }
|
||||||
wxSizerItem* GetSizerItem() const { return sizer_item; }
|
wxSizerItem* GetSizerItem() const { return sizer_item; }
|
||||||
|
|
||||||
void SetLabel(const wxString& s) { label = s; }
|
void SetLabel(const wxString& s) { label = s; }
|
||||||
|
@@ -757,11 +757,11 @@ MyFrame::MyFrame(wxWindow* parent,
|
|||||||
wxAuiToolBarItemArray prepend_items;
|
wxAuiToolBarItemArray prepend_items;
|
||||||
wxAuiToolBarItemArray append_items;
|
wxAuiToolBarItemArray append_items;
|
||||||
wxAuiToolBarItem item;
|
wxAuiToolBarItem item;
|
||||||
item.kind = wxITEM_SEPARATOR;
|
item.SetKind(wxITEM_SEPARATOR);
|
||||||
append_items.Add(item);
|
append_items.Add(item);
|
||||||
item.kind = wxITEM_NORMAL;
|
item.SetKind(wxITEM_NORMAL);
|
||||||
item.id = ID_CustomizeToolbar;
|
item.SetId(ID_CustomizeToolbar);
|
||||||
item.label = _("Customize...");
|
item.SetLabel(_("Customize..."));
|
||||||
append_items.Add(item);
|
append_items.Add(item);
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user