summaryrefslogtreecommitdiff
path: root/src/ui/oss/ossmixerwindow.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-24 14:45:24 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-24 14:45:24 -0400
commitff020f03a29dd26bda0b891c562226fa7a61eb19 (patch)
tree2152d68b222dfc654e55a2add1860cbc6e8e5bdf /src/ui/oss/ossmixerwindow.h
parent71d01139cf2ac4380c2ee13ecdcff77eb1d42897 (diff)
show error page in OSS mixer window when backend fails to open
If /dev/mixer can't be opened (missing device, bad permissions, etc.) the window now shows the error reason instead of silently not appearing. The tray is also skipped in the error case. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'src/ui/oss/ossmixerwindow.h')
-rw-r--r--src/ui/oss/ossmixerwindow.h22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/ui/oss/ossmixerwindow.h b/src/ui/oss/ossmixerwindow.h
index 220c0cd..0b9f087 100644
--- a/src/ui/oss/ossmixerwindow.h
+++ b/src/ui/oss/ossmixerwindow.h
@@ -10,6 +10,8 @@ class OssTray;
class TQComboBox;
class TQTabWidget;
class TQHBoxLayout;
+class TQLabel;
+class TQWidgetStack;
class TQWidget;
class OssMixerWindow : public TDEMainWindow
@@ -40,14 +42,16 @@ private slots:
private:
void rebuildTabs( int cardIdx );
- OssModel *m_model;
- OssTray *m_tray;
- bool m_posRestored;
- TQComboBox *m_cardCombo;
- TQTabWidget *m_tabs;
- TQWidget *m_outputPage;
- TQWidget *m_inputPage;
- TQHBoxLayout *m_outputLayout;
- TQHBoxLayout *m_inputLayout;
+ OssModel *m_model;
+ OssTray *m_tray;
+ bool m_posRestored;
+ TQWidgetStack *m_outerStack;
+ TQLabel *m_errorLabel;
+ TQComboBox *m_cardCombo;
+ TQTabWidget *m_tabs;
+ TQWidget *m_outputPage;
+ TQWidget *m_inputPage;
+ TQHBoxLayout *m_outputLayout;
+ TQHBoxLayout *m_inputLayout;
TQPtrList<OssDeviceWidget> m_widgets;
};