3 #include <QDoubleValidator>     4 #include "GuiDoubleParameter.h"    10   GuiDoubleParameter::GuiDoubleParameter(QGridLayout *grid, UserInterface &ui,
    11                                          int group, 
int param) :
    12     GuiParameter(grid, ui, group, param) {
    14     p_lineEdit = 
new QLineEdit;
    15     p_lineEdit->setValidator(
new QDoubleValidator(p_lineEdit));
    16     connect(p_lineEdit, SIGNAL(textChanged(
const QString &)), 
this, SIGNAL(ValueChanged()));
    17     grid->addWidget(p_lineEdit, param, 2);
    20       grid->addWidget(
AddHelpers(p_lineEdit), param, 3);
    25     p_type = DoubleWidget;
    29   GuiDoubleParameter::~GuiDoubleParameter() {}
    32   void GuiDoubleParameter::Set(QString newValue) {
    33     p_lineEdit->setText(newValue);
    37   QString GuiDoubleParameter::Value() {
    38     return p_lineEdit->text();
 QWidget * AddHelpers(QObject *lo)
Sets up helper button. 
 
int HelpersSize(const int &group, const int ¶m) const
Returns the number of helpers the parameter has. 
 
Namespace for ISIS/Bullet specific routines. 
 
void RememberWidget(QWidget *w)
Add widgets to a list for enabling/disabling.