kwave  18.07.70
LowPassDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  LowPassDialog.h - dialog for the "lowpass" plugin
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_DIALOG_H
19 #define LOW_PASS_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QObject>
25 #include <QString>
26 
28 
29 #include "ui_LowPassDlg.h"
30 
31 class QStringList;
32 
33 namespace Kwave
34 {
35 
36  class LowPassFilter;
37 
38  class LowPassDialog: public QDialog,
39  public Ui::LowPassDlg,
41  {
42  Q_OBJECT
43  public:
44 
52  LowPassDialog(QWidget *parent, double sample_rate);
53 
55  virtual ~LowPassDialog() Q_DECL_OVERRIDE;
56 
58  virtual QStringList params() Q_DECL_OVERRIDE;
59 
61  virtual void setParams(QStringList &params) Q_DECL_OVERRIDE;
62 
64  virtual QDialog *dialog() Q_DECL_OVERRIDE { return this; }
65 
66  signals:
67 
72  void changed(double freq);
73 
75  void startPreListen();
76 
78  void stopPreListen();
79 
80  protected slots:
81 
83  void valueChanged(int pos);
84 
89  void listenToggled(bool listen);
90 
94  void listenStopped();
95 
96  private slots:
97 
99  void invokeHelp();
100 
101  protected:
102 
104  void updateDisplay();
105 
106  private:
107 
109  double m_frequency;
110 
113 
116 
117  };
118 }
119 
120 #endif /* LOW_PASS_DIALOG_H */
121 
122 //***************************************************************************
123 //***************************************************************************
virtual ~LowPassDialog() Q_DECL_OVERRIDE
Definition: App.h:33
void changed(double freq)
virtual void setParams(QStringList &params) Q_DECL_OVERRIDE
virtual QDialog * dialog() Q_DECL_OVERRIDE
Definition: LowPassDialog.h:64
LowPassDialog(QWidget *parent, double sample_rate)
void valueChanged(int pos)
virtual QStringList params() Q_DECL_OVERRIDE
void listenToggled(bool listen)
Kwave::LowPassFilter * m_filter