![]() |
Mixxx
|
00001 /*************************************************************************** 00002 dlgprefrecord.h - description 00003 ------------------- 00004 begin : Thu Jun 7 2007 00005 copyright : (C) 2007 by John Sully 00006 email : jsully@scs.ryerson.ca 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef DLGPREFRECORD_H 00019 #define DLGPREFRECORD_H 00020 00021 #include "ui_dlgprefrecorddlg.h" 00022 #include "configobject.h" 00023 #include <QRadioButton> 00024 00025 class ControlObject; 00026 class ControlObjectThreadMain; 00027 00028 00029 00030 class QWidget; 00035 class DlgPrefRecord : public QWidget, public Ui::DlgPrefRecordDlg { 00036 Q_OBJECT 00037 public: 00038 DlgPrefRecord(QWidget *parent, ConfigObject<ConfigValue> *_config); 00039 ~DlgPrefRecord(); 00040 public slots: 00042 void slotApply(); 00043 void slotUpdate(); 00044 void slotEncoding(); 00045 void slotSliderQuality(); 00046 void slotRecordPathChange(); 00047 void slotEnableCueFile(int); 00048 void slotChangeSplitSize(); 00049 signals: 00050 void apply(const QString &); 00051 private: 00052 void setMetaData(); 00053 void loadMetaData(); 00054 int getSliderQualityVal(); 00055 void updateTextQuality(); 00056 00058 ConfigObject<ConfigValue> *config; 00059 ControlObjectThreadMain* recordControl; 00060 bool confirmOverwrite; 00061 QString fileTypeExtension; 00062 QRadioButton *radioOgg; 00063 QRadioButton *radioMp3; 00064 QRadioButton *radioAiff; 00065 QRadioButton *radioFlac; 00066 QRadioButton *radioWav; 00067 }; 00068 00069 #endif