diff options
| author | Calvin Morrison <calvin@pobox.com> | 2026-05-17 23:38:18 -0400 |
|---|---|---|
| committer | Calvin Morrison <calvin@pobox.com> | 2026-05-17 23:38:18 -0400 |
| commit | 3909a06fe6786027c83e3adaef89c343cde4fbe3 (patch) | |
| tree | f5ea87c98b50764c8ad87e598f274319df0e74db /src/ui/alsa/alsamixerwindow.h | |
| parent | 311b69c14203860ab6d98bd11633eea287c8f04e (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/alsa/alsamixerwindow.h')
| -rw-r--r-- | src/ui/alsa/alsamixerwindow.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/ui/alsa/alsamixerwindow.h b/src/ui/alsa/alsamixerwindow.h new file mode 100644 index 0000000..8d8ef4f --- /dev/null +++ b/src/ui/alsa/alsamixerwindow.h @@ -0,0 +1,55 @@ +#pragma once + +#include <tdemainwindow.h> +#include <tqptrlist.h> + +class AlsaModel; +class AlsaDevice; +class AlsaDevicesPage; +#include "alsadevicewidget.h" +class AlsaTray; +class TQComboBox; +class TQTabWidget; +class TQHBoxLayout; +class TQWidget; + +class AlsaMixerWindow : public TDEMainWindow +{ + TQ_OBJECT +public: + explicit AlsaMixerWindow( AlsaModel *model, TQWidget *parent = 0 ); + + void setTray( AlsaTray *tray ) { m_tray = tray; } + +signals: + void settingsChanged(); + +public slots: + void bringToFront(); + void quit(); + +protected: + bool queryClose(); + void showEvent( TQShowEvent *e ); + +private slots: + void onCardChanged( int idx ); + void onDeviceAdded( AlsaDevice *dev ); + void showPreferences(); + void showAbout(); + +private: + void rebuildTabs( int cardIndex ); + + AlsaModel *m_model; + AlsaTray *m_tray; + bool m_posRestored; + TQComboBox *m_cardCombo; + TQTabWidget *m_tabs; + TQWidget *m_outputPage; + TQWidget *m_inputPage; + TQHBoxLayout *m_outputLayout; + TQHBoxLayout *m_inputLayout; + TQPtrList<AlsaDeviceWidget> m_widgets; + AlsaDevicesPage *m_devicesPage; +}; |
