kwave  18.07.70
BandPassPlugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  BandPassPlugin.h - Plugin for band pass filtering
3  -------------------
4  begin : Thu Jun 19 2003
5  copyright : (C) 2003 by Dave Flogeras
6  email : d.flogeras@unb.ca
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef BAND_PASS_PLUGIN_H
19 #define BAND_PASS_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include <QObject>
24 #include <QString>
25 #include <QStringList>
26 
27 #include "libkwave/Plugin.h"
29 
30 #include "libgui/FilterPlugin.h"
31 
32 namespace Kwave
33 {
34  class KwaveSampleSource;
35 
37  {
38  Q_OBJECT
39 
40  public:
41 
47  BandPassPlugin(QObject *parent, const QVariantList &args);
48 
50  virtual ~BandPassPlugin() Q_DECL_OVERRIDE;
51 
53  virtual Kwave::PluginSetupDialog *createDialog(QWidget *parent)
54  Q_DECL_OVERRIDE;
55 
61  virtual Kwave::SampleSource *createFilter(unsigned int tracks)
62  Q_DECL_OVERRIDE;
63 
67  virtual bool paramsChanged() Q_DECL_OVERRIDE;
68 
76  virtual void updateFilter(Kwave::SampleSource *filter,
77  bool force = false) Q_DECL_OVERRIDE;
78 
83  virtual QString actionName() Q_DECL_OVERRIDE;
84 
85  protected:
86 
88  virtual int interpreteParameters(QStringList &params) Q_DECL_OVERRIDE;
89 
90  protected slots:
91 
96  void setFreqValue(double frequency);
97 
102  void setBwValue(double bw);
103 
104  private:
105 
107  double m_frequency;
108 
110  double m_last_freq;
111 
113  double m_bw;
114 
116  double m_last_bw;
117 
118  };
119 }
120 
121 #endif /* BAND_PASS_PLUGIN_H */
122 
123 //***************************************************************************
124 //***************************************************************************
void setFreqValue(double frequency)
Definition: App.h:33
virtual void updateFilter(Kwave::SampleSource *filter, bool force=false) Q_DECL_OVERRIDE
virtual int interpreteParameters(QStringList &params) Q_DECL_OVERRIDE
virtual Kwave::PluginSetupDialog * createDialog(QWidget *parent) Q_DECL_OVERRIDE
virtual Kwave::SampleSource * createFilter(unsigned int tracks) Q_DECL_OVERRIDE
virtual ~BandPassPlugin() Q_DECL_OVERRIDE
virtual bool paramsChanged() Q_DECL_OVERRIDE
BandPassPlugin(QObject *parent, const QVariantList &args)
void setBwValue(double bw)
virtual QString actionName() Q_DECL_OVERRIDE