1 /***************************************************************************
2 copyright : (C) 2005, 2006 by Carsten Niehaus
3 email : cniehaus@kde.org
4 ***************************************************************************/
5 /***************************************************************************
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
12 ***************************************************************************/
13 #ifndef SPECTRUMVIEWIMPL_H
14 #define SPECTRUMVIEWIMPL_H
18 #include "ui_spectrumview.h"
21 * @author Carsten Niehaus
23 class SpectrumViewImpl
: public QWidget
, Ui_SpectrumView
29 * @param parent the parent widget
31 SpectrumViewImpl( QWidget
* parent
);
34 * sets the spectrum to @p spec
35 * @param spec the spectrum to display
37 void setSpectrum( Spectrum
* spec
){
38 m_spectrumWidget
->setSpectrum( spec
);
42 m_spectrumWidget
->update();
47 * set the correct ranges and min/max values of the
49 * @param left The left border of the spectrum
50 * @param right The right border of the spectrum
52 void updateUI(int left
, int right
);
54 void updatePeakInformation( Spectrum::peak
* peak
);
58 * filling the list of peaks
63 #endif // SPECTRUMVIEWIMPL_H