void SmoothCurveDialog::activateCurve(const QString& curveName)
{
    if (smooth_method == SmoothFilter::Average)
	{
	QwtPlotCurve *c = graph->curve(curveName);
	if (!c || c->rtti() != QwtPlotItem::Rtti_PlotCurve)
		return;

	boxPointsLeft->setMaxValue(c->dataSize()/2);
	}
}
void curvesDialog::showCurveBtn(int) 
{
QwtPlotCurve *c = g->curve(contents->currentItem());
if (!c)
	return;

if (c->rtti() == FunctionCurve::RTTI)
	{
	btnAssociations->setEnabled(false);
	btnEditFunction->setEnabled(true);
	}
else
	{
	btnAssociations->setEnabled(true);
	btnEditFunction->setEnabled(false);
	}
}