kwave  18.07.70
NoisePlugin.h
Go to the documentation of this file.
1 /*************************************************************************
2  NoisePlugin.h - overwrites the selected range of samples with noise
3  -------------------
4  begin : Wed Dec 12 2001
5  copyright : (C) 2001 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 NOISE_PLUGIN_H
19 #define NOISE_PLUGIN_H
20 
21 #include "config.h"
22 
23 #include <QString>
24 #include <QStringList>
25 
26 #include "libgui/FilterPlugin.h"
27 
28 namespace Kwave
29 {
31  {
32  Q_OBJECT
33  public:
34 
40  NoisePlugin(QObject *parent, const QVariantList &args);
41 
43  virtual ~NoisePlugin() Q_DECL_OVERRIDE;
44 
46  virtual Kwave::PluginSetupDialog *createDialog(QWidget *parent)
47  Q_DECL_OVERRIDE;
48 
54  virtual Kwave::SampleSource *createFilter(unsigned int tracks)
55  Q_DECL_OVERRIDE;
56 
60  virtual bool paramsChanged() Q_DECL_OVERRIDE;
61 
69  virtual void updateFilter(Kwave::SampleSource *filter,
70  bool force = false) Q_DECL_OVERRIDE;
71 
76  virtual QString actionName() Q_DECL_OVERRIDE;
77 
78  protected:
79 
81  virtual int interpreteParameters(QStringList &params) Q_DECL_OVERRIDE;
82 
83  protected slots:
84 
89  void setNoiseLevel(double level);
90 
91  private:
92 
94  double m_level;
95 
97  double m_last_level;
98 
99  };
100 }
101 
102 #endif /* NOISE_PLUGIN_H */
103 
104 //***************************************************************************
105 //***************************************************************************
void setNoiseLevel(double level)
Definition: App.h:33
virtual bool paramsChanged() Q_DECL_OVERRIDE
virtual Kwave::SampleSource * createFilter(unsigned int tracks) Q_DECL_OVERRIDE
virtual void updateFilter(Kwave::SampleSource *filter, bool force=false) Q_DECL_OVERRIDE
virtual Kwave::PluginSetupDialog * createDialog(QWidget *parent) Q_DECL_OVERRIDE
Definition: NoisePlugin.cpp:77
virtual QString actionName() Q_DECL_OVERRIDE
NoisePlugin(QObject *parent, const QVariantList &args)
Definition: NoisePlugin.cpp:43
virtual ~NoisePlugin() Q_DECL_OVERRIDE
Definition: NoisePlugin.cpp:49
virtual int interpreteParameters(QStringList &params) Q_DECL_OVERRIDE
Definition: NoisePlugin.cpp:54