Isis 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
ProjectItem.h
Isis::WorkOrder::setupExecution
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::Directory::model
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Definition: Directory.cpp:1091
Isis::FileName::name
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
Isis::WorkOrder::setInternalData
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1318
Isis::TemplateList
Definition: TemplateList.h:35
Isis::ImportRegistrationTemplateWorkOrder::execute
void execute()
Imports the templates.
Definition: ImportRegistrationTemplateWorkOrder.cpp:141
Isis::ImportRegistrationTemplateWorkOrder
Add registration templates to a project.
Definition: ImportRegistrationTemplateWorkOrder.h:40
QStringList
Isis::Project::addTemplates
void addTemplates(TemplateList *templateFiles)
Add new templates to m_mapTemplates or m_regTemplates and update project item model.
Definition: Project.cpp:1113
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::Project::directory
Directory * directory() const
Returns the directory associated with this Project.
Definition: Project.cpp:1229
WorkOrder.h
Isis::ImportRegistrationTemplateWorkOrder::undoExecution
void undoExecution()
Deletes the previously imported templates.
Definition: ImportRegistrationTemplateWorkOrder.cpp:170
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::WorkOrder::m_isUndoable
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
Definition: WorkOrder.h:523
Isis::TemplateList::deleteFromDisk
void deleteFromDisk(Project *project)
Delete all of the contained Templates from disk.
Definition: TemplateList.cpp:143
Isis::ImportRegistrationTemplateWorkOrder::setupExecution
bool setupExecution()
Sets up the work order for execution.
Definition: ImportRegistrationTemplateWorkOrder.cpp:110
Isis::ImportRegistrationTemplateWorkOrder::isExecutable
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
Isis::Template
Definition: Template.h:30
ImportRegistrationTemplateWorkOrder.h
Isis::WorkOrder::project
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1300
ProjectItemModel.h
Isis::ProjectItemModel::findItemData
ProjectItem * findItemData(const QVariant &data, int role=Qt::UserRole+1)
Returns the first item found that contains the given data in the given role or a null pointer if no i...
Definition: ProjectItemModel.cpp:290
Isis::ImportRegistrationTemplateWorkOrder::clone
virtual ImportRegistrationTemplateWorkOrder * clone() const
This method clones the current ImportRegistrationTemplateWorkOrder and returns it.
Definition: ImportRegistrationTemplateWorkOrder.cpp:78
Isis::ImportRegistrationTemplateWorkOrder::ImportRegistrationTemplateWorkOrder
ImportRegistrationTemplateWorkOrder(Project *project)
Creates a work order to import registration templates.
Definition: ImportRegistrationTemplateWorkOrder.cpp:42
Isis::WorkOrder::internalData
QStringList internalData() const
Gets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1377
Template.h
Isis::WorkOrder::setModifiesDiskState
void setModifiesDiskState(bool changesProjectOnDisk)
Definition: WorkOrder.cpp:1674
Isis::Project::addTemplateFolder
QDir addTemplateFolder(QString prefix)
Create and navigate to the appropriate template type folder in the project directory.
Definition: Project.cpp:1134
Isis::ImportRegistrationTemplateWorkOrder::~ImportRegistrationTemplateWorkOrder
~ImportRegistrationTemplateWorkOrder()
Destructor.
Definition: ImportRegistrationTemplateWorkOrder.cpp:68
Isis::Project::setClean
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
Isis::ProjectItemModel::removeItem
virtual void removeItem(ProjectItem *item)
Removes an item and its children from the model.
Definition: ProjectItemModel.cpp:315
TemplateList.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ProjectItem
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:134