summaryrefslogtreecommitdiffstats
path: root/src/app/audioView.h
diff options
context:
space:
mode:
authormio <stigma@disroot.org>2025-02-02 13:59:13 +1000
committermio <stigma@disroot.org>2025-03-07 10:29:47 +1000
commit430d1bae9d27e4c3f9846fb999f4cbc8c29051dd (patch)
tree4c2c6b7d872add1a5c2a7a22bda5831ec8dc9db1 /src/app/audioView.h
parent5e57ab35afe0d5ddd960921a76ea11f22561f287 (diff)
downloadcodeine-430d1bae9d27e4c3f9846fb999f4cbc8c29051dd.tar.gz
codeine-430d1bae9d27e4c3f9846fb999f4cbc8c29051dd.zip
Add context menu to audioView
Allows people to toggle the analyzer visibility. Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'src/app/audioView.h')
-rw-r--r--src/app/audioView.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/app/audioView.h b/src/app/audioView.h
index 592e38f..f793e5d 100644
--- a/src/app/audioView.h
+++ b/src/app/audioView.h
@@ -12,8 +12,17 @@ namespace Codeine
class AudioView : public TQFrame
{
+ TQ_OBJECT
+
public:
AudioView(TQWidget *parent, const char *name = nullptr);
+ ~AudioView();
+
+ protected:
+ void contextMenuEvent(TQContextMenuEvent *e) override;
+
+ protected slots:
+ void slotToggleVisibility();
private:
TQWidget *m_analyzer;