Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/UIElements/Qt4/Query/VectorQtQuery.cpp

    r6e6b90 rc70fb4  
    2929
    3030
    31 QtDialog::VectorQtQuery::VectorQtQuery(std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :
    32     Dialog::VectorQuery(title,_check),
     31QtDialog::VectorQtQuery::VectorQtQuery(Parameter<Vector> &param, std::string title, bool _check,QBoxLayout *_parent,QtDialog *_dialog) :
     32    Dialog::VectorQuery(param, title,_check),
    3333    parent(_parent)
    3434{
     35  if (!param.isSet())
     36    param.set(Vector(0,0,0));
    3537  mainLayout= new QHBoxLayout();
    3638  titleLabel = new QLabel(QString(getTitle().c_str()));
     
    4547  coordInputX = new QDoubleSpinBox();
    4648  coordInputX->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
     49  coordInputX->setValue(param.get()[0]);
    4750//  coordInputX->setRange(0,M.at(i,i));
    4851  coordInputX->setDecimals(3);
     
    5053  coordInputY = new QDoubleSpinBox();
    5154  coordInputY->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
     55  coordInputY->setValue(param.get()[1]);
    5256//  coordInputY->setRange(0,M.at(i,i));
    5357  coordInputY->setDecimals(3);
     
    5559  coordInputZ = new QDoubleSpinBox();
    5660  coordInputZ->setRange(-std::numeric_limits<double>::max(),std::numeric_limits<double>::max());
     61  coordInputZ->setValue(param.get()[2]);
    5762//  coordInputZ->setRange(0,M.at(i,i));
    5863  coordInputZ->setDecimals(3);
    5964  coordLayout->addWidget(coordInputZ);
    60   pipe = new VectorQtQueryPipe(&(tmp),_dialog,inputBox);
     65  pipe = new VectorQtQueryPipe(tmp,_dialog,inputBox);
    6166  //pipe->update(coordInput->value());
    6267  connect(coordInputX,SIGNAL(valueChanged(double)),pipe,SLOT(updateX(double)));
Note: See TracChangeset for help on using the changeset viewer.