source: molecuilder/src/Actions/MethodAction.hpp@ da09909

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
RevLine 
[d20ed5]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
[da09909]15/**
16 * Wrapper class that allows the construction of Actions from any kind of Method
17 */
[d20ed5]18class MethodAction : public Action
19{
20public:
[381df6]21 MethodAction(boost::function<void()>);
[d20ed5]22 virtual ~MethodAction();
23
24 virtual void call();
25 virtual void undo();
26 virtual bool canUndo();
27
[da09909]28 boost::function<void()> executeMethod; //!< this stores the method to be called
[d20ed5]29
30
31};
32
33#endif /* METHODACTION_H_ */
Note: See TracBrowser for help on using the repository browser.