45 #include <QVBoxLayout> 47 #include "../scene/elementInput.hh" 48 #include "../parser/type.hh" 49 #include "../parser/element.hh" 50 #include "../parser/context.hh" 52 #include "dynamicValue.hh" 69 group_->setCheckable (
false);
76 QVBoxLayout *vL =
new QVBoxLayout;
77 QHBoxLayout *hL =
new QHBoxLayout;
81 hL->addWidget (main_);
82 hL->setStretchFactor (main_, 2);
84 QFrame *f =
new QFrame ();
86 f->setFrameStyle (QFrame::VLine | QFrame::Plain);
89 default_ =
new QPushButton (
"Default");
90 hL->addWidget (default_);
94 group_->setLayout (vL);
96 connect (default_, SIGNAL (pressed()),
this, SLOT (toDefault()));
102 DynamicValue::~ DynamicValue ()
112 void DynamicValue::toDefault()
QMap< QString, QString > hints() const
Parsed hints for this input/output type.
virtual TypeWidget * widget(QMap< QString, QString >, QString, QWidget *=NULL)
Returns the configuration widget.
const Element * element() const
Element of this input/output.
QString typeString() const
Type.
Type * getType(QString _type)
Get type object for given type name.
DynamicValue(Input *_input)
Constructor.
Context * context() const
Context of element.
const QString & shortDescription() const
Short description.