Пример #1
0
void PointSets::addCurve(QString name)
{
  PointSet pointSet;

  pointSet.setStyle(DefaultSettings::instance().getCurveStyle(curveList.count()));
  pointSet.setName(name);

  curveList.append(pointSet);
}
Пример #2
0
void PointSets::addMeasure(QString name)
{
  PointSet pointSet;

  pointSet.setStyle(DefaultSettings::instance().getMeasureStyle(measureList.count()));
  pointSet.setName(name);

  measureList.append(pointSet);
}
Пример #3
0
void PointSets::setName(QString oldName, QString newName)
{
  ASSERT_ENGAUGE(oldName != AxesPointSetName);
  ASSERT_ENGAUGE(oldName != ScalePointSetName);

  PointSet* pointSet = findCurve(oldName);
  if (pointSet)
  {
    pointSet->setName(newName);
    return;
  }

  pointSet = findMeasure(oldName);
  if (pointSet)
  {
    pointSet->setName(newName);
    return;
  }
}