mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-22 20:33:54 +08:00
* auto theme
* cleanup
* get font color from ForegroundRole
* fix label color
* add padding for header
* smaller warning icon
* fix bg of binary view
* hightlight after init
old-commit-hash: 4662f1e0be
42 lines
686 B
C++
42 lines
686 B
C++
#pragma once
|
|
|
|
#include <QByteArray>
|
|
#include <QComboBox>
|
|
#include <QDialog>
|
|
#include <QSpinBox>
|
|
|
|
class Settings : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Settings();
|
|
void save();
|
|
void load();
|
|
|
|
int fps = 10;
|
|
int can_msg_log_size = 50;
|
|
int cached_segment_limit = 3;
|
|
int chart_height = 200;
|
|
int max_chart_x_range = 3 * 60; // 3 minutes
|
|
QString last_dir;
|
|
QByteArray splitter_state;
|
|
|
|
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;
|
|
QSpinBox *max_chart_x_range;
|
|
};
|
|
|
|
extern Settings settings;
|