1#ifndef ImportImagesWorkOrder_H
2#define ImportImagesWorkOrder_H
139 class OriginalFileToProjectCubeFunctor :
140 public std::function<Cube *(const FileName &)> {
142 OriginalFileToProjectCubeFunctor(
QThread *guiThread,
143 QDir destinationFolder,
bool copyDnData);
144 OriginalFileToProjectCubeFunctor(
const OriginalFileToProjectCubeFunctor &other);
145 ~OriginalFileToProjectCubeFunctor();
153 OriginalFileToProjectCubeFunctor &operator=(
const OriginalFileToProjectCubeFunctor &rhs);
155 QDir m_destinationFolder;
160 QSharedPointer<IException> m_errors;
161 QSharedPointer<int> m_numErrors;
165 void importConfirmedImages(
QStringList confirmedImages,
bool copyDnData);
IO Handler for Isis Cubes.
Definition Cube.h:168
File name manipulation and expansion.
Definition FileName.h:100
Isis exception class.
Definition IException.h:91
Internalizes a list of images and allows for operations on the entire list.
Definition ImageList.h:53
Add cubes to a project.
Definition ImportImagesWorkOrder.h:109
virtual void undoExecution()
Undoes the work order's execute.
Definition ImportImagesWorkOrder.cpp:240
~ImportImagesWorkOrder()
Destructor.
Definition ImportImagesWorkOrder.cpp:78
ImportImagesWorkOrder(Project *project)
Creates an asynchronous WorkOrder for importing images to the project.
Definition ImportImagesWorkOrder.cpp:48
virtual bool setupExecution()
Sets up this work order before being executed.
Definition ImportImagesWorkOrder.cpp:132
virtual void execute()
Executes the work order.
Definition ImportImagesWorkOrder.cpp:282
virtual void postExecution()
Associates the imported images to the project.
Definition ImportImagesWorkOrder.cpp:308
virtual bool isExecutable(ProjectItem *item)
This method returns true if the user clicked on a project tree node with the text "Images".
Definition ImportImagesWorkOrder.cpp:107
virtual ImportImagesWorkOrder * clone() const
Creates a clone of this work order.
Definition ImportImagesWorkOrder.cpp:93
virtual void postUndoExecution()
Cleans up memory (images) after the undo execution occurs.
Definition ImportImagesWorkOrder.cpp:262
The main project for ipce.
Definition Project.h:287
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition ProjectItem.h:134
Provide Undo/redo abilities, serialization, and history for an operation.
Definition WorkOrder.h:311
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition WorkOrder.cpp:1288
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16