openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models.
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.

43 lines
720 B

#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 cached_segment_limit = 5;
int chart_height = 200;
int chart_column_count = 1;
int max_chart_x_range = 3 * 60; // 3 minutes
QString last_dir;
QByteArray geometry;
QByteArray video_splitter_state;
QByteArray window_state;
signals:
void changed();
};
class SettingsDlg : public QDialog {
Q_OBJECT
public:
SettingsDlg(QWidget *parent);
void save();
QSpinBox *fps;
QSpinBox *cached_segment;
QSpinBox *chart_height;
QSpinBox *max_chart_x_range;
};
extern Settings settings;