Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionSequence.cpp

    r4e145c r047878  
    4141// this method is used outside the ActionModule
    4242// Each action registers itself with the history
    43 void ActionSequence::callAllDialogs(){
     43Dialog* ActionSequence::fillAllDialogs(Dialog *dialog){
    4444  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);
    5246  }
    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;
    6648}
    6749
Note: See TracChangeset for help on using the changeset viewer.