X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/94e36a5196e52314b56c1b4d29bae0d02519af55..900eb07b487d457492051da8e846cce49168b5c3:/wxPython/src/stattool.i diff --git a/wxPython/src/stattool.i b/wxPython/src/stattool.i index 4b8a73cb11..e8a592d9df 100644 --- a/wxPython/src/stattool.i +++ b/wxPython/src/stattool.i @@ -16,7 +16,6 @@ %{ #include "helpers.h" #include -#include %} //---------------------------------------------------------------------- @@ -91,6 +90,20 @@ enum wxToolBarToolStyle wxTOOL_STYLE_CONTROL }; +enum { + wxTB_HORIZONTAL, + wxTB_VERTICAL, + wxTB_3DBUTTONS, + wxTB_FLAT, + wxTB_DOCKABLE, + wxTB_NOICONS, + wxTB_TEXT, + wxTB_NODIVIDER, + wxTB_NOALIGN, + wxTB_HORZ_LAYOUT, + wxTB_HORZ_TEXT, +}; + class wxToolBarToolBase : public wxObject { @@ -196,7 +209,7 @@ public: // Insert the new tool at the given position, if pos == GetToolsCount(), it // is equivalent to DoAddTool() - wxToolBarToolBase *InsertTool(size_t pos, + wxToolBarToolBase *DoInsertTool(size_t pos, int id, const wxString& label, const wxBitmap& bitmap, @@ -270,7 +283,7 @@ public: # 2.3.3. They are renamed to have 'Label' in the name so as to be # able to keep backwards compatibility with using the above # methods. Eventually these should migrate to be the methods used - # primarily and loose the 'Label' in the name... + # primarily and lose the 'Label' in the name... def AddLabelTool(self, id, label, bitmap, bmpDisabled = wxNullBitmap, @@ -341,9 +354,13 @@ public: shortHelp, longHelp, clientData) " + // TODO? + //wxToolBarToolBase *AddTool (wxToolBarToolBase *tool); + //wxToolBarToolBase *InsertTool (size_t pos, wxToolBarToolBase *tool); wxToolBarToolBase *AddControl(wxControl *control); wxToolBarToolBase *InsertControl(size_t pos, wxControl *control); + wxControl *FindControl( int id ); wxToolBarToolBase *AddSeparator(); wxToolBarToolBase *InsertSeparator(size_t pos); @@ -378,6 +395,8 @@ public: } } + // returns tool pos, or wxNOT_FOUND if tool isn't found + int GetToolPos(int id) const; bool GetToolState(int id); bool GetToolEnabled(int id); @@ -441,28 +460,28 @@ public: -class wxToolBarSimple : public wxToolBarBase { -public: - wxToolBarSimple(wxWindow *parent, - wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxNO_BORDER | wxTB_HORIZONTAL, - const wxString& name = wxPyToolBarNameStr); - %name(wxPreToolBarSimple)wxToolBarSimple(); +// class wxToolBarSimple : public wxToolBarBase { +// public: +// wxToolBarSimple(wxWindow *parent, +// wxWindowID id, +// const wxPoint& pos = wxDefaultPosition, +// const wxSize& size = wxDefaultSize, +// long style = wxNO_BORDER | wxTB_HORIZONTAL, +// const wxString& name = wxPyToolBarNameStr); +// %name(wxPreToolBarSimple)wxToolBarSimple(); - bool Create(wxWindow *parent, - wxWindowID id, - const wxPoint& pos = wxDefaultPosition, - const wxSize& size = wxDefaultSize, - long style = wxNO_BORDER | wxTB_HORIZONTAL, - const wxString& name = wxPyToolBarNameStr); +// bool Create(wxWindow *parent, +// wxWindowID id, +// const wxPoint& pos = wxDefaultPosition, +// const wxSize& size = wxDefaultSize, +// long style = wxNO_BORDER | wxTB_HORIZONTAL, +// const wxString& name = wxPyToolBarNameStr); - %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" - %pragma(python) addtomethod = "wxPreToolBarSimple:val._setOORInfo(val)" +// %pragma(python) addtomethod = "__init__:self._setOORInfo(self)" +// %pragma(python) addtomethod = "wxPreToolBarSimple:val._setOORInfo(val)" - wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); -}; +// wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); +// }; //--------------------------------------------------------------------------- //---------------------------------------------------------------------------