Qt Virtual Chart Table (QVCT)
CTrackContainer Class Reference

[UI] Track overlay container More...

#include <overlays/track/CTrackContainer.hpp>

Inheritance diagram for CTrackContainer:
COverlayContainer COverlayVisibility COverlayObject

Public Member Functions

 CTrackContainer (const QString &_rqsName)
 
virtual ~CTrackContainer ()
 
virtual void serialize (QDataStream &_rqDataStream) const
 Serializes (store) this object's data to binary format. More...
 
virtual void unserialize (QDataStream &_rqDataStream)
 Unserializes (restore) this object's data from binary format. More...
 
virtual COverlayuseOverlay ()
 Returns this object's (base) overlay. More...
 
virtual void draw (const CChart *_poChart, QPainter *_pqPainter)
 Draws this object (itself or its content) More...
 
virtual void showDetail ()
 Displays this object's details (in the appropriate widget/view) More...
 
virtual void showEdit ()
 Displays this object's edit widget/view. More...
 
virtual COverlayPointmatchScrPosition (const CChart *_poChart, const QPointF &_rqPointFScrPosition) const
 Returns the overlay container's point that (first) matches the given screen position (0 if none is found) More...
 
virtual void setVisibleName (bool _bVisibleName)
 Sets the name's (tag) visibility status. More...
 
virtual void setVisiblePosition (bool _bVisiblePosition)
 Sets the position's visibility status. More...
 
virtual void setVisibleRouting (bool _bVisibleRouting)
 Sets the routing's (data) visibility status. More...
 
virtual void toggleVisibility ()
 
void setType (const QString &_rqsType)
 Sets this track's type. More...
 
void setDescription (const QString &_rqsDescription)
 Sets this track's description. More...
 
void setComment (const QString &_rqsComment)
 Sets this track's comment. More...
 
void setUrl (const QString &_rqsUrl)
 Sets this track's URL. More...
 
QString getType () const
 Returns this track's type. More...
 
QString getDescription () const
 Returns this track's description. More...
 
QString getComment () const
 Returns this track's comment. More...
 
QString getUrl () const
 Returns this track's URL. More...
 
CTrackSubContainerpickSubContainer ()
 Returns the last/current sub-container of this container. More...
 
CTrackSubContaineraddSubContainer ()
 Add a new sub-container to this container. More...
 
double getLengthRL ()
 Returns the track's (rhumb-line) length. More...
 
double getTimeElapsed ()
 Returns the track's elapsed time. More...
 
int parseQVCT (const QDomElement &_rqDomElement)
 Retrieves this object's content from the given QVCT source (file) More...
 
int parseGPX (const QDomElement &_rqDomElement)
 Retrieves this object's content from the given GPX source (file) More...
 
void dumpQVCT (QXmlStreamWriter &_rqXmlStreamWriter, bool bOnlySelected=false) const
 Stores this object's content to the given QVCT destination (file) More...
 
void dumpGPX (QXmlStreamWriter &_rqXmlStreamWriter, bool bOnlySelected=false) const
 Stores this object's content to the given GPX destination (file) More...
 
int deleteSelection ()
 Deletes selected items within this container. More...
 
- Public Member Functions inherited from COverlayObject
void setName (const QString &_rqsName)
 Sets this object's name. More...
 
QString getName () const
 Returns this object's name. More...
 
QString newChildName (const QString &_rqsName, int _iZeroPrefix=0, bool _bForceSuffix=false) const
 Returns a valid (non-duplicate) name for a new sibling of this object. More...
 
QString newChildName (const QString &_rqsName, int _iZeroPrefix, int _iSuffix) const
 Returns a suffixed (potentially duplicate) name for a new sibling of this object. More...
 
- Public Member Functions inherited from COverlayVisibility
void setVisible (bool _bVisible)
 Sets the point's (marker) visibility status. More...
 
virtual void setVisibleCourse (bool _bVisibleCourse)
 Sets the course's visibility status. More...
 
void setVisibility (int _iVisibilityCode)
 Sets the global (coded) visibility status. More...
 
bool isVisible () const
 Returns the point's (marker) visibility status. More...
 
bool isVisibleName () const
 Returns the tag's (name) visibility status. More...
 
bool isVisiblePosition () const
 Returns the position's visibility status. More...
 
bool isVisibleCourse () const
 Returns the course's visibility status. More...
 
bool isVisibleRouting () const
 Returns the routing's (data) visibility status. More...
 
int getVisibility () const
 Returns the global (coded) visibility status. More...
 

Private Attributes

QString qsType
 Track's type. More...
 
QString qsDescription
 Track's description. More...
 
QString qsComment
 Track's comment. More...
 
QString qsUrl
 Track's URL. More...
 

Additional Inherited Members

- Public Types inherited from COverlayObject
enum  EType {
  OVERLAY = 1001, CONTAINER = 1010, SUBCONTAINER = 1011, ITEM = 1100,
  SUBITEM1 = 1101, SUBITEM2 = 1102
}
 Overlay object type. More...
 
- Protected Member Functions inherited from COverlayContainer
 COverlayContainer (COverlayObject::EType _eType, const QString &_rqsName)
 
virtual ~COverlayContainer ()
 
- Protected Member Functions inherited from COverlayObject
 COverlayObject (EType _eType, const QString &_rqsName)
 
virtual ~COverlayObject ()
 
- Protected Member Functions inherited from COverlayVisibility
 COverlayVisibility ()
 
virtual ~COverlayVisibility ()
 
virtual void toggleVisibility (bool _bIncludeCourse, bool _bIncludeRouting)
 Toggle the visibility status. More...
 
- Protected Attributes inherited from COverlayObject
QString qsName
 Object name. More...
 
- Protected Attributes inherited from COverlayVisibility
bool bVisible
 Global (marker) visibility status. More...
 
bool bVisibleName
 Name's (tag) visibility status. More...
 
bool bVisiblePosition
 Position's visibility status. More...
 
bool bVisibleCourse
 Course's visibility status. More...
 
bool bVisibleRouting
 Routing's (data) visibility status. More...
 

Detailed Description

[UI] Track overlay container

This class implements the overlay container for the track overlay.

Author
Cedric Dufour http://cedric.dufour.name

Definition at line 44 of file CTrackContainer.hpp.

Constructor & Destructor Documentation

◆ CTrackContainer()

CTrackContainer::CTrackContainer ( const QString &  _rqsName)

Definition at line 38 of file CTrackContainer.cpp.

◆ ~CTrackContainer()

CTrackContainer::~CTrackContainer ( )
virtual

Definition at line 50 of file CTrackContainer.cpp.

Member Function Documentation

◆ serialize()

void CTrackContainer::serialize ( QDataStream &  _rqDataStream) const
virtual

Serializes (store) this object's data to binary format.

Reimplemented from COverlayObject.

Definition at line 65 of file CTrackContainer.cpp.

◆ unserialize()

void CTrackContainer::unserialize ( QDataStream &  _rqDataStream)
virtual

Unserializes (restore) this object's data from binary format.

Reimplemented from COverlayObject.

Definition at line 71 of file CTrackContainer.cpp.

◆ useOverlay()

virtual COverlay* CTrackContainer::useOverlay ( )
inlinevirtual

Returns this object's (base) overlay.

Implements COverlayObject.

Definition at line 80 of file CTrackContainer.hpp.

◆ draw()

void CTrackContainer::draw ( const CChart _poChart,
QPainter *  _pqPainter 
)
virtual

Draws this object (itself or its content)

Implements COverlayObject.

Definition at line 78 of file CTrackContainer.cpp.

◆ showDetail()

void CTrackContainer::showDetail ( )
virtual

Displays this object's details (in the appropriate widget/view)

Implements COverlayObject.

Definition at line 86 of file CTrackContainer.cpp.

◆ showEdit()

void CTrackContainer::showEdit ( )
virtual

Displays this object's edit widget/view.

Implements COverlayObject.

Definition at line 95 of file CTrackContainer.cpp.

◆ matchScrPosition()

COverlayPoint * CTrackContainer::matchScrPosition ( const CChart _poChart,
const QPointF &  _rqPointFScrPosition 
) const
virtual

Returns the overlay container's point that (first) matches the given screen position (0 if none is found)

Implements COverlayContainer.

Definition at line 107 of file CTrackContainer.cpp.

◆ setVisibleName()

void CTrackContainer::setVisibleName ( bool  _bVisibleName)
virtual

Sets the name's (tag) visibility status.

Reimplemented from COverlayVisibility.

Definition at line 125 of file CTrackContainer.cpp.

◆ setVisiblePosition()

void CTrackContainer::setVisiblePosition ( bool  _bVisiblePosition)
virtual

Sets the position's visibility status.

Reimplemented from COverlayVisibility.

Definition at line 133 of file CTrackContainer.cpp.

◆ setVisibleRouting()

void CTrackContainer::setVisibleRouting ( bool  _bVisibleRouting)
virtual

Sets the routing's (data) visibility status.

Reimplemented from COverlayVisibility.

Definition at line 141 of file CTrackContainer.cpp.

◆ toggleVisibility()

void CTrackContainer::toggleVisibility ( )
virtual

Definition at line 149 of file CTrackContainer.cpp.

◆ setType()

void CTrackContainer::setType ( const QString &  _rqsType)
inline

Sets this track's type.

Definition at line 114 of file CTrackContainer.hpp.

◆ setDescription()

void CTrackContainer::setDescription ( const QString &  _rqsDescription)
inline

Sets this track's description.

Definition at line 116 of file CTrackContainer.hpp.

◆ setComment()

void CTrackContainer::setComment ( const QString &  _rqsComment)
inline

Sets this track's comment.

Definition at line 118 of file CTrackContainer.hpp.

◆ setUrl()

void CTrackContainer::setUrl ( const QString &  _rqsUrl)
inline

Sets this track's URL.

Definition at line 120 of file CTrackContainer.hpp.

◆ getType()

QString CTrackContainer::getType ( ) const
inline

Returns this track's type.

Definition at line 125 of file CTrackContainer.hpp.

◆ getDescription()

QString CTrackContainer::getDescription ( ) const
inline

Returns this track's description.

Definition at line 127 of file CTrackContainer.hpp.

◆ getComment()

QString CTrackContainer::getComment ( ) const
inline

Returns this track's comment.

Definition at line 129 of file CTrackContainer.hpp.

◆ getUrl()

QString CTrackContainer::getUrl ( ) const
inline

Returns this track's URL.

Definition at line 131 of file CTrackContainer.hpp.

◆ pickSubContainer()

CTrackSubContainer * CTrackContainer::pickSubContainer ( )

Returns the last/current sub-container of this container.

NOTE: A new sub-container will be created if none exists

Definition at line 173 of file CTrackContainer.cpp.

◆ addSubContainer()

CTrackSubContainer * CTrackContainer::addSubContainer ( )

Add a new sub-container to this container.

NOTE: A new sub-container will be created only if none exists or the last sub-container is not empty)

Definition at line 180 of file CTrackContainer.cpp.

◆ getLengthRL()

double CTrackContainer::getLengthRL ( )

Returns the track's (rhumb-line) length.

Definition at line 194 of file CTrackContainer.cpp.

◆ getTimeElapsed()

double CTrackContainer::getTimeElapsed ( )

Returns the track's elapsed time.

Definition at line 203 of file CTrackContainer.cpp.

◆ parseQVCT()

int CTrackContainer::parseQVCT ( const QDomElement &  _rqDomElement)

Retrieves this object's content from the given QVCT source (file)

Definition at line 212 of file CTrackContainer.cpp.

◆ parseGPX()

int CTrackContainer::parseGPX ( const QDomElement &  _rqDomElement)

Retrieves this object's content from the given GPX source (file)

Definition at line 233 of file CTrackContainer.cpp.

◆ dumpQVCT()

void CTrackContainer::dumpQVCT ( QXmlStreamWriter &  _rqXmlStreamWriter,
bool  bOnlySelected = false 
) const

Stores this object's content to the given QVCT destination (file)

Definition at line 253 of file CTrackContainer.cpp.

◆ dumpGPX()

void CTrackContainer::dumpGPX ( QXmlStreamWriter &  _rqXmlStreamWriter,
bool  bOnlySelected = false 
) const

Stores this object's content to the given GPX destination (file)

Definition at line 287 of file CTrackContainer.cpp.

◆ deleteSelection()

int CTrackContainer::deleteSelection ( )

Deletes selected items within this container.

Definition at line 335 of file CTrackContainer.cpp.

Member Data Documentation

◆ qsType

QString CTrackContainer::qsType
private

Track's type.

Definition at line 53 of file CTrackContainer.hpp.

◆ qsDescription

QString CTrackContainer::qsDescription
private

Track's description.

Definition at line 55 of file CTrackContainer.hpp.

◆ qsComment

QString CTrackContainer::qsComment
private

Track's comment.

Definition at line 57 of file CTrackContainer.hpp.

◆ qsUrl

QString CTrackContainer::qsUrl
private

Track's URL.

Definition at line 59 of file CTrackContainer.hpp.


The documentation for this class was generated from the following files: