From e776bc768cf9afca1867200e25d64d315cd72a3e Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Fri, 15 May 2026 10:10:04 -0400 Subject: Full mixer implementation — tray, popup, prefs, devices tab with port indicators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the complete tmix feature set built since the initial skeleton: balance knob, level meters, KLed mute button, system tray with scroll-wheel volume and recording indicator, tray popup, preferences dialog, right-click context menus, single-instance enforcement, scroll area, window geometry persistence, and Devices tab with PA card profile switcher and live port availability indicators (2-column layout, in-place updates on plug/unplug). Co-Authored-By: Claude Sonnet 4.6 --- src/ui/tmixtray.h | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/ui/tmixtray.h (limited to 'src/ui/tmixtray.h') diff --git a/src/ui/tmixtray.h b/src/ui/tmixtray.h new file mode 100644 index 0000000..08a5fb5 --- /dev/null +++ b/src/ui/tmixtray.h @@ -0,0 +1,36 @@ +#pragma once + +#include + +class AudioDevice; +class PulseModel; +class TmixPopup; + +class TmixTray : public KSystemTray +{ + TQ_OBJECT + +public: + TmixTray( TQWidget *parent ); + void setDevice( AudioDevice *dev ); + void setModel( PulseModel *model ); + +public slots: + void updateIcon(); + void onRecordingActive( bool active ); + void onDeviceAdded( AudioDevice *dev ); + +protected: + void mousePressEvent( TQMouseEvent *e ); + void wheelEvent( TQWheelEvent *e ); + void contextMenuAboutToShow( TDEPopupMenu *menu ); + +private: + void updateRecordingTray(); + + PulseModel *m_model; + AudioDevice *m_device; + KSystemTray *m_recTray; + TmixPopup *m_popup; + int m_recordingCount; +}; -- cgit v1.2.3