| 1 |
#ifndef COLORPROPERTY_H |
| 2 |
#define COLORPROPERTY_H |
| 3 |
|
| 4 |
#include "property_base.h" // Base class: PropertyBase |
| 5 |
|
| 6 |
extern const wxEventType wxEVT_COLOR_UPDATE; |
| 7 |
|
| 8 |
class ColorProperty : public PropertyBase |
| 9 |
{ |
| 10 |
wxString m_colourName; |
| 11 |
|
| 12 |
public: |
| 13 |
ColorProperty(const wxString& label, const wxString& colour = wxT("<Default>"), const wxString& tooltip = ""); |
| 14 |
virtual ~ColorProperty(); |
| 15 |
|
| 16 |
public: |
| 17 |
virtual wxString GetValue() const; |
| 18 |
virtual JSONElement Serialize() const; |
| 19 |
virtual void SetValue(const wxString& value); |
| 20 |
virtual void UnSerialize(const JSONElement& json); |
| 21 |
virtual PropertyeType GetType() { return PT_COLOR_PICKER; } |
| 22 |
}; |
| 23 |
|
| 24 |
#endif // COLORPROPERTY_H |