bool GWCommand::redo(GWDocument& d) { //this probably needs to be a try/catch, as DoImpl could fail in all sorts of //interesting ways deep in interesting stacks, where throwing would probably //be the easiest way to break out, rather than passing falses up the ladder bool doSuccess = redoImpl(d); if(doSuccess) { d.commandDone(*this); } return doSuccess; }
/** * @brief RemoveElement::redo */ void RemoveElement::redo() { redoImpl([this](){ return m_Model->removeElement(m_Component); }); }
/** * @brief RemoveField::redo */ void RemoveField::redo() { redoImpl([this](){ return m_Model->removeField(m_Component); }); }