kwave  18.07.70
VolumeDialog.h
Go to the documentation of this file.
1 /***************************************************************************
2  VolumeDialog.h - dialog for the "volume" plugin
3  -------------------
4  begin : Sun Oct 27 2002
5  copyright : (C) 2001 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 VOLUME_DIALOG_H
19 #define VOLUME_DIALOG_H
20 
21 #include "config.h"
22 
23 #include <QDialog>
24 #include <QObject>
25 #include <QString>
26 
27 #include "ui_VolumeDlg.h"
28 
29 class QStringList;
30 
31 namespace Kwave
32 {
33 
34  class OverViewCache;
35 
36  class VolumeDialog: public QDialog,
37  public Ui::VolumeDlg
38  {
39  Q_OBJECT
40  public:
41 
43  VolumeDialog(QWidget *parent, Kwave::OverViewCache *overview_cache);
44 
46  virtual ~VolumeDialog();
47 
49  QStringList params();
50 
52  void setParams(QStringList &params);
53 
54  protected slots:
55 
57  void modeChanged(bool);
58 
60  void sliderChanged(int pos);
61 
63  void spinboxChanged(int pos);
64 
65  private slots:
66 
68  void invokeHelp();
69 
70  protected:
71 
76  typedef enum {
80  } Mode;
81 
83  void setMode(Mode mode);
84 
86  void updateDisplay(double value);
87 
88  private:
89 
91  double m_factor;
92 
97 
100 
103 
104  };
105 }
106 
107 #endif /* VOLUME_DIALOG_H */
108 
109 //***************************************************************************
110 //***************************************************************************
Definition: App.h:33
void sliderChanged(int pos)
void updateDisplay(double value)
void setParams(QStringList &params)
VolumeDialog(QWidget *parent, Kwave::OverViewCache *overview_cache)
void setMode(Mode mode)
Kwave::OverViewCache * m_overview_cache
Definition: VolumeDialog.h:102
void spinboxChanged(int pos)
QStringList params()