mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-24 17:43:52 +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
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;
|
|
};
|