From bb22e7b2a0af67cc65ce5179917b20e5977ed4ef Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 11 Jul 2012 17:09:09 +0000 Subject: 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 --- plugins/Skins/SkinLib/LabelFieldState.cpp | 35 ------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 plugins/Skins/SkinLib/LabelFieldState.cpp (limited to 'plugins/Skins/SkinLib/LabelFieldState.cpp') 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 -- cgit v1.2.3