summaryrefslogtreecommitdiffstats
path: root/kmix/kmixtoolbox.h
blob: 9b9d0c80a1396b26c7660fc97819667b2cf81e86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#ifndef KMIXTOOLBOX_H
#define KMIXTOOLBOX_H

#include "tqptrlist.h"
#include "tqwidget.h"

class Mixer;

class TDEConfig;

/**
 * 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  (TQPtrList<TQWidget> &mdws, bool on );
    static void setLabels (TQPtrList<TQWidget> &mdws, bool on );
    static void setTicks  (TQPtrList<TQWidget> &mdws, bool on );
    static void setValueStyle  (TQPtrList<TQWidget> &mdws, int vs );
    static void loadConfig(TQPtrList<TQWidget> &mdws, TDEConfig *config, const TQString &grp, const TQString &viewPrefix  );
    static void saveConfig(TQPtrList<TQWidget> &mdws, TDEConfig *config, const TQString &grp, const TQString &viewPrefix  );
};
    

#endif