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()) {
The main project for ipce.
void open(QString)
Open the project at the given path.
void setClean(bool value)
Function to change the clean state of the project.
bool save()
Generic save method to save the state of the project.
Saves a project to disk (File->Save Project As...)
virtual void execute()
Executes the work order.
virtual SaveProjectAsWorkOrder * clone() const
Creates a clone of this work order.
~SaveProjectAsWorkOrder()
Destructor.
SaveProjectAsWorkOrder(Project *project)
Creates a work order to save the project to a new location.
virtual bool setupExecution()
Sets up this work order prior to execution.
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()
This sets up the state for the 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.
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.