blob: 261193e92a3e31730b5b14d2af53f2274eb70d1f (
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
/*
* Menu.h
*
* Created on: Jan 22, 2012
* Author: Simon
*/
#ifndef MENU_H_
#define MENU_H_
#include "Tool.h"
class Menu
{
char icon;
string description;
vector<Tool*> tools;
public:
Menu(char icon_, string description_):
icon(icon_),
description(description_),
tools(vector<Tool*>())
{
}
virtual ~Menu()
{
for(int i = 0; i < tools.size(); i++)
{
delete tools[i];
}
tools.clear();
}
vector<Tool*> GetToolList()
{
return tools;
}
char GetIcon()
{
return icon;
}
string GetDescription()
{
return description;
}
void AddTool(Tool * tool_)
{
tools.push_back(tool_);
}
};
#endif /* MENU_H_ */
|