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

#include <LEDPanel.h>

Inheritance diagram for Widgets::LEDPanel:
Inheritance graph
Collaboration diagram for Widgets::LEDPanel:
Collaboration graph

Public Member Functions

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

Protected Member Functions

void resizeEvent (QResizeEvent *event)
 

Private Slots

void updateData ()
 

Private Attributes

int m_index
 
QVector< KLed * > m_leds
 
QVector< QLabel * > m_titles
 
QWidget * m_dataContainer
 
QVBoxLayout * m_mainLayout
 
QGridLayout * m_gridLayout
 
QScrollArea * m_scrollArea
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ LEDPanel()

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

Generates the user interface elements & layout

◆ ~LEDPanel()

Widgets::LEDPanel::~LEDPanel ( )

Frees the memory allocated for each label and LED that represents a dataset

Member Function Documentation

◆ resizeEvent()

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

Changes the size of the labels when the widget is resized

◆ updateData

void Widgets::LEDPanel::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_dataContainer

QWidget* Widgets::LEDPanel::m_dataContainer
private

◆ m_gridLayout

QGridLayout* Widgets::LEDPanel::m_gridLayout
private

◆ m_index

int Widgets::LEDPanel::m_index
private

◆ m_leds

QVector<KLed *> Widgets::LEDPanel::m_leds
private

◆ m_mainLayout

QVBoxLayout* Widgets::LEDPanel::m_mainLayout
private

◆ m_scrollArea

QScrollArea* Widgets::LEDPanel::m_scrollArea
private

◆ m_titles

QVector<QLabel *> Widgets::LEDPanel::m_titles
private

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