From e2de64d6f1beb9e492daf5b886e19933c1fa41dd Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: 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 --- kmix/kmixtoolbox.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 kmix/kmixtoolbox.h (limited to 'kmix/kmixtoolbox.h') diff --git a/kmix/kmixtoolbox.h b/kmix/kmixtoolbox.h new file mode 100644 index 00000000..4cb5dd8f --- /dev/null +++ b/kmix/kmixtoolbox.h @@ -0,0 +1,28 @@ +#ifndef KMIXTOOLBOX_H +#define KMIXTOOLBOX_H + +#include "qptrlist.h" +#include "qwidget.h" + +class Mixer; + +class KConfig; + +/** + * This toolbox contains various static methods that are shared throughout KMix. + * The reason, why it is not put in a common base class is, that the classes are + * very different and cannot be changed (e.g. KPanelApplet) without major headache. + */ + +class KMixToolBox { + public: + static void setIcons (QPtrList &mdws, bool on ); + static void setLabels (QPtrList &mdws, bool on ); + static void setTicks (QPtrList &mdws, bool on ); + static void setValueStyle (QPtrList &mdws, int vs ); + static void loadConfig(QPtrList &mdws, KConfig *config, const QString &grp, const QString &viewPrefix ); + static void saveConfig(QPtrList &mdws, KConfig *config, const QString &grp, const QString &viewPrefix ); +}; + + +#endif -- cgit v1.2.1