File failed to load: https://isis.astrogeology.usgs.gov/6.0.0/Object/assets/jax/output/NativeMML/config.js
 |
Isis 3 Programmer Reference
|
9 #include "CnetEditorViewWorkOrder.h"
14 #include <QUndoCommand>
16 #include "CnetEditorView.h"
18 #include "ControlList.h"
19 #include "Directory.h"
24 CnetEditorViewWorkOrder::CnetEditorViewWorkOrder(Project *project) :
26 QAction::setText(tr(
"View &Network..."));
32 CnetEditorViewWorkOrder::CnetEditorViewWorkOrder(
const CnetEditorViewWorkOrder &other) :
37 CnetEditorViewWorkOrder::~CnetEditorViewWorkOrder() {
41 CnetEditorViewWorkOrder *CnetEditorViewWorkOrder::clone()
const {
42 return new CnetEditorViewWorkOrder(*
this);
50 return (controls->count() >= 1);
60 QUndoCommand::setText(tr(
"View control network [%1] in new cnet editor view")
61 .arg(
controlList()->first()->displayProperties()->displayName()));
virtual bool setupExecution()
This sets up the state for the work order.
void execute()
Execute the workorder.
Provide Undo/redo abilities, serialization, and history for an operation.
bool dependsOn(WorkOrder *other) const
Indicate workorder dependency This is a virtual function whose role in child classes is to determine ...
QPointer< ControlList > controlList()
Returns the Control List for this WorkOrder (a list of control networks).
CnetEditorView * addCnetEditorView(Control *control, QString objectName="")
Add the widget for the cnet editor view to the window.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
This work order allows the user to open a cnet editor (table) view of a single control network.
Directory * directory() const
Returns the directory associated with this Project.
bool setupExecution()
This sets up the state for the work order.
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
void undoExecution()
Execute the steps necessary to undo this workorder.
Project * project() const
Returns the Project this WorkOrder is attached to.
QList< CnetEditorView * > cnetEditorViews()
Returns a list of all the control network views for this directory.
void setClean(bool value)
Function to change the clean state of the project.
virtual bool isExecutable(ControlList *controls)
Re-implement this method if your work order utilizes a control for data in order to operate.
This is free and unencumbered software released into the public domain.