mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-25 05:22:13 +08:00
ba6db36314
version: sunnypilot v2026.003.000 (dev)
date: 2026-07-24T16:32:00
master commit: a0cc313fdc
46 lines
911 B
C++
46 lines
911 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
#include <QComboBox>
|
|
#include <QDialog>
|
|
#include <QGroupBox>
|
|
#include <QLineEdit>
|
|
#include <QSpinBox>
|
|
|
|
#include "tools/cabana/core/settings.h"
|
|
|
|
class Settings : public QObject, public CabanaSettingsState {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
Settings();
|
|
void save();
|
|
|
|
// Qt frontend layout state. This intentionally stays outside CabanaSettingsState.
|
|
std::vector<uint8_t> geometry;
|
|
std::vector<uint8_t> video_splitter_state;
|
|
std::vector<uint8_t> window_state;
|
|
std::vector<uint8_t> message_header_state;
|
|
|
|
signals:
|
|
void changed();
|
|
};
|
|
|
|
class SettingsDlg : public QDialog {
|
|
public:
|
|
SettingsDlg(QWidget *parent);
|
|
void save();
|
|
QSpinBox *fps;
|
|
QSpinBox *cached_minutes;
|
|
QSpinBox *chart_height;
|
|
QComboBox *chart_series_type;
|
|
QComboBox *theme;
|
|
QGroupBox *log_livestream;
|
|
QLineEdit *log_path;
|
|
QComboBox *drag_direction;
|
|
};
|
|
|
|
extern Settings settings;
|