forked from IQ.Lvbs/IQ.Pilot
IQ.Pilot Release Commit @ 0b96bd5
This commit is contained in:
@@ -1,45 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#include <cstdint>
|
||||
#include <vector>
|
||||
|
||||
#include <QComboBox>
|
||||
#include <QDialog>
|
||||
#include <QGroupBox>
|
||||
#include <QLineEdit>
|
||||
#include <QSpinBox>
|
||||
#include <string>
|
||||
|
||||
#include "tools/cabana/core/observable.h"
|
||||
#include "tools/cabana/core/settings.h"
|
||||
|
||||
class Settings : public QObject, public CabanaSettingsState {
|
||||
Q_OBJECT
|
||||
|
||||
class Settings : public CabanaSettingsState {
|
||||
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;
|
||||
std::string ui_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;
|
||||
Observable<> changed;
|
||||
};
|
||||
|
||||
extern Settings settings;
|
||||
|
||||
Reference in New Issue
Block a user