Isis Developer Reference
RemoveImagesWorkOrder.h
Go to the documentation of this file.
1 #ifndef RemoveImagesWorkOrder_H
2 #define RemoveImagesWorkOrder_H
3 
25 #include "WorkOrder.h"
26 
27 namespace Isis {
28  class ImageList;
29  class Project;
30 
57  Q_OBJECT
58  public:
62 
63  virtual RemoveImagesWorkOrder *clone() const;
64 
65  virtual bool isExecutable(ImageList *images);
66 
67  bool setupExecution();
68 
69  protected:
70  void execute();
71 
72  private:
73  RemoveImagesWorkOrder &operator=(const RemoveImagesWorkOrder &rhs);
74 
75  };
76 }
77 #endif
ProjectItem.h
Isis::Project::removeImages
void removeImages(ImageList &imageList)
Definition: Project.cpp:2786
Isis::WorkOrder::setupExecution
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::Directory::model
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Definition: Directory.cpp:1091
Isis::ProjectItem::image
Image * image() const
Returns the Image stored in the data of the item.
Definition: ProjectItem.cpp:476
Isis::RemoveImagesWorkOrder::execute
void execute()
@description Remove any selected items from the project directory.
Definition: RemoveImagesWorkOrder.cpp:137
Isis::WorkOrder::imageList
ImageList * imageList()
Returns a pointer to the ImageList for this WorkOrder.
Definition: WorkOrder.cpp:631
RemoveImagesWorkOrder.h
Isis::RemoveImagesWorkOrder::RemoveImagesWorkOrder
RemoveImagesWorkOrder(Project *project)
Definition: RemoveImagesWorkOrder.cpp:37
Isis::ProjectItemModel::removeItems
virtual void removeItems(QList< ProjectItem * > items)
Removes a list of items and their children from the model.
Definition: ProjectItemModel.cpp:342
Isis::ImageList::append
void append(Image *const &value)
Appends an image to the image list.
Definition: ImageList.cpp:153
Isis::RemoveImagesWorkOrder
Removes selected images from current project.
Definition: RemoveImagesWorkOrder.h:56
Isis::RemoveImagesWorkOrder::~RemoveImagesWorkOrder
~RemoveImagesWorkOrder()
Definition: RemoveImagesWorkOrder.cpp:54
Isis::RemoveImagesWorkOrder::setupExecution
bool setupExecution()
@description Set up the execution.
Definition: RemoveImagesWorkOrder.cpp:81
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::ImageList
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
WorkOrder.h
Isis::Project::images
static QStringList images(QStringList)
Verify that the input fileNames are image files.
Definition: Project.cpp:894
Isis::ProjectItem::isImageList
bool isImageList() const
Returns true if an ImageList is stored in the data of the item.
Definition: ProjectItem.cpp:657
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
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::ProjectItem::isImage
bool isImage() const
Returns true if an Image is stored in the data of the item.
Definition: ProjectItem.cpp:646
Isis::ProjectItemModel::selectedItems
QList< ProjectItem * > selectedItems()
Returns a list of the selected items of the internal selection model.
Definition: ProjectItemModel.cpp:158
Isis::WorkOrder::project
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1300
ProjectItemModel.h
ImageList.h
Isis::Image
This represents a cube in a project-based GUI interface.
Definition: Image.h:107
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::RemoveImagesWorkOrder::isExecutable
virtual bool isExecutable(ImageList *images)
Determines if we can remove this ImageList.
Definition: RemoveImagesWorkOrder.cpp:69
IException.h
Isis::RemoveImagesWorkOrder::clone
virtual RemoveImagesWorkOrder * clone() const
Definition: RemoveImagesWorkOrder.cpp:58
Isis::ProjectItem::imageList
ImageList * imageList() const
Returns the ImageList stored in the data of the item.
Definition: ProjectItem.cpp:486
Isis::WorkOrder::setModifiesDiskState
void setModifiesDiskState(bool changesProjectOnDisk)
Definition: WorkOrder.cpp:1674
Isis::ImageList::removeAll
int removeAll(Image *const &value)
Removes all occurances of an image.
Definition: ImageList.cpp:303
Isis::Project::setClean
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
Progress.h
Isis::ProjectItemModel::removeItem
virtual void removeItem(ProjectItem *item)
Removes an item and its children from the model.
Definition: ProjectItemModel.cpp:315
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
Isis::ProjectItem
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:134