diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-03-01 19:09:31 +0000 |
commit | f2cfda2a54780868dfe0af7bd652fcd4906547da (patch) | |
tree | c6ac23545528f5701818424f2af5f79ce3665e6c /src/replaygainscanner.h | |
download | soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.tar.gz soundkonverter-f2cfda2a54780868dfe0af7bd652fcd4906547da.zip |
Added KDE3 version of SoundKonverter
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/soundkonverter@1097614 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/replaygainscanner.h')
-rwxr-xr-x | src/replaygainscanner.h | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/src/replaygainscanner.h b/src/replaygainscanner.h new file mode 100755 index 0000000..6b2bfdc --- /dev/null +++ b/src/replaygainscanner.h @@ -0,0 +1,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 |