summaryrefslogtreecommitdiff
path: root/src/ui/alsa/alsadevicespage.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-22 10:16:15 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-22 10:16:15 -0400
commitcdf72828e599a63fca4a0f1ceeb3145fba581aa3 (patch)
tree16ee02f0ce1e317a09fd4c2a3f9fbdc04aadfe60 /src/ui/alsa/alsadevicespage.h
parentb30b234afa3ec18156e432b9f2a7ad2ca80cc672 (diff)
parentd9876849f0208291cc7010522e85593703ff52bd (diff)
Merge branch 'and-the-oss-you-rode-in-on'
Diffstat (limited to 'src/ui/alsa/alsadevicespage.h')
-rw-r--r--src/ui/alsa/alsadevicespage.h66
1 files changed, 66 insertions, 0 deletions
diff --git a/src/ui/alsa/alsadevicespage.h b/src/ui/alsa/alsadevicespage.h
new file mode 100644
index 0000000..4883f85
--- /dev/null
+++ b/src/ui/alsa/alsadevicespage.h
@@ -0,0 +1,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;
+};