kwave  18.07.70
NoiseDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  NoiseDialog.h - dialog for the "noise" plugin
3  -------------------
4  begin : Sat Sep 28 2013
5  copyright : (C) 2013 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_DIALOG_H
19 #define NOISE_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QObject>
25 #include <QString>
26 
28 #include "ui_NoiseDlg.h"
29 
30 class QStringList;
31 
32 namespace Kwave
33 {
34 
35  class OverViewCache;
36 
37  class NoiseDialog: public QDialog,
39  public Ui::NoiseDlg
40  {
41  Q_OBJECT
42  public:
43 
45  NoiseDialog(QWidget *parent, Kwave::OverViewCache *overview_cache);
46 
48  virtual ~NoiseDialog() Q_DECL_OVERRIDE;
49 
51  virtual QStringList params() Q_DECL_OVERRIDE;
52 
54  virtual void setParams(QStringList &params) Q_DECL_OVERRIDE;
55 
57  virtual QDialog *dialog() Q_DECL_OVERRIDE { return this; }
58 
59  signals:
60 
65  void levelChanged(double level);
66 
68  void startPreListen();
69 
71  void stopPreListen();
72 
73  protected slots:
74 
76  void modeChanged(bool);
77 
79  void sliderChanged(int pos);
80 
82  void spinboxChanged(int pos);
83 
88  void listenToggled(bool listen);
89 
93  void listenStopped();
94 
95  private slots:
96 
98  void invokeHelp();
99 
100  protected:
101 
106  typedef enum {
109  } Mode;
110 
112  void setMode(Mode mode);
113 
115  void updateDisplay(double value);
116 
117  private:
118 
120  double m_noise;
121 
126 
129 
132 
133  };
134 }
135 
136 #endif /* NOISE_DIALOG_H */
137 
138 //***************************************************************************
139 //***************************************************************************
void updateDisplay(double value)
void modeChanged(bool)
Definition: App.h:33
void setMode(Mode mode)
void listenToggled(bool listen)
virtual QStringList params() Q_DECL_OVERRIDE
Kwave::OverViewCache * m_overview_cache
Definition: NoiseDialog.h:131
virtual QDialog * dialog() Q_DECL_OVERRIDE
Definition: NoiseDialog.h:57
NoiseDialog(QWidget *parent, Kwave::OverViewCache *overview_cache)
Definition: NoiseDialog.cpp:44
void spinboxChanged(int pos)
void sliderChanged(int pos)
virtual void setParams(QStringList &params) Q_DECL_OVERRIDE
virtual ~NoiseDialog() Q_DECL_OVERRIDE
void levelChanged(double level)