27#include "IException.h"
42 QAction::setText(tr(
"Set Active Image List") );
43 QUndoCommand::setText(tr(
"Set Active Image List"));
82 if (
project()->activeImageList()) {
116 QMessageBox::critical(NULL, tr(
"Error"), tr(e.what()));
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Internalizes a list of images and allows for operations on the entire list.
QString name() const
Get the human-readable name of this image list.
The main project for ipce.
void setActiveImageList(QString displayName)
Set the Active ImageList from the displayName which is saved in project.xml.
This is a child of class WorkOrder which is used for anything that performs an action in a Project.
~SetActiveImageListWorkOrder()
The Destructor.
virtual bool setupExecution()
Simply calls the parent WorkOrder::setupExecution().
virtual void execute()
Executes this work order.
virtual SetActiveImageListWorkOrder * clone() const
Returns a copy of this SetActiveImageListWorkOrder instance.
SetActiveImageListWorkOrder(Project *project)
Creates a not undable WorkOrder that will set the active ImageList in the project.
virtual bool isExecutable(ImageList *imageList)
Determines if we can set this imageList as active.
Provide Undo/redo abilities, serialization, and history for an operation.
@ WorkOrderFinished
This is used for work orders that will not undo or redo (See createsCleanState())
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
virtual bool setupExecution()
This sets up the state for the work order.
Project * project() const
Returns the Project this WorkOrder is attached to.
ImageList * imageList()
Returns a pointer to the ImageList for this WorkOrder.
This is free and unencumbered software released into the public domain.