SciDAVis  1.D4
MultiPeakFitTool.h
Go to the documentation of this file.
1 /***************************************************************************
2  File : MultiPeakFitTool.h
3  Project : SciDAVis
4  --------------------------------------------------------------------
5  Copyright : (C) 2006,2007 by Ion Vasilief,
6  Tilman Benkert, Knut Franke
7  Email (use @ for *) : ion_vasilief*yahoo.fr, thzs*gmx.net,
8  knut.franke*gmx.de
9  Description : Plot tool for doing multi-peak fitting.
10 
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  * This program is distributed in the hope that it will be useful, *
21  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
22  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
23  * GNU General Public License for more details. *
24  * *
25  * You should have received a copy of the GNU General Public License *
26  * along with this program; if not, write to the Free Software *
27  * Foundation, Inc., 51 Franklin Street, Fifth Floor, *
28  * Boston, MA 02110-1301 USA *
29  * *
30  ***************************************************************************/
31 #ifndef MULTI_PEAK_FIT_TOOL
32 #define MULTI_PEAK_FIT_TOOL
33 
34 #include "PlotToolInterface.h"
35 #include "MultiPeakFit.h"
36 #include <QObject>
37 
38 class DataPickerTool;
39 class ApplicationWindow;
40 class QwtPlotCurve;
41 
50 class MultiPeakFitTool : public QObject, public PlotToolInterface
51 {
52  Q_OBJECT
53  public:
54  MultiPeakFitTool(Graph *graph, ApplicationWindow *app, MultiPeakFit::PeakProfile profile, int num_peaks, const QObject *status_target, const char *status_slot);
55  virtual RTTI rtti() const { return MultiPeak; }
56  virtual ~MultiPeakFitTool();
57  signals:
62  void statusText(const QString&);
63  protected slots:
64  void selectPeak(QwtPlotCurve *curve, int point_index);
65  private:
66  void finalize();
71  QwtPlotCurve *d_curve;
72 };
73 
74 #endif // ifndef MULTI_PEAK_FIT_TOOL
75