Qt Virtual Chart Table (QVCT)
CVesselWidget Class Referenceabstract

[UI] Generic vessel (dock) widget More...

#include <overlays/vessel/widgets/CVesselWidget.hpp>

Inheritance diagram for CVesselWidget:
CVesselCourse CVesselPosition CVesselTarget

Public Member Functions

void setVesselPoint (CVesselPoint *_poVesselPoint)
 Sets the vessel used to synchronize the instruments display. More...
 
void resetVesselPoint ()
 Resets (clears) the vessel used to synchronize the instruments display. More...
 
virtual void setFont (QFont _qFont)=0
 Sets the font for the content of the underlying widget. More...
 
virtual void refreshContent ()=0
 Refreshes the content of the underlying widget. More...
 
virtual void resetContent ()=0
 Resets (clears) the content of the underlying widget. More...
 

Protected Slots

virtual void resizeEvent (QResizeEvent *_pqResizeEvent)
 

Protected Member Functions

 CVesselWidget (const QString &_qsTitle, QWidget *_pqParent=0)
 
virtual ~CVesselWidget ()
 

Protected Attributes

QWidget * pqWidget
 [UI:Widget] Container widget More...
 
QBoxLayout * pqBoxLayout
 [UI:Layout] Layout More...
 
CVesselPointpoVesselPoint
 Overlay course being displayed. More...
 

Private Slots

void slotDestroyed (QObject *_pqObject)
 Slot to handle object destruction. More...
 
void slotLocationChanged (Qt::DockWidgetArea _qDockWidgetArea)
 Slot to handle dock area change. More...
 
void slotTopLevelChanged (bool _bTopLevel)
 Slot to handle floating change. More...
 

Detailed Description

[UI] Generic vessel (dock) widget

This class defines the base user-interface required to display vessels (dock) widgets. These widgets will automatically change their layout between vertical and horizontal depending on where they are docked, as well as adapt their font size according to their size.

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

Definition at line 42 of file CVesselWidget.hpp.

Constructor & Destructor Documentation

◆ CVesselWidget()

CVesselWidget::CVesselWidget ( const QString &  _qsTitle,
QWidget *  _pqParent = 0 
)
protected

Definition at line 35 of file CVesselWidget.cpp.

◆ ~CVesselWidget()

virtual CVesselWidget::~CVesselWidget ( )
inlineprotectedvirtual

Definition at line 68 of file CVesselWidget.hpp.

Member Function Documentation

◆ resizeEvent

void CVesselWidget::resizeEvent ( QResizeEvent *  _pqResizeEvent)
protectedvirtualslot

Definition at line 53 of file CVesselWidget.cpp.

◆ slotDestroyed

void CVesselWidget::slotDestroyed ( QObject *  _pqObject)
privateslot

Slot to handle object destruction.

Definition at line 77 of file CVesselWidget.cpp.

◆ slotLocationChanged

void CVesselWidget::slotLocationChanged ( Qt::DockWidgetArea  _qDockWidgetArea)
privateslot

Slot to handle dock area change.

Definition at line 83 of file CVesselWidget.cpp.

◆ slotTopLevelChanged

void CVesselWidget::slotTopLevelChanged ( bool  _bTopLevel)
privateslot

Slot to handle floating change.

Definition at line 91 of file CVesselWidget.cpp.

◆ setVesselPoint()

void CVesselWidget::setVesselPoint ( CVesselPoint _poVesselPoint)

Sets the vessel used to synchronize the instruments display.

Definition at line 100 of file CVesselWidget.cpp.

◆ resetVesselPoint()

void CVesselWidget::resetVesselPoint ( )

Resets (clears) the vessel used to synchronize the instruments display.

Definition at line 107 of file CVesselWidget.cpp.

◆ setFont()

virtual void CVesselWidget::setFont ( QFont  _qFont)
pure virtual

Sets the font for the content of the underlying widget.

Implemented in CVesselTarget, CVesselPosition, and CVesselCourse.

◆ refreshContent()

virtual void CVesselWidget::refreshContent ( )
pure virtual

Refreshes the content of the underlying widget.

Implemented in CVesselTarget, CVesselPosition, and CVesselCourse.

◆ resetContent()

virtual void CVesselWidget::resetContent ( )
pure virtual

Resets (clears) the content of the underlying widget.

Implemented in CVesselTarget, CVesselPosition, and CVesselCourse.

Member Data Documentation

◆ pqWidget

QWidget* CVesselWidget::pqWidget
protected

[UI:Widget] Container widget

Definition at line 53 of file CVesselWidget.hpp.

◆ pqBoxLayout

QBoxLayout* CVesselWidget::pqBoxLayout
protected

[UI:Layout] Layout

Definition at line 55 of file CVesselWidget.hpp.

◆ poVesselPoint

CVesselPoint* CVesselWidget::poVesselPoint
protected

Overlay course being displayed.

See also
setVesselPoint(), resetVesselPoint()

Definition at line 59 of file CVesselWidget.hpp.


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