Isis 3.0 Programmer Reference
Back | Home
RenameProjectWorkOrder.h
Go to the documentation of this file.
1 #ifndef RenameProjectWorkOrder_H
2 #define RenameProjectWorkOrder_H
3 
25 #include "WorkOrder.h"
26 
27 namespace Isis {
28 
40  Q_OBJECT
41  public:
42  RenameProjectWorkOrder(QString newName, Project *project);
46 
47  virtual RenameProjectWorkOrder *clone() const;
48 
49  bool isExecutable(Context context);
50 
51  bool execute();
52 
53  static bool isNameValid(QString nameToCheck);
54 
55  protected:
56  bool dependsOn(WorkOrder *other) const;
57  void syncRedo();
58  void syncUndo();
59 
60  private:
61  RenameProjectWorkOrder &operator=(const RenameProjectWorkOrder &rhs);
62  };
63 }
64 #endif
65 
The main project for cnetsuite.
Definition: Project.h:105
void syncUndo()
This method is designed to be implemented by children work orders.
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1116
static bool isNameValid(QString nameToCheck)
Check the validity of the given (proposed) project name.
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
Change the project's GUI name.
bool isExecutable(Context context)
Re-implement this method if your work order utilizes controls for data in order to operate...
bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
void syncRedo()
This method is designed to be implemented by children work orders.
Context
This enumeration is for recording the context of the current Workorder (whether it is part of a proje...
Definition: WorkOrder.h:132
bool dependsOn(WorkOrder *other) const
This is a virtual function whose role in child classes is to determine if this WorkOrder deppends on ...

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the ISIS Support Center
File Modified: 07/12/2023 23:28:17