- const wxString& shortHelpString,
- const wxString& longHelpString);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ const wxString& shortHelp,
+ const wxString& longHelp);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
+
+ virtual wxSize DoGetBestClientSize() const;
+ virtual void DoSetSize(int x, int y,
+ int width, int height,
+ int sizeFlags = wxSIZE_AUTO);
+ virtual void DoDraw(wxControlRenderer *renderer);
+
+ // get the bounding rect for the given tool
+ wxRect GetToolRect(wxToolBarToolBase *tool) const;
+
+ // redraw the given tool
+ void RefreshTool(wxToolBarToolBase *tool);
+
+ // (re)calculate the tool positions, should only be called if it is
+ // necessary to do it, i.e. m_needsLayout == true
+ void DoLayout();
+
+ // get the rect limits depending on the orientation: top/bottom for a
+ // vertical toolbar, left/right for a horizontal one
+ void GetRectLimits(const wxRect& rect, wxCoord *start, wxCoord *end) const;