UserGroupingLineEdit.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <set>
4 
5 #include <QLineEdit>
6 
7 
8 namespace armarx
9 {
10 
11  class UserGroupingLineEdit : public QLineEdit
12  {
13  Q_OBJECT
14 
15  public:
16 
17  UserGroupingLineEdit(const std::set<uint32_t>& validSegmentIDs,
18  uint32_t groupID = 0);
19 
20 
21 
22  uint32_t getGroupID() const;
23  void setGroupID(const uint32_t& value);
24 
25 
26  private slots:
27 
28  void onEditingFinished();
29 
30  signals:
31 
32  void groupingChanged(uint32_t groupID, std::vector<uint32_t> segmentIDs);
33 
34 
35  private:
36 
37  uint32_t groupID;
38 
39  const std::set<uint32_t> validSegmentIDs;
40 
41  };
42 
43 }
armarx::UserGroupingLineEdit::groupingChanged
void groupingChanged(uint32_t groupID, std::vector< uint32_t > segmentIDs)
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::UserGroupingLineEdit::setGroupID
void setGroupID(const uint32_t &value)
Definition: UserGroupingLineEdit.cpp:19
armarx::UserGroupingLineEdit
Definition: UserGroupingLineEdit.h:11
armarx::UserGroupingLineEdit::getGroupID
uint32_t getGroupID() const
Definition: UserGroupingLineEdit.cpp:14
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::UserGroupingLineEdit::UserGroupingLineEdit
UserGroupingLineEdit(const std::set< uint32_t > &validSegmentIDs, uint32_t groupID=0)
Definition: UserGroupingLineEdit.cpp:7