25 #include <RobotComponents/gui-plugins/MMMPlayerPlugin/ui_MMMPlayerConfigDialog.h>
26 #include <IceUtil/UUID.h>
28 #include <QPushButton>
29 #include <QMessageBox>
31 #include <RobotAPI/interface/core/RobotState.h>
37 #include <RobotComponents/interface/components/MMMPlayerInterface.h>
38 #include <RobotAPI/interface/components/TrajectoryPlayerInterface.h>
46 connect(ui->buttonBox, SIGNAL(accepted()),
this, SLOT(verifyConfiguration()));
47 connect(ui->buttonBox, SIGNAL(rejected()),
this, SLOT(reject()));
49 ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(
true);
52 kinematicUnitComponentProxyFinder->
setSearchMask(
"KinematicUnit*");
53 ui->verticalLayout->addWidget(kinematicUnitComponentProxyFinder);
57 ui->verticalLayout->addWidget(mmmPlayerComponentProxyFinder);
60 trajPlayerComponentProxyFinder->
setSearchMask(
"TrajectoryPlayer*");
61 ui->verticalLayout->addWidget(trajPlayerComponentProxyFinder);
67 kinematicUnitComponentProxyFinder->setIceManager(this->getIceManager());
68 mmmPlayerComponentProxyFinder->setIceManager(this->getIceManager());
69 trajPlayerComponentProxyFinder->setIceManager(this->getIceManager());
80 QObject::disconnect();
89 void armarx::MMMPlayerConfigDialog::verifyConfiguration()
91 if (kinematicUnitComponentProxyFinder->getSelectedProxyName().trimmed().length() == 0)
93 QMessageBox::critical(
this,
"Invalid Configuration",
"The proxy name must not be empty");
97 if (mmmPlayerComponentProxyFinder->getSelectedProxyName().trimmed().length() == 0)
99 needtoCreate = ui->needCreated->isChecked();
102 kinematicTopicName = ui->topicNameEditor->text().toStdString();
108 void armarx::MMMPlayerConfigDialog::reject()
112 getIceManager()->removeObject(
"MMMPlayerConfigDialog");