blob: 9779cfa569569a71fa0765a4780fdbad4f471672 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef __TEXT_FIELD_STATE_H__
# define __TEXT_FIELD_STATE_H__
#include "TextField.h"
#include "FieldState.h"
#include "FontState.h"
class TextFieldState : public FieldState
{
public:
virtual ~TextFieldState();
virtual TextField * getField() const;
virtual Size getPreferedSize() const;
virtual const TCHAR * getText() const;
virtual void setText(const TCHAR *text);
virtual FontState * getFont();
virtual const FontState * getFont() const;
virtual bool isEmpty() const;
private:
TextFieldState(DialogState *dialog, TextField *field);
FontState font;
BOOL textSet;
std::tstring text;
friend class TextField;
};
#endif // __TEXT_FIELD_STATE_H__
|