Last change
on this file since 53f5e6 was 32df34, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
Added an action that allows grouping and grouped execution of several actions.
|
-
Property mode
set to
100644
|
File size:
595 bytes
|
Line | |
---|
1 | /*
|
---|
2 | * MakroAction.hpp
|
---|
3 | *
|
---|
4 | * Created on: Dec 17, 2009
|
---|
5 | * Author: crueger
|
---|
6 | */
|
---|
7 |
|
---|
8 | #ifndef MAKROACTION_HPP_
|
---|
9 | #define MAKROACTION_HPP_
|
---|
10 |
|
---|
11 | #include "Actions/Action.hpp"
|
---|
12 |
|
---|
13 | class ActionSequence;
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Action to allow producing bigger Actions from sequences of small actions.
|
---|
17 | *
|
---|
18 | * Destruction of the Actions and the sequence is handled by this class.
|
---|
19 | */
|
---|
20 | class MakroAction : public Action
|
---|
21 | {
|
---|
22 | public:
|
---|
23 | MakroAction(ActionSequence*);
|
---|
24 | virtual ~MakroAction();
|
---|
25 |
|
---|
26 | virtual void call();
|
---|
27 | virtual void undo();
|
---|
28 | virtual bool canUndo();
|
---|
29 |
|
---|
30 | private:
|
---|
31 | ActionSequence *actions;
|
---|
32 | };
|
---|
33 |
|
---|
34 | #endif /* MAKROACTION_HPP_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.