blob: 6b2bfdc8f9fff6d615f947c7d0de4d4bf7a607e5 (
plain)
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#ifndef REPLAYGAINSCANNER_H
#define REPLAYGAINSCANNER_H
#include <kdialog.h>
#include "replaygainfilelist.h"
class Config;
class Logger;
class ComboButton;
class QCheckBox;
class KPushButton;
class KProgress;
/**
* @short The Replay Gain Tool
* @author Daniel Faust <[email protected]>
* @version 0.3
*/
class ReplayGainScanner : public KDialog
{
Q_OBJECT
public:
/**
* Constructor
*/
ReplayGainScanner( TagEngine*, Config*, Logger*, QWidget* parent=0, const char* name=0, bool modal=true, WFlags f=0 );
/**
* Destructor
*/
virtual ~ReplayGainScanner();
void addFiles( QStringList );
private slots:
void addClicked( int );
void showDirDialog();
void showFileDialog();
void calcReplayGainClicked();
void removeReplayGainClicked();
void cancelClicked();
void processStarted();
void processStopped();
void updateProgress( int, int );
private:
ComboButton* cAdd;
QCheckBox* cForce;
//QComboBox* cFilter;
ReplayGainFileList* lList;
KProgress* pProgressBar;
KPushButton* pTagVisible;
KPushButton* pRemoveTag;
KPushButton* pCancel;
KPushButton* pOk;
TagEngine* tagEngine;
Config* config;
Logger* logger;
QTime elapsedTime;
signals:
void addFile( const QString& );
void addDir( const QString&, const QStringList& filter = "", bool recursive = true );
void calcAllReplayGain( bool force );
void removeAllReplayGain();
void cancelProcess();
};
#endif // REPLAYGAINSCANNER_H
|