DataTreeBuilderBase Class Reference

#include <RobotAPI/libraries/armem_gui/instance/tree_builders/DataTreeBuilderBase.h>

+ Inheritance diagram for DataTreeBuilderBase:

Public Member Functions

 DataTreeBuilderBase ()
 
void setColumns (int key, int value, int type)
 
virtual ~DataTreeBuilderBase ()
 

Public Attributes

int columnKey = 0
 
int columnType = 2
 
int columnValue = 1
 

Protected Types

using DictBuilder = armarx::TreeWidgetBuilder< std::string >
 
using ListBuilder = armarx::TreeWidgetBuilder< size_t >
 

Protected Member Functions

DictBuilder getDictBuilder () const
 
std::vector< size_t > getIndex (size_t size) const
 
ListBuilder getListBuilder () const
 
QTreeWidgetItem * makeItem (const std::string &key) const
 
QTreeWidgetItem * makeItem (size_t key) const
 
void setRowTexts (QTreeWidgetItem *item, const std::string &key, const aron::data::VariantPtr &data)
 
void setRowTexts (QTreeWidgetItem *item, const std::string &key, const std::string &value, const std::string &typeName="") const
 

Detailed Description

Definition at line 19 of file DataTreeBuilderBase.h.

Member Typedef Documentation

◆ DictBuilder

using DictBuilder = armarx::TreeWidgetBuilder<std::string>
protected

Definition at line 31 of file DataTreeBuilderBase.h.

◆ ListBuilder

using ListBuilder = armarx::TreeWidgetBuilder<size_t>
protected

Definition at line 32 of file DataTreeBuilderBase.h.

Constructor & Destructor Documentation

◆ DataTreeBuilderBase()

Definition at line 19 of file DataTreeBuilderBase.cpp.

◆ ~DataTreeBuilderBase()

~DataTreeBuilderBase ( )
virtual

Definition at line 23 of file DataTreeBuilderBase.cpp.

Member Function Documentation

◆ getDictBuilder()

DataTreeBuilderBase::DictBuilder getDictBuilder ( ) const
protected

Definition at line 65 of file DataTreeBuilderBase.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getIndex()

std::vector< size_t > getIndex ( size_t  size) const
protected

Definition at line 99 of file DataTreeBuilderBase.cpp.

+ Here is the caller graph for this function:

◆ getListBuilder()

DataTreeBuilderBase::ListBuilder getListBuilder ( ) const
protected

Definition at line 80 of file DataTreeBuilderBase.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ makeItem() [1/2]

QTreeWidgetItem * makeItem ( const std::string &  key) const
protected

Definition at line 34 of file DataTreeBuilderBase.cpp.

+ Here is the caller graph for this function:

◆ makeItem() [2/2]

QTreeWidgetItem * makeItem ( size_t  key) const
protected

Definition at line 39 of file DataTreeBuilderBase.cpp.

◆ setColumns()

void setColumns ( int  key,
int  value,
int  type 
)

Definition at line 26 of file DataTreeBuilderBase.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setRowTexts() [1/2]

void setRowTexts ( QTreeWidgetItem *  item,
const std::string &  key,
const aron::data::VariantPtr data 
)
protected

Definition at line 54 of file DataTreeBuilderBase.cpp.

+ Here is the call graph for this function:

◆ setRowTexts() [2/2]

void setRowTexts ( QTreeWidgetItem *  item,
const std::string &  key,
const std::string &  value,
const std::string &  typeName = "" 
) const
protected

Definition at line 46 of file DataTreeBuilderBase.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ columnKey

int columnKey = 0

Definition at line 48 of file DataTreeBuilderBase.h.

◆ columnType

int columnType = 2

Definition at line 50 of file DataTreeBuilderBase.h.

◆ columnValue

int columnValue = 1

Definition at line 49 of file DataTreeBuilderBase.h.


The documentation for this class was generated from the following files: