Changes in src/Actions/ActionSequence.cpp [047878:4e145c]
- File:
-
- 1 edited
-
src/Actions/ActionSequence.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Actions/ActionSequence.cpp
r047878 r4e145c 41 41 // this method is used outside the ActionModule 42 42 // Each action registers itself with the history 43 Dialog* ActionSequence::fillAllDialogs(Dialog *dialog){43 void ActionSequence::callAllDialogs(){ 44 44 for(actionSet::iterator it=actions.begin(); it!=actions.end(); it++){ 45 dialog = (*it)->fillDialog(dialog); 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 } 46 52 } 47 return dialog; 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; 48 66 } 49 67
Note:
See TracChangeset
for help on using the changeset viewer.
