]> git.saurik.com Git - wxWidgets.git/commitdiff
fix aui sample breakage; added some accessor methods to wxAuiToolBarItem
authorBenjamin Williams <bwilliams@kirix.com>
Mon, 8 Sep 2008 09:56:49 +0000 (09:56 +0000)
committerBenjamin Williams <bwilliams@kirix.com>
Mon, 8 Sep 2008 09:56:49 +0000 (09:56 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55523 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/aui/auibar.h
samples/aui/auidemo.cpp

index 658fc7b3240d6da80ccc3524c63eb57385a783a3..1e30b0ad4007663d31a165c96b2c4c3e928181d4 100644 (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; }
index 2b6dcfa06918e8b2faa8aeafc3bfb48be6d2a243..e3dae64d42fe316651ea531c7d8bbdc4b2743546 100644 (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);