1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-17 16:40:07 +02: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:
Paul Licameli 2020-05-04 11:11:29 -04:00
parent 1689050c9c
commit b1cf7e57cb
2 changed files with 0 additions and 31 deletions

View File

@ -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,

View File

@ -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: