mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-10 08:59:24 +01:00
33 lines
665 B
C++
33 lines
665 B
C++
#pragma once
|
|
|
|
#include <wx/event.h>
|
|
|
|
class wxLogEvent;
|
|
wxDECLARE_EVENT(EVT_LOG, wxLogEvent);
|
|
|
|
class wxLogEvent : public wxCommandEvent
|
|
{
|
|
public:
|
|
wxLogEvent(const wxString& filter, const wxString& message)
|
|
: wxCommandEvent(EVT_LOG), m_filter(filter), m_message(message) { }
|
|
|
|
wxLogEvent(const wxLogEvent& event)
|
|
: wxCommandEvent(event), m_filter(event.m_filter), m_message(event.m_message) { }
|
|
|
|
wxEvent* Clone() const { return new wxLogEvent(*this); }
|
|
|
|
[[nodiscard]] const wxString& GetFilter() const
|
|
{
|
|
return m_filter;
|
|
}
|
|
|
|
[[nodiscard]] const wxString& GetMessage() const
|
|
{
|
|
return m_message;
|
|
}
|
|
|
|
private:
|
|
wxString m_filter;
|
|
wxString m_message;
|
|
};
|