28#include <QInputDialog>
31#include "IException.h"
34#include "SensorInfoWidget.h"
45 QAction::setText(tr(
"Get Info...") );
92 for (
int i = 0; i < existingViews.size(); i++) {
93 if (existingViews.at(i)->objectName() ==
guiCamera->displayProperties()->displayName() )
110 QString sensorDisplayName =
guiCamera()->displayProperties()->displayName();
111 QUndoCommand::setText(tr(
"Get %1 sensor info").arg(sensorDisplayName) );
142 if (!sensorInfoWidget) {
143 QString msg =
"error displaying sensor info";
QList< SensorInfoWidget * > sensorInfoViews()
Accessor for the list of SensorInfoWidgets currently available.
SensorInfoWidget * addSensorInfoView(GuiCameraQsp camera)
Add sensor data view widget to the window.
@ Programmer
This error is for when a programmer made an API call that was illegal.
The main project for ipce.
Directory * directory() const
Returns the directory associated with this Project.
This is a child of class WorkOrder which is used for anything that performs an action in a Project.
bool setupExecution()
Attempts to retrieve target body info from the camera and display it in a view.
void execute()
Redisplays the sensor view.
virtual bool isExecutable(GuiCameraQsp camera)
Determine if we already have a view for this camera.
void undoExecution()
Deletes the last view.
virtual SensorGetInfoWorkOrder * clone() const
Returns a copy of the current instance of this WorkOrder.
SensorGetInfoWorkOrder(Project *project)
Creates a WorkOrder that will retrieve target body info.
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon SensorGetInfoWorkerOrder.
~SensorGetInfoWorkOrder()
The Destructor.
Provide Undo/redo abilities, serialization, and history for an operation.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
virtual bool setupExecution()
This sets up the state for the work order.
QStringList internalData() const
Gets the internal data for this WorkOrder.
GuiCameraQsp guiCamera()
WorkOrder::guiCamera.
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.
Project * project() const
Returns the Project this WorkOrder is attached to.
This is free and unencumbered software released into the public domain.