|
Last change
on this file since c2c893 was d20ed5, checked in by Frederik Heber <heber@…>, 16 years ago |
|
Added basic menu and action framework
- Added action base class
- Added class to make actions from methods
- Added Menu base class
- Added TextMenu class to produce text menus
- Added MenuItem base class for menu items
- Added ActionMenuItem for menu items using an action
- Added SubMenuItem class for menu items presenting a submenu
- Added SeperatorItem class for menu seperators without functioninality
Signed-off-by: Tillmann Crueger <crueger@…>
|
-
Property mode
set to
100644
|
|
File size:
347 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 | class Menu
|
|---|
| 16 | {
|
|---|
| 17 | public:
|
|---|
| 18 | Menu();
|
|---|
| 19 | virtual ~Menu();
|
|---|
| 20 |
|
|---|
| 21 | virtual void addItem(MenuItem*)=0;
|
|---|
| 22 | virtual void removeItem(MenuItem*)=0;
|
|---|
| 23 | virtual void display()=0;
|
|---|
| 24 |
|
|---|
| 25 | private:
|
|---|
| 26 | };
|
|---|
| 27 |
|
|---|
| 28 | #endif /* MENU_H_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.