TypedWidgetHandler< HandlerT > Struct Template Reference

#include <ArmarXGui/libraries/RemoteGui/TypedWidget.h>

+ Inheritance diagram for TypedWidgetHandler< HandlerT >:

Public Types

using QWidgetT = typename HandlerT::QWidgetT
 
using RemoteWidgetT = typename HandlerT::RemoteWidgetT
 
using ValueT = typename Storage<ValueType>::Type
 

Public Member Functions

QWidget * createWidget (Widget const &desc, ValueVariant const &initialValue, CreateWidgetCallback const &createChild, const QObject *stateChangeReceiver, const char *stateChangeSlot) const override
 
std::string getHandlerT () const override
 
virtual ValueVariant handleGuiChange (Widget const &desc, QWidget *widget) const override
 
bool isValid (Widget const &desc, std::ostream &out=cnull) const override
 
virtual void updateGui (Widget const &desc, QWidget *widget, ValueVariant const &value) const override
 
- Public Member Functions inherited from WidgetHandler
virtual ~WidgetHandler ()=default
 

Static Public Attributes

static const RemoteGui::ValueVariantType ValueType = HandlerT::ValueType
 

Detailed Description

template<typename HandlerT>
struct armarx::RemoteGui::TypedWidgetHandler< HandlerT >

Definition at line 19 of file TypedWidget.h.

Member Typedef Documentation

◆ QWidgetT

template<typename HandlerT>
using QWidgetT = typename HandlerT::QWidgetT

Definition at line 22 of file TypedWidget.h.

◆ RemoteWidgetT

template<typename HandlerT>
using RemoteWidgetT = typename HandlerT::RemoteWidgetT

Definition at line 21 of file TypedWidget.h.

◆ ValueT

template<typename HandlerT>
using ValueT = typename Storage<ValueType>::Type

Definition at line 24 of file TypedWidget.h.

Member Function Documentation

◆ createWidget()

template<typename HandlerT>
QWidget * createWidget ( Widget const & desc,
ValueVariant const & initialValue,
CreateWidgetCallback const & createChild,
const QObject * stateChangeReceiver,
const char * stateChangeSlot ) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 47 of file TypedWidget.h.

+ Here is the call graph for this function:

◆ getHandlerT()

template<typename HandlerT>
std::string getHandlerT ( ) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 27 of file TypedWidget.h.

+ Here is the call graph for this function:

◆ handleGuiChange()

template<typename HandlerT>
virtual ValueVariant handleGuiChange ( Widget const & desc,
QWidget * widget ) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 87 of file TypedWidget.h.

+ Here is the call graph for this function:

◆ isValid()

template<typename HandlerT>
bool isValid ( Widget const & desc,
std::ostream & out = cnull ) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 33 of file TypedWidget.h.

◆ updateGui()

template<typename HandlerT>
virtual void updateGui ( Widget const & desc,
QWidget * widget,
ValueVariant const & value ) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 70 of file TypedWidget.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ ValueType

template<typename HandlerT>
const RemoteGui::ValueVariantType ValueType = HandlerT::ValueType
static

Definition at line 23 of file TypedWidget.h.


The documentation for this struct was generated from the following file: