26 #ifndef QVCT_CDEVICEOVERLAY_HPP
27 #define QVCT_CDEVICEOVERLAY_HPP
30 #include <QDomElement>
35 #include <QStringList>
37 #include <QXmlStreamWriter>
85 virtual void showDetail(
const QTreeWidgetItem* _pqTreeWidgetItem )
const;
86 virtual void setPosition(
const QTreeWidgetItem* _pqTreeWidgetItem )
const {};
95 virtual void onChange( QTreeWidgetItem* _pqTreeWidgetItem,
int __iColumn );
113 CDevice*
load(
const QString& _rqsFilename,
bool _bSilent =
false );
115 void save(
const QString& _rqsFilename,
CDevice* _poDevice = 0,
bool _bApplicationDump =
false )
const;
117 int parseQVCT(
const QDomElement& _rqDomElement,
CDevice** _ppoDevice = 0 );
119 void dumpQVCT( QXmlStreamWriter & _rqXmlStreamWriter,
CDevice* _poDevice = 0,
bool _bApplicationDump =
false )
const;
[UI] Device overlay container
virtual void setPosition(const QTreeWidgetItem *_pqTreeWidgetItem) const
Centers the chart on the given overlay object's position.
CDeviceOverlay(QWidget *_pqParent=0)
int deleteSelection()
Deletes selected devices from this overlay.
void clear()
Clear the entire content of this overlay.
CDevice * pickDevice(const QString &_rqsName)
Returns the device matching the given name (0 if none is found)
void dumpQVCT(QXmlStreamWriter &_rqXmlStreamWriter, CDevice *_poDevice=0, bool _bApplicationDump=false) const
Stores this object's content to the given QVCT destination (file)
virtual void showDetail(const QTreeWidgetItem *_pqTreeWidgetItem) const
Displays the given overlay object's details (in the appropriate widget/view)
EColumn
Implemented tree-widget columns.
@ SELECT
Device selection status.
int parseQVCT(const QDomElement &_rqDomElement, CDevice **_ppoDevice=0)
Retrieves this object's content from the given QVCT source (file)
void save(const QString &_rqsFilename, CDevice *_poDevice=0, bool _bApplicationDump=false) const
Save this object's content (device) to the given file (all selected items if no device is given)
virtual COverlayPoint * matchScrPosition(const CChart *_poChart, const QPointF &_rqPointFScrPosition) const
Returns the overlay's point that (first) matches the given screen position (0 if none is found)
virtual void onChange(QTreeWidgetItem *_pqTreeWidgetItem, int __iColumn)
Handles item (content) changes in the underlying QTreeWidget.
virtual ~CDeviceOverlay()
CDevice * load(const QString &_rqsFilename, bool _bSilent=false)
Load this object's content from the given file and returns the last loaded device (0 if none)
virtual void drawContent(const CChart *_poChart, QPainter *_pqPainter) const
Draws this overlay's content.
Generic navigation device (GPS, speedometer, compass, etc.)
Generic overlay base (tree widget)