23 #include <QMessageBox>
41 QAction::setText(tr(
"Set Active Control Network") );
42 QUndoCommand::setText(tr(
"Set Active Control Network"));
95 if (
project()->activeImageList()) {
101 QMessageBox::critical(NULL, tr(
"Unable to set active control."),
102 tr(
"You must first choose an active Image List before setting "
103 "the active control net."));
~SetActiveControlWorkOrder()
The Destructor.
The main project for cnetsuite.
Maintains a list of Controls so that control nets can easily be copied from one Project to another...
bool execute()
Attempt to set control as active control.
Project * project() const
Returns the Project this WorkOrder is attached to.
Control * activeControl()
Return the Active Control (control network)
This is a child of class WorkOrder which is used for anything that performs an action in a Project...
Parent class for anything that performs an action in Project.
SetActiveControlWorkOrder(Project *project)
Creates a WorkOrder that will set the active Control in the project.
void SetImages(const QString &imageListFile)
Creates the ControlNet's image cameras based on an input file.
ControlNet * controlNet()
Open and return a pointer to the ControlNet for this Control.
virtual SetActiveControlWorkOrder * clone() const
Returns a copy of this SetActiveControlWorkOrder instance.
virtual bool isExecutable(ControlList *controls)
Determines if we can set this control as active.
virtual bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
QPointer< ControlList > controlList()
Returns the Control List for this WorkOrder (a list of control networks).
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
void setActiveControl(Control *)
Set the Active Control (control network)