🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
ast::UiVariableList类 参考

#include <UiVariableList.hpp>

+ 类 ast::UiVariableList 继承关系图:

信号

void variableSelected (Variable *variable)
 
void variableListChanged ()
 
void variableFocused ()
 
void variableDoubleClicked (Variable *variable)
 

Public 成员函数

 UiVariableList (QWidget *parent=nullptr)
 
void setVariableList (VariableList *variableList, Object *owner)
 
void setInterpreter (Interpreter *interpreter, Object *owner)
 
void setToolbarVisible (bool visible)
 
void refreshUi ()
 
VariableselectedVariable () const
 
VariableListvariableList () const
 
Interpreterinterpreter () const
 
void addExpression (Expr *expr, bool bind)
 
void addBindExpression (Expr *expr)
 
void addExpression (Expr *expr)
 

详细描述

变量列表编辑控件,以表格形式管理脚本变量的增删改

成员函数说明

◆ addBindExpression()

void ast::UiVariableList::addBindExpression ( Expr * expr)
inline

输入表达式,新建与表达式双向绑定的变量并追加到列表末尾

参数
expr要添加的表达式

◆ addExpression()

void ast::UiVariableList::addExpression ( Expr * expr,
bool bind )

输入表达式,新建变量并追加到列表末尾

参数
expr要添加的表达式

◆ setInterpreter()

void ast::UiVariableList::setInterpreter ( Interpreter * interpreter,
Object * owner )

设置脚本解释器

参数
interpreter脚本解释器,被owner对象持有
owner所有者对象,用于判断解释器的生命周期是否结束

◆ setVariableList()

void ast::UiVariableList::setVariableList ( VariableList * variableList,
Object * owner )

设置要编辑的变量列表(裸指针,不持有所有权)

参数
variableList要编辑的变量列表,被owner对象持有
owner所有者对象,用于判断变量列表的生命周期是否结束

该类的文档由以下文件生成: