| 1 |
#ifndef COLHEADERFLAGSPROPERTY_H |
| 2 |
#define COLHEADERFLAGSPROPERTY_H |
| 3 |
|
| 4 |
#include "property_base.h" // Base class: PropertyBase |
| 5 |
|
| 6 |
enum class eColumnKind { |
| 7 |
kDataView, |
| 8 |
kListCtrl, |
| 9 |
}; |
| 10 |
|
| 11 |
class ColHeaderFlagsProperty : public PropertyBase |
| 12 |
{ |
| 13 |
wxArrayString m_names; |
| 14 |
wxArrayInt m_values; |
| 15 |
int m_initialValue; |
| 16 |
|
| 17 |
public: |
| 18 |
virtual wxArrayString GetOptions() const; |
| 19 |
virtual wxArrayInt GetOptionsValues() const; |
| 20 |
virtual long GetValueLong() const; |
| 21 |
|
| 22 |
ColHeaderFlagsProperty(); |
| 23 |
ColHeaderFlagsProperty(const wxString& label, int initialValue, const wxString& tip, |
| 24 |
eColumnKind kind = eColumnKind::kListCtrl); |
| 25 |
virtual ~ColHeaderFlagsProperty(); |
| 26 |
|
| 27 |
public: |
| 28 |
virtual PropertyeType GetType(); |
| 29 |
virtual wxString GetValue() const; |
| 30 |
virtual JSONElement Serialize() const; |
| 31 |
virtual void SetValue(const wxString& value); |
| 32 |
virtual void UnSerialize(const JSONElement& json); |
| 33 |
}; |
| 34 |
|
| 35 |
#endif // COLHEADERFLAGSPROPERTY_H |