X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9b6dbb09746f8f5ee0549a2ff39ae0ac4c725898..2fd284a4a09793c29078296529d3e9db5acd0a0f:/include/wx/motif/toolbar.h diff --git a/include/wx/motif/toolbar.h b/include/wx/motif/toolbar.h index 4ccb016fb9..f93c142d21 100644 --- a/include/wx/motif/toolbar.h +++ b/include/wx/motif/toolbar.h @@ -32,7 +32,9 @@ class WXDLLEXPORT wxToolBar: public wxToolBarBase inline wxToolBar(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTB_HORIZONTAL, - const wxString& name = wxToolBarNameStr) + const wxString& name = wxToolBarNameStr): + m_widgets(wxKEY_INTEGER) + { Create(parent, id, pos, size, style, name); } @@ -68,7 +70,22 @@ class WXDLLEXPORT wxToolBar: public wxToolBarBase // necessary for completing the toolbar construction. bool Realize() { return CreateTools(); }; +// Implementation + void DestroyPixmaps(); + int FindIndexForWidget(WXWidget w); + WXWidget FindWidgetForIndex(int index); + + WXWidget GetTopWidget() const; + WXWidget GetClientWidget() const; + WXWidget GetMainWidget() const; + protected: + // List of widgets in the toolbar, indexed by tool index + wxList m_widgets; + + // List of pixmaps to destroy when tools are recreated or + // or toolbar is destroyed. + wxList m_pixmaps; DECLARE_EVENT_TABLE() };