From 9242a80a84fa5c96dbadec9594177875aeeec1ac Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Tue, 10 Jul 2012 18:37:21 +0000 Subject: only added MyDetails and Skins. not adopted yet git-svn-id: http://svn.miranda-ng.org/main/trunk@892 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Skins/SkinLib/IconField.cpp | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 plugins/Skins/SkinLib/IconField.cpp (limited to 'plugins/Skins/SkinLib/IconField.cpp') diff --git a/plugins/Skins/SkinLib/IconField.cpp b/plugins/Skins/SkinLib/IconField.cpp new file mode 100644 index 0000000000..4cf1aaf532 --- /dev/null +++ b/plugins/Skins/SkinLib/IconField.cpp @@ -0,0 +1,38 @@ +#include "globals.h" +#include "IconField.h" +#include "IconFieldState.h" + + +IconField::IconField(Dialog *dlg, const char *name) + : Field(dlg, name), hIcon(NULL) +{ + +} + +IconField::~IconField() +{ +} + +FieldType IconField::getType() const +{ + return SIMPLE_ICON; +} + +HICON IconField::getIcon() const +{ + return hIcon; +} + +void IconField::setIcon(HICON hIcon) +{ + if (this->hIcon == hIcon) + return; + + this->hIcon = hIcon; + fireOnChange(); +} + +FieldState * IconField::createState(DialogState *dialogState) +{ + return new IconFieldState(dialogState, this); +} \ No newline at end of file -- cgit v1.2.3