Debian Codegraph @

wxcrafter/src/property_base.cpp

raw
1 #include "property_base.h"
2
3 const wxEventType wxEVT_WXC_PROPETY_CHANGED = ::wxNewEventType();
4 PropertyBase::PropertyBase(const wxString& tooltip)
5 : m_tooltip(tooltip)
6 {
7 }
8
9 PropertyBase::~PropertyBase() {}
10
11 void PropertyBase::DoBaseSerialize(JSONElement& json) const { json.addProperty(wxT("m_label"), m_label); }
12
13 void PropertyBase::DoBaseUnSerialize(const JSONElement& json) { m_label = json.namedObject(wxT("m_label")).toString(); }
14
15 void PropertyBase::NotifyChanged()
16 {
17 wxCommandEvent evt(wxEVT_WXC_PROPETY_CHANGED);
18 evt.SetEventObject(this);
19 ProcessEvent(evt);
20 }