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