-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlogbox.h
38 lines (30 loc) · 862 Bytes
/
logbox.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
#ifndef LOGBOX_H
#define LOGBOX_H
#include <QWidget>
#include <QGroupBox>
#include <QLabel>
#include <QGuiApplication>
#include <QScreen>
#include <QRect>
#include <QBoxLayout>
#include <QDebug>
QT_BEGIN_NAMESPACE
namespace Ui
{
class Settings;
}
QT_END_NAMESPACE
class LogBox : public QWidget
{
Q_OBJECT
public:
explicit LogBox(QWidget *parent = nullptr);
QGroupBox *drawLogBoxes(QString type, uint8_t index, uint8_t switchBoxCount, QString title, QString unit, QString value);
QGroupBox *drawLogSwitchBox(uint8_t index, uint8_t switchBoxCount, QString title, QString unit, QString value);
QGroupBox *drawLogValueBox(uint8_t index, uint8_t logBoxCount, QString title, QString unit, QString value);
void updateSwitchBox();
void updateLogBox();
private:
signals:
};
#endif // LOGBOX_H