From aeb1dc8099631e4ce427e7e07997acf02c75c9cf Mon Sep 17 00:00:00 2001 From: kamel5 Date: Tue, 24 May 2022 17:27:53 +0200 Subject: Add volume bar to main menus --- displaymenu.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'displaymenu.h') diff --git a/displaymenu.h b/displaymenu.h index 83b093c..1228adc 100644 --- a/displaymenu.h +++ b/displaymenu.h @@ -1,3 +1,5 @@ +#include "volumebox.h" + typedef struct { const cEvent *Event = NULL; const cTimer *Timer = NULL; @@ -112,7 +114,10 @@ private: cString lastHeader; int lastSeen; int Margin; + int lastVolume; + time_t lastVolumeTime; cDrawDescription *drawDescription; + cLCARSNGVolumeBox *volumeBox; static cBitmap bmArrowUp, bmArrowDown, bmTransferMode; void SetCoordinateY(int y); void DrawMainFrameUpper(tColor Color, tColor ColorBg); @@ -140,6 +145,7 @@ private: void DrawPlay(cControl *Control); void DrawInfo(const cEvent *Event, bool WithTime); void DrawSeen(int Current, int Total); + void DrawVolume(void); void DrawTextScrollbar(void); bool DrawProgressBar(int x, int y, int width, const char *text, tColor ColorFg, tColor ColorBg); public: -- cgit v1.2.3