diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | e2de64d6f1beb9e492daf5b886e19933c1fa41dd (patch) | |
tree | 9047cf9e6b5c43878d5bf82660adae77ceee097a /noatun/library/equalizerview.h | |
download | tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.tar.gz tdemultimedia-e2de64d6f1beb9e492daf5b886e19933c1fa41dd.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'noatun/library/equalizerview.h')
-rw-r--r-- | noatun/library/equalizerview.h | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/noatun/library/equalizerview.h b/noatun/library/equalizerview.h new file mode 100644 index 00000000..98778fcc --- /dev/null +++ b/noatun/library/equalizerview.h @@ -0,0 +1,91 @@ +#ifndef EQUALIZERVIEW_H +#define EQUALIZERVIEW_H + +#include <qwidget.h> +#include <kdialogbase.h> +#include <klistview.h> + +class VBand; +class QSlider; +class QLabel; +class QListViewItem; +class VPreset; +class QHBoxLayout; +class EqualizerWidget; + + +class EqualizerLevel : public QWidget +{ +Q_OBJECT +public: + EqualizerLevel(QWidget *parent, VBand band); + +public slots: + void changed(); + void changed(int); + + void setBand(VBand band); + +private: + VBand mBand; + QSlider *mSlider; + QLabel *mLabel; +}; + + +class PresetList : public KListView +{ +Q_OBJECT +public: + PresetList(QWidget *parent, const char *name=0); + +public: + void rename(QListViewItem *item, int c); +}; + + +class EqualizerView : public KDialogBase +{ +Q_OBJECT + QPtrList<EqualizerLevel> mBands; + +public: + EqualizerView(); + virtual void show(); + + QListViewItem *itemFor(const QString &filename); + QListViewItem *itemFor(const VPreset &preset); + +public slots: + void setPreamp(int); + void changedPreamp(int); + +private slots: + void changedBands(); + void changedEq(); + + void removed(VPreset p); + void created(VPreset p); + void renamed(VPreset p); + + void remove(); + void create(); + void reset(); + void rename(QListViewItem *); + void select(QListViewItem*); + +private: + bool first; + EqualizerWidget *mWidget; + QHBoxLayout *bandsLayout; +// QCheckBox *mOn; +// QSlider *mPreamp; + PresetList *mPresets; + bool mGoingPreset; +// QPushButton *mRemovePreset, *mAddPreset; +// QFrame *mSliders; +// KIntNumInput *mBandCount; +}; + +#endif + |