summaryrefslogtreecommitdiff
path: root/src/ui/preferencesdlg.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-17 23:38:18 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-17 23:38:18 -0400
commit3909a06fe6786027c83e3adaef89c343cde4fbe3 (patch)
treef5ea87c98b50764c8ad87e598f274319df0e74db /src/ui/preferencesdlg.h
parent311b69c14203860ab6d98bd11633eea287c8f04e (diff)
ALSA backend, backend switcher, UX fixesalsa-wip
- ALSA backend: AlsaModel, AlsaDevice, AlsaMixerWindow, AlsaTray, AlsaPopup - BackendController: live pulse↔alsa switching, preserves window position/visibility - PA shutdown fix: stop mainloop thread before disconnect/free to prevent crash - Exit crash fix: BackendController deleted explicitly before TQApplication exits - Waiting-for-PulseAudio placeholder when PA not connected - Preferences: live backend stack (Pulse/ALSA), Startup/Exit card with autostart, Recording card, no-tabs greying, remove stale "requires restart" label - Recording tray: track source outputs directly; fix LED init in popup; level meter forwarding for monitor-source recordings via m_monitorSourceToSink - TmixTray: fix config group General→Tray for scroll/mute/popup settings; RecordingTray suppresses right-click menu - audiodevice.h: add recordingActive() virtual accessor Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/ui/preferencesdlg.h')
-rw-r--r--src/ui/preferencesdlg.h45
1 files changed, 39 insertions, 6 deletions
diff --git a/src/ui/preferencesdlg.h b/src/ui/preferencesdlg.h
index 09d740f..93ac377 100644
--- a/src/ui/preferencesdlg.h
+++ b/src/ui/preferencesdlg.h
@@ -1,17 +1,30 @@
#pragma once
#include <kdialogbase.h>
+#include <tqvaluelist.h>
+#include <tqstring.h>
class TQCheckBox;
class TQComboBox;
+class TQLabel;
class TQSpinBox;
+class TQWidgetStack;
+
+#ifdef WITH_ALSA
+class AlsaModel;
+#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
+
void load();
signals:
@@ -23,22 +36,42 @@ 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;
+ // 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
};