mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-02 11:23:57 +08:00
* add capability for switching between line and scatter plots * Update tools/cabana/chartswidget.cc Co-authored-by: Willem Melching <willem.melching@gmail.com> * setUserOpengl in createSeries * update series title * set marker size by pixels_per_point * sync menu state * cleanup * set default series type in settings dlg * remove qdebug --------- Co-authored-by: Willem Melching <willem.melching@gmail.com>
46 lines
805 B
C++
46 lines
805 B
C++
#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 max_cached_minutes = 5;
|
|
int chart_height = 200;
|
|
int chart_column_count = 1;
|
|
int chart_range = 3 * 60; // e minutes
|
|
int chart_series_type = 0;
|
|
QString last_dir;
|
|
QByteArray geometry;
|
|
QByteArray video_splitter_state;
|
|
QByteArray window_state;
|
|
QStringList recent_files;
|
|
QByteArray message_header_state;
|
|
|
|
signals:
|
|
void changed();
|
|
};
|
|
|
|
class SettingsDlg : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
SettingsDlg(QWidget *parent);
|
|
void save();
|
|
QSpinBox *fps;
|
|
QSpinBox *cached_minutes;
|
|
QSpinBox *chart_height;
|
|
QComboBox *chart_series_type;
|
|
};
|
|
|
|
extern Settings settings;
|