2 #include <QIntValidator> 4 #include "GuiIntegerParameter.h" 9 GuiIntegerParameter::GuiIntegerParameter(QGridLayout *grid, UserInterface &ui,
10 int group,
int param) :
11 GuiParameter(grid, ui, group, param) {
13 p_lineEdit =
new QLineEdit;
14 p_lineEdit->setValidator(
new QIntValidator(p_lineEdit));
15 connect(p_lineEdit, SIGNAL(textChanged(
const QString &)),
this, SIGNAL(ValueChanged()));
16 grid->addWidget(p_lineEdit, param, 2);
18 if(p_ui->HelpersSize(group, param) != 0) {
19 grid->addWidget(AddHelpers(p_lineEdit), param, 3);
22 RememberWidget(p_lineEdit);
23 p_type = IntegerWidget;
27 GuiIntegerParameter::~GuiIntegerParameter() {}
29 void GuiIntegerParameter::Set(QString newValue) {
30 p_lineEdit->setText(newValue);
34 QString GuiIntegerParameter::Value() {
35 return p_lineEdit->text();
Namespace for ISIS/Bullet specific routines.