blob: ed495a232cb57fe8aa3a0914f329498b2a6c513c (
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
|
#ifndef EQUALIZERVIEW_H
#define EQUALIZERVIEW_H
#include <tqwidget.h>
#include <kdialogbase.h>
#include <klistview.h>
class VBand;
class TQSlider;
class TQLabel;
class TQListViewItem;
class VPreset;
class TQHBoxLayout;
class EqualizerWidget;
class EqualizerLevel : public TQWidget
{
Q_OBJECT
public:
EqualizerLevel(TQWidget *parent, VBand band);
public slots:
void changed();
void changed(int);
void setBand(VBand band);
private:
VBand mBand;
TQSlider *mSlider;
TQLabel *mLabel;
};
class PresetList : public TDEListView
{
Q_OBJECT
public:
PresetList(TQWidget *parent, const char *name=0);
public:
void rename(TQListViewItem *item, int c);
};
class EqualizerView : public KDialogBase
{
Q_OBJECT
TQPtrList<EqualizerLevel> mBands;
public:
EqualizerView();
virtual void show();
TQListViewItem *itemFor(const TQString &filename);
TQListViewItem *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(TQListViewItem *);
void select(TQListViewItem*);
private:
bool first;
EqualizerWidget *mWidget;
TQHBoxLayout *bandsLayout;
// TQCheckBox *mOn;
// TQSlider *mPreamp;
PresetList *mPresets;
bool mGoingPreset;
// TQPushButton *mRemovePreset, *mAddPreset;
// TQFrame *mSliders;
// KIntNumInput *mBandCount;
};
#endif
|