27 #include <QFileDialog>
28 #include <QInputDialog>
34 #include "SensorInfoWidget.h"
45 QAction::setText(tr(
"Get Info...") );
89 for (
int i = 0; i < existingViews.size(); i++) {
90 if (existingViews.at(i)->objectName() == guiCamera->displayProperties()->displayName() )
107 QString sensorDisplayName =
guiCamera()->displayProperties()->displayName();
108 QUndoCommand::setText(tr(
"Get %1 sensor info").arg(sensorDisplayName) );
111 internalData.append(sensorDisplayName);
138 if (!sensorInfoWidget) {
139 QString msg =
"error displaying sensor info";
The main project for cnetsuite.
This is a child of class WorkOrder which is used for anything that performs an action in a Project...
bool dependsOn(WorkOrder *other) const
Determines whether a WorkOrder depends upon SensorGetInfoWorkerOrder.
Project * project() const
Returns the Project this WorkOrder is attached to.
QStringList internalData() const
Gets the internal data for this WorkOrder.
void syncRedo()
Redisplays the sensor view.
This error is for when a programmer made an API call that was illegal.
void syncUndo()
Deletes the last view.
SensorGetInfoWorkOrder(Project *project)
Constructor that creates a WorkOrder that will retrieve target body info.
Parent class for anything that performs an action in Project.
QList< SensorInfoWidget * > sensorInfoViews()
Accessor for the list of SensorInfoWidgets currently available.
#define _FILEINFO_
Macro for the filename and line number.
~SensorGetInfoWorkOrder()
The Destructor.
bool execute()
Attempts to retrieve target body info from the camera and display it in a view.
virtual bool isExecutable(GuiCameraQsp camera)
Determines if this WorkOrder can be executed.
Directory * directory() const
Returns the directory associated with this Project.
virtual SensorGetInfoWorkOrder * clone() const
Returns a copy of the current instance of this WorkOrder.
QSharedPointer< GuiCamera > GuiCameraQsp
GuiCameraQsp Represents a smart pointer to a GuiCamera object.
SensorInfoWidget * addSensorInfoView(GuiCameraQsp camera)
Add sensor data view widget to the window.
GuiCameraQsp guiCamera()
WorkOrder::guiCamera.
virtual bool execute()
The (child) implementation of this method should prompt the user/gather state by any means necessary...
void setInternalData(QStringList data)
Sets the internal data for this WorkOrder.