|
Isis Developer Reference
|
Go to the documentation of this file. 1 #ifndef ImportMapTemplateWorkOrder_H
2 #define ImportMapTemplateWorkOrder_H
virtual ImportMapTemplateWorkOrder * clone() const
This method clones the current ImportMapTemplateWorkOrder and returns it.
Definition: ImportMapTemplateWorkOrder.cpp:78
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
ProjectItemModel * model()
Gets the ProjectItemModel for this directory.
Definition: Directory.cpp:1091
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
File name manipulation and expansion.
Definition: FileName.h:100
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1318
Definition: TemplateList.h:35
bool setupExecution()
Sets up the work order for execution.
Definition: ImportMapTemplateWorkOrder.cpp:110
void addTemplates(TemplateList *templateFiles)
Add new templates to m_mapTemplates or m_regTemplates and update project item model.
Definition: Project.cpp:1113
The main project for ipce.
Definition: Project.h:289
Directory * directory() const
Returns the directory associated with this Project.
Definition: Project.cpp:1229
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
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
void deleteFromDisk(Project *project)
Delete all of the contained Templates from disk.
Definition: TemplateList.cpp:143
Definition: Template.h:30
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1300
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
void execute()
Imports the templates.
Definition: ImportMapTemplateWorkOrder.cpp:141
ImportMapTemplateWorkOrder(Project *project)
Creates a work order to import map templates.
Definition: ImportMapTemplateWorkOrder.cpp:42
Add map templates to a project.
Definition: ImportMapTemplateWorkOrder.h:41
QStringList internalData() const
Gets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1377
void setModifiesDiskState(bool changesProjectOnDisk)
Definition: WorkOrder.cpp:1674
QDir addTemplateFolder(QString prefix)
Create and navigate to the appropriate template type folder in the project directory.
Definition: Project.cpp:1134
~ImportMapTemplateWorkOrder()
Destructor.
Definition: ImportMapTemplateWorkOrder.cpp:68
void undoExecution()
Deletes the previously imported templates.
Definition: ImportMapTemplateWorkOrder.cpp:170
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
virtual void removeItem(ProjectItem *item)
Removes an item and its children from the model.
Definition: ProjectItemModel.cpp:315
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
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:134