source: molecuilder/src/Menu/ActionMenuItem.hpp@ ae8b90

Last change on this file since ae8b90 was 770138, checked in by Tillmann Crueger <crueger@…>, 15 years ago

Added mechanism that deactivates undo and redo menupoint if not applicable

  • Property mode set to 100644
File size: 580 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
28 virtual bool isActive();
29
30private:
31 Action* action; //!< this action will be called when the trigger matches
32};
33
34#endif /* ACTIONMENUITEM_H_ */
Note: See TracBrowser for help on using the repository browser.