summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/ButtonFieldState.cpp
blob: 986484b20b26232facb5146ac7a2a76a5d54cca5 (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
#include "globals.h"
#include "ButtonFieldState.h"

ButtonFieldState::ButtonFieldState(DialogState *dialog, ControlField *field) 
		: ControlFieldState(dialog, field)
{
}

ButtonFieldState::~ButtonFieldState()
{
}

Size ButtonFieldState::getPreferedSize() const
{
	Size ret = getTextPreferedSize(DT_SINGLELINE);

	int border = getField()->getBorderSize();
	ret.x += 2 * border;
	ret.y += 2 * border;

	ret.x += 12;
	ret.y += 10;

	return ret;
}

bool ButtonFieldState::isEmpty() const
{
	return false;
}