mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-20 08:42:11 +08:00
80c3d67a28
old-commit-hash: f9d8652cbda86a4777166b1f970f770fcf65f4f3
32 lines
514 B
C++
32 lines
514 B
C++
#pragma once
|
|
|
|
#include <QLabel>
|
|
#include <QString>
|
|
#include <QWidget>
|
|
#include <QDialog>
|
|
#include <QLineEdit>
|
|
#include <QVBoxLayout>
|
|
|
|
#include "keyboard.hpp"
|
|
|
|
class InputDialog : public QDialog {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit InputDialog(QString prompt_text, QWidget* parent = 0);
|
|
static QString getText(QString prompt);
|
|
QString text();
|
|
|
|
private:
|
|
QLineEdit *line;
|
|
Keyboard *k;
|
|
QLabel *label;
|
|
QVBoxLayout *layout;
|
|
|
|
public slots:
|
|
int exec() override;
|
|
|
|
private slots:
|
|
void handleInput(QString s);
|
|
};
|