Public Slots | Signals | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
corbo::gui::OneOfParamWidget Class Reference

#include <one_of_param_widget.h>

Inheritance diagram for corbo::gui::OneOfParamWidget:
Inheritance graph
[legend]

Public Slots

void registerParameter (const QString &label, const MessageParser::FieldInformation &info)
 
void selectParameter (const QString &label)
 

Signals

void currentParameterChanged (const QString &label)
 
void signalUpdateRequested ()
 

Public Member Functions

void addDescription (const QString &description)
 
std::list< std::string > & nestedFieldName ()
 
const std::list< std::string > & nestedFieldName () const
 
std::string nestedFieldNameUnrolled (const std::string &delimiter)
 
 OneOfParamWidget (const QString &label, ParameterCache *cache=nullptr, QWidget *parent=nullptr)
 
 OneOfParamWidget (ParameterCache *cache=nullptr, QWidget *parent=nullptr)
 
QSize sizeHint () const override
 
virtual ~OneOfParamWidget ()
 

Protected Member Functions

void addParametersToCache ()
 
bool restoreParametersFromCache ()
 

Private Attributes

LabelComboBoxWidget_combobox
 
QHash< QString, const google::protobuf::FieldDescriptor * > _fields
 
QVBoxLayout * _layout
 
google::protobuf::Message * _message = nullptr
 
std::list< std::string > _nested_field_name
 
ParameterCache_param_cache
 
QWidget * _param_widget = nullptr
 
QString _selected_item
 
bool _selected_item_parsed = false
 Keep track if we have already parsed the selected item to avoid expanding a wrong protobuf message. More...
 

Detailed Description

Definition at line 89 of file one_of_param_widget.h.

Constructor & Destructor Documentation

◆ OneOfParamWidget() [1/2]

corbo::gui::OneOfParamWidget::OneOfParamWidget ( ParameterCache cache = nullptr,
QWidget *  parent = nullptr 
)
inlineexplicit

Definition at line 116 of file one_of_param_widget.h.

◆ OneOfParamWidget() [2/2]

corbo::gui::OneOfParamWidget::OneOfParamWidget ( const QString &  label,
ParameterCache cache = nullptr,
QWidget *  parent = nullptr 
)
explicit

Definition at line 82 of file one_of_param_widget.cpp.

◆ ~OneOfParamWidget()

corbo::gui::OneOfParamWidget::~OneOfParamWidget ( )
virtual

Definition at line 97 of file one_of_param_widget.cpp.

Member Function Documentation

◆ addDescription()

void corbo::gui::OneOfParamWidget::addDescription ( const QString &  description)

Definition at line 208 of file one_of_param_widget.cpp.

◆ addParametersToCache()

void corbo::gui::OneOfParamWidget::addParametersToCache ( )
protected

Definition at line 166 of file one_of_param_widget.cpp.

◆ currentParameterChanged

void corbo::gui::OneOfParamWidget::currentParameterChanged ( const QString &  label)
signal

◆ nestedFieldName() [1/2]

std::list<std::string>& corbo::gui::OneOfParamWidget::nestedFieldName ( )
inline

Definition at line 123 of file one_of_param_widget.h.

◆ nestedFieldName() [2/2]

const std::list<std::string>& corbo::gui::OneOfParamWidget::nestedFieldName ( ) const
inline

Definition at line 122 of file one_of_param_widget.h.

◆ nestedFieldNameUnrolled()

std::string corbo::gui::OneOfParamWidget::nestedFieldNameUnrolled ( const std::string &  delimiter)

Definition at line 200 of file one_of_param_widget.cpp.

◆ registerParameter

void corbo::gui::OneOfParamWidget::registerParameter ( const QString &  label,
const MessageParser::FieldInformation &  info 
)
slot

Definition at line 101 of file one_of_param_widget.cpp.

◆ restoreParametersFromCache()

bool corbo::gui::OneOfParamWidget::restoreParametersFromCache ( )
protected

Definition at line 183 of file one_of_param_widget.cpp.

◆ selectParameter

void corbo::gui::OneOfParamWidget::selectParameter ( const QString &  label)
slot

Definition at line 124 of file one_of_param_widget.cpp.

◆ signalUpdateRequested

void corbo::gui::OneOfParamWidget::signalUpdateRequested ( )
signal

◆ sizeHint()

QSize corbo::gui::OneOfParamWidget::sizeHint ( ) const
override

Definition at line 99 of file one_of_param_widget.cpp.

Member Data Documentation

◆ _combobox

LabelComboBoxWidget* corbo::gui::OneOfParamWidget::_combobox
private

Definition at line 144 of file one_of_param_widget.h.

◆ _fields

QHash<QString, const google::protobuf::FieldDescriptor*> corbo::gui::OneOfParamWidget::_fields
private

Definition at line 149 of file one_of_param_widget.h.

◆ _layout

QVBoxLayout* corbo::gui::OneOfParamWidget::_layout
private

Definition at line 142 of file one_of_param_widget.h.

◆ _message

google::protobuf::Message* corbo::gui::OneOfParamWidget::_message = nullptr
private

Definition at line 148 of file one_of_param_widget.h.

◆ _nested_field_name

std::list<std::string> corbo::gui::OneOfParamWidget::_nested_field_name
private

Definition at line 146 of file one_of_param_widget.h.

◆ _param_cache

ParameterCache* corbo::gui::OneOfParamWidget::_param_cache
private

Definition at line 155 of file one_of_param_widget.h.

◆ _param_widget

QWidget* corbo::gui::OneOfParamWidget::_param_widget = nullptr
private

Definition at line 143 of file one_of_param_widget.h.

◆ _selected_item

QString corbo::gui::OneOfParamWidget::_selected_item
private

Definition at line 151 of file one_of_param_widget.h.

◆ _selected_item_parsed

bool corbo::gui::OneOfParamWidget::_selected_item_parsed = false
private

Keep track if we have already parsed the selected item to avoid expanding a wrong protobuf message.

Definition at line 153 of file one_of_param_widget.h.


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


control_box_rst
Author(s): Christoph Rösmann
autogenerated on Wed Mar 2 2022 00:07:21