source: molecuilder/src/Actions/ActionSequence.hpp@ 81c129

Last change on this file since 81c129 was 425da9, checked in by Tillmann Crueger <crueger@…>, 16 years ago

Added mechanism that allow to store and later execute sequences of Actions.

  • Property mode set to 100644
File size: 488 bytes
Line 
1/*
2 * ActionSequenze.hpp
3 *
4 * Created on: Dec 17, 2009
5 * Author: crueger
6 */
7
8#ifndef ACTIONSEQUENZE_HPP_
9#define ACTIONSEQUENZE_HPP_
10
11#include <deque>
12
13class Action;
14
15/**
16 * Store Actions for later use.
17 */
18class ActionSequence
19{
20public:
21 ActionSequence();
22 virtual ~ActionSequence();
23
24 void addAction(Action*);
25 Action* removeLastAction();
26
27 void callAll();
28 void undoAll();
29
30 bool canUndo();
31
32private:
33 std::deque<Action*> actions;
34};
35
36#endif /* ACTIONSEQUENZE_HPP_ */
Note: See TracBrowser for help on using the repository browser.