You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
517 B
36 lines
517 B
3 years ago
|
#pragma once
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QSpinBox>
|
||
|
|
||
|
class Settings : public QObject {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
Settings();
|
||
|
void save();
|
||
|
void load();
|
||
|
|
||
|
int fps = 10;
|
||
|
int can_msg_log_size = 100;
|
||
|
int cached_segment_limit = 3;
|
||
|
int chart_height = 200;
|
||
|
|
||
|
signals:
|
||
|
void changed();
|
||
|
};
|
||
|
|
||
|
class SettingsDlg : public QDialog {
|
||
|
Q_OBJECT
|
||
|
|
||
|
public:
|
||
|
SettingsDlg(QWidget *parent);
|
||
|
void save();
|
||
|
QSpinBox *fps;
|
||
|
QSpinBox *log_size ;
|
||
|
QSpinBox *cached_segment;
|
||
|
QSpinBox *chart_height;
|
||
|
};
|
||
|
|
||
|
extern Settings settings;
|