Files
StarPilot/tools/cabana/route.h
T
Dean Lee 7af5741071 cabana: add dialog to open route from remote or local (#27183)
* 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: 29d9d037590d2db33b7d49c44120d83307ec6568
2023-02-03 12:47:26 -08:00

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;
};