kwave  18.07.70
LowPassPlugin.h
Go to the documentation of this file.
1 /***************************************************************************
2  LowPassPlugin.h - Plugin for simple lowpass filtering
3  -------------------
4  begin : Fri Mar 07 2003
5  copyright : (C) 2003 by Thomas Eschenbacher
6  email : Thomas.Eschenbacher@gmx.de
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 LOW_PASS_PLUGIN_H
19 #define LOW_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 class QStringList;
33 
34 namespace Kwave
35 {
36 
37  class KwaveSampleSource;
38 
40  {
41  Q_OBJECT
42 
43  public:
44 
50  LowPassPlugin(QObject *parent, const QVariantList &args);
51 
53  virtual ~LowPassPlugin() Q_DECL_OVERRIDE;
54 
56  virtual Kwave::PluginSetupDialog *createDialog(QWidget *parent)
57  Q_DECL_OVERRIDE;
58 
64  virtual Kwave::SampleSource *createFilter(unsigned int tracks)
65  Q_DECL_OVERRIDE;
66 
70  virtual bool paramsChanged() Q_DECL_OVERRIDE;
71 
79  virtual void updateFilter(Kwave::SampleSource *filter,
80  bool force = false) Q_DECL_OVERRIDE;
81 
86  virtual QString actionName() Q_DECL_OVERRIDE;
87 
88  protected:
89 
91  virtual int interpreteParameters(QStringList &params) Q_DECL_OVERRIDE;
92 
93  protected slots:
94 
99  void setValue(double frequency);
100 
101  private:
102 
104  double m_frequency;
105 
107  double m_last_freq;
108  };
109 }
110 
111 #endif /* LOW_PASS_PLUGIN_H */
112 
113 //***************************************************************************
114 //***************************************************************************
Definition: App.h:33
virtual Kwave::SampleSource * createFilter(unsigned int tracks) Q_DECL_OVERRIDE
virtual QString actionName() Q_DECL_OVERRIDE
void setValue(double frequency)
LowPassPlugin(QObject *parent, const QVariantList &args)
virtual int interpreteParameters(QStringList &params) Q_DECL_OVERRIDE
virtual ~LowPassPlugin() Q_DECL_OVERRIDE
virtual Kwave::PluginSetupDialog * createDialog(QWidget *parent) Q_DECL_OVERRIDE
virtual void updateFilter(Kwave::SampleSource *filter, bool force=false) Q_DECL_OVERRIDE
virtual bool paramsChanged() Q_DECL_OVERRIDE