24 #include <QDomElement>
27 #include <QXmlStreamWriter>
46 QTreeWidgetItem::setFlags( Qt::ItemIsEnabled | Qt::ItemIsSelectable );
66 if( __poVesselContainerDeviceEditView->exec() == QDialog::Accepted )
showDetail();
67 delete __poVesselContainerDeviceEditView;
81 if( !_pqObject || (QObject*)
poDevice != _pqObject )
return;
111 if( !__poDevice )
return false;
123 QObject::disconnect(
poDevice, 0,
this, 0 );
130 iTTL = _rqDomElement.attribute(
"ttl",
"60" ).toInt();
138 _rqXmlStreamWriter.writeStartElement(
"Device" );
140 if( !
getName().isEmpty() ) _rqXmlStreamWriter.writeAttribute(
"name",
getName() );
142 _rqXmlStreamWriter.writeAttribute(
"ttl", QString::number(
iTTL ) );
144 _rqXmlStreamWriter.writeEndElement();
Fix data [source,time,position,course,DOPs,...].
QString getSourceName() const
Returns the source name.
[UI] Device overlay container
CDevice * pickDevice(const QString &_rqsName)
Returns the device matching the given name (0 if none is found)
Generic navigation device (GPS, speedometer, compass, etc.)
void switchView(EView eView)
Displays the requested container/item details (switching to the appropriate widget)
@ VESSEL_CONTAINER_DEVICE
Vessel container's device.
void switchView(EView eView)
Displays the requested overlay (switching to the appropriate tab)
void setOverlayObject(COverlayObject *_poOverlayObject)
Sets the overlay object to be displayed (and refreshes the underlying widget)
QString getName() const
Returns this object's name.
virtual void refreshContent()
Refreshes the content of the underlying widget.
[UI] Vessel container's device edit view
CDevice * poDevice
Corresponding device's pointer.
int iTTL
(Vessels) Time-to-live (seconds)
void slotDestroyed(QObject *_pqObject)
Slot to handle object destruction.
void slotDataFix(const CDeviceDataFix &_roDeviceDataFix)
Slot to handle fix data (sent by device)
virtual void showDetail()
Displays this object's details (in the appropriate widget/view)
bool connectDevice()
Connects to the actual device.
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter) const
Stores this object's content to the given QVCT destination (file)
bool isDeviceConnected() const
Returns whether the actual device is connected.
virtual void showEdit()
Displays this object's edit widget/view.
CVesselContainerDevice(const QString &_rqsName)
void disconnectDevice()
Dicconnects from the actual device.
void parseQVCT(const QDomElement &_rqDomElement)
Retrieves this object's content from the given QVCT source (file)
[UI] Vessel overlay container / flotilla
void addPointDynamic(const CDeviceDataFix &_roDeviceDataFix, const QString &_rqsDeviceName)
Add a new dynamic vessel (item/point) with the given data fix to this container.
static COverlayDetailView * useOverlayDetailView()
static CVesselContainerDeviceDetailView * useVesselContainerDeviceDetailView()
static CDeviceOverlay * useDeviceOverlay()
static COverlayListView * useOverlayListView()