Loading [MathJax]/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
Go to the documentation of this file.
26 #include <QFileDialog>
27 #include <QMessageBox>
28 #include <QtConcurrentMap>
31 #include "CubeAttribute.h"
47 QAction::setText(tr(
"Save Project &As"));
98 QString newDestination =
99 QFileDialog::getSaveFileName(NULL, QString(
"Project Location"), QString(
"."));
101 if (!newDestination.isEmpty()) {
102 QUndoCommand::setText(tr(
"Save project to [%1]") .arg(newDestination));
103 QString realPath = QFileInfo(newDestination +
"/").absolutePath();
122 if (!destination.isEmpty()) {
virtual bool setupExecution()
This sets up the state for the work order.
Provide Undo/redo abilities, serialization, and history for an operation.
~SaveProjectAsWorkOrder()
Destructor.
void open(QString)
Open the project at the given path.
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
SaveProjectAsWorkOrder(Project *project)
Creates a work order to save the project to a new location.
virtual void execute()
Executes the work order.
The main project for ipce.
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
virtual bool setupExecution()
Sets up this work order prior to execution.
Project * project() const
Returns the Project this WorkOrder is attached to.
bool save()
Generic save method to save the state of the project.
virtual SaveProjectAsWorkOrder * clone() const
Creates a clone of this work order.
QStringList internalData() const
Gets the internal data for this WorkOrder.
void setCreatesCleanState(bool createsCleanState)
Declare that this work order is saving the project.
Saves a project to disk (File->Save Project As...)
void setClean(bool value)
Function to change the clean state of the project.
This is free and unencumbered software released into the public domain.