UserAssistedSegmenterConfigDialog.cpp
Go to the documentation of this file.
2
3#include <QMessageBox>
4#include <QPushButton>
5
6#include <IceUtil/UUID.h>
7
8#include <VisionX/gui-plugins/UserAssistedSegmenterGui/ui_UserAssistedSegmenterConfigDialog.h>
9
10namespace 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
28
29 void
33
34 void
38
39 void
41 {
42 QObject::disconnect();
43 }
44
45 std::string
47 {
48 return ui->lineEditUserAssistedSegmenterProxy->text().toStdString();
49 }
50
51 std::string
53 {
54 return ui->lineEditUserAssistedSegmenterTopic->text().toStdString();
55 }
56
57 void
59 {
60 if (ui->lineEditUserAssistedSegmenterTopic->text().isEmpty())
61 {
62 QMessageBox::critical(this,
63 "Invalid Configuration",
64 "UserAssistedSegmenterTopicName name must not be empty.");
65 return;
66 }
67
68 accept();
69 }
70
71} // namespace visionx
virtual void onInitComponent() override
Pure virtual hook for the subclass.
virtual void onConnectComponent() override
Pure virtual hook for the subclass.
virtual void onExitComponent() override
Hook for subclass.
ArmarX Headers.
ArmarX headers.