X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6f02a879ed7efc5fcf6328ff47a1352ec82812b7..985acf8734d61067c66b4812a9dd9da90d725851:/include/wx/mac/carbon/toolbar.h?ds=sidebyside diff --git a/include/wx/mac/carbon/toolbar.h b/include/wx/mac/carbon/toolbar.h index ee979c767e..00d7309b30 100644 --- a/include/wx/mac/carbon/toolbar.h +++ b/include/wx/mac/carbon/toolbar.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: toolbar.h +// Name: wx/mac/carbon/toolbar.h // Purpose: wxToolBar class // Author: Stefan Csomor // Modified by: @@ -37,7 +37,7 @@ class WXDLLEXPORT wxToolBar: public wxToolBarBase Init(); Create(parent, id, pos, size, style, name); } - ~wxToolBar(); + virtual ~wxToolBar(); bool Create(wxWindow *parent, wxWindowID id, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxNO_BORDER|wxTB_HORIZONTAL, @@ -57,7 +57,10 @@ class WXDLLEXPORT wxToolBar: public wxToolBarBase virtual void SetRows(int nRows); - // Add all the buttons + virtual void SetToolNormalBitmap(int id, const wxBitmap& bitmap); + virtual void SetToolDisabledBitmap(int id, const wxBitmap& bitmap); + + // Add all the buttons virtual wxString MacGetToolTipString( wxPoint &where ) ; void OnPaint(wxPaintEvent& event) ; @@ -90,12 +93,13 @@ protected: wxObject *clientData, const wxString& shortHelp, const wxString& longHelp); - virtual wxToolBarToolBase *CreateTool(wxControl *control); + virtual wxToolBarToolBase *CreateTool(wxControl *control, + const wxString& label); DECLARE_EVENT_TABLE() -#if wxMAC_USE_NATIVE_TOOLBAR - bool m_macUsesNativeToolbar ; - void* m_macHIToolbarRef ; +#if wxMAC_USE_NATIVE_TOOLBAR + bool m_macUsesNativeToolbar ; + void* m_macHIToolbarRef ; #endif };