Пример #1
0
void KstEqDialogI::populateEditMultiple() {
  // list of objects
  KstEquationList eqlist = kstObjectSubList<KstDataObject,KstEquation>(KST::dataObjectList);
  _editMultipleWidget->_objectList->insertStringList(eqlist.tagNames());

  // also intermediate state for multiple edit
  _w->_xVectors->_vector->insertItem("", 0);
  _w->_xVectors->_vector->setCurrentItem(0);
  _w->_doInterpolation->setTristate(true);
  _w->_doInterpolation->setNoChange();
  _w->_equation->setText("");
  
  // and clean all the fields
  _equationDirty = false;
  _xVectorsDirty = false;
  _doInterpolationDirty = false;
}
Пример #2
0
void KstEqDialog::populateEditMultiple() {
  KstEquationList eqList;

  eqList = kstObjectSubList<KstDataObject,KstEquation>(KST::dataObjectList);
  _editMultipleWidget->_objectList->insertItems(0, eqList.tagNames());

  //
  // also intermediate state for multiple edit...
  //

  _w->_xVectors->_vector->insertItem(0, "");
  _w->_xVectors->_vector->setCurrentIndex(0);
  _w->_doInterpolation->setTristate(true);
  _w->_doInterpolation->setChecked(Qt::PartiallyChecked);
  _w->_equation->setText("");

  //
  // and clean all the fields...
  //

  _equationDirty = false;
  _xVectorsDirty = false;
  _doInterpolationDirty = false;
}