Changes in src/Actions/ActionSequence.cpp [4e145c:047878]
- File:
-
- 1 edited
-
src/Actions/ActionSequence.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionSequence.cpp
r4e145c r047878 41 41 // this method is used outside the ActionModule 42 42 // Each action registers itself with the history 43 void ActionSequence::callAllDialogs(){43 Dialog* ActionSequence::fillAllDialogs(Dialog *dialog){ 44 44 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 45 // we want to have a global bookkeeping for all actions in the sequence, so 46 // we bypass the normal call 47 Dialog * dialog = (*it)->createDialog(); 48 if (dialog != NULL) { 49 dialog->display(); 50 delete(dialog); 51 } 45 dialog = (*it)->fillDialog(dialog); 52 46 } 53 } 54 55 // This method is used internally when MakroActions are constructed. 56 // In this case only the makro Action should be registered and 57 // handle the states 58 ActionSequence::stateSet ActionSequence::callAllDialogs(bool){ 59 stateSet states; 60 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 61 // we want to have a global bookkeeping for all actions in the sequence, so 62 // we bypass the normal call 63 (*it)->createDialog()->display(); 64 } 65 return states; 47 return dialog; 66 48 } 67 49
Note:
See TracChangeset
for help on using the changeset viewer.
