Separate transport control panel to its own class.

This commit is contained in:
apoorv569
2021-11-16 14:07:48 +05:30
parent ccda509068
commit 7dd7f2b3c1
10 changed files with 483 additions and 267 deletions
+13
View File
@@ -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);
}
+19
View File
@@ -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);
}