Debian Codegraph @

wxcrafter/src/winid_property.h

raw
1 #ifndef COMBOXPROPERTY_H
2 #define COMBOXPROPERTY_H
3
4 #include "property_base.h"
5 #include <macros.h>
6 #include <wx/arrstr.h>
7
8 extern const wxEventType wxEVT_WINID_UPDATED;
9
10 class WinIdProperty : public PropertyBase
11 {
12 wxString m_winid;
13 static wxArrayString s_options;
14
15 public:
16 static wxStringSet_t m_winIdSet;
17
18 public:
19 WinIdProperty();
20 virtual ~WinIdProperty();
21
22 virtual wxString GetValue() const { return m_winid; }
23 virtual void SetValue(const wxString& value) { m_winid = value; }
24
25 // Serialization methods
26 virtual JSONElement Serialize() const;
27 virtual void UnSerialize(const JSONElement& json);
28
29 virtual PropertyeType GetType() { return PT_COMBOX; }
30
31 virtual wxArrayString GetOptions() const { return s_options; }
32 };
33
34 #endif // COMBOXPROPERTY_H