Isis 3.0
Home
CnetEditorViewWorkOrder.h
Go to the documentation of this file.
1 #ifndef CnetEditorViewWorkOrder_H
2 #define CnetEditorViewWorkOrder_H
3 
25 #include "WorkOrder.h"
26 
27 namespace Isis {
37  Q_OBJECT
38  public:
42 
43  virtual CnetEditorViewWorkOrder *clone() const;
44 
45  virtual bool isExecutable(ControlList *controls);
46  bool execute();
47 
48  protected:
49  bool dependsOn(WorkOrder *other) const;
50  void syncRedo();
51  void syncUndo();
52 
53  private:
54  CnetEditorViewWorkOrder &operator=(const CnetEditorViewWorkOrder &rhs);
55  };
56 }
57 #endif
58 
The main project for cnetsuite.
Definition: Project.h:105
virtual CnetEditorViewWorkOrder * clone() const
Definition: CnetEditorViewWorkOrder.cpp:57
~CnetEditorViewWorkOrder()
Definition: CnetEditorViewWorkOrder.cpp:53
virtual bool isExecutable(ControlList *controls)
Re-implement this method if your work order utilizes a control for data in order to operate...
Definition: CnetEditorViewWorkOrder.cpp:62
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
Definition: ControlList.h:34
Project * project() const
Returns the Project this WorkOrder is attached to.
Definition: WorkOrder.cpp:1116
bool dependsOn(WorkOrder *other) const
This is a virtual function whose role in child classes is to determine if this WorkOrder deppends on ...
Definition: CnetEditorViewWorkOrder.cpp:83
bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
Definition: CnetEditorViewWorkOrder.cpp:71
void syncRedo()
This method is designed to be implemented by children work orders.
Definition: CnetEditorViewWorkOrder.cpp:89
Parent class for anything that performs an action in Project.
Definition: WorkOrder.h:104
void syncUndo()
This method is designed to be implemented by children work orders.
Definition: CnetEditorViewWorkOrder.cpp:96
This work order allows the user to open a cnet editor (table) view of a single control network...
Definition: CnetEditorViewWorkOrder.h:36
CnetEditorViewWorkOrder(Project *project)
Definition: CnetEditorViewWorkOrder.cpp:42