NewEntityIdDialog.h
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
17  * @date 2021
18  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19  * GNU General Public License
20  */
21 
22 #pragma once
23 
24 #include <QDialog>
25 #include <memory>
26 
28 
29 
30 class QLineEdit;
31 class QDialogButtonBox;
32 
33 
35 {
36  class NewEntityIdDialog : public QDialog
37  {
38  public:
39  NewEntityIdDialog(const armem::MemoryID& coreSegmentID, QWidget* parent = nullptr);
40  virtual ~NewEntityIdDialog() override;
41 
42  QString providerSegmentName() const;
43  QString entityName() const;
44 
45 
47  armem::MemoryID entityID() const;
48 
49 
50  private:
51  QLineEdit* _providerSegmentName = nullptr;
52  QLineEdit* _entityName = nullptr;
53 
54  QDialogButtonBox* _buttonBox = nullptr;
55 
56 
57  std::unique_ptr<armem::MemoryID> coreSegmentID;
58  };
59 
60 } // namespace armarx::navigation::qt_plugins::location_graph_editor
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog::NewEntityIdDialog
NewEntityIdDialog(const armem::MemoryID &coreSegmentID, QWidget *parent=nullptr)
Definition: NewEntityIdDialog.cpp:39
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog::entityID
armem::MemoryID entityID() const
Definition: NewEntityIdDialog.cpp:125
forward_declarations.h
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog::providerSegmentName
QString providerSegmentName() const
Definition: NewEntityIdDialog.cpp:102
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog::entityIDWithoutCoreSegmentID
armem::MemoryID entityIDWithoutCoreSegmentID() const
Definition: NewEntityIdDialog.cpp:116
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog::~NewEntityIdDialog
virtual ~NewEntityIdDialog() override
Definition: NewEntityIdDialog.cpp:96
armarx::armem::MemoryID
A memory ID.
Definition: MemoryID.h:47
armarx::navigation::qt_plugins::location_graph_editor
Definition: GuiGraph.cpp:29
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog::entityName
QString entityName() const
Definition: NewEntityIdDialog.cpp:109
armarx::navigation::qt_plugins::location_graph_editor::NewEntityIdDialog
Definition: NewEntityIdDialog.h:36