source: molecuilder/src/Actions/MethodAction.cpp@ 381df6

Last change on this file since 381df6 was 381df6, checked in by Frederik Heber <heber@…>, 16 years ago

Rebuild the main menu using the new structure as far as possible. Signed-off-by: Tillmann Crueger <crueger@…>

  • Property mode set to 100644
File size: 497 bytes
Line 
1/*
2 * MethodAction.cpp
3 *
4 * Created on: Dec 11, 2009
5 * Author: crueger
6 */
7
8#include <iostream>
9#include <boost/function.hpp>
10
11#include "MethodAction.hpp"
12
13using namespace std;
14
15MethodAction::MethodAction(boost::function<void()> _executeMethod) :
16executeMethod(_executeMethod)
17{
18}
19
20MethodAction::~MethodAction()
21{
22 // TODO Auto-generated destructor stub
23}
24
25
26void MethodAction::call() {
27 executeMethod();
28}
29void MethodAction::undo() {
30
31}
32
33bool MethodAction::canUndo() {
34 return false;
35}
Note: See TracBrowser for help on using the repository browser.