X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/994453b843b007de6367fedbf4a49ac9d920c63c..b4aa9fec6574268008b58ea6b3b3bef126c2d6b3:/wxPython/src/_toolbar.i diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index 65a1b76af6..629b1b2c36 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -34,6 +34,11 @@ enum wxToolBarToolStyle enum { wxTB_HORIZONTAL, wxTB_VERTICAL, + wxTB_TOP, + wxTB_LEFT, + wxTB_BOTTOM, + wxTB_RIGHT, + wxTB_3DBUTTONS, wxTB_FLAT, wxTB_DOCKABLE, @@ -43,7 +48,7 @@ enum { wxTB_NOALIGN, wxTB_HORZ_LAYOUT, wxTB_HORZ_TEXT, - wxTB_NO_TOOLTIPS, + wxTB_NO_TOOLTIPS }; @@ -320,8 +325,10 @@ public: %Rename(AddToolItem, wxToolBarToolBase*, AddTool (wxToolBarToolBase *tool)); %Rename(InsertToolItem, wxToolBarToolBase*, InsertTool (size_t pos, wxToolBarToolBase *tool)); - wxToolBarToolBase *AddControl(wxControl *control); - wxToolBarToolBase *InsertControl(size_t pos, wxControl *control); + wxToolBarToolBase *AddControl(wxControl *control, + const wxString& label = wxEmptyString); + wxToolBarToolBase *InsertControl(size_t pos, wxControl *control, + const wxString& label = wxEmptyString); wxControl *FindControl( int id ); wxToolBarToolBase *AddSeparator(); @@ -437,6 +444,10 @@ public: long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString& name = wxPyToolBarNameStr); + // TODO: In 2.9 move these to the base class... + void SetToolNormalBitmap(int id, const wxBitmap& bitmap); + void SetToolDisabledBitmap(int id, const wxBitmap& bitmap); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); };