-
Notifications
You must be signed in to change notification settings - Fork 1
/
lcd.h
52 lines (41 loc) · 1.07 KB
/
lcd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef LCD_H
#define LCD_H
#include "ui_lcd.h"
#include "visualizationwidget.h"
class LCDDisplayArea;
/**
* @brief The LCD class with dotted charset
*
*/
class LCD : public QWidget, public VisualizationWidget, private Ui::LcdForm
{
Q_OBJECT
LCDDisplayArea *renderArea;
public:
/**
* Max. number of lines (rows) in the LCD
*/
static const unsigned DISPLAY_LINES = 4;
/**
* Max. number of chars in one line of the LCD
*/
static const unsigned DISPLAY_COLS = 20;
/**
* @brief LCD default init with a parent
*
* Default init with blue background, empty sreen.
*
* @param parent the Qt parent object
*/
explicit LCD(QWidget *parent, const char *uid);
~LCD();
LCDDisplayArea* getLCDDisplayArea() {
return renderArea;
}
/**
* Sets the buttons labels from one string (splits the string into single labels).
* @param label - label string with spaces as separator, '_' will be blank in the label
*/
void setLabels(const std::string &label) const;
};
#endif // LCD_H