git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44906
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
13 files changed:
wxObject *clientData,
const wxString& shortHelpString,
const wxString& longHelpString);
wxObject *clientData,
const wxString& shortHelpString,
const wxString& longHelpString);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
wxSize m_bestSize;
wxFrame *m_owningFrame;
wxSize m_bestSize;
wxFrame *m_owningFrame;
virtual void SetToolNormalBitmap(int id, const wxBitmap& bitmap);
virtual void SetToolDisabledBitmap(int id, const wxBitmap& bitmap);
virtual void SetToolNormalBitmap(int id, const wxBitmap& bitmap);
virtual void SetToolDisabledBitmap(int id, const wxBitmap& bitmap);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
static wxVisualAttributes
GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL);
// implementation from now on
// --------------------------
// implementation from now on
// --------------------------
void GtkSetStyle();
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
void GtkSetStyle();
virtual GdkWindow *GTKGetWindow(wxArrayGdkWindows& windows) const;
// implement base class pure virtuals
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);
// implement base class pure virtuals
virtual bool DoInsertTool(size_t pos, wxToolBarToolBase *tool);
virtual bool DoDeleteTool(size_t pos, wxToolBarToolBase *tool);
wxObject *clientData,
const wxString& shortHelpString,
const wxString& longHelpString);
wxObject *clientData,
const wxString& shortHelpString,
const wxString& longHelpString);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
private:
DECLARE_DYNAMIC_CLASS(wxToolBar)
private:
DECLARE_DYNAMIC_CLASS(wxToolBar)
wxObject *clientData,
const wxString& shortHelpString,
const wxString& longHelpString);
wxObject *clientData,
const wxString& shortHelpString,
const wxString& longHelpString);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
private:
DECLARE_DYNAMIC_CLASS(wxToolBar)
private:
DECLARE_DYNAMIC_CLASS(wxToolBar)
wxObject *clientData,
const wxString& shortHelp,
const wxString& longHelp);
wxObject *clientData,
const wxString& shortHelp,
const wxString& longHelp);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
virtual void DoSetSize(int x, int y,
int width, int height,
virtual void DoSetSize(int x, int y,
int width, int height,
wxObject *clientData,
const wxString& shortHelp,
const wxString& longHelp);
wxObject *clientData,
const wxString& shortHelp,
const wxString& longHelp);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
private:
DECLARE_EVENT_TABLE()
private:
DECLARE_EVENT_TABLE()
,const wxString& rsShortHelp
,const wxString& rsLongHelp
);
,const wxString& rsShortHelp
,const wxString& rsLongHelp
);
- virtual wxToolBarToolBase* CreateTool(wxControl* pControl);
+ virtual wxToolBarToolBase* CreateTool(wxControl* pControl,
+ const wxString& label);
wxObject *clientData,
const wxString& shortHelp,
const wxString& longHelp);
wxObject *clientData,
const wxString& shortHelp,
const wxString& longHelp);
- virtual wxToolBarToolBase *CreateTool(wxControl *control);
+ virtual wxToolBarToolBase *CreateTool(wxControl *control,
+ const wxString& label);
// return the appropriate size and flags for the toolbar control
virtual wxSize DoGetBestSize() const;
// return the appropriate size and flags for the toolbar control
virtual wxSize DoGetBestSize() const;
- wxToolBarTool(wxToolBar *tbar, wxControl *control)
- : wxToolBarToolBase(tbar, control)
+ wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label)
+ : wxToolBarToolBase(tbar, control, label)
clientData, shortHelpString, longHelpString);
}
clientData, shortHelpString, longHelpString);
}
-wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control)
+wxToolBarToolBase *
+wxToolBar::CreateTool(wxControl *control, const wxString& label)
- return new wxToolBarTool(this, control);
+ return new wxToolBarTool(this, control, label);
}
void wxToolBar::SetWindowStyleFlag( long style )
}
void wxToolBar::SetWindowStyleFlag( long style )
- wxToolBarTool(wxToolBar *tbar, wxControl *control)
- : wxToolBarToolBase(tbar, control)
+ wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label)
+ : wxToolBarToolBase(tbar, control, label)
clientData, shortHelpString, longHelpString);
}
clientData, shortHelpString, longHelpString);
}
-wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control)
+wxToolBarToolBase *
+wxToolBar::CreateTool(wxControl *control, const wxString& label)
- return new wxToolBarTool(this, control);
+ return new wxToolBarTool(this, control, label);
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------
- wxToolBarTool(wxToolBar *tbar, wxControl *control)
- : wxToolBarToolBase(tbar, control)
+ wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label)
+ : wxToolBarToolBase(tbar, control, label)
clientData, shortHelpString, longHelpString);
}
clientData, shortHelpString, longHelpString);
}
-wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control)
+wxToolBarToolBase *
+wxToolBar::CreateTool(wxControl *control, const wxString& label)
- return new wxToolBarTool(this, control);
+ return new wxToolBarTool(this, control, label);
}
//-----------------------------------------------------------------------------
}
//-----------------------------------------------------------------------------
- wxToolBarTool(wxToolBar *tbar, wxControl *control)
- : wxToolBarToolBase(tbar, control)
+ wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label)
+ : wxToolBarToolBase(tbar, control, label)
-wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control)
+wxToolBarToolBase *
+wxToolBar::CreateTool(wxControl *control, const wxString& label)
- return new wxToolBarTool(this, control);
+ return new wxToolBarTool(this, control, label);
}
void wxToolBarTool::Init()
}
void wxToolBarTool::Init()
inline wxToolBarTool( wxToolBar* pTbar
,wxControl* pControl
inline wxToolBarTool( wxToolBar* pTbar
,wxControl* pControl
) : wxToolBarToolBase( pTbar
,pControl
) : wxToolBarToolBase( pTbar
,pControl
wxToolBarToolBase *wxToolBar::CreateTool(
wxControl* pControl
wxToolBarToolBase *wxToolBar::CreateTool(
wxControl* pControl
)
{
return new wxToolBarTool( this
,pControl
)
{
return new wxToolBarTool( this
,pControl
);
} // end of wxToolBarSimple::CreateTool
);
} // end of wxToolBarSimple::CreateTool
- wxToolBarTool(wxToolBar *tbar, wxControl *control)
- : wxToolBarToolBase(tbar, control)
+ wxToolBarTool(wxToolBar *tbar, wxControl *control, const wxString& label)
+ : wxToolBarToolBase(tbar, control, label)
clientData, shortHelp, longHelp);
}
clientData, shortHelp, longHelp);
}
-wxToolBarToolBase *wxToolBar::CreateTool(wxControl *control)
+wxToolBarToolBase *
+wxToolBar::CreateTool(wxControl *control, const wxString& label)
- return new wxToolBarTool(this, control);
+ return new wxToolBarTool(this, control, label);
}
// ----------------------------------------------------------------------------
}
// ----------------------------------------------------------------------------