25 #include <QFileDialog> 26 #include <QInputDialog> 34 #include "TemplateEditorWidget.h" 48 QAction::setText(tr(
"Edit template...") );
49 QUndoCommand::setText(tr(
"Edit Template"));
96 if (projectitem->isTemplate()) {
101 for (
int i = 0; i < existingViews.size(); i++) {
102 if (existingViews.at(i)->objectName() == currentTemplate->
fileName() )
144 if (!templateEditorWidget) {
145 QString msg =
"error displaying target info";
virtual bool setupExecution()
Attempt to retrieve the Target info.
The main project for ipce.
QList< TemplateEditorWidget * > templateEditorViews()
Accessor for the list of TemplateEditorWidgets currently available.
virtual bool setupExecution()
This sets up the state for the work order.
QString fileName() const
Get the file name that this Template represents.
This error is for when a programmer made an API call that was illegal.
Template * getTemplate() const
Returns the Template stored in the data of the item.
Directory * directory() const
Returns the directory associated with this Project.
Provide Undo/redo abilities, serialization, and history for an operation.
TemplateEditViewWorkOrder(Project *project)
Creates a WorkOrder that will retrieve Target info.
#define _FILEINFO_
Macro for the filename and line number.
This work order allows the user to view and edit a template.
Template * getTemplate()
WorkOrder::getTemplate.
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
virtual TemplateEditViewWorkOrder * clone() const
Returns a copy of this TemplateEditViewWorkOrder instance.
bool dependsOn(WorkOrder *other) const
Determines whether another WorkOrder depends upon TemplateEditViewWorkOrder.
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.
virtual void execute()
Executes this work order.
Namespace for ISIS/Bullet specific routines.
Project * project() const
Returns the Project this WorkOrder is attached to.
virtual bool isExecutable(ProjectItem *projectitem)
Determines if we can get target info.
~TemplateEditViewWorkOrder()
The Destructor.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
QStringList internalData() const
Gets the internal data for this WorkOrder.
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
TemplateEditorWidget * addTemplateEditorView(Template *currentTemplate)
Add template editor view widget to the window.