| 1 |
#ifndef FONTPROPERTY_H |
| 2 |
#define FONTPROPERTY_H |
| 3 |
|
| 4 |
#include "property_base.h" |
| 5 |
|
| 6 |
extern const wxEventType wxEVT_FONT_UPDATE; |
| 7 |
|
| 8 |
class FontProperty : public PropertyBase |
| 9 |
{ |
| 10 |
protected: |
| 11 |
wxString m_value; |
| 12 |
|
| 13 |
public: |
| 14 |
FontProperty(const wxString& label, const wxString& font, const wxString& tooltip); |
| 15 |
virtual ~FontProperty(); |
| 16 |
|
| 17 |
public: |
| 18 |
wxString GetValue() const; |
| 19 |
JSONElement Serialize() const; |
| 20 |
void SetValue(const wxString& value); |
| 21 |
void UnSerialize(const JSONElement& json); |
| 22 |
virtual PropertyeType GetType() { return PT_FONT_PICKER; } |
| 23 |
}; |
| 24 |
|
| 25 |
#endif // FONTPROPERTY_H |