void copyVectors( const casacore::Vector<float>& sourceValues, casacore::Vector<float>& destinationValues, bool reverseOrder );
#ifndef GAUSSIANESTIMATEWIDGET_QO_H
#define GAUSSIANESTIMATEWIDGET_QO_H
#include <casa/Arrays/Vector.h>
#include <ui/ui_GaussianEstimateWidget.h>
#include <display/QtPlotter/SpecFitGaussian.h>
#include <display/QtPlotter/conversion/Converter.h>
class GaussianEstimateWidget : public QWidget {
static void setEstimateColor( QColor estimateColor );
GaussianEstimateWidget(QWidget *parent = 0);
void setCurveData(const casacore::Vector<float>& xValues, const casacore::Vector<float>& yValues);
void setCurveColor( QColor color );
void setTitle( const QString& titleStr );
void setRangeX( float xValue, float yValue );
void setRangeY( float xValue, float yValue );
void setDisplayYUnits( const QString& units );
void molecularLineChanged( float peak, float center, const QString& label,
const QString& chemicalName, const QString& resolvedQNs, const QString& frequencyUnits );
SpecFitGaussian getEstimate();
void setEstimate( const SpecFitGaussian& estimate );
void unitsChanged( const QString& oldUnits, const QString& newUnits, casacore::SpectralCoordinate& coord);
void setSliderValueFWHM( float value );
void updateUIBasedOnEstimate();
void clearMolecularLines();
~GaussianEstimateWidget();