|
Last change
on this file since 5d4edf was cbc27f, checked in by Tillmann Crueger <crueger@…>, 16 years ago |
|
Added a method that allows manipulation of selected atoms
|
-
Property mode
set to
100644
|
|
File size:
656 bytes
|
| Line | |
|---|
| 1 | /*
|
|---|
| 2 | * ManipulateAtomsProcess.hpp
|
|---|
| 3 | *
|
|---|
| 4 | * Created on: Feb 18, 2010
|
|---|
| 5 | * Author: crueger
|
|---|
| 6 | */
|
|---|
| 7 |
|
|---|
| 8 | #ifndef MANIPULATEATOMSPROCESS_HPP_
|
|---|
| 9 | #define MANIPULATEATOMSPROCESS_HPP_
|
|---|
| 10 |
|
|---|
| 11 | #include "Actions/Process.hpp"
|
|---|
| 12 | #include "Descriptors/AtomDescriptor.hpp"
|
|---|
| 13 |
|
|---|
| 14 | class ManipulateAtomsProcess : public Process
|
|---|
| 15 | {
|
|---|
| 16 | public:
|
|---|
| 17 | ManipulateAtomsProcess(boost::function<void(atom*)> _operation, AtomDescriptor descr,std::string _name,bool _doRegister=true);
|
|---|
| 18 | virtual ~ManipulateAtomsProcess();
|
|---|
| 19 |
|
|---|
| 20 | virtual void call();
|
|---|
| 21 | virtual void undo();
|
|---|
| 22 | virtual bool canUndo();
|
|---|
| 23 | private:
|
|---|
| 24 | AtomDescriptor descr;
|
|---|
| 25 | boost::function<void(atom*)> operation;
|
|---|
| 26 | };
|
|---|
| 27 |
|
|---|
| 28 | #endif /* MANIPULATEATOMSPROCESS_HPP_ */
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.