🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
UiSweepVariableList.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 UiSweepVariableList : public QWidget
36{
37 Q_OBJECT
38public:
39 explicit UiSweepVariableList(QWidget* parent = nullptr);
40
42 void setStudy(SweepStudy* study);
43
45 void refreshTable();
46
47private slots:
48 void onAddVariable();
49 void onRemoveVariable();
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 VarCol {
64 VAR_NAME = 0,
65 VAR_START,
66 VAR_STEP,
67 VAR_END,
68 VAR_EXPR,
69 VAR_COUNT
70 };
71
73
74 QTableWidget* table_;
75 QPushButton* addBtn_;
76 QPushButton* removeBtn_;
77};
78
79AST_NAMESPACE_END
表达式基类
定义 Expr.hpp:40
遍历搜索分析器(参数化扫描),对变量进行嵌套循环遍历并执行仿真命令
定义 SweepStudy.hpp:92
扫参变量表格,以表格行内编辑方式管理 SweepVariable 列表
定义 UiSweepVariableList.hpp:36
弱引用指针
定义 WeakPtr.hpp:35