summaryrefslogtreecommitdiff
path: root/src/ui/preferencesdlg.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/preferencesdlg.h
parentb30b234afa3ec18156e432b9f2a7ad2ca80cc672 (diff)
parentd9876849f0208291cc7010522e85593703ff52bd (diff)
Merge branch 'and-the-oss-you-rode-in-on'
Diffstat (limited to 'src/ui/preferencesdlg.h')
-rw-r--r--src/ui/preferencesdlg.h64
1 files changed, 58 insertions, 6 deletions
diff --git a/src/ui/preferencesdlg.h b/src/ui/preferencesdlg.h
index 09d740f..85f59c3 100644
--- a/src/ui/preferencesdlg.h
+++ b/src/ui/preferencesdlg.h
@@ -1,17 +1,39 @@
#pragma once
#include <kdialogbase.h>
+#include <tqvaluelist.h>
+#include <tqstring.h>
+#include <tqstringlist.h>
class TQCheckBox;
class TQComboBox;
+class TQLabel;
class TQSpinBox;
+class TQWidgetStack;
+
+#ifdef WITH_ALSA
+class AlsaModel;
+#endif
+
+#ifdef WITH_OSS
+class OssModel;
+#endif
class PreferencesDlg : public KDialogBase
{
TQ_OBJECT
public:
- PreferencesDlg( TQWidget *parent = 0 );
+ explicit PreferencesDlg( TQWidget *parent = 0 );
+
+#ifdef WITH_ALSA
+ PreferencesDlg( AlsaModel *model, TQWidget *parent = 0 );
+#endif
+
+#ifdef WITH_OSS
+ PreferencesDlg( OssModel *model, TQWidget *parent = 0 );
+#endif
+
void load();
signals:
@@ -23,22 +45,52 @@ protected slots:
private slots:
void onPopupModeChanged( int idx );
+ void onBackendComboChanged( int idx );
+ void onNoTabsToggled( bool checked );
private:
+ void buildGeneralPage();
+ void buildBackendPage();
void save();
- TQCheckBox *m_dockInTray;
- TQComboBox *m_popupMode;
+ // Maps combo index → backend key ("pulse", "alsa", "oss")
+ TQStringList m_backendIds;
+
+ // General — shared
+ TQComboBox *m_backend;
+ TQCheckBox *m_dockInTray;
+ TQComboBox *m_popupMode;
+ TQSpinBox *m_scrollStep;
+ TQCheckBox *m_confirmQuit;
+ TQCheckBox *m_middleClickMute;
+ TQCheckBox *m_startOnLogin;
+
+ // Backend settings stack
+ TQWidgetStack *m_backendStack;
+
+ // Pulse widgets — always built, may be on the inactive stack page
TQCheckBox *m_popupShowOutput;
TQCheckBox *m_popupShowMic;
TQCheckBox *m_popupShowApps;
TQCheckBox *m_showRecTray;
- TQCheckBox *m_confirmQuit;
- TQSpinBox *m_scrollStep;
-
TQCheckBox *m_noTabs;
+ TQLabel *m_showTabsLabel;
TQCheckBox *m_showOutput;
TQCheckBox *m_showInput;
TQCheckBox *m_showPlayback;
TQCheckBox *m_showRecording;
+
+#ifdef WITH_ALSA
+ AlsaModel *m_alsaModel;
+ TQComboBox *m_trayDevice;
+ TQValueList<int> m_trayCardIndices;
+ TQValueList<TQString> m_trayDeviceNames;
+#endif
+
+#ifdef WITH_OSS
+ OssModel *m_ossModel;
+ TQComboBox *m_ossTrayDevice;
+ TQValueList<int> m_ossTrayCardIndices;
+ TQValueList<TQString> m_ossTrayDeviceNames;
+#endif
};