🛰️航天仿真算法库 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
27class QTableWidget;
28class QPushButton;
29
30AST_NAMESPACE_BEGIN
31
32class Expr;
33
35class AST_GUI_API UiSweepOutputList : public QWidget
36{
37 Q_OBJECT
38public:
39 explicit UiSweepOutputList(QWidget* parent = nullptr);
40
42 void setStudy(SweepStudy* study);
43
45 void refreshTable();
46
47private slots:
48 void onAddOutput();
49 void onRemoveOutput();
50 void onCellChanged(int row, int col);
51 void onExprClicked(int row);
52
53private:
54 void setupUi();
55
57 SweepStudy* study() const;
58
60 Expr* browseExpression(QWidget* parent);
61
62 // ---- 列索引 ----
63 enum OutCol {
64 OUT_NAME = 0,
65 OUT_EXPR,
66 OUT_COUNT
67 };
68
70
71 QTableWidget* table_;
72 QPushButton* addBtn_;
73 QPushButton* removeBtn_;
74};
75
76AST_NAMESPACE_END
表达式基类
定义 Expr.hpp:40
遍历搜索分析器(参数化扫描),对变量进行嵌套循环遍历并执行仿真命令
定义 SweepStudy.hpp:92
扫参输出表格,以表格行内编辑方式管理 SweepOutput 列表
定义 UiSweepOutputList.hpp:36
弱引用指针
定义 WeakPtr.hpp:35