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/balanceknob.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/ui/balanceknob.h (limited to 'src/ui/balanceknob.h') diff --git a/src/ui/balanceknob.h b/src/ui/balanceknob.h new file mode 100644 index 0000000..e8d0be2 --- /dev/null +++ b/src/ui/balanceknob.h @@ -0,0 +1,34 @@ +#pragma once + +#include + +class BalanceKnob : public TQWidget +{ + TQ_OBJECT + +public: + BalanceKnob( int minVal, int maxVal, int val, TQWidget *parent = 0 ); + + int value() const { return m_value; } + TQSize sizeHint() const { return TQSize(30, 30); } + +public slots: + void setValue( int v ); + +signals: + void valueChanged( int v ); + +protected: + void paintEvent( TQPaintEvent * ); + void mousePressEvent( TQMouseEvent *e ); + void mouseMoveEvent( TQMouseEvent *e ); + void mouseReleaseEvent( TQMouseEvent *e ); + void mouseDoubleClickEvent( TQMouseEvent *e ); + void wheelEvent( TQWheelEvent *e ); + +private: + int m_min, m_max, m_value; + int m_dragY; + int m_dragValue; + bool m_dragging; +}; -- cgit v1.2.3