summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/ControlFieldState.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Skins/SkinLib/ControlFieldState.h')
-rw-r--r--plugins/Skins/SkinLib/ControlFieldState.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/Skins/SkinLib/ControlFieldState.h b/plugins/Skins/SkinLib/ControlFieldState.h
new file mode 100644
index 0000000000..85186c304a
--- /dev/null
+++ b/plugins/Skins/SkinLib/ControlFieldState.h
@@ -0,0 +1,39 @@
+#ifndef __LABEL_CONTROL_FIELD_STATE_H__
+# define __LABEL_CONTROL_FIELD_STATE_H__
+
+#include "ControlField.h"
+#include "FieldState.h"
+#include "FontState.h"
+
+
+class ControlFieldState : public FieldState
+{
+public:
+ virtual ~ControlFieldState();
+
+ virtual ControlField * getField() const;
+
+ virtual Size getPreferedSize() const = 0;
+
+ virtual const TCHAR * getText() const;
+ virtual void setText(const TCHAR *text);
+
+ virtual FontState * getFont();
+ virtual const FontState * getFont() const;
+
+protected:
+ ControlFieldState(DialogState *dialog, ControlField *field);
+
+ virtual Size getTextPreferedSize(unsigned int format) const;
+
+private:
+ FontState font;
+
+ bool textSet;
+ std::tstring text;
+
+ friend class ControlField;
+};
+
+
+#endif // __LABEL_CONTROL_FIELD_STATE_H__ \ No newline at end of file