DataTreeBuilderBase.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
6 
7 
8 namespace armarx
9 {
10  template <class ContainerT> struct TreeWidgetBuilder;
11 }
12 
13 class QTreeWidgetItem;
14 
15 
17 {
18 
20  {
21  public:
22 
24  virtual ~DataTreeBuilderBase();
25 
26  void setColumns(int key, int value, int type);
27 
28 
29  protected:
30 
33 
36  std::vector<size_t> getIndex(size_t size) const;
37 
38 
39  QTreeWidgetItem* makeItem(const std::string& key) const;
40  QTreeWidgetItem* makeItem(size_t key) const;
41 
42  void setRowTexts(QTreeWidgetItem* item, const std::string& key, const std::string& value, const std::string& typeName = "") const;
43  void setRowTexts(QTreeWidgetItem* item, const std::string& key, const aron::data::VariantPtr& data);
44 
45 
46  public:
47 
48  int columnKey = 0;
49  int columnValue = 1;
50  int columnType = 2;
51 
52  };
53 
54 }
Variant.h
armarx::armem::gui::instance::DataTreeBuilderBase::setRowTexts
void setRowTexts(QTreeWidgetItem *item, const std::string &key, const std::string &value, const std::string &typeName="") const
Definition: DataTreeBuilderBase.cpp:46
armarx::armem::gui::instance::DataTreeBuilderBase::getListBuilder
ListBuilder getListBuilder() const
Definition: DataTreeBuilderBase.cpp:80
armarx::armem::gui::instance::DataTreeBuilderBase::~DataTreeBuilderBase
virtual ~DataTreeBuilderBase()
Definition: DataTreeBuilderBase.cpp:23
armarx::armem::gui::instance::DataTreeBuilderBase::columnType
int columnType
Definition: DataTreeBuilderBase.h:50
armarx::armem::gui::instance::DataTreeBuilderBase::setColumns
void setColumns(int key, int value, int type)
Definition: DataTreeBuilderBase.cpp:26
armarx::armem::gui::instance::DataTreeBuilderBase::columnValue
int columnValue
Definition: DataTreeBuilderBase.h:49
armarx::aron::data::VariantPtr
std::shared_ptr< Variant > VariantPtr
Definition: forward_declarations.h:11
armarx::armem::gui::instance::DataTreeBuilderBase::columnKey
int columnKey
Definition: DataTreeBuilderBase.h:48
cxxopts::value
std::shared_ptr< Value > value()
Definition: cxxopts.hpp:926
armarx::armem::gui::instance
Definition: AronDataView.cpp:2
data
uint8_t data[1]
Definition: EtherCATFrame.h:68
armarx::TreeWidgetBuilder
A class to efficiently build and maintain sorted items of QTreeWidget or QTreeWidgetItem based on a s...
Definition: DataTreeBuilderBase.h:10
armarx::armem::gui::instance::DataTreeBuilderBase::getDictBuilder
DictBuilder getDictBuilder() const
Definition: DataTreeBuilderBase.cpp:65
armarx::armem::gui::instance::DataTreeBuilderBase::DataTreeBuilderBase
DataTreeBuilderBase()
Definition: DataTreeBuilderBase.cpp:19
armarx::armem::gui::instance::DataTreeBuilderBase::makeItem
QTreeWidgetItem * makeItem(const std::string &key) const
Definition: DataTreeBuilderBase.cpp:34
armarx::armem::gui::instance::DataTreeBuilderBase
Definition: DataTreeBuilderBase.h:19
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28
armarx::armem::gui::instance::DataTreeBuilderBase::getIndex
std::vector< size_t > getIndex(size_t size) const
Definition: DataTreeBuilderBase.cpp:99