62 QString createdObjectName()
const;
71 void onTypeCardClicked(
int entryIndex);
72 void onChooseParent();
76 bool eventFilter(QObject* obj, QEvent* event)
override;
77 QString generateUniqueName(
const QString& typeName)
const;
80 Object* showParentDialog(
const char* parentType);
82 void populateParentTree(QTreeWidget* tree, QTreeWidgetItem* parentItem,
83 Object* obj,
const char* parentType);
86 static std::vector<QuickTypeEntry> quickTypes();
89 QTableWidget* typeTable_ =
nullptr;
90 QLabel* typeDescLabel_ =
nullptr;
93 QWidget* parentRow_ =
nullptr;
94 QLineEdit* parentEdit_ =
nullptr;
97 QLineEdit* nameEdit_ =
nullptr;
98 QPushButton* createBtn_ =
nullptr;
99 QPushButton* advancedBtn_ =
nullptr;
102 int selectedEntry_ = -1;
103 Object* selectedParent_ =
nullptr;
104 QString createdObjectName_;
快速创建类型条目配置
定义 UiNewObjectQuickDialog.hpp:44
const char * category
分类标签(用于分组标题)
定义 UiNewObjectQuickDialog.hpp:46
const char * typeName
RTTI 类型名(用于创建)
定义 UiNewObjectQuickDialog.hpp:45
const char * parentType
需要的父对象类型名,nullptr 表示无需父对象
定义 UiNewObjectQuickDialog.hpp:47