コード例 #1
0
void SmoothCurveDialog::setGraph(Graph *g)
{
	if (!g)
		return;

	graph = g;
	boxName->addItems (g->analysableCurvesList());
	activateCurve(boxName->currentIndex());
}
コード例 #2
0
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()));
};
コード例 #3
0
void polynomFitDialog::changeCurve(int index)
{
QwtPlotCurve *c = graph->curve(index);
while(c->dataSize()<2)
	{
	index++;
	c = graph->curve(index);
	if(!c || index >= graph->curves()) 
		index=0; //Restart from the beginning
	}
boxName->setCurrentItem(index);
activateCurve(index);
}
コード例 #4
0
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()));
};
コード例 #5
0
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()));
};
コード例 #6
0
void PolynomFitDialog::setGraph(Graph *g)
{
	if (!g)
		return;

	graph = g;
	boxName->addItems (g->analysableCurvesList());

	if (g->rangeSelectorsEnabled())
		boxName->setCurrentIndex(boxName->findText(g->curveRange(g->rangeSelectorTool()->selectedCurve())));

	activateCurve(boxName->currentText());

	connect (graph, SIGNAL(destroyed()), this, SLOT(close()));
	connect (graph, SIGNAL(dataRangeChanged()), this, SLOT(changeDataRange()));
}
コード例 #7
0
void SmoothCurveDialog::setGraph(Graph *g)
{
    graph = g;
    boxName->addItems (g->analysableCurvesList());
    activateCurve(boxName->currentText());
}
コード例 #8
0
void FFTDialog::setGraph(Graph *g)
{
graph = g;
boxName->insertStringList (g->curvesList(),-1);
activateCurve(0);
};