kwave  18.07.70
BandPassDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  BandPassDialog.h - dialog for the "band_pass" plugin
3  -------------------
4  begin : Tue Jun 24 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 
23 #include <QDialog>
24 #include <QObject>
25 #include <QString>
26 #include <QStringList>
27 
29 #include "ui_BandPassDlg.h"
30 
31 class QStringList;
32 class QWidget;
33 
34 namespace Kwave
35 {
36 
37  class BandPass;
38 
39  class BandPassDialog: public QDialog,
41  public Ui::BandPassDlg
42  {
43  Q_OBJECT
44  public:
45 
53  BandPassDialog(QWidget *parent, double sample_rate);
54 
56  virtual ~BandPassDialog() Q_DECL_OVERRIDE;
57 
59  virtual QStringList params() Q_DECL_OVERRIDE;
60 
62  virtual void setParams(QStringList &params) Q_DECL_OVERRIDE;
63 
65  virtual QDialog *dialog() Q_DECL_OVERRIDE { return this; }
66 
67  signals:
68 
73  void freqChanged(double freq);
74 
79  void bwChanged(double bw);
80 
82  void startPreListen();
83 
85  void stopPreListen();
86 
87  protected slots:
88 
90  void freqValueChanged(int pos);
91 
93  void bwValueChanged(int pos);
94 
99  void listenToggled(bool listen);
100 
104  void listenStopped();
105 
106  private slots:
107 
109  void invokeHelp();
110 
111  protected:
112 
114  void updateDisplay();
115 
116  private:
117 
119  double m_frequency;
120 
122  double m_bw;
123 
126 
129 
130  };
131 }
132 
133 #endif /* NOTCH_FILTER_DIALOG_H */
134 
135 //***************************************************************************
136 //***************************************************************************
Definition: App.h:33
void freqValueChanged(int pos)
virtual QDialog * dialog() Q_DECL_OVERRIDE
void freqChanged(double freq)
BandPassDialog(QWidget *parent, double sample_rate)
void bwChanged(double bw)
virtual QStringList params() Q_DECL_OVERRIDE
virtual void setParams(QStringList &params) Q_DECL_OVERRIDE
Kwave::BandPass * m_filter
void bwValueChanged(int pos)
void listenToggled(bool listen)
virtual ~BandPassDialog() Q_DECL_OVERRIDE