summaryrefslogtreecommitdiff
path: root/src/ui/oss/ossmixerwindow.h
diff options
context:
space:
mode:
authorCalvin Morrison <calvin@pobox.com>2026-05-29 23:00:50 -0400
committerCalvin Morrison <calvin@pobox.com>2026-05-29 23:01:37 -0400
commitf929977083c64263c54de43554a6cb64814caa9c (patch)
tree55c49d946ab05f7f60880076b89966b94d122de5 /src/ui/oss/ossmixerwindow.h
parent4c9dd31005405aa0a32e36e4b500d773da9a1264 (diff)
add global hotkeys for volume and mute across all backends
Implements TDE Global hotkeys (volume up, volume down, mute, and mic mute for PulseAudio) like KMIX had Keys are unbound by default and configurable via Settings → Configure Global Shortcuts. OSS/ALSA target the user-configured preferred output device. Pusle is based on the current default device for mute/mic mute. Signed-off-by: Calvin Morrison <calvin@pobox.com>
Diffstat (limited to 'src/ui/oss/ossmixerwindow.h')
-rw-r--r--src/ui/oss/ossmixerwindow.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/ui/oss/ossmixerwindow.h b/src/ui/oss/ossmixerwindow.h
index 0b9f087..fec2bab 100644
--- a/src/ui/oss/ossmixerwindow.h
+++ b/src/ui/oss/ossmixerwindow.h
@@ -13,6 +13,7 @@ class TQHBoxLayout;
class TQLabel;
class TQWidgetStack;
class TQWidget;
+class TDEGlobalAccel;
class OssMixerWindow : public TDEMainWindow
{
@@ -31,6 +32,12 @@ public slots:
void showPreferences();
void showAbout();
+private slots:
+ void slotVolumeUp();
+ void slotVolumeDown();
+ void slotToggleMute();
+ void slotConfigureGlobalShortcuts();
+
protected:
bool queryClose();
void showEvent( TQShowEvent *e );
@@ -42,8 +49,9 @@ private slots:
private:
void rebuildTabs( int cardIdx );
- OssModel *m_model;
- OssTray *m_tray;
+ OssModel *m_model;
+ OssTray *m_tray;
+ TDEGlobalAccel *m_globalAccel;
bool m_posRestored;
TQWidgetStack *m_outerStack;
TQLabel *m_errorLabel;