mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-06 14:16:39 +08:00
72f6a3b56d
* change the chart theme in setting * change title colors * cleanup old-commit-hash: ba570b963f18d96ac181882b1f4e1678b992f665
41 lines
665 B
C++
41 lines
665 B
C++
#pragma once
|
|
|
|
#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 = 100;
|
|
int cached_segment_limit = 3;
|
|
int chart_height = 200;
|
|
int chart_theme = 0;
|
|
int max_chart_x_range = 3 * 60; // 3 minutes
|
|
|
|
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;
|
|
QComboBox *chart_theme;
|
|
QSpinBox *max_chart_x_range;
|
|
};
|
|
|
|
extern Settings settings;
|