00001 /***************************************************************** 00002 * 00003 * This file is part of the FLIRTLib project 00004 * 00005 * FLIRTLib Copyright (c) 2010 Gian Diego Tipaldi and Kai O. Arras 00006 * 00007 * This software is licensed under the "Creative Commons 00008 * License (Attribution-NonCommercial-ShareAlike 3.0)" 00009 * and is copyrighted by Gian Diego Tipaldi and Kai O. Arras 00010 * 00011 * Further information on this license can be found at: 00012 * http://creativecommons.org/licenses/by-nc-sa/3.0/ 00013 * 00014 * FLIRTLib is distributed in the hope that it will be useful, 00015 * but WITHOUT ANY WARRANTY; without even the implied 00016 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00017 * PURPOSE. 00018 * 00019 *****************************************************************/ 00020 00021 00022 00023 #ifndef SIMPLEPEAKFINDERPRESENTER_H_ 00024 #define SIMPLEPEAKFINDERPRESENTER_H_ 00025 00026 #include <gui/PeakFinderPresenter.h> 00027 #include <gui/ParameterWidget.h> 00028 #include <utils/SimplePeakFinder.h> 00029 #include <QtGui/QWidget> 00030 #include <QtCore/QObject> 00031 00032 class SimplePeakFinderPresenter: public PeakFinderPresenter{ 00033 Q_OBJECT 00034 00035 public: 00036 SimplePeakFinderPresenter(SimplePeakFinder* peakFinder, ParameterWidget* peakParameter); 00037 00038 virtual void setPeakFinder(PeakFinder* peakFinder); 00039 00040 virtual void setPeakFinderParameter(ParameterWidget* peakParameter); 00041 00042 signals: 00043 void peakFinderChanged(); 00044 00045 public slots: 00046 void changeParameter(const QString& name); 00047 void changeMinValue(double value); 00048 void changeMinDifference(double value); 00049 00050 protected: 00051 virtual void syncronize(); 00052 virtual void reconnect(); 00053 }; 00054 00055 #endif