summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/LabelFieldState.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-07-11 17:09:09 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-07-11 17:09:09 +0000
commitbb22e7b2a0af67cc65ce5179917b20e5977ed4ef (patch)
tree120e18f5a61144f3f632263e05cb49109f672615 /plugins/Skins/SkinLib/LabelFieldState.cpp
parent3b8d44fb4646951be55b3777cbe30d3280867067 (diff)
MyDetails reverted to older version that doesn't use Skins plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@905 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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