🛰️航天仿真算法库 SpaceAST
0.0.1
载入中...
搜索中...
未找到
UiSweepOutputList.hpp
浏览该文件的文档.
1
20
21
#pragma once
22
23
#include "AstGlobal.h"
24
#include "AstAnalyzer/SweepStudy.hpp"
25
#include <QWidget>
26
27
class
QTableWidget;
28
class
QPushButton;
29
30
AST_NAMESPACE_BEGIN
31
32
class
Expr;
33
35
class
AST_GUI_API
UiSweepOutputList
:
public
QWidget
36
{
37
Q_OBJECT
38
public
:
39
explicit
UiSweepOutputList
(QWidget* parent =
nullptr
);
40
UiSweepOutputList
(
const
UiSweepOutputList
&) =
delete
;
41
UiSweepOutputList
& operator=(
const
UiSweepOutputList
&) =
delete
;
42
44
void
setStudy(
SweepStudy
* study);
45
47
void
refreshTable();
48
49
private
slots:
50
void
onAddOutput();
51
void
onRemoveOutput();
52
void
onCellChanged(
int
row,
int
col);
53
void
onExprClicked(
int
row);
54
55
private
:
56
void
setupUi();
57
59
SweepStudy
* study()
const
;
60
62
Expr
* browseExpression(QWidget* parent);
63
64
// ---- 列索引 ----
65
enum
OutCol {
66
OUT_NAME = 0,
67
OUT_EXPR,
68
OUT_COUNT
69
};
70
71
WeakPtr<SweepStudy>
study_{};
72
73
QTableWidget* table_{};
74
QPushButton* addBtn_{};
75
QPushButton* removeBtn_{};
76
};
77
78
AST_NAMESPACE_END
ast::Expr
表达式基类
定义
Expr.hpp:40
ast::SweepStudy
遍历搜索分析器(参数化扫描),对变量进行嵌套循环遍历并执行仿真命令
定义
SweepStudy.hpp:92
ast::UiSweepOutputList
扫参输出表格,以表格行内编辑方式管理 SweepOutput 列表
定义
UiSweepOutputList.hpp:36
ast::WeakPtr
弱引用指针
定义
WeakPtr.hpp:35
src
AstGUI
Analyzer
UiSweepOutputList.hpp
制作者
1.12.0