1 /***************************************************************************
2 Setup dialog for the equalizer
4 (c) 2004 Mark Kretschmann <markey@web.de>
5 (c) 2005 Seb Ruiz <ruiz@kde.org>
6 (c) 2005 Markus Brueffer <markus@brueffer.de>
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
18 #ifndef AMAROK_EQUALIZERSETUP_H
19 #define AMAROK_EQUALIZERSETUP_H
23 #include <QList> //stack alloc
30 namespace Amarok
{ class Slider
; }
33 class EqualizerSetup
: public KDialog
38 static EqualizerSetup
* instance() { return s_instance
? s_instance
: new EqualizerSetup(); }
39 static bool isInstantiated() { return s_instance
? true : false; }
45 void setActive( bool active
);
46 void setBands( int preamp
, QList
<int> gains
);
47 void setPreset( QString name
);
50 void presetChanged( int id
);
51 void presetChanged( QString title
);
53 void setEqualizerEnabled( bool );
54 void setEqualizerParameters();
59 static EqualizerSetup
* s_instance
;
63 void updatePresets(QString selectTitle
= QString());
64 QString
presetsCache() const;
66 Amarok::Slider
* m_slider_preamp
;
67 EqualizerGraph
* m_equalizerGraph
;
68 QList
<Amarok::Slider
*> m_bandSliders
;
70 QGroupBox
* m_groupBoxSliders
;
71 KComboBox
* m_presetCombo
;
74 QMap
< QString
, QList
<int> > m_presets
;
77 #endif /*AMAROK_EQUALIZERSETUP_H*/