🛰️航天仿真算法库 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
56
void
appendOutput(
const
QString& text);
57
60
bool
dockInto(QMainWindow* mainWindow);
61
64
bool
autoDock();
65
67
void
setVisible(
bool
visible)
override
;
68
69
private
Q_SLOTS:
71
void
onCommandEntered();
72
74
void
onCommanderOutput(
const
QString& text);
75
76
Q_SIGNALS:
78
void
closeRequested
();
79
80
private
:
81
void
setupUi();
82
void
executeCommand(
const
QString& cmd);
83
84
PilotCommander
* commander_;
85
QTextEdit* outputView_;
86
QLineEdit* inputLine_;
87
};
88
91
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