51 #include <QVBoxLayout> 53 #include "../scene/elementInput.hh" 54 #include "../parser/type.hh" 55 #include "../parser/element.hh" 56 #include "../parser/context.hh" 58 #include "dynamicValue.hh" 75 group_->setCheckable (
false);
82 QVBoxLayout *vL =
new QVBoxLayout;
83 QHBoxLayout *hL =
new QHBoxLayout;
87 hL->addWidget (main_);
88 hL->setStretchFactor (main_, 2);
90 QFrame *f =
new QFrame ();
92 f->setFrameStyle (QFrame::VLine | QFrame::Plain);
95 default_ =
new QPushButton (
"Default");
96 hL->addWidget (default_);
100 group_->setLayout (vL);
102 connect (default_, SIGNAL (pressed()),
this, SLOT (toDefault()));
118 void DynamicValue::toDefault()
QString typeString() const
Type.
virtual TypeWidget * widget(QMap< QString, QString >, QString, QWidget *=NULL)
Returns the configuration widget.
QMap< QString, QString > hints() const
Parsed hints for this input/output type.
Context * context() const
Context of element.
virtual void toDefault()=0
reset the widget to default
const QString & shortDescription() const
Short description.
~DynamicValue()
Destructor.
const Element * element() const
Element of this input/output.
Type * getType(QString _type)
Get type object for given type name.
DynamicValue(Input *_input)
Constructor.