mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-03 15:43:50 +01:00
Simplify AButton...
... Don't need another constructor just to do conversions from wxImage to ImageRoll, which can happen implicitly
This commit is contained in:
@@ -193,24 +193,6 @@ int AButton::Listener::FilterEvent(wxEvent &event)
|
||||
return Event_Skip;
|
||||
}
|
||||
|
||||
AButton::AButton(wxWindow * parent,
|
||||
wxWindowID id,
|
||||
const wxPoint & pos,
|
||||
const wxSize & size,
|
||||
wxImage up,
|
||||
wxImage over,
|
||||
wxImage down,
|
||||
wxImage overDown,
|
||||
wxImage dis,
|
||||
bool toggle):
|
||||
wxWindow()
|
||||
{
|
||||
Init(parent, id, pos, size,
|
||||
ImageRoll(up), ImageRoll(over),
|
||||
ImageRoll(down), ImageRoll(overDown), ImageRoll(dis),
|
||||
toggle);
|
||||
}
|
||||
|
||||
AButton::AButton(wxWindow * parent,
|
||||
wxWindowID id,
|
||||
const wxPoint & pos,
|
||||
|
||||
@@ -41,19 +41,6 @@ class AButton final : public wxWindow {
|
||||
ImageRoll dis,
|
||||
bool toggle);
|
||||
|
||||
// Construct button, specifying images (button up, highlight, button down,
|
||||
// and disabled) for the default state
|
||||
AButton(wxWindow * parent,
|
||||
wxWindowID id,
|
||||
const wxPoint & pos,
|
||||
const wxSize & size,
|
||||
wxImage up,
|
||||
wxImage over,
|
||||
wxImage down,
|
||||
wxImage overDown,
|
||||
wxImage dis,
|
||||
bool toggle);
|
||||
|
||||
virtual ~ AButton();
|
||||
|
||||
// hide the inherited function that takes naked wxString:
|
||||
|
||||
Reference in New Issue
Block a user