Isis 3 Programmer 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
RenameProjectWorkOrder(QString newName, Project *project)
Creates a work order to rename the project using the given new project name.
The main project for ipce.
Definition: Project.h:289
virtual void undoExecution()
Changes the project name back to the old name.
static bool isNameValid(QString nameToCheck)
Check the validity of the given (proposed) project name.
virtual bool setupExecution()
Setup this WorkOrder for execution.
virtual RenameProjectWorkOrder * clone() const
This method clones the current RenameProjectWorkOrder and returns it.
bool dependsOn(WorkOrder *other) const
This WorkOrder is only dependent on another RenameProjectWorkOrder.
Provide Undo/redo abilities, serialization, and history for an operation.
Definition: WorkOrder.h:322
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Change the project's GUI name.
virtual void execute()
This will rename the project.
virtual bool isExecutable(Context context)
This method returns true if the user clicked on the project name on the project tree, or selected "Rename Project" from the Project menu, otherwise False.
Context
This enumeration is for recording the context of the current Workorder (whether it is part of a proje...
Definition: WorkOrder.h:350
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1314