| 1 | /* |
| 2 | Copyright (C) 2005-2014 Mario Stephan <[email protected]> |
| 3 | |
| 4 | This library is free software; you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as published |
| 6 | by the Free Software Foundation; either version 2.1 of the License, or |
| 7 | (at your option) any later version. |
| 8 | |
| 9 | This program is distributed in the hope that it will be useful, |
| 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 12 | GNU General Public License for more details. |
| 13 | |
| 14 | You should have received a copy of the GNU Lesser General Public License |
| 15 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ |
| 17 | |
| 18 | #ifndef SETTINGSDIALOG_H_ |
| 19 | #define SETTINGSDIALOG_H_ |
| 20 | |
| 21 | #include <QDialog> |
| 22 | |
| 23 | class SettingsDialog : public QDialog { |
| 24 | Q_OBJECT |
| 25 | public: |
| 26 | SettingsDialog(QWidget* parent = 0); |
| 27 | ~SettingsDialog(); |
| 28 | int exec(); |
| 29 | enum Tab { TabFader = 0, |
| 30 | TabCollection = 1, |
| 31 | TabMonitor = 2 |
| 32 | }; |
| 33 | void setCurrentTab(Tab tab); |
| 34 | public slots: |
| 35 | void accept(); |
| 36 | void tableSelectionChanged(); |
| 37 | |
| 38 | signals: |
| 39 | void scanNowPressed(); |
| 40 | void resetStatsPressed(); |
| 41 | |
| 42 | protected: |
| 43 | bool loadSettings(); |
| 44 | |
| 45 | private slots: |
| 46 | void on_faderEndSlider_sliderMoved(int position); |
| 47 | void on_faderTimeSlider_sliderMoved(int position); |
| 48 | void on_pushButton_clicked(); |
| 49 | void onScanNow(); |
| 50 | void loadDjList(int count); |
| 51 | void on_pushAbout_clicked(); |
| 52 | |
| 53 | protected: |
| 54 | private: |
| 55 | enum ItemRole { ItemRoleId = Qt::UserRole + 1 }; |
| 56 | class SettingsDialogPrivate* p; |
| 57 | }; |
| 58 | |
| 59 | #endif /* SETTINGSDIALOG_H_ */ |