UserAssistedSegmenterConfigDialog.cpp
Go to the documentation of this file.
2 #include <VisionX/gui-plugins/UserAssistedSegmenterGui/ui_UserAssistedSegmenterConfigDialog.h>
3 
4 #include <QPushButton>
5 #include <QMessageBox>
6 
7 #include <IceUtil/UUID.h>
8 
9 
10 namespace visionx
11 {
12 
14  QDialog(parent),
16  uuid(IceUtil::generateUUID())
17  {
18  ui->setupUi(this);
19 
20  connect(ui->buttonBox, SIGNAL(accepted()), this, SLOT(verifyConfig()));
21  ui->buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
22  }
23 
25  {
26  delete ui;
27  }
28 
30  {
31  }
32 
34  {
35  }
36 
38  {
39  QObject::disconnect();
40  }
41 
43  {
44  return ui->lineEditUserAssistedSegmenterProxy->text().toStdString();
45  }
46 
48  {
49  return ui->lineEditUserAssistedSegmenterTopic->text().toStdString();
50  }
51 
53  {
54  if (ui->lineEditUserAssistedSegmenterTopic->text().isEmpty())
55  {
56  QMessageBox::critical(this, "Invalid Configuration",
57  "UserAssistedSegmenterTopicName name must not be empty.");
58  return;
59  }
60 
61  accept();
62  }
63 
64 }
visionx::UserAssistedSegmenterConfigDialog::verifyConfig
void verifyConfig()
Definition: UserAssistedSegmenterConfigDialog.cpp:52
visionx::UserAssistedSegmenterConfigDialog::onConnectComponent
virtual void onConnectComponent() override
Pure virtual hook for the subclass.
Definition: UserAssistedSegmenterConfigDialog.cpp:33
visionx::UserAssistedSegmenterConfigDialog::onInitComponent
virtual void onInitComponent() override
Pure virtual hook for the subclass.
Definition: UserAssistedSegmenterConfigDialog.cpp:29
visionx
ArmarX headers.
Definition: OpenPoseStressTest.h:38
visionx::UserAssistedSegmenterConfigDialog::onExitComponent
virtual void onExitComponent() override
Hook for subclass.
Definition: UserAssistedSegmenterConfigDialog.cpp:37
visionx::UserAssistedSegmenterConfigDialog::getUserAssistedSegmenterTopicName
std::string getUserAssistedSegmenterTopicName() const
Definition: UserAssistedSegmenterConfigDialog.cpp:47
IceUtil
Definition: Instance.h:21
Ui
ArmarX Headers.
Definition: ArmarXMainWindow.h:54
visionx::UserAssistedSegmenterConfigDialog
Definition: UserAssistedSegmenterConfigDialog.h:18
visionx::UserAssistedSegmenterConfigDialog::getUserAssistedSegmenterProxyName
std::string getUserAssistedSegmenterProxyName() const
Definition: UserAssistedSegmenterConfigDialog.cpp:42
visionx::UserAssistedSegmenterConfigDialog::UserAssistedSegmenterConfigDialog
UserAssistedSegmenterConfigDialog(QWidget *parent=nullptr)
Definition: UserAssistedSegmenterConfigDialog.cpp:13
visionx::UserAssistedSegmenterConfigDialog::~UserAssistedSegmenterConfigDialog
virtual ~UserAssistedSegmenterConfigDialog() override
Definition: UserAssistedSegmenterConfigDialog.cpp:24
UserAssistedSegmenterConfigDialog.h