summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/LabelFieldState.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Skins/SkinLib/LabelFieldState.cpp')
-rw-r--r--plugins/Skins/SkinLib/LabelFieldState.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/plugins/Skins/SkinLib/LabelFieldState.cpp b/plugins/Skins/SkinLib/LabelFieldState.cpp
deleted file mode 100644
index 364611fbf7..0000000000
--- a/plugins/Skins/SkinLib/LabelFieldState.cpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#include "globals.h"
-#include "LabelFieldState.h"
-
-
-LabelFieldState::LabelFieldState(DialogState *dialog, LabelField *field)
- : ControlFieldState(dialog, field)
-{
-}
-
-LabelFieldState::~LabelFieldState()
-{
-}
-
-Size LabelFieldState::getPreferedSize() const
-{
- int style = GetWindowLong(getField()->getHWND(), GWL_STYLE);
-
- int format = DT_EXPANDTABS | DT_EDITCONTROL;
- if ((style & SS_LEFTNOWORDWRAP) || (style & SS_SIMPLE))
- format |= DT_SINGLELINE;
- if (style & SS_NOPREFIX)
- format |= DT_NOPREFIX;
- Size ret = getTextPreferedSize(format);
-
- int border = getField()->getBorderSize();
- ret.x += 2 * border;
- ret.y += 2 * border;
-
- return ret;
-}
-
-bool LabelFieldState::isEmpty() const
-{
- return lstrlen(getText()) <= 0;
-} \ No newline at end of file