Last change
on this file since da09909 was da09909, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Improved documentation for menu framework.
|
-
Property mode
set to
100644
|
File size:
586 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * MethodAction.h
|
---|
3 | *
|
---|
4 | * Created on: Dec 11, 2009
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef METHODACTION_H_
|
---|
9 | #define METHODACTION_H_
|
---|
10 |
|
---|
11 | #include <boost/function.hpp>
|
---|
12 |
|
---|
13 | #include "Actions/Action.hpp"
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Wrapper class that allows the construction of Actions from any kind of Method
|
---|
17 | */
|
---|
18 | class MethodAction : public Action
|
---|
19 | {
|
---|
20 | public:
|
---|
21 | MethodAction(boost::function<void()>);
|
---|
22 | virtual ~MethodAction();
|
---|
23 |
|
---|
24 | virtual void call();
|
---|
25 | virtual void undo();
|
---|
26 | virtual bool canUndo();
|
---|
27 |
|
---|
28 | boost::function<void()> executeMethod; //!< this stores the method to be called
|
---|
29 |
|
---|
30 |
|
---|
31 | };
|
---|
32 |
|
---|
33 | #endif /* METHODACTION_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.