File failed to load: https://isis.astrogeology.usgs.gov/9.0.0/Object/assets/jax/output/NativeMML/config.js
Isis 3 Programmer Reference
BundleObservationViewWorkOrder.cpp
1
6
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
18namespace Isis {
19
28 m_isUndoable = false;
29 m_isSavedToHistory = false;
30 QAction::setText(tr("&View..."));
31 QUndoCommand::setText(tr("View..."));
32 }
33
34
44
45
51
52
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}
virtual void execute()
This adds a new BundleObservationView to the project.
virtual bool setupExecution()
Setup this WorkOrder for execution.
virtual BundleObservationViewWorkOrder * clone() const
This method clones the current BundleObservationViewWorkOrder and returns it.
virtual bool isExecutable(FileItemQsp fileItem)
False if none of the images has a footprint.
BundleObservationViewWorkOrder(Project *project)
Creates a work order to view BundleObservation.
~BundleObservationViewWorkOrder()
Destructor to clean up any memory that this work order allocates.
BundleObservationView * addBundleObservationView(FileItemQsp fileItem)
Add the BundleObservationView to the window.
The main project for ipce.
Definition Project.h:287
Directory * directory() const
Returns the directory associated with this Project.
Definition Project.cpp:1226
void setClean(bool value)
Function to change the clean state of the project.
Definition Project.cpp:1656
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition WorkOrder.h:511
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
Definition WorkOrder.h:497
virtual bool setupExecution()
This sets up the state for the work order.
Project * project() const
Returns the Project this WorkOrder is attached to.
FileItemQsp fileItem()
WorkOrder::fileItem.
WorkOrder(Project *project)
Create a work order that will work with the given project.
Definition WorkOrder.cpp:38
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16
QSharedPointer< FileItem > FileItemQsp
A FileItem smart pointer.
Definition FileItem.h:36