Changeset e3ce0e for src/Actions
- Timestamp:
- Jun 20, 2018, 8:20:43 AM (7 years ago)
- Branches:
- AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, StoppableMakroAction
- Children:
- 4b2adf
- Parents:
- 559293
- git-author:
- Frederik Heber <frederik.heber@…> (09/13/17 17:20:35)
- git-committer:
- Frederik Heber <frederik.heber@…> (06/20/18 08:20:43)
- Location:
- src/Actions
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionSequence.cpp
r559293 re3ce0e 47 47 48 48 ActionSequence::ActionSequence() : 49 loop(1) 49 loop(1), 50 step(0) 50 51 {} 51 52 52 53 ActionSequence::ActionSequence(const ActionSequence &_other) : 53 loop(1) 54 loop(1), 55 step(0) 54 56 { 55 57 // we need to override copy cstor as we have pointer referenced objects … … 114 116 void ActionSequence::callAll() 115 117 { 116 for (s ize_t i=0;i<loop;++i)118 for (step=0;step<loop;++step) 117 119 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 118 120 // we want to have a global bookkeeping for all actions in the sequence, so … … 128 130 { 129 131 stateSet states; 130 for (s ize_t i=0;i<loop;++i)132 for (step=0;step<loop;++step) 131 133 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 132 134 // we want to have a global bookkeeping for all actions in the sequence, so -
src/Actions/ActionSequence.hpp
r559293 re3ce0e 67 67 void setLoop(unsigned int _loop) 68 68 { loop = _loop; } 69 70 unsigned int getStep() const 71 { return step; } 72 69 73 private: 70 74 actionSet actions; 71 75 //!> how often the sequence is repeated 72 76 unsigned int loop; 77 //!> current step (used in loops) 78 unsigned int step; 73 79 }; 74 80 -
src/Actions/MakroAction.cpp
r559293 re3ce0e 88 88 } 89 89 90 unsigned int MakroAction::getLoop() const 91 { 92 return actions.getLoop(); 93 } 94 95 unsigned int MakroAction::getStep() const 96 { 97 return actions.getStep(); 98 } 99 90 100 bool MakroAction::removeAction(const std::string &name) 91 101 { -
src/Actions/MakroAction.hpp
r559293 re3ce0e 54 54 virtual void unprepare(ActionRegistry &AR); 55 55 56 void setLoop(unsigned int _loop); 57 58 unsigned int getLoop() const; 59 60 unsigned int getStep() const; 61 56 62 protected: 57 63 virtual ~MakroAction(); … … 78 84 virtual ActionState::ptr performRedo(ActionState::ptr); 79 85 80 void setLoop(unsigned int _loop);81 82 86 private: 83 87 /** fillDialog is used to spawn sequence queries, hence must not be modified by
Note:
See TracChangeset
for help on using the changeset viewer.