28 #include <QUndoCommand> 32 #include "ControlList.h" 38 CnetEditorViewWorkOrder::CnetEditorViewWorkOrder(Project *project) :
40 QAction::setText(tr(
"View &Network..."));
46 CnetEditorViewWorkOrder::CnetEditorViewWorkOrder(
const CnetEditorViewWorkOrder &other) :
51 CnetEditorViewWorkOrder::~CnetEditorViewWorkOrder() {
55 CnetEditorViewWorkOrder *CnetEditorViewWorkOrder::clone()
const {
56 return new CnetEditorViewWorkOrder(*
this);
64 return (controls->count() >= 1);
74 QUndoCommand::setText(tr(
"View control network [%1] in new cnet editor view")
75 .arg(
controlList()->first()->displayProperties()->displayName()));
QList< CnetEditorView * > cnetEditorViews()
Returns a list of all the control network views for this directory.
bool setupExecution()
This sets up the state for the work order.
virtual bool isExecutable(ControlList *controls)
Re-implement this method if your work order utilizes a control for data in order to operate...
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
virtual bool setupExecution()
This sets up the state for the work order.
void undoExecution()
Execute the steps necessary to undo this workorder.
bool dependsOn(WorkOrder *other) const
Indicate workorder dependency This is a virtual function whose role in child classes is to determine ...
Directory * directory() const
Returns the directory associated with this Project.
Provide Undo/redo abilities, serialization, and history for an operation.
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
This work order allows the user to open a cnet editor (table) view of a single control network...
Namespace for ISIS/Bullet specific routines.
CnetEditorView * addCnetEditorView(Control *control, QString objectName="")
Add the widget for the cnet editor view to the window.
Project * project() const
Returns the Project this WorkOrder is attached to.
QPointer< ControlList > controlList()
Returns the Control List for this WorkOrder (a list of control networks).
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
void execute()
Execute the workorder.
void setClean(bool value)
Function to change the clean state of the project.