summaryrefslogtreecommitdiff
path: root/Plugins/skins/SkinLib/Dialog.h
blob: ae9807719cdb432de79ad0c57b7bcb70da0fe07b (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
#ifndef __DIALOG_H__
# define __DIALOG_H__

#include <vector>
#include "Field.h"

class DialogState;


/// It is responsible for freeing the Fields
class Dialog
{
public:
	Dialog(const char *name);
	~Dialog();

	const char * getName() const;

	std::vector<Field *> fields;
	bool addField(Field *field);
	Field * getField(const char *name) const;

	const Size & getSize() const;
	void setSize(const Size &size);

	DialogState * createState();

private:
	const std::string name;
	Size size;
};


#endif // __DIALOG_H__