X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/06336f51bb5120c9ac23d66c6acd79ec7428f15f..9ac884500ce30c58e24b0a6af1288b576d2e03e4:/wxPython/src/_toolbar.i diff --git a/wxPython/src/_toolbar.i b/wxPython/src/_toolbar.i index ffcfb67b40..bdabc3a308 100644 --- a/wxPython/src/_toolbar.i +++ b/wxPython/src/_toolbar.i @@ -43,6 +43,8 @@ enum { wxTB_NOALIGN, wxTB_HORZ_LAYOUT, wxTB_HORZ_TEXT, + wxTB_NO_TOOLTIPS, + wxTB_BOTTOM }; @@ -121,6 +123,19 @@ public: SetBitmap1 = SetNormalBitmap SetBitmap2 = SetDisabledBitmap } + + %property(Bitmap, GetBitmap, doc="See `GetBitmap`"); + %property(ClientData, GetClientData, SetClientData, doc="See `GetClientData` and `SetClientData`"); + %property(Control, GetControl, doc="See `GetControl`"); + %property(DisabledBitmap, GetDisabledBitmap, SetDisabledBitmap, doc="See `GetDisabledBitmap` and `SetDisabledBitmap`"); + %property(Id, GetId, doc="See `GetId`"); + %property(Kind, GetKind, doc="See `GetKind`"); + %property(Label, GetLabel, SetLabel, doc="See `GetLabel` and `SetLabel`"); + %property(LongHelp, GetLongHelp, SetLongHelp, doc="See `GetLongHelp` and `SetLongHelp`"); + %property(NormalBitmap, GetNormalBitmap, SetNormalBitmap, doc="See `GetNormalBitmap` and `SetNormalBitmap`"); + %property(ShortHelp, GetShortHelp, SetShortHelp, doc="See `GetShortHelp` and `SetShortHelp`"); + %property(Style, GetStyle, doc="See `GetStyle`"); + %property(ToolBar, GetToolBar, doc="See `GetToolBar`"); }; @@ -382,6 +397,16 @@ public: bool IsVertical(); size_t GetToolsCount() const; + + %property(Margins, GetMargins, SetMargins, doc="See `GetMargins` and `SetMargins`"); + %property(MaxCols, GetMaxCols, doc="See `GetMaxCols`"); + %property(MaxRows, GetMaxRows, doc="See `GetMaxRows`"); + %property(ToolBitmapSize, GetToolBitmapSize, SetToolBitmapSize, doc="See `GetToolBitmapSize` and `SetToolBitmapSize`"); + %property(ToolMargins, GetToolMargins, doc="See `GetToolMargins`"); + %property(ToolPacking, GetToolPacking, SetToolPacking, doc="See `GetToolPacking` and `SetToolPacking`"); + %property(ToolSeparation, GetToolSeparation, SetToolSeparation, doc="See `GetToolSeparation` and `SetToolSeparation`"); + %property(ToolSize, GetToolSize, doc="See `GetToolSize`"); + %property(ToolsCount, GetToolsCount, doc="See `GetToolsCount`"); }; @@ -413,10 +438,40 @@ public: long style = wxNO_BORDER | wxTB_HORIZONTAL, const wxString& name = wxPyToolBarNameStr); - wxToolBarToolBase *FindToolForPosition(wxCoord x, wxCoord y); - static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; //--------------------------------------------------------------------------- + +#if 0 +%{ +#include +%} + +MustHaveApp(wxToolBar); +class wxButtonToolBar : public wxToolBarBase +{ +public: + %pythonAppend wxButtonToolBar "self._setOORInfo(self)" + %pythonAppend wxButtonToolBar() "" + + wxButtonToolBar(wxWindow *parent, + wxWindowID id=-1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyToolBarNameStr); + %RenameCtor(PreButtonToolBar, wxButtonToolBar()); + + + bool Create(wxWindow *parent, + wxWindowID id=-1, + const wxPoint& pos = wxDefaultPosition, + const wxSize& size = wxDefaultSize, + long style = 0, + const wxString& name = wxPyToolBarNameStr); +}; + +#endif +//---------------------------------------------------------------------------