Debian Codegraph @

wxcrafter/src/int_property.h

raw
1 #ifndef INTPROPERTY_H
2 #define INTPROPERTY_H
3
4 #include "property_base.h" // Base class: PropertyBase
5
6 class IntProperty : public PropertyBase
7 {
8 int m_value;
9 bool m_uninitialized;
10
11 public:
12 IntProperty()
13 : PropertyBase("")
14 , m_value(-1)
15 , m_uninitialized(true)
16 {
17 }
18
19 IntProperty(const wxString& label, int value, const wxString& tooltip);
20 IntProperty(const wxString& label, const wxString& tooltip);
21 virtual ~IntProperty();
22
23 bool IsUninitialized() const { return m_uninitialized; }
24
25 public:
26 virtual PropertyeType GetType();
27 virtual wxString GetValue() const;
28 virtual JSONElement Serialize() const;
29 virtual void SetValue(const wxString& value);
30 virtual void UnSerialize(const JSONElement& json);
31 };
32
33 #endif // INTPROPERTY_H