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 18 of file TypedWidget.h.

Member Typedef Documentation

◆ QWidgetT

using QWidgetT = typename HandlerT::QWidgetT

Definition at line 21 of file TypedWidget.h.

◆ RemoteWidgetT

using RemoteWidgetT = typename HandlerT::RemoteWidgetT

Definition at line 20 of file TypedWidget.h.

◆ ValueT

using ValueT = typename Storage<ValueType>::Type

Definition at line 23 of file TypedWidget.h.

Member Function Documentation

◆ createWidget()

QWidget* createWidget ( Widget const &  desc,
ValueVariant const &  initialValue,
CreateWidgetCallback const &  createChild,
const QObject *  stateChangeReceiver,
const char *  stateChangeSlot 
) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 44 of file TypedWidget.h.

+ Here is the call graph for this function:

◆ getHandlerT()

std::string getHandlerT ( ) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 26 of file TypedWidget.h.

◆ handleGuiChange()

virtual ValueVariant handleGuiChange ( Widget const &  desc,
QWidget *  widget 
) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 84 of file TypedWidget.h.

+ Here is the call graph for this function:

◆ isValid()

bool isValid ( Widget const &  desc,
std::ostream &  out = cnull 
) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 31 of file TypedWidget.h.

◆ updateGui()

virtual void updateGui ( Widget const &  desc,
QWidget *  widget,
ValueVariant const &  value 
) const
inlineoverridevirtual

Implements WidgetHandler.

Definition at line 66 of file TypedWidget.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ ValueType

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

Definition at line 22 of file TypedWidget.h.


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