Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/ActionSequence.cpp

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