You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.5 KiB

Setup dialog for the equalizer
(c) 2004 Mark Kretschmann <>
(c) 2005 Seb Ruiz <>
(c) 2005 Markus Brueffer <>
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
#include <tqptrlist.h> //stack alloc
#include <kdialogbase.h>
class EqualizerGraph;
class TQGroupBox;
class TQCheckBox;
class KComboBox;
class KPopupMenu;
namespace Amarok { class Slider; }
class EqualizerSetup : public KDialogBase
static EqualizerSetup* instance() { return s_instance ? s_instance : new EqualizerSetup(); }
static bool isInstantiated() { return s_instance ? true : false; }
// for use by DCOP
void setActive( bool active );
void setBands( int preamp, TQValueList<int> gains );
void setPreset( TQString name );
private slots:
void presetChanged( int id );
void presetChanged( TQString title );
void sliderChanged();
void setEqualizerEnabled( bool );
void setEqualizerParameters();
void editPresets();
void addPreset();
static EqualizerSetup* s_instance;
void loadPresets();
void savePresets();
void updatePresets(TQString selectTitle = TQString());
TQString presetsCache() const;
Amarok::Slider* m_slider_preamp;
EqualizerGraph* m_equalizerGraph;
TQPtrList<Amarok::Slider> m_bandSliders;
TQGroupBox* m_groupBoxSliders;
KComboBox* m_presetCombo;
uint m_manualPos;
TQMap< TQString, TQValueList<int> > m_presets;