Go to the documentation of this file.
25 #include <ArmarXCore/interface/observers/VariantBase.h>
30 #include <QFormLayout>
34 class VariantDataWidgetBase;
39 class VariantWidget :
public QWidget
41 using VariantDataWidgetBase = VariantDataWidgets::VariantDataWidgetBase;
45 using QWidget::QWidget;
48 void update(
const std::vector<VariantBasePtr>& vec);
49 void update(
const std::map<std::string, VariantBasePtr>& map);
60 void reset(Mode newMode = Mode::Empty);
61 Mode mode {Mode::Empty};
63 std::map<std::string, VariantDataWidgetBase*> entries;
65 int getEntryRow(VariantDataWidgetBase* entry)
const;
75 virtual void update(
const VariantDataPtr&) {}
96 [type](
const VariantDataPtr & p)
::IceInternal::Handle<::armarx::VariantBase > VariantBasePtr
static void registerElement(const KeyType &key, RegisteredType element)
Registers an element.
const VariantContainerType Map
double v(double t, double v0, double a0, double j)
#define ARMARX_CHECK_EXPRESSION(expression)
This macro evaluates the expression and if it turns out to be false it will throw an ExpressionExcept...
This file offers overloads of toIce() and fromIce() functions for STL container types.