27 #include <QFileDialog> 28 #include <QInputDialog> 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";
void execute()
Redisplays the sensor view.
The main project for ipce.
This is a child of class WorkOrder which is used for anything that performs an action in a Project...
virtual bool setupExecution()
This sets up the state for the work order.
This error is for when a programmer made an API call that was illegal.
SensorGetInfoWorkOrder(Project *project)
Creates a WorkOrder that will retrieve target body info.
Directory * directory() const
Returns the directory associated with this Project.
Provide Undo/redo abilities, serialization, and history for an operation.
QList< SensorInfoWidget * > sensorInfoViews()
Accessor for the list of SensorInfoWidgets currently available.
#define _FILEINFO_
Macro for the filename and line number.
~SensorGetInfoWorkOrder()
The Destructor.
bool setupExecution()
Attempts to retrieve target body info from the camera and display it in a view.
bool m_isUndoable
Set the workorder to be undoable/redoable This is defaulted to true - his will allow the workorder to...
virtual bool isExecutable(GuiCameraQsp camera)
Determine if we already have a view for this camera.
void undoExecution()
Deletes the last view.
SensorInfoWidget * addSensorInfoView(GuiCameraQsp camera)
Add sensor data view widget to the window.
Namespace for ISIS/Bullet specific routines.
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon SensorGetInfoWorkerOrder.
Project * project() const
Returns the Project this WorkOrder is attached to.
GuiCameraQsp guiCamera()
WorkOrder::guiCamera.
virtual SensorGetInfoWorkOrder * clone() const
Returns a copy of the current instance of this WorkOrder.
bool m_isSavedToHistory
Set the work order to be shown in the HistoryTreeWidget.
QStringList internalData() const
Gets the internal data for this WorkOrder.
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.