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
18namespace 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
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}
This is a child of the WorkOrder class which is used for anything that performs an action in a Projec...
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:289
Directory * directory() const
Returns the directory associated with this Project.
Definition Project.cpp:1228
void setClean(bool value)
Function to change the clean state of the project.
Definition Project.cpp:1594
Provide Undo/redo abilities, serialization, and history for an operation.
Definition WorkOrder.h:311
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Definition WorkOrder.h:537
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
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.
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16