Isis 3 Programmer Reference
ImageListActionWorkOrder.h
1 #ifndef ImageListActionWorkOrder_H
2 #define ImageListActionWorkOrder_H
3 
4 #include "WorkOrder.h"
5 
6 class QStringList;
7 class QXmlStreamWriter;
8 
9 namespace Isis {
62  Q_OBJECT
63 
64  public:
68  enum Action {
82  FirstAction = UnknownAction,
83  LastAction = ZoomFit,
84  };
85 
90 
92 
93  bool isExecutable(ImageList *images);
94  void setData(ImageList *images);
95 
96  bool setupExecution();
97  void execute();
98  void undoExecution();
99 
100  static QString qualifyString(QString unqualifiedString, ImageList *);
101  static QString toString(Action);
102  static Action fromActionString(QString);
103 
104  signals:
105  void bringToFront();
106 
107  private:
108  ImageListActionWorkOrder &operator=(const ImageListActionWorkOrder &rhs);
109  };
110 }
111 
112 #endif
Internalizes a list of images and allows for operations on the entire list.
Definition: ImageList.h:55
The main project for ipce.
Definition: Project.h:289
Work orders that can be performed on an image list that modifies internal state.
Action
Type of action to be performed by the work order.
Show or hide each image's fill area.
ImageListActionWorkOrder(Project *project)
Construct a work order for the given project.
bool isExecutable(ImageList *images)
Check if the work order can run on a given image list.
void setData(ImageList *images)
Assign an image list to the work order.
static QString qualifyString(QString unqualifiedString, ImageList *)
Determine whether a toggle action should show or hide.
void execute()
Perform the action stored in the work order and update the work order's internal data with the result...
Change the alpha values of the image list.
Set each image in the list to a random color.
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
static Action fromActionString(QString)
Convert a string to an action.
void undoExecution()
Undo the action stored in the work order and update the work order's internal data with the results o...
ImageListActionWorkOrder * clone() const
Clone the current work order.
Change the color values of the image list.
Zoom in on the image so that it fits the screen.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
static QString toString(Action)
Convert an action to a string.
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1314
bool setupExecution()
If needed, prompt the user for input and save it.
Show or hide each image's display name.