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:
parent
1689050c9c
commit
b1cf7e57cb
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user