mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-04 15:56:08 +08:00
7af5741071
* add OpenRouteDialog
* cleanup
* failed_to_load
* fix load
* clear message list and stream after open new route
* show message
* remove all tabs and charts after open
* use textEdited
* check route format
* cleanup loadRoute
old-commit-hash: 29d9d03759
20 lines
360 B
C++
20 lines
360 B
C++
#pragma once
|
|
|
|
#include <QDialogButtonBox>
|
|
#include <QLineEdit>
|
|
#include <QDialog>
|
|
|
|
class OpenRouteDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OpenRouteDialog(QWidget *parent);
|
|
void loadRoute();
|
|
inline bool failedToLoad() const { return failed_to_load; }
|
|
|
|
private:
|
|
QLineEdit *route_edit;
|
|
QDialogButtonBox *btn_box;
|
|
bool failed_to_load = false;
|
|
};
|