kwave  18.07.70
NotchFilterDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  NotchFilterDialog.h - dialog for the "notch_filter" plugin
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 NOTCH_FILTER_DIALOG_H
19 #define NOTCH_FILTER_DIALOG_H
20 
21 #include "config.h"
22 #include <QObject>
23 #include <QString>
24 
26 
27 #include "ui_NotchFilterDlg.h"
28 
29 class QStringList;
30 
31 namespace Kwave
32 {
33 
34  class NotchFilter;
35 
36  class NotchFilterDialog: public QDialog,
38  public Ui::NotchFilterDlg
39  {
40  Q_OBJECT
41  public:
42 
50  NotchFilterDialog(QWidget *parent, double sample_rate);
51 
53  virtual ~NotchFilterDialog() Q_DECL_OVERRIDE;
54 
56  virtual QStringList params() Q_DECL_OVERRIDE;
57 
59  virtual void setParams(QStringList &params) Q_DECL_OVERRIDE;
60 
62  virtual QDialog *dialog() Q_DECL_OVERRIDE { return this; }
63 
64  signals:
65 
70  void freqChanged(double freq);
71 
76  void bwChanged(double bw);
77 
79  void startPreListen();
80 
82  void stopPreListen();
83 
84  protected slots:
85 
87  void freqValueChanged(int pos);
88 
90  void bwValueChanged(int pos);
91 
96  void listenToggled(bool listen);
97 
101  void listenStopped();
102 
103  private slots:
104 
106  void invokeHelp();
107 
108  protected:
109 
111  void updateDisplay();
112 
113  private:
114 
116  double m_frequency;
117 
119  double m_bw;
120 
123 
126 
127  };
128 }
129 
130 #endif /* NOTCH_FILTER_DIALOG_H */
131 
132 //***************************************************************************
133 //***************************************************************************
Definition: App.h:33
NotchFilterDialog(QWidget *parent, double sample_rate)
Kwave::NotchFilter * m_filter
void freqChanged(double freq)
void bwChanged(double bw)
virtual void setParams(QStringList &params) Q_DECL_OVERRIDE
virtual QStringList params() Q_DECL_OVERRIDE
virtual QDialog * dialog() Q_DECL_OVERRIDE
virtual ~NotchFilterDialog() Q_DECL_OVERRIDE
void listenToggled(bool listen)