source: molecuilder/src/Menu/Menu.hpp@ 01d28a

Last change on this file since 01d28a 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
11using namespace std;
12
13class 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 */
21class Menu
22{
23public:
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
38private:
39};
40
41#endif /* MENU_H_ */
Note: See TracBrowser for help on using the repository browser.