void PointSets::addCurve(QString name) { PointSet pointSet; pointSet.setStyle(DefaultSettings::instance().getCurveStyle(curveList.count())); pointSet.setName(name); curveList.append(pointSet); }
void PointSets::addMeasure(QString name) { PointSet pointSet; pointSet.setStyle(DefaultSettings::instance().getMeasureStyle(measureList.count())); pointSet.setName(name); measureList.append(pointSet); }
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; } }