mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
728d969249
* limit X-axis range from settings * continue * update range if events merged * update line series by range * cleanup removeChart * cleanup updateAxisy
38 lines
595 B
C++
38 lines
595 B
C++
#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;
|
|
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;
|
|
QSpinBox *max_chart_x_range;
|
|
};
|
|
|
|
extern Settings settings;
|