diff options
Diffstat (limited to 'plugins/Skins/SkinLib/ImageFieldState.cpp')
-rw-r--r-- | plugins/Skins/SkinLib/ImageFieldState.cpp | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/plugins/Skins/SkinLib/ImageFieldState.cpp b/plugins/Skins/SkinLib/ImageFieldState.cpp deleted file mode 100644 index f74d77e0f3..0000000000 --- a/plugins/Skins/SkinLib/ImageFieldState.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include "globals.h"
-#include "ImageFieldState.h"
-
-
-ImageFieldState::ImageFieldState(DialogState *dialog, ImageField *field)
- : FieldState(dialog, field)
-{
-}
-
-ImageFieldState::~ImageFieldState()
-{
-}
-
-ImageField * ImageFieldState::getField() const
-{
- return (ImageField *) FieldState::getField();
-}
-
-Size ImageFieldState::getPreferedSize() const
-{
- HBITMAP hBmp = getImage();
- BITMAP bmp;
- if (hBmp == NULL || GetObject(hBmp, sizeof(bmp), &bmp) == 0)
- return Size(0, 0);
-
- return Size(bmp.bmWidth, bmp.bmHeight);
-}
-
-HBITMAP ImageFieldState::getImage() const
-{
- return getField()->getImage();
-}
-
-bool ImageFieldState::isEmpty() const
-{
- return getImage() == NULL;
-}
\ No newline at end of file |