summaryrefslogtreecommitdiff
path: root/plugins/Skins/SkinLib/Dialog.h
blob: 0e85b8e3408c7f145a3b8f381d1544846f290997 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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__