9 #include "GuiStringParameter.h"
10 #include "UserInterface.h"
14 GuiStringParameter::GuiStringParameter(QGridLayout *grid, UserInterface &ui,
15 int group,
int param) :
16 GuiParameter(grid, ui, group, param) {
18 p_lineEdit =
new QLineEdit;
19 connect(p_lineEdit, SIGNAL(textChanged(
const QString &)),
this, SIGNAL(ValueChanged()));
20 grid->addWidget(p_lineEdit, param, 2);
22 if(p_ui->HelpersSize(group, param) != 0) {
23 grid->addWidget(AddHelpers(p_lineEdit), param, 3);
26 RememberWidget(p_lineEdit);
28 p_type = StringWidget;
32 GuiStringParameter::~GuiStringParameter() {}
34 void GuiStringParameter::Set(QString newValue) {
35 p_lineEdit->setText(newValue);
39 QString GuiStringParameter::Value() {
40 return p_lineEdit->text();