diff options
Diffstat (limited to 'plugins/Skins/SkinLib/Dialog.h')
-rw-r--r-- | plugins/Skins/SkinLib/Dialog.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/plugins/Skins/SkinLib/Dialog.h b/plugins/Skins/SkinLib/Dialog.h new file mode 100644 index 0000000000..0e85b8e340 --- /dev/null +++ b/plugins/Skins/SkinLib/Dialog.h @@ -0,0 +1,41 @@ +#ifndef __DIALOG_H__
+# define __DIALOG_H__
+
+#include <vector>
+#include "Field.h"
+#include "DialogInfo.h"
+
+class DialogState;
+
+
+/// It is responsible for freeing the Fields
+class Dialog
+{
+public:
+ Dialog(const char *name);
+ virtual ~Dialog();
+
+ virtual const char * getName() const;
+
+ virtual bool addField(Field *field);
+ virtual Field * getField(const char *name) const;
+ virtual Field * getField(unsigned int pos) const;
+ virtual int getIndexOf(Field *field) const;
+ virtual unsigned int getFieldCount() const;
+
+ virtual DialogInfo * getInfo();
+
+ virtual const Size & getSize() const;
+ virtual void setSize(const Size &size);
+
+ virtual DialogState * createState();
+
+private:
+ const std::string name;
+ std::vector<Field *> fields;
+ DialogInfo info;
+ Size size;
+};
+
+
+#endif // __DIALOG_H__
|