Isis 3 Programmer Reference
BundleObservationViewWorkOrder.cpp
1 
7 /* SPDX-License-Identifier: CC0-1.0 */
8 
9 #include "BundleObservationViewWorkOrder.h"
10 
11 #include <QtDebug>
12 
13 #include "Directory.h"
14 #include "BundleObservationView.h"
15 #include "Project.h"
16 #include "ProjectItemModel.h"
17 
18 namespace Isis {
19 
27  WorkOrder(project) {
28  m_isUndoable = false;
29  m_isSavedToHistory = false;
30  QAction::setText(tr("&View..."));
31  QUndoCommand::setText(tr("View..."));
32  }
33 
34 
41  WorkOrder(other) {
42  m_isUndoable = other.m_isUndoable;
43  }
44 
45 
50  }
51 
52 
59 
60  return new BundleObservationViewWorkOrder(*this);
61  }
62 
63 
75  bool result = false;
76 
77  if (fileItem) {
78  result = true;
79  }
80  return result;
81  }
82 
83 
91 
92  bool success = WorkOrder::setupExecution();
93  return success;
94  }
95 
96 
105 // ProjectItem * selectedItem = project()->directory()->model()->selectedItems();
107  project()->setClean(false);
108  }
109 
110 }
Isis::BundleObservationViewWorkOrder::setupExecution
virtual bool setupExecution()
Setup this WorkOrder for execution.
Definition: BundleObservationViewWorkOrder.cpp:90
Isis::WorkOrder::setupExecution
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
Isis::BundleObservationViewWorkOrder::BundleObservationViewWorkOrder
BundleObservationViewWorkOrder(Project *project)
Creates a work order to view BundleObservation.
Definition: BundleObservationViewWorkOrder.cpp:26
Isis::BundleObservationViewWorkOrder::execute
virtual void execute()
This adds a new BundleObservationView to the project.
Definition: BundleObservationViewWorkOrder.cpp:104
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::WorkOrder::m_isSavedToHistory
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition: WorkOrder.h:537
Isis::Directory::addBundleObservationView
BundleObservationView * addBundleObservationView(FileItemQsp fileItem)
Add the BundleObservationView to the window.
Definition: Directory.cpp:602
QSharedPointer< FileItem >
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::Project::directory
Directory * directory() const
Returns the directory associated with this Project.
Definition: Project.cpp:1229
Isis::BundleObservationViewWorkOrder::isExecutable
virtual bool isExecutable(FileItemQsp fileItem)
False if none of the images has a footprint.
Definition: BundleObservationViewWorkOrder.cpp:74
Isis::WorkOrder::m_isUndoable
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
Definition: WorkOrder.h:523
Isis::WorkOrder::project
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1300
Isis::BundleObservationViewWorkOrder::clone
virtual BundleObservationViewWorkOrder * clone() const
This method clones the current BundleObservationViewWorkOrder and returns it.
Definition: BundleObservationViewWorkOrder.cpp:58
Isis::BundleObservationViewWorkOrder::~BundleObservationViewWorkOrder
~BundleObservationViewWorkOrder()
Destructor to clean up any memory that this work order allocates.
Definition: BundleObservationViewWorkOrder.cpp:49
Isis::WorkOrder::fileItem
FileItemQsp fileItem()
WorkOrder::fileItem.
Definition: WorkOrder.cpp:766
Isis::Project::setClean
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
Isis::BundleObservationViewWorkOrder
This is a child of the WorkOrder class which is used for anything that performs an action in a Projec...
Definition: BundleObservationViewWorkOrder.h:32
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16