mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-19 14:17:41 +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;
|
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,
|
AButton::AButton(wxWindow * parent,
|
||||||
wxWindowID id,
|
wxWindowID id,
|
||||||
const wxPoint & pos,
|
const wxPoint & pos,
|
||||||
|
@ -41,19 +41,6 @@ class AButton final : public wxWindow {
|
|||||||
ImageRoll dis,
|
ImageRoll dis,
|
||||||
bool toggle);
|
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();
|
virtual ~ AButton();
|
||||||
|
|
||||||
// hide the inherited function that takes naked wxString:
|
// hide the inherited function that takes naked wxString:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user