mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-20 21:27:52 -06:00
Tab preset & value change events
This commit is contained in:
parent
b3c09a9254
commit
f31cf684cb
6 changed files with 102 additions and 80 deletions
|
@ -14,6 +14,7 @@ struct SimpleEvent : public wxEvent
|
|||
{
|
||||
SimpleEvent(wxEventType type, wxObject* origin = nullptr) : wxEvent(0, type)
|
||||
{
|
||||
m_propagationLevel = wxEVENT_PROPAGATE_MAX;
|
||||
SetEventObject(origin);
|
||||
}
|
||||
|
||||
|
@ -30,6 +31,7 @@ template<class T, size_t N> struct ArrayEvent : public wxEvent
|
|||
ArrayEvent(wxEventType type, std::array<T, N> data, wxObject* origin = nullptr)
|
||||
: wxEvent(0, type), data(std::move(data))
|
||||
{
|
||||
m_propagationLevel = wxEVENT_PROPAGATE_MAX;
|
||||
SetEventObject(origin);
|
||||
}
|
||||
|
||||
|
@ -45,6 +47,7 @@ template<class T> struct ArrayEvent<T, 1> : public wxEvent
|
|||
ArrayEvent(wxEventType type, T data, wxObject* origin = nullptr)
|
||||
: wxEvent(0, type), data(std::move(data))
|
||||
{
|
||||
m_propagationLevel = wxEVENT_PROPAGATE_MAX;
|
||||
SetEventObject(origin);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue