summaryrefslogtreecommitdiff
path: root/src/ui/alsa/alsatray.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/alsa/alsatray.h
parentb30b234afa3ec18156e432b9f2a7ad2ca80cc672 (diff)
parentd9876849f0208291cc7010522e85593703ff52bd (diff)
Merge branch 'and-the-oss-you-rode-in-on'
Diffstat (limited to 'src/ui/alsa/alsatray.h')
-rw-r--r--src/ui/alsa/alsatray.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/ui/alsa/alsatray.h b/src/ui/alsa/alsatray.h
new file mode 100644
index 0000000..8f518fa
--- /dev/null
+++ b/src/ui/alsa/alsatray.h
@@ -0,0 +1,35 @@
+#pragma once
+
+#include <ksystemtray.h>
+
+class AlsaModel;
+class AlsaDevice;
+class AlsaMixerWindow;
+class AlsaPopup;
+
+class AlsaTray : public KSystemTray
+{
+ TQ_OBJECT
+public:
+ AlsaTray( AlsaModel *model, AlsaMixerWindow *win, TQWidget *parent = 0 );
+
+public slots:
+ void updateIcon();
+
+protected:
+ void mousePressEvent( TQMouseEvent *e );
+ void wheelEvent( TQWheelEvent *e );
+ void contextMenuAboutToShow( TDEPopupMenu *menu );
+
+private slots:
+ void onPreferredChanged( AlsaDevice *dev );
+
+private:
+ void middleClickMute();
+
+private:
+ AlsaModel *m_model;
+ AlsaMixerWindow *m_win;
+ AlsaDevice *m_output;
+ AlsaPopup *m_popup;
+};