Isis 3 Programmer Reference
BundleObservationViewWorkOrder.cpp
Go to the documentation of this file.
1 
22 
23 #include <QtDebug>
24 
25 #include "Directory.h"
26 #include "BundleObservationView.h"
27 #include "Project.h"
28 #include "ProjectItemModel.h"
29 
30 namespace Isis {
31 
39  WorkOrder(project) {
40  m_isUndoable = false;
41  m_isSavedToHistory = false;
42  QAction::setText(tr("&View..."));
43  QUndoCommand::setText(tr("View..."));
44  }
45 
46 
53  WorkOrder(other) {
54  m_isUndoable = other.m_isUndoable;
55  }
56 
57 
62  }
63 
64 
71 
72  return new BundleObservationViewWorkOrder(*this);
73  }
74 
75 
87  bool result = false;
88 
89  if (fileItem) {
90  result = true;
91  }
92  return result;
93  }
94 
95 
103 
104  bool success = WorkOrder::setupExecution();
105  return success;
106  }
107 
108 
117 // ProjectItem * selectedItem = project()->directory()->model()->selectedItems();
119  project()->setClean(false);
120  }
121 
122 }
$Date$ $Revision$
The main project for ipce.
Definition: Project.h:289
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1275
virtual bool setupExecution()
Setup this WorkOrder for execution.
virtual bool isExecutable(FileItemQsp fileItem)
False if none of the images has a footprint.
This is a child of the WorkOrder class which is used for anything that performs an action in a Projec...
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
BundleObservationViewWorkOrder(Project *project)
Creates a work order to view BundleObservation.
Directory * directory() const
Returns the directory associated with this Project.
Definition: Project.cpp:1229
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
~BundleObservationViewWorkOrder()
Destructor to clean up any memory that this work order allocates.
BundleObservationView * addBundleObservationView(FileItemQsp fileItem)
Add the BundleObservationView to the window.
Definition: Directory.cpp:616
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
Definition: WorkOrder.h:534
FileItemQsp fileItem()
WorkOrder::fileItem.
Definition: WorkOrder.cpp:780
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual void execute()
This adds a new BundleObservationView to the project.
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1314
virtual BundleObservationViewWorkOrder * clone() const
This method clones the current BundleObservationViewWorkOrder and returns it.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition: WorkOrder.h:548
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595