blob: 4883f85274ad6de2bf7600ac8fe4f132ff26a402 (
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
|
#pragma once
#include <tqwidget.h>
#include <tqstring.h>
class AlsaModel;
class AlsaDevice;
class TQScrollView;
class TQComboBox;
class KLedButton;
// ── One row per Switch element ──────────────────────────────────────────────
class AlsaSwitchRow : public TQWidget
{
TQ_OBJECT
public:
AlsaSwitchRow( AlsaDevice *dev, TQWidget *parent = 0 );
private slots:
void onMuteChanged( bool m );
void onLedToggled( bool on );
private:
AlsaDevice *m_dev;
KLedButton *m_led;
};
// ── One row per Enum element ────────────────────────────────────────────────
class AlsaEnumRow : public TQWidget
{
TQ_OBJECT
public:
AlsaEnumRow( AlsaDevice *dev, TQWidget *parent = 0 );
private slots:
void onEnumChanged( int id );
void onComboActivated( int idx );
private:
AlsaDevice *m_dev;
TQComboBox *m_combo;
};
// ── Device Settings page ────────────────────────────────────────────────────
class AlsaDevicesPage : public TQWidget
{
TQ_OBJECT
public:
explicit AlsaDevicesPage( AlsaModel *model, TQWidget *parent = 0 );
void setCard( int cardIndex );
private slots:
void onDeviceAdded( AlsaDevice * );
private:
void rebuild();
AlsaModel *m_model;
int m_cardIndex;
TQScrollView *m_scroll;
TQWidget *m_content;
};
|