Isis 3 Developer Reference
ImportRegistrationTemplateWorkOrder.h
Go to the documentation of this file.
1 #ifndef ImportRegistrationTemplateWorkOrder_H
2 #define ImportRegistrationTemplateWorkOrder_H
3 
25  #include "WorkOrder.h"
26  #include "ProjectItem.h"
27  #include "Template.h"
28  #include "TemplateList.h"
29 
30  namespace Isis {
41  Q_OBJECT
42  public:
46 
48 
49  virtual bool isExecutable(ProjectItem *item);
50  bool setupExecution();
51  void execute();
52  void undoExecution();
53 
54  private:
56 
57  TemplateList *m_list;
58  };
59  }
60 
61  #endif
The main project for ipce.
Definition: Project.h:289
~ImportRegistrationTemplateWorkOrder()
Destructor.
Definition: ImportRegistrationTemplateWorkOrder.cpp:68
void execute()
Imports the templates.
Definition: ImportRegistrationTemplateWorkOrder.cpp:141
Definition: TemplateList.h:49
ImportRegistrationTemplateWorkOrder(Project *project)
Creates a work order to import registration templates.
Definition: ImportRegistrationTemplateWorkOrder.cpp:42
virtual bool isExecutable(ProjectItem *item)
This method returns true if the user clicked on a project tree node with the text "Registrations"...
Definition: ImportRegistrationTemplateWorkOrder.cpp:93
virtual ImportRegistrationTemplateWorkOrder * clone() const
This method clones the current ImportRegistrationTemplateWorkOrder and returns it.
Definition: ImportRegistrationTemplateWorkOrder.cpp:78
bool setupExecution()
Sets up the work order for execution.
Definition: ImportRegistrationTemplateWorkOrder.cpp:110
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.
void undoExecution()
Deletes the previously imported templates.
Definition: ImportRegistrationTemplateWorkOrder.cpp:170
Add registration templates to a project.
Definition: ImportRegistrationTemplateWorkOrder.h:40
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