drumstick  2.2.0
sonivoxsettingsdialog.h
Go to the documentation of this file.
1 /*
2  Virtual Piano test using the MIDI Sequencer C++ library
3  Copyright (C) 2006-2021, Pedro Lopez-Cabanillas <plcl@users.sf.net>
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 #ifndef SonivoxSettingsDialog_H
20 #define SonivoxSettingsDialog_H
21 
22 #include <QDialog>
23 #include <QShowEvent>
24 
30 namespace drumstick {
31 namespace widgets {
32 
33  namespace Ui {
34  class SonivoxSettingsDialog;
35  }
36 
37  class SonivoxSettingsDialog : public QDialog
38  {
39  Q_OBJECT
40 
41  public:
42  explicit SonivoxSettingsDialog(QWidget *parent = nullptr);
43  ~SonivoxSettingsDialog();
44  void readSettings();
45  void writeSettings();
46 
47  static const QString QSTR_PREFERENCES;
48  static const QString QSTR_BUFFERTIME;
49  static const QString QSTR_REVERBTYPE;
50  static const QString QSTR_REVERBAMT;
51  static const QString QSTR_CHORUSTYPE;
52  static const QString QSTR_CHORUSAMT;
53 
54  public slots:
55  void accept() override;
56  void showEvent(QShowEvent *event) override;
57  void restoreDefaults();
58 
59  private:
60  Ui::SonivoxSettingsDialog *ui;
61  };
62 
63 }} // namespace drumstick::widgets
64 
65 #endif // SonivoxSettingsDialog_H
Drumstick common.
Definition: alsaclient.cpp:68