24 #include <MemoryX/gui-plugins/PriorMemoryEditor/ui_ObjectClassEditDialog.h>
30 #include <SimoxUtility/algorithm/string/string_tools.h>
38 robotStateComponent(robotStateComponent)
46 ui->tabWidget->addTab(recognitionAttributesEditTab,
"Recognition");
49 ui->tabWidget->addTab(manipulationAttributesEditTab,
"Manipulation");
52 ui->tabWidget->addTab(motionAttributesEditTab,
"Motion");
62 ui->editClassName->setReadOnly(!editable);
70 ui->editClassName->setText(QString::fromStdString(objectClass->getName()));
71 NameList parents = objectClass->getParentClasses();
72 std::string parentsStr = simox::alg::join(parents,
",");
73 ui->editParentClasses->setText(QString::fromStdString(parentsStr));
74 bool isInstanceable = objectClass->isInstanceable();
75 ui->checkBoxIsInstanceable->setChecked(isInstanceable);
78 manipulationAttributesEditTab->
updateGui(entity);
79 recognitionAttributesEditTab->
updateGui(entity);
80 motionAttributesEditTab->
updateGui(entity);
88 objectClass->setName(ui->editClassName->text().toStdString());
89 objectClass->clearParentClasses();
90 std::string parentsStr = ui->editParentClasses->text().toStdString();
93 for (NameList::const_iterator it = parents.begin(); it != parents.end(); ++it)
95 objectClass->addParentClass(*it);
98 objectClass->setInstanceable(ui->checkBoxIsInstanceable->isChecked());
101 manipulationAttributesEditTab->
updateEntity(entity, filesDBName);
102 recognitionAttributesEditTab->
updateEntity(entity, filesDBName);
103 motionAttributesEditTab->
updateEntity(entity, filesDBName);