From bb6784e0e1a385cdd20b41d3254093e89a210332 Mon Sep 17 00:00:00 2001 From: pescuma Date: Wed, 31 Dec 2008 21:12:58 +0000 Subject: skins: Added SkinLib git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@120 c086bb3d-8645-0410-b8da-73a8550f86e7 --- Plugins/skins/SkinLib/DialogState.h | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 Plugins/skins/SkinLib/DialogState.h (limited to 'Plugins/skins/SkinLib/DialogState.h') diff --git a/Plugins/skins/SkinLib/DialogState.h b/Plugins/skins/SkinLib/DialogState.h new file mode 100644 index 0000000..08b98d6 --- /dev/null +++ b/Plugins/skins/SkinLib/DialogState.h @@ -0,0 +1,45 @@ +#ifndef __DIALOG_STATE_H__ +# define __DIALOG_STATE_H__ + +#include "Dialog.h" +#include "FieldState.h" +#include "BorderState.h" + + +/// This have to be deleted before the owning dialog +/// It is responsible for freeing the FieldStates +class DialogState +{ +public: + ~DialogState(); + + Dialog * getDialog() const; + + std::vector fields; + FieldState * getField(const char *name) const; + + int getWidth() const; + void setWidth(int width); + + int getHeight() const; + void setHeight(int height); + + BorderState * getBorders(); + const BorderState * getBorders() const; + +private: + DialogState(Dialog *dialog); + + Dialog *dialog; + + Size size; + BorderState borders; + + int getHorizontalBorders() const; + int getVerticalBorders() const; + + friend class Dialog; +}; + + +#endif // __DIALOG_STATE_H__ \ No newline at end of file -- cgit v1.2.3