25 #include <QCoreApplication>
27 #include <QMessageBox>
41 QAction::setText(tr(
"Open &Recent Project") );
80 if (!fname.fileExists() )
98 if (success &&
project()->workOrderHistory().count()) {
99 QMessageBox::critical(NULL, tr(
"Unable To Open a Project"),
100 tr(
"If you have modified your current project, you cannot open a new "
101 "project because this is not yet implemented"));
105 QString projectName = QAction::text();
107 if (!projectName.isEmpty() ) {
The main project for cnetsuite.
File name manipulation and expansion.
void open(QString)
Open the project at the given path.
Project * project() const
Returns the Project this WorkOrder is attached to.
This is a child of class WorkOrder which is used for anything that performs an action in a Project...
bool execute()
Attempts to open the recent project.
OpenRecentProjectWorkOrder(Project *project)
Constructor which creates a WorkOrder that will open a recent project.
~OpenRecentProjectWorkOrder()
The Destructor.
virtual bool isExecutable(QString projectFileName)
This function determines if the given project file name can be opened.
Parent class for anything that performs an action in Project.
virtual OpenRecentProjectWorkOrder * clone() const
Returns a copy of this OpenRecentProjectWorkOrder instance.
virtual bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
void setCreatesCleanState(bool createsCleanState)
Declare that this work order is saving the project.