| 1 |
#ifndef STRINGPROPERTY_H |
| 2 |
#define STRINGPROPERTY_H |
| 3 |
|
| 4 |
#include "multi_strings_property.h" |
| 5 |
#include "property_base.h" // Base class: PropertyBase |
| 6 |
|
| 7 |
class StringProperty : public MultiStringsProperty |
| 8 |
{ |
| 9 |
public: |
| 10 |
StringProperty(const wxString& label, const wxString& value, const wxString& tooltip) |
| 11 |
: MultiStringsProperty(label, tooltip, "\n", "") |
| 12 |
{ |
| 13 |
m_value = value; |
| 14 |
} |
| 15 |
|
| 16 |
StringProperty(const wxString& label, const wxString& tooltip) |
| 17 |
: MultiStringsProperty(label, tooltip, "\n", "") |
| 18 |
{ |
| 19 |
} |
| 20 |
|
| 21 |
StringProperty(); |
| 22 |
virtual ~StringProperty(); |
| 23 |
|
| 24 |
public: |
| 25 |
virtual wxString GetValue() const; |
| 26 |
virtual void SetValue(const wxString& value); |
| 27 |
virtual PropertyeType GetType() { return PT_MUTLI_STRING_PICKER; } |
| 28 |
void operator=(const wxString& src) { m_value = src; } |
| 29 |
virtual JSONElement Serialize() const; |
| 30 |
virtual void UnSerialize(const JSONElement& json); |
| 31 |
}; |
| 32 |
|
| 33 |
#endif // STRINGPROPERTY_H |