| Rev | Line | |
|---|
| [70c4aa6] | 1 | /*
|
|---|
| 2 | * ErrorAction.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Jan 5, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef ERRORACTION_HPP_
|
|---|
| 9 | #define ERRORACTION_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include <string>
|
|---|
| 12 | #include "Actions/Action.hpp"
|
|---|
| 13 |
|
|---|
| 14 | class ErrorAction : public Action
|
|---|
| 15 | {
|
|---|
| 16 | public:
|
|---|
| [3e8325] | 17 | ErrorAction(std::string _name,const char * _errorMsg,bool _doRegister=true);
|
|---|
| [70c4aa6] | 18 | virtual ~ErrorAction();
|
|---|
| 19 |
|
|---|
| 20 | virtual bool canUndo();
|
|---|
| [0012e6] | 21 | virtual bool shouldUndo();
|
|---|
| [70c4aa6] | 22 |
|
|---|
| 23 | private:
|
|---|
| [0012e6] | 24 |
|
|---|
| [521e29] | 25 | virtual Action::state_ptr performCall();
|
|---|
| 26 | virtual Action::state_ptr performUndo(Action::state_ptr);
|
|---|
| 27 | virtual Action::state_ptr performRedo(Action::state_ptr);
|
|---|
| [0012e6] | 28 |
|
|---|
| [70c4aa6] | 29 | std::string errorMsg;
|
|---|
| 30 | };
|
|---|
| 31 |
|
|---|
| 32 | #endif /* ERRORACTION_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.