-
Notifications
You must be signed in to change notification settings - Fork 1
/
rmapobjectfactory.h
executable file
·37 lines (29 loc) · 1.07 KB
/
rmapobjectfactory.h
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
#ifndef RMAPOBJECTFACTORY_H
#define RMAPOBJECTFACTORY_H
class RTable;
class RSection;
class QWidget;
//--------------------------------------------------------------------------------------
class RMapObjectFactory {
public:
RMapObjectFactory();
virtual ~RMapObjectFactory();
virtual RSection *createSection(QWidget *parent) const = 0;
virtual RTable *createTable(RSection *parentSection) const = 0;
};
//--------------------------------------------------------------------------------------
class RMapObjectSimpleFactory : public RMapObjectFactory {
public:
virtual RSection *createSection(QWidget *parent) const;
virtual RTable *createTable(RSection *parentSection) const;
};
//--------------------------------------------------------------------------------------
class RMapObjectGridFactory : public RMapObjectFactory {
public:
RMapObjectGridFactory(int size);
virtual RSection *createSection(QWidget *parent) const;
virtual RTable *createTable(RSection *parentSection) const;
private:
int gridSize;
};
#endif // RMAPOBJECTFACTORY_H