26#include <QInputDialog>
30#include "IException.h"
32#include "ProjectItem.h"
34#include "TemplateEditorWidget.h"
48 QAction::setText(tr(
"Edit template...") );
49 QUndoCommand::setText(tr(
"Edit Template"));
96 if (projectitem->isTemplate()) {
98 Template *currentTemplate = projectitem->getTemplate();
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";
QList< TemplateEditorWidget * > templateEditorViews()
Accessor for the list of TemplateEditorWidgets currently available.
TemplateEditorWidget * addTemplateEditorView(Template *currentTemplate)
Add template editor view widget to the window.
@ Programmer
This error is for when a programmer made an API call that was illegal.
The main project for ipce.
Directory * directory() const
Returns the directory associated with this Project.
Represents an item of a ProjectItemModel in Qt's model-view framework.
This work order allows the user to view and edit a template.
virtual bool setupExecution()
Attempt to retrieve the Target info.
TemplateEditViewWorkOrder(Project *project)
Creates a WorkOrder that will retrieve Target info.
virtual bool isExecutable(ProjectItem *projectitem)
Determines if we can get target info.
virtual void execute()
Executes this work order.
~TemplateEditViewWorkOrder()
The Destructor.
virtual TemplateEditViewWorkOrder * clone() const
Returns a copy of this TemplateEditViewWorkOrder instance.
bool dependsOn(WorkOrder *other) const
Determines whether another WorkOrder depends upon TemplateEditViewWorkOrder.
QString fileName() const
Get the file name that this Template represents.
Provide Undo/redo abilities, serialization, and history for an operation.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
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 bool setupExecution()
This sets up the state for the work order.
QStringList internalData() const
Gets the internal data for this WorkOrder.
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
Project * project() const
Returns the Project this WorkOrder is attached to.
This is free and unencumbered software released into the public domain.