Test change - can I push OK?
[kdeedu-porting.git] / kalzium / src / spectrumviewimpl.h
blobab2710b7347938ae2e19534e0ad1e0d2c8700c47
1 /***************************************************************************
2 copyright : (C) 2005, 2006 by Carsten Niehaus
3 email : cniehaus@kde.org
4 ***************************************************************************/
5 /***************************************************************************
6 * *
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. *
11 * *
12 ***************************************************************************/
13 #ifndef SPECTRUMVIEWIMPL_H
14 #define SPECTRUMVIEWIMPL_H
16 #include "spectrum.h"
18 #include "ui_spectrumview.h"
20 /**
21 * @author Carsten Niehaus
23 class SpectrumViewImpl : public QWidget, Ui_SpectrumView
25 Q_OBJECT
27 public:
28 /**
29 * @param parent the parent widget
31 SpectrumViewImpl( QWidget* parent );
33 /**
34 * sets the spectrum to @p spec
35 * @param spec the spectrum to display
37 void setSpectrum( Spectrum* spec ){
38 m_spectrumWidget->setSpectrum( spec );
40 fillPeakList();
42 m_spectrumWidget->update();
45 private slots:
46 /**
47 * set the correct ranges and min/max values of the
48 * GUI elements
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 );
56 private:
57 /**
58 * filling the list of peaks
60 void fillPeakList();
63 #endif // SPECTRUMVIEWIMPL_H