| 1 | /* |
| 2 | Copyright (C) 2010 Andres Cabrera |
| 3 | [email protected] |
| 4 | |
| 5 | This file is part of QuteCsound. |
| 6 | |
| 7 | QuteCsound is free software; you can redistribute it |
| 8 | and/or modify it under the terms of the GNU Lesser General Public |
| 9 | License as published by the Free Software Foundation; either |
| 10 | version 2.1 of the License, or (at your option) any later version. |
| 11 | |
| 12 | QuteCsound is distributed in the hope that it will be useful, |
| 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 15 | GNU Lesser General Public License for more details. |
| 16 | |
| 17 | You should have received a copy of the GNU Lesser General Public |
| 18 | License along with Csound; if not, write to the Free Software |
| 19 | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA |
| 20 | 02111-1307 USA |
| 21 | */ |
| 22 | |
| 23 | #ifndef SETTINGSDIALOG_H |
| 24 | #define SETTINGSDIALOG_H |
| 25 | |
| 26 | #include <QDialog> |
| 27 | #include <QMultiHash> |
| 28 | #include "csound.hpp" |
| 29 | |
| 30 | #include "csoundoptions.h" |
| 31 | |
| 32 | namespace Ui { |
| 33 | class SettingsDialog; |
| 34 | } |
| 35 | |
| 36 | class SettingsDialog : public QDialog { |
| 37 | Q_OBJECT |
| 38 | public: |
| 39 | SettingsDialog(QWidget *parent, CsoundOptions *options); |
| 40 | ~SettingsDialog(); |
| 41 | |
| 42 | QStringList getFlags(); |
| 43 | |
| 44 | public slots: |
| 45 | void refreshAudioIn(); |
| 46 | void refreshAudioOut(); |
| 47 | void refreshMidiIn(); |
| 48 | void refreshMidiOut(); |
| 49 | void refreshMidiControl(); |
| 50 | |
| 51 | virtual void accept(); |
| 52 | |
| 53 | protected: |
| 54 | void changeEvent(QEvent *e); |
| 55 | |
| 56 | private: |
| 57 | Ui::SettingsDialog *ui; |
| 58 | CsoundOptions *m_options; |
| 59 | }; |
| 60 | |
| 61 | #endif // SETTINGSDIALOG_H |