|
Last change
on this file since 38546d was da09909, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Improved documentation for menu framework.
|
-
Property mode
set to
100644
|
|
File size:
552 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * ActionMenuItem.h
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Dec 11, 2009
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ACTIONMENUITEM_H_
|
|---|
| 9 | #define ACTIONMENUITEM_H_
|
|---|
| 10 |
|
|---|
| 11 | #include <string>
|
|---|
| 12 |
|
|---|
| 13 | #include "Menu/MenuItem.hpp"
|
|---|
| 14 |
|
|---|
| 15 | class Action;
|
|---|
| 16 |
|
|---|
| 17 | /**
|
|---|
| 18 | * Produce MenuItems that take an appropriate action when called.
|
|---|
| 19 | */
|
|---|
| 20 | class ActionMenuItem : public MenuItem
|
|---|
| 21 | {
|
|---|
| 22 | public:
|
|---|
| 23 | ActionMenuItem(char,const char*,Menu*,Action*);
|
|---|
| 24 | virtual ~ActionMenuItem();
|
|---|
| 25 |
|
|---|
| 26 | virtual void doTrigger();
|
|---|
| 27 |
|
|---|
| 28 | private:
|
|---|
| 29 | Action* action; //!< this action will be called when the trigger matches
|
|---|
| 30 | };
|
|---|
| 31 |
|
|---|
| 32 | #endif /* ACTIONMENUITEM_H_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.