ViewSelectionConfigDialog.cpp
Go to the documentation of this file.
2
3#include <QMessageBox>
4#include <QPushButton>
5
6#include <IceUtil/UUID.h>
7
8#include <RobotAPI/gui-plugins/ViewSelection/ui_ViewSelectionConfigDialog.h>
9#include <RobotAPI/interface/components/ViewSelectionInterface.h>
10
11using namespace armarx;
12
14 QDialog(parent), ui(new Ui::ViewSelectionConfigDialog), uuid(IceUtil::generateUUID())
15{
16 ui->setupUi(this);
17 ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
18 connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(verifyConfig()));
19
20 viewSelectionProxyFinder = new IceProxyFinder<ViewSelectionInterfacePrx>(this);
21 viewSelectionProxyFinder->setSearchMask("*ViewSelection");
22 //ui->verticalLayout->addWidget(viewSelectionProxyFinder);
23}
24
29
30void
34
35void
37{
38 viewSelectionProxyFinder->setIceManager(getIceManager());
39}
40
41void
43{
44 QObject::disconnect();
45}
46
47std::string
49{
50 return "ViewSelectionConfigDialog" + uuid;
51}
52
53void
55{
56
57 if (!viewSelectionProxyFinder->getSelectedProxyName().trimmed().length())
58 {
59 QMessageBox::critical(this, "Invalid Configuration", "The proxy names must not be empty");
60 return;
61 }
62
63 this->accept();
64}
void onInitComponent() override
Pure virtual hook for the subclass.
void onConnectComponent() override
Pure virtual hook for the subclass.
void onExitComponent() override
Hook for subclass.
std::string getDefaultName() const override
Retrieve default name of component.
Widget to conveniently retrieve a proxy instance name of a specific interface type (the template para...
IceManagerPtr getIceManager() const
Returns the IceManager.
ArmarX Headers.
This file offers overloads of toIce() and fromIce() functions for STL container types.