|
Isis 3 Programmer Reference
|
Go to the documentation of this file.
23 #include <QMessageBox>
27 #include "Directory.h"
28 #include "IException.h"
30 #include "ProjectItem.h"
31 #include "ProjectItemModel.h"
45 QAction::setText(tr(
"Set Active Control Network") );
46 QUndoCommand::setText(tr(
"Set Active Control Network"));
85 if (controls->size() != 1 ||
project()->activeControl() == controls->at(0)) {
103 if (!
project()->activeImageList()) {
105 QMessageBox::critical(NULL, tr(
"Unable to set active control."),
106 tr(
"You must first choose an active Image List before setting "
107 "the active control net."));
112 QUndoCommand::setText(tr(
"Set Active Control Network to [%1]").arg(
113 controlList()->at(0)->displayProperties()->displayName()));
134 QMessageBox::critical(NULL, tr(
"Error"), tr(e.
what()));
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
virtual bool setupExecution()
This sets up the state for the work order.
void execute()
Set the active control net for the project.
Provide Undo/redo abilities, serialization, and history for an operation.
virtual SetActiveControlWorkOrder * clone() const
Returns a copy of this SetActiveControlWorkOrder instance.
QPointer< ControlList > controlList()
Returns the Control List for this WorkOrder (a list of control networks).
Maintains a list of Controls so that control nets can easily be copied from one Project to another,...
~SetActiveControlWorkOrder()
The Destructor.
This is a child of class WorkOrder which is used for anything that performs an action in a Project.
virtual bool isExecutable(ControlList *controls)
Determines if we can set this control as active.
SetActiveControlWorkOrder(Project *project)
Creates a WorkOrder that will set the active Control in the project.
const char * what() const
Returns a string representation of this exception in its current state.
The main project for ipce.
void setActiveControl(QString displayName)
Set the Active Control (control network)
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
Project * project() const
Returns the Project this WorkOrder is attached to.
bool setupExecution()
Make sure an active ImageList has been chosen.
@ WorkOrderFinished
This is used for work orders that will not undo or redo (See createsCleanState())
This is free and unencumbered software released into the public domain.