source: molecuilder/src/Menu/ActionMenuItem.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: 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
15class Action;
16
17/**
18 * Produce MenuItems that take an appropriate action when called.
19 */
20class ActionMenuItem : public MenuItem
21{
22public:
23 ActionMenuItem(char,const char*,Menu*,Action*);
24 virtual ~ActionMenuItem();
25
26 virtual void doTrigger();
27
28private:
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.