Last change
on this file since da09909 was da09909, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Improved documentation for menu framework.
|
-
Property mode
set to
100644
|
File size:
673 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * Menu.h
|
---|
3 | *
|
---|
4 | * Created on: Dec 10, 2009
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef MENU_MENU_H_
|
---|
9 | #define MENU_MENU_H_
|
---|
10 |
|
---|
11 | using namespace std;
|
---|
12 |
|
---|
13 | class MenuItem;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Base class for all Types of menus
|
---|
17 | * contains basic abstract functionality to add Items, remove Items and display the menu
|
---|
18 | *
|
---|
19 | * TODO: Make sure all items are only added once.
|
---|
20 | */
|
---|
21 | class Menu
|
---|
22 | {
|
---|
23 | public:
|
---|
24 | Menu();
|
---|
25 | virtual ~Menu();
|
---|
26 |
|
---|
27 |
|
---|
28 | /**
|
---|
29 | * Adding and removing should be handled by the items.
|
---|
30 | */
|
---|
31 | virtual void addItem(MenuItem*)=0;
|
---|
32 | /**
|
---|
33 | * Adding and removing should be handled by the items.
|
---|
34 | */
|
---|
35 | virtual void removeItem(MenuItem*)=0;
|
---|
36 | virtual void display()=0;
|
---|
37 |
|
---|
38 | private:
|
---|
39 | };
|
---|
40 |
|
---|
41 | #endif /* MENU_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.