🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
UiPilotConsole.hpp
浏览该文件的文档.
1
19
20
#pragma once
21
22
#include "AstGlobal.h"
23
#include <QWidget>
24
#include <QList>
25
26
class
QTextEdit;
27
class
QLineEdit;
28
class
QMainWindow;
29
30
AST_NAMESPACE_BEGIN
31
32
class
PilotCommander;
33
42
class
AST_UIPILOT_API
UiPilotConsole
:
public
QWidget
43
{
44
Q_OBJECT
45
46
public
:
50
explicit
UiPilotConsole
(
PilotCommander
* commander, QWidget* parent =
nullptr
);
51
53
~UiPilotConsole
()
override
;
54
UiPilotConsole
(
const
UiPilotConsole
&) =
delete
;
55
UiPilotConsole
& operator=(
const
UiPilotConsole
&) =
delete
;
56
58
void
appendOutput(
const
QString& text);
59
62
bool
dockInto(QMainWindow* mainWindow);
63
66
bool
autoDock();
67
69
void
setVisible(
bool
visible)
override
;
70
71
private
Q_SLOTS:
73
void
onCommandEntered();
74
76
void
onCommanderOutput(
const
QString& text);
77
78
Q_SIGNALS:
80
void
closeRequested
();
81
82
private
:
83
void
setupUi();
84
void
executeCommand(
const
QString& cmd);
85
86
PilotCommander
* commander_;
87
QTextEdit* outputView_;
88
QLineEdit* inputLine_;
89
};
90
93
AST_NAMESPACE_END
ast::PilotCommander
命令调度器
定义
PilotCommander.hpp:44
ast::UiPilotConsole
内嵌控制台控件
定义
UiPilotConsole.hpp:43
ast::UiPilotConsole::closeRequested
void closeRequested()
控制台请求关闭(隐藏)
src
AstUiPilot
UiPilotConsole.hpp
制作者
1.12.0