Isis Developer Reference
RenameProjectWorkOrder.h
Go to the documentation of this file.
1 #ifndef RenameProjectWorkOrder_H
2 #define RenameProjectWorkOrder_H
3 
23 #include "WorkOrder.h"
24 
25 namespace Isis {
26 
42  Q_OBJECT
43  public:
44  RenameProjectWorkOrder(QString newName, Project *project);
48 
49  virtual RenameProjectWorkOrder *clone() const;
50 
51  virtual bool isExecutable(Context context);
52  virtual bool setupExecution();
53  virtual void execute();
54 
55  static bool isNameValid(QString nameToCheck);
56 
57  protected:
58  virtual void undoExecution();
59  bool dependsOn(WorkOrder *other) const;
60 
61  private:
62  RenameProjectWorkOrder &operator=(const RenameProjectWorkOrder &rhs);
63  };
64 }
65 #endif
Isis::RenameProjectWorkOrder::RenameProjectWorkOrder
RenameProjectWorkOrder(QString newName, Project *project)
Creates a work order to rename the project using the given new project name.
Definition: RenameProjectWorkOrder.cpp:44
Isis::WorkOrder::setupExecution
virtual bool setupExecution()
This sets up the state for the work order.
Definition: WorkOrder.cpp:1261
RenameProjectWorkOrder.h
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
MosaicSceneWidget.h
Isis::WorkOrder
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:311
Project.h
Isis::RenameProjectWorkOrder
Change the project's GUI name.
Definition: RenameProjectWorkOrder.h:41
Isis::RenameProjectWorkOrder::isNameValid
static bool isNameValid(QString nameToCheck)
Check the validity of the given (proposed) project name.
Definition: RenameProjectWorkOrder.cpp:170
Directory.h
Isis::WorkOrder::setInternalData
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1318
Isis::RenameProjectWorkOrder::clone
virtual RenameProjectWorkOrder * clone() const
This method clones the current RenameProjectWorkOrder and returns it.
Definition: RenameProjectWorkOrder.cpp:103
Isis::RenameProjectWorkOrder::~RenameProjectWorkOrder
~RenameProjectWorkOrder()
Destructor.
Definition: RenameProjectWorkOrder.cpp:94
Isis::RenameProjectWorkOrder::dependsOn
bool dependsOn(WorkOrder *other) const
This WorkOrder is only dependent on another RenameProjectWorkOrder.
Definition: RenameProjectWorkOrder.cpp:183
QStringList
Isis::RenameProjectWorkOrder::setupExecution
virtual bool setupExecution()
Setup this WorkOrder for execution.
Definition: RenameProjectWorkOrder.cpp:131
Isis::Project
The main project for ipce.
Definition: Project.h:289
Isis::RenameProjectWorkOrder::undoExecution
virtual void undoExecution()
Changes the project name back to the old name.
Definition: RenameProjectWorkOrder.cpp:207
WorkOrder.h
Isis::WorkOrder::m_isUndoable
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
Definition: WorkOrder.h:523
Isis::RenameProjectWorkOrder::isExecutable
virtual bool isExecutable(Context context)
This method returns true if the user clicked on the project name on the project tree,...
Definition: RenameProjectWorkOrder.cpp:119
Isis::RenameProjectWorkOrder::execute
virtual void execute()
This will rename the project.
Definition: RenameProjectWorkOrder.cpp:193
Isis::WorkOrder::project
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1300
Isis::Project::name
QString name() const
Get the project's GUI name.
Definition: Project.cpp:1625
MosaicSceneItem.h
Isis::Project::setName
void setName(QString newName)
Change the project's name (GUI only, doesn't affect location on disk).
Definition: Project.cpp:1684
Isis::WorkOrder::internalData
QStringList internalData() const
Gets the internal data for this WorkOrder.
Definition: WorkOrder.cpp:1377
Isis::WorkOrder::Context
Context
This enumeration is for recording the context of the current Workorder (whether it is part of a proje...
Definition: WorkOrder.h:339
Isis::Project::setClean
void setClean(bool value)
Function to change the clean state of the project.
Definition: Project.cpp:1595
Isis::WorkOrder::ProjectContext
@ ProjectContext
Definition: WorkOrder.h:341
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16