mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-03 20:42:09 +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: 29d9d037590d2db33b7d49c44120d83307ec6568
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;
|
|
};
|