From b8894a29b2a7ea036ea93d34007f4d0cef030d0b Mon Sep 17 00:00:00 2001 From: mio Date: Sun, 10 Nov 2024 19:39:43 +1000 Subject: Create a AudioView widget for audio-only streams Currently Codeine will show a blank area when playing an audio-only file, such as music. This patch adds a new widget that contains an instance of the Analyzer::Block class, so instead of a blank area it contains a "visualizer" of sorts. Signed-off-by: mio (cherry picked from commit 5cfecec40972f7d6f77879e1209bc10d6019625b) --- src/app/mainWindow.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/app/mainWindow.h') diff --git a/src/app/mainWindow.h b/src/app/mainWindow.h index 634d444..3dae1e8 100644 --- a/src/app/mainWindow.h +++ b/src/app/mainWindow.h @@ -11,11 +11,14 @@ class KURL; class TQLabel; class TQPopupMenu; class TQSlider; +class TQWidgetStack; class VolumeAction; namespace Codeine { + class AudioView; + class MainWindow : public TDEMainWindow { TQ_OBJECT @@ -66,6 +69,8 @@ namespace Codeine TQLabel *m_timeLabel; TQLabel *m_titleLabel; TQWidget *m_analyzer; + AudioView *m_audioView; + TQWidgetStack *m_widgetStack; VolumeAction *m_volumeAction; //undefined -- cgit v1.2.3