diff options
author | mio <stigma@disroot.org> | 2025-01-21 17:00:36 +1000 |
---|---|---|
committer | mio <stigma@disroot.org> | 2025-03-07 10:23:58 +1000 |
commit | 5e57ab35afe0d5ddd960921a76ea11f22561f287 (patch) | |
tree | ab13fde0e97d135d828dd426445b1818da8c4aa7 /src/app/mainWindow.h | |
parent | adb9e2e081098d645141dc53a92f3060691a6497 (diff) | |
download | codeine-5e57ab35afe0d5ddd960921a76ea11f22561f287.tar.gz codeine-5e57ab35afe0d5ddd960921a76ea11f22561f287.zip |
Add context menu to status bar
It adds an item which toggles the visibility of the Analyzer when
watching videos.
Signed-off-by: mio <stigma@disroot.org>
Diffstat (limited to 'src/app/mainWindow.h')
-rw-r--r-- | src/app/mainWindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/app/mainWindow.h b/src/app/mainWindow.h index 3dae1e8..fbb6be4 100644 --- a/src/app/mainWindow.h +++ b/src/app/mainWindow.h @@ -46,6 +46,7 @@ namespace Codeine void fullScreenToggled( bool ); void setAudioChannels(const TQStringList&) const; void setSubtitleChannels(const TQStringList&) const; + void toggleAnalyzer(); private: void setupActions(); @@ -55,6 +56,7 @@ namespace Codeine TQPopupMenu *menu(const TQString&); + void contextMenuEvent(TQContextMenuEvent *event) override; virtual void timerEvent( TQTimerEvent* ); virtual void dragEnterEvent( TQDragEnterEvent* ); virtual void dropEvent( TQDropEvent* ); @@ -73,6 +75,10 @@ namespace Codeine TQWidgetStack *m_widgetStack; VolumeAction *m_volumeAction; + // Keep track of Analyzer visibility separately so swapping between + // Video & Audio correctly restores the state without re-reading the config. + bool m_showAnalyzer; + //undefined MainWindow( const MainWindow& ); MainWindow &operator=( const MainWindow& ); |