26 #include <QFileDialog> 27 #include <QMessageBox> 28 #include <QtConcurrentMap> 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()) {
Saves a project to disk (File->Save Project As...)
virtual SaveProjectAsWorkOrder * clone() const
Creates a clone of this work order.
The main project for ipce.
virtual bool setupExecution()
This sets up the state for the work order.
void open(QString)
Open the project at the given path.
virtual void execute()
Executes the work order.
~SaveProjectAsWorkOrder()
Destructor.
SaveProjectAsWorkOrder(Project *project)
Creates a work order to save the project to a new location.
Provide Undo/redo abilities, serialization, and history for an operation.
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.
bool save()
Generic save method to save the state of the project.
Namespace for ISIS/Bullet specific routines.
Project * project() const
Returns the Project this WorkOrder is attached to.
QStringList internalData() const
Gets the internal data for this WorkOrder.
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
void setCreatesCleanState(bool createsCleanState)
Declare that this work order is saving the project.
void setClean(bool value)
Function to change the clean state of the project.