void PolynomFitDialog::setGraph(Graph *g) { graph = g; boxName->addItems(g->analysableCurvesList()); QString selectedCurve = g->selectedCurveTitle(); if (!selectedCurve.isEmpty()) { int index = boxName->findText(selectedCurve); boxName->setCurrentIndex(index); } activateCurve(boxName->currentText()); connect(graph, SIGNAL(closedGraph()), this, SLOT(close())); connect(graph, SIGNAL(dataRangeChanged()), this, SLOT(changeDataRange())); };
void polynomFitDialog::setGraph(Graph *g) { graph = g; boxName->insertStringList (g->curvesList(),-1); int index = 0; if (graph->selectorsEnabled()) index = graph->curveIndex(graph->selectedCurveID()); activateCurve(index); boxName->setCurrentItem(index); connect (graph, SIGNAL(closedGraph()), this, SLOT(close())); connect (graph, SIGNAL(dataRangeChanged()), this, SLOT(changeDataRange())); };
void fitDialog::setGraph(Graph *g) { if (!g) return; graph = g; boxCurve->clear(); boxCurve->insertStringList (graph->curvesList(), -1); if (g->selectorsEnabled()) { int index = g->curveIndex(g->selectedCurveID()); boxCurve->setCurrentItem(index); activateCurve(index); } else activateCurve(0); connect (graph, SIGNAL(closedGraph()), this, SLOT(close())); connect (graph, SIGNAL(dataRangeChanged()), this, SLOT(changeDataRange())); };