Debian Codegraph @

wxcrafter/src/category_property.cpp

raw
1 #include "category_property.h"
2
3 CategoryProperty::CategoryProperty(const wxString& name, const wxString& label)
4 : PropertyBase(name)
5 , m_value(name)
6 {
7 if(label.IsEmpty())
8 SetLabel(name);
9 else
10 SetLabel(label);
11 }
12
13 CategoryProperty::~CategoryProperty() {}
14
15 PropertyeType CategoryProperty::GetType() { return PT_CATEGORY; }
16
17 wxString CategoryProperty::GetValue() const { return m_value; }
18
19 JSONElement CategoryProperty::Serialize() const { return JSONElement(NULL); }
20
21 void CategoryProperty::SetValue(const wxString& value) { m_value = value; }
22
23 void CategoryProperty::UnSerialize(const JSONElement& json) { wxUnusedVar(json); }