kwave  18.07.70
PitchShiftDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  PitchShiftDialog.h - dialog for the "pitch_shift" plugin
3  -------------------
4  begin : Sun Mar 23 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 PITCH_SHIFT_DIALOG_H
19 #define PITCH_SHIFT_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QObject>
25 #include <QString>
26 
28 #include "ui_PitchShiftDlg.h"
29 
30 class QStringList;
31 
32 namespace Kwave
33 {
34 
35  class PitchShiftDialog: public QDialog,
36  public Ui::PitchShiftDlg,
38  {
39  Q_OBJECT
40  public:
41 
43  explicit PitchShiftDialog(QWidget *parent);
44 
46  virtual ~PitchShiftDialog() Q_DECL_OVERRIDE;
47 
49  virtual QStringList params() Q_DECL_OVERRIDE;
50 
52  virtual void setParams(QStringList &params) Q_DECL_OVERRIDE;
53 
55  virtual QDialog *dialog() Q_DECL_OVERRIDE { return this; }
56 
57  signals:
58 
64  void changed(double speed, double freq);
65 
67  void startPreListen();
68 
70  void stopPreListen();
71 
72  protected slots:
73 
75  void modeChanged(bool);
76 
78  void sliderChanged(int pos);
79 
81  void spinboxChanged(int pos);
82 
84  void frequencyChanged(int pos);
85 
90  void listenToggled(bool listen);
91 
95  void listenStopped();
96 
97  private slots:
98 
100  void invokeHelp();
101 
102  protected:
103 
108  typedef enum {
111  } Mode;
112 
114  void setMode(Mode mode);
115 
117  void updateSpeed(double speed);
118 
119  private:
120 
122  double m_speed;
123 
125  double m_frequency;
126 
129 
132  };
133 }
134 
135 #endif /* PITCH_SHIFT_DIALOG_H */
136 
137 //***************************************************************************
138 //***************************************************************************
Definition: App.h:33
virtual QDialog * dialog() Q_DECL_OVERRIDE
void changed(double speed, double freq)
PitchShiftDialog(QWidget *parent)
void listenToggled(bool listen)
virtual QStringList params() Q_DECL_OVERRIDE
virtual void setParams(QStringList &params) Q_DECL_OVERRIDE
void updateSpeed(double speed)
virtual ~PitchShiftDialog() Q_DECL_OVERRIDE