Serial Studio 1.1.6
A dashboard software for your embedded projects
Widgets::GPS Class Reference

#include <GPS.h>

Inheritance diagram for Widgets::GPS:
Inheritance graph
Collaboration diagram for Widgets::GPS:
Collaboration graph

Public Member Functions

 GPS (const int index=-1)
 
- Public Member Functions inherited from Widgets::DashboardWidgetBase
 DashboardWidgetBase ()
 
void repaint ()
 
void requestRepaint ()
 

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 
void mousePressEvent (QMouseEvent *event)
 

Private Slots

void updateData ()
 

Private Attributes

int m_index
 
QLabel * m_label
 
QVBoxLayout m_layout
 
QPushButton * m_zoomIn
 
QPushButton * m_zoomOut
 
QWidget m_titleWidget
 
QHBoxLayout m_titleLayout
 
qmapcontrol::MapControl m_mapControl
 

Additional Inherited Members

- Signals inherited from Widgets::DashboardWidgetBase
void updated ()
 

Constructor & Destructor Documentation

◆ GPS()

Widgets::GPS::GPS ( const int  index = -1)

Generates the user interface elements & layout

Member Function Documentation

◆ mousePressEvent()

void Widgets::GPS::mousePressEvent ( QMouseEvent *  event)
protected

Manually calls the zoom in / zoom out button clicks when the user presses on the widget

◆ resizeEvent()

void Widgets::GPS::resizeEvent ( QResizeEvent *  event)
protected

Changes the size of the map when the widget is resized

◆ updateData

void Widgets::GPS::updateData ( )
privateslot

Checks if the widget is enabled, if so, the widget shall be updated to display the latest data frame.

If the widget is disabled (e.g. the user hides it, or the external window is hidden), then the widget shall ignore the update request.

Member Data Documentation

◆ m_index

int Widgets::GPS::m_index
private

◆ m_label

QLabel* Widgets::GPS::m_label
private

◆ m_layout

QVBoxLayout Widgets::GPS::m_layout
private

◆ m_mapControl

qmapcontrol::MapControl Widgets::GPS::m_mapControl
private

◆ m_titleLayout

QHBoxLayout Widgets::GPS::m_titleLayout
private

◆ m_titleWidget

QWidget Widgets::GPS::m_titleWidget
private

◆ m_zoomIn

QPushButton* Widgets::GPS::m_zoomIn
private

◆ m_zoomOut

QPushButton* Widgets::GPS::m_zoomOut
private

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