This repository has been archived by the owner on Mar 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
terminaldialog.h
76 lines (55 loc) · 1.37 KB
/
terminaldialog.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#ifndef TERMINALDIALOG_H
#define TERMINALDIALOG_H
#include <QDialog>
#include <QProcess>
#include <QShowEvent>
#include <QSizeF>
//#include <QEvent>
extern int DebugFlat ;
extern QSizeF SizePercent;
namespace Ui {
class TerminalDialog;
}
class TerminalDialog : public QDialog
{
Q_OBJECT
signals:
void CMD_Reply(QStringList &value);
public:
explicit TerminalDialog(QWidget *parent = nullptr);
~TerminalDialog();
void SendCMD(QString CommandLine, QString argu = QString());
void Show_debug(QString msg);
private slots:
virtual void on_Btn_Back_clicked();
virtual void on_Btn_Send_clicked();
virtual void on_pushButton_clicked();
virtual void on_Btn_Logo_clicked();
void on_Btn_Kill_clicked();
private:
Ui::TerminalDialog *ui;
QProcess *cmd;
// bool CMD_NoPassword = false;
QString command;
QWidget *FUI;
bool FirstLoad = true;
QString SendCMD_argu;
bool CloseDialog = false;
// QString unicodeToUtf8(const QString resStr);
public:
QString CMD_Password = "raspberry";
protected:
void showEvent(QShowEvent *event);
};
//class CMD_Reply : public QEvent
//{
//public:
// CMD_Reply(QStringList _value);
// ~CMD_Reply();
// static Type eventType();
// QStringList getValue(void);
//private:
// static Type m_EventType;
// QStringList m_StringList;
//};
#endif // TERMINALDIALOG_H