mirror of
https://gitlab.com/samplehive/sample-hive.git
synced 2026-10-23 13:15:00 +02:00
Separate transport control panel to its own class.
This commit is contained in:
@@ -101,4 +101,17 @@ namespace SampleHive
|
||||
}
|
||||
|
||||
wxDEFINE_EVENT(SH_EVT_TIMER_STOP, SH_TimerEvent);
|
||||
|
||||
SH_CallFunctionEvent::SH_CallFunctionEvent(wxEventType eventType, int winId)
|
||||
: wxCommandEvent(eventType, winId)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
SH_CallFunctionEvent::~SH_CallFunctionEvent()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
wxDEFINE_EVENT(SH_EVT_CALL_FUNC_PLAY, SH_CallFunctionEvent);
|
||||
}
|
||||
|
||||
@@ -146,4 +146,23 @@ namespace SampleHive
|
||||
};
|
||||
|
||||
wxDECLARE_EVENT(SH_EVT_TIMER_STOP, SH_TimerEvent);
|
||||
|
||||
class SH_CallFunctionEvent : public wxCommandEvent
|
||||
{
|
||||
public:
|
||||
SH_CallFunctionEvent(wxEventType eventType, int winId);
|
||||
~SH_CallFunctionEvent();
|
||||
|
||||
public:
|
||||
virtual wxEvent* Clone() const { return new SH_CallFunctionEvent(*this); }
|
||||
|
||||
public:
|
||||
wxString GetSlection() { return m_Selection; }
|
||||
void SetSelection(const wxString& selection) { m_Selection = selection; }
|
||||
|
||||
private:
|
||||
wxString m_Selection;
|
||||
};
|
||||
|
||||
wxDECLARE_EVENT(SH_EVT_CALL_FUNC_PLAY, SH_CallFunctionEvent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user