|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <PilotAgent.hpp>
类 ast::PilotAgent 继承关系图:Public 成员函数 | |
| PilotAgent (QObject *parent=nullptr) | |
| ~PilotAgent () override | |
| int | ref (QWidget *widget) |
| int | ref (QAction *action) |
| QWidget * | widget (int refId) const |
| QAction * | action (int refId) const |
| QObject * | object (int refId) const |
| std::string | objectType (int refId) const |
| bool | isValidRef (int refId) const |
| std::string | snapshot (int maxDepth=8) |
| std::string | snapshotOf (QWidget *root, int maxDepth=8) |
| QWidget * | activeModalDialog () const |
| void | highlight (QWidget *widget, int durationMs=2000) |
| void | waitForIdle (int timeoutMs=5000) |
| QList< QWidget * > | topLevelWidgets () const |
| bool | triggerAction (QAction *action) |
| QList< QAction * > | expandMenu (QMenu *menu) |
| bool | isAutoSnapshot () const |
静态 Public 成员函数 | |
| static PilotAgent * | instance () |
Protected 成员函数 | |
| bool | eventFilter (QObject *obj, QEvent *event) override |
Qt控件生命周期管理与界面快照生成
维护 QWidget*/QAction* ↔ ref 的双向映射,ref 在控件整个生命周期内稳定不变。 提供 snapshot() 生成结构化控件树文本供 LLM 消费。
| QList< QAction * > ast::PilotAgent::expandMenu | ( | QMenu * | menu | ) |
展开QMenu(模拟悬停以在快照中看到子项)