51 #include <QPushButton>
52 #include <QVBoxLayout>
53 #include <QScrollArea>
56 #include "../parser/input.hh"
58 #include "dynamicDialog.hh"
59 #include "dynamicValue.hh"
74 QVBoxLayout *configL =
new QVBoxLayout;
76 foreach (
Input *i, _inputs)
86 configL->addWidget (v->group_);
91 configL->addStretch(1);
93 QPushButton *ok =
new QPushButton (
"OK");
95 connect (ok, SIGNAL (pressed ()),
this, SLOT (accept ()));
97 QHBoxLayout *buttonL =
new QHBoxLayout;
98 buttonL->addStretch();
99 buttonL->addWidget (ok);
101 QVBoxLayout *vL =
new QVBoxLayout;
103 QWidget *sW =
new QWidget;
104 sW->setLayout (configL);
105 QScrollArea *sA =
new QScrollArea;
107 sA->setWidgetResizable (
true);
110 vL->addLayout (buttonL);
132 QMap<QString, QString> rv;
const QString & name() const
Name.
QMap< QString, QString > getResults()
Results.
DynamicDialog(QVector< Input * > _inputs, QWidget *_parent=0)
Constructor.
virtual QString toValue()=0
Return the type configuration result to a string.
~DynamicDialog()
Destructor.