mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-03-01 06:43:58 +08:00
* new StreamDialog
* choose dbc file
* update last_dir
* move to /streams
* cleanup
* add stretch
* catch panda exception
* cleanup
* cleanup
* small cleanup
* fix pandaStream crash caused by a failed connection
* static function to create stream widget
* cleanup
old-commit-hash: 590b1bc206
23 lines
468 B
C++
23 lines
468 B
C++
#pragma once
|
|
|
|
#include <QDialog>
|
|
#include <QLineEdit>
|
|
#include <QTabWidget>
|
|
|
|
#include "tools/cabana/streams/abstractstream.h"
|
|
|
|
class StreamSelector : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
StreamSelector(QWidget *parent = nullptr);
|
|
void addStreamWidget(AbstractOpenStreamWidget *w);
|
|
QString dbcFile() const { return dbc_file->text(); }
|
|
inline bool failed() const { return !success; }
|
|
|
|
private:
|
|
QLineEdit *dbc_file;
|
|
QTabWidget *tab;
|
|
bool success = true;
|
|
};
|