25#include "AstScript/Expr.hpp"
26#include "AstUtil/Object.hpp"
27#include "AstUtil/Attribute.hpp"
28#include "AstUtil/SharedPtr.hpp"
52 static Expr* GetExpression(QWidget* parent =
nullptr);
62 void onObjectSelected(
Object*
object);
63 void onPropertySelected(
const Attribute& attr);
64 void onCalculationSelectionChanged();
65 void onPropertyAccepted();
66 void onCalculationAccepted();
67 void onItemDoubleClicked(QTreeWidgetItem* item,
int column);
71 void refreshCalculationTree();
75 QTreeWidget* calculationTree_ =
nullptr;
76 QPushButton* propertySelectButton_ =
nullptr;
77 QPushButton* calculationSelectButton_ =
nullptr;
对象基类,继承自该类的对象可以使用运行时类型信息相关功能,实现强弱引用计数、运行时元信息(属性访问、序列化等)等基础功能
定义 Object.hpp:95
属性树控件,显示一个 AST 对象的所有反射属性(遍历继承链)
定义 UiAttributeTree.hpp:33
定义 UiExpressionBrowser.hpp:41
void propertyExpressionSelected(Expr *expr)
用户选择了对象属性表达式
Expr * selectedExpression() const
获取选中的表达式,无选中时返回 nullptr
定义 UiExpressionBrowser.hpp:49
void calculationExpressionSelected(Expr *expr)
用户选择了对象计算量表达式
通用对象树控件,支持显示全部对象或以指定节点为根的子树
定义 UiObjectTree.hpp:31