Commit 761ddfe0 authored by John Bonn's avatar John Bonn
Browse files

Redesign of base workorder class and rename of execute to setupExecution

parent c766037e
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -83,8 +83,8 @@ namespace Isis {
   * 
   * @return @b bool True if WorkOrder::execute() returns true.
   */
  bool CloseProjectWorkOrder::execute() {
    bool success = WorkOrder::execute();
  bool CloseProjectWorkOrder::setupExecution() {
    bool success = WorkOrder::setupExecution();

//    // If more than this work order is in the history, don't allow this operation
//    if (success && project()->workOrderHistory().count()) {
+1 −1
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ namespace Isis {
      virtual CloseProjectWorkOrder *clone() const;

      virtual bool isExecutable();
      bool execute();
      bool setupExecution();

    signals:

+2 −2
Original line number Diff line number Diff line
@@ -68,8 +68,8 @@ namespace Isis {
  }


  bool CnetEditorViewWorkOrder::execute() {
    bool success = WorkOrder::execute();
  bool CnetEditorViewWorkOrder::setupExecution() {
    bool success = WorkOrder::setupExecution();

    if (success) {
      QUndoCommand::setText(tr("View control network [%1] in new cnet editor view")
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ namespace Isis {
      virtual CnetEditorViewWorkOrder *clone() const;

      virtual bool isExecutable(ControlList *controls);
      bool execute();
      bool setupExecution();

    protected:
      bool dependsOn(WorkOrder *other) const;
+2 −2
Original line number Diff line number Diff line
@@ -99,8 +99,8 @@ namespace Isis {
   * 
   * @return @b bool True if WorkOrder::execute() returns true.
   */
  bool CubeDnViewWorkOrder::execute() {
    bool success = WorkOrder::execute();
  bool CubeDnViewWorkOrder::setupExecution() {
    bool success = WorkOrder::setupExecution();



Loading