~mr-unwell2006/mixxx/mixxx

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*
 * dlgprefreplaygain.h
 *
 *  Created on: 18/ott/2010
 *      Author: Vittorio Colao
 */

#ifndef DLGPREFREPLAYGAIN_H_
#define DLGPREFREPLAYGAIN_H_
#include "ui_dlgprefreplaygaindlg.h"
#include "configobject.h"
#include "controlobjectthread.h"


class QWidget;

class DlgPrefReplayGain: public QWidget, public Ui::DlgPrefReplayGainDlg  {
    Q_OBJECT
public:
    DlgPrefReplayGain(QWidget *parent, ConfigObject<ConfigValue> *_config);
    ~DlgPrefReplayGain();
public slots:
/** Update initial gain increment */
void slotUpdateBoost();
void slotSetRGEnabled();
void slotSetRGAnalyserEnabled();

void slotApply();
void slotUpdate();
void setDefaults();
signals:
void apply(const QString &);
private:

// Determines whether or not to gray out the preferences
void loadSettings();

/** Pointer to config object */
ConfigObject<ConfigValue> *config;

ControlObjectThread m_COTInitialBoost;
ControlObjectThread m_COTEnabled;

};


#endif /* DLGPREFREPLAYGAIN_H_ */