![]() |
Mixxx
|
00001 00002 00003 /*************************************************************************** 00004 * * 00005 * This program is free software; you can redistribute it and/or modify * 00006 * it under the terms of the GNU General Public License as published by * 00007 * the Free Software Foundation; either version 2 of the License, or * 00008 * (at your option) any later version. * 00009 * * 00010 ***************************************************************************/ 00011 00012 #ifndef DLGPREFBPM_H 00013 #define DLGPREFBPM_H 00014 00015 #include "ui_dlgprefbpmdlg.h" 00016 #include "configobject.h" 00017 00018 #include <qlist.h> 00019 00020 class QWidget; 00021 class BpmScheme; 00022 00023 class DlgPrefBpm : public QWidget, Ui::DlgPrefBPMDlg { 00024 Q_OBJECT 00025 public: 00026 DlgPrefBpm(QWidget *parent, ConfigObject<ConfigValue> *_config); 00027 ~DlgPrefBpm(); 00028 public slots: 00029 00030 void slotSetBpmDetectOnImport(int); 00031 void slotSetWriteID3Tag(int); 00032 void slotSetBpmEnabled(int); 00033 void slotSetBpmRangeStart(int); 00034 void slotSetBpmRangeEnd(int); 00035 void slotSetAboveRange(int); 00036 00037 void slotEditBpmScheme(); 00038 void slotAddBpmScheme(); 00039 void slotDeleteBpmScheme(); 00040 void slotDefaultBpmScheme(); 00041 00043 void slotApply(); 00044 void slotUpdate(); 00045 signals: 00046 void apply(const QString &); 00047 private: 00048 00049 void clearListIcons(); 00050 00051 // Determines whether or not to gray out the preferences 00052 void updateBpmEnabled(); 00053 00054 // Private methods for loading and saving the BPM schemes 00055 // to and from the file system. 00056 void loadBpmSchemes(); 00057 void saveBpmSchemes(); 00058 00059 // Method for filling in the list of BPM schemes on the dialog 00060 void populateBpmSchemeList(); 00061 00063 ConfigObject<ConfigValue> *config; 00064 QList<BpmScheme*> m_BpmSchemes; 00065 }; 00066 00067 #endif