ViewSelectionConfigDialog.cpp
Go to the documentation of this file.
2 #include <RobotAPI/gui-plugins/ViewSelection/ui_ViewSelectionConfigDialog.h>
3 
4 #include <RobotAPI/interface/components/ViewSelectionInterface.h>
5 
6 #include <QPushButton>
7 #include <QMessageBox>
8 #include <IceUtil/UUID.h>
9 
10 using namespace armarx;
11 
13  QDialog(parent),
15  uuid(IceUtil::generateUUID())
16 {
17  ui->setupUi(this);
18  ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
19  connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(verifyConfig()));
20 
21  viewSelectionProxyFinder = new IceProxyFinder<ViewSelectionInterfacePrx>(this);
22  viewSelectionProxyFinder->setSearchMask("*ViewSelection");
23  //ui->verticalLayout->addWidget(viewSelectionProxyFinder);
24 }
25 
27 {
28  delete ui;
29 }
30 
31 
33 {
34 }
35 
37 {
38  viewSelectionProxyFinder->setIceManager(getIceManager());
39 }
40 
42 {
43  QObject::disconnect();
44 }
45 
47 {
48  return "ViewSelectionConfigDialog" + uuid;
49 }
50 
52 {
53 
54  if (!viewSelectionProxyFinder->getSelectedProxyName().trimmed().length())
55  {
56  QMessageBox::critical(this, "Invalid Configuration", "The proxy names must not be empty");
57  return;
58  }
59 
60  this->accept();
61 }
armarx::ManagedIceObject::getIceManager
IceManagerPtr getIceManager() const
Returns the IceManager.
Definition: ManagedIceObject.cpp:353
armarx::IceProxyFinderBase::setSearchMask
void setSearchMask(const QString &searchMask)
Definition: IceProxyFinder.cpp:88
armarx::IceProxyFinderBase::setIceManager
void setIceManager(IceManagerPtr icemanager, bool fetchProxies=true)
Definition: IceProxyFinder.cpp:64
IceUtil
Definition: Instance.h:21
ViewSelectionConfigDialog::onExitComponent
void onExitComponent() override
Hook for subclass.
Definition: ViewSelectionConfigDialog.cpp:41
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
ViewSelectionConfigDialog::verifyConfig
void verifyConfig()
Definition: ViewSelectionConfigDialog.cpp:51
ViewSelectionConfigDialog::getDefaultName
std::string getDefaultName() const override
Retrieve default name of component.
Definition: ViewSelectionConfigDialog.cpp:46
ViewSelectionConfigDialog::onConnectComponent
void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: ViewSelectionConfigDialog.cpp:36
ViewSelectionConfigDialog::ViewSelectionConfigDialog
ViewSelectionConfigDialog(QWidget *parent=0)
Definition: ViewSelectionConfigDialog.cpp:12
ViewSelectionConfigDialog
Definition: ViewSelectionConfigDialog.h:16
armarx::IceProxyFinderBase::getSelectedProxyName
QString getSelectedProxyName() const
Definition: IceProxyFinder.cpp:73
armarx::IceProxyFinder
Definition: StatechartViewerController.h:51
ViewSelectionConfigDialog::~ViewSelectionConfigDialog
~ViewSelectionConfigDialog() override
Definition: ViewSelectionConfigDialog.cpp:26
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
ViewSelectionConfigDialog::onInitComponent
void onInitComponent() override
Pure virtual hook for the subclass.
Definition: ViewSelectionConfigDialog.cpp:32
ViewSelectionConfigDialog.h