Isis 3 Developer Reference
ImportMapTemplateWorkOrder.h
Go to the documentation of this file.
1 #ifndef ImportMapTemplateWorkOrder_H
2 #define ImportMapTemplateWorkOrder_H
3 
25  #include "WorkOrder.h"
26  #include "ProjectItem.h"
27  #include "Template.h"
28  #include "TemplateList.h"
29 
30  namespace Isis {
42  Q_OBJECT
43  public:
47 
48  virtual ImportMapTemplateWorkOrder *clone() const;
49 
50  virtual bool isExecutable(ProjectItem *item);
51  bool setupExecution();
52  void execute();
53  void undoExecution();
54 
55  private:
57 
58  TemplateList *m_list;
59  };
60  }
61 
62  #endif
The main project for ipce.
Definition: Project.h:289
ImportMapTemplateWorkOrder(Project *project)
Creates a work order to import map templates.
Definition: ImportMapTemplateWorkOrder.cpp:42
Definition: TemplateList.h:49
void execute()
Imports the templates.
Definition: ImportMapTemplateWorkOrder.cpp:141
virtual bool isExecutable(ProjectItem *item)
This method returns true if the user clicked on a project tree node with the text "Maps"...
Definition: ImportMapTemplateWorkOrder.cpp:93
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.
Add map templates to a project.
Definition: ImportMapTemplateWorkOrder.h:41
~ImportMapTemplateWorkOrder()
Destructor.
Definition: ImportMapTemplateWorkOrder.cpp:68
void undoExecution()
Deletes the previously imported templates.
Definition: ImportMapTemplateWorkOrder.cpp:170
virtual ImportMapTemplateWorkOrder * clone() const
This method clones the current ImportMapTemplateWorkOrder and returns it.
Definition: ImportMapTemplateWorkOrder.cpp:78
bool setupExecution()
Sets up the work order for execution.
Definition: ImportMapTemplateWorkOrder.cpp:110
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:146
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1314