blob: 05c5596cb224fb95b3db227409bf6f53b85c491b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#ifndef __NOPACITY_DISPLAYTRACKS_H
#define __NOPACITY_DISPLAYTRACKS_H
#include <vdr/skins.h>
#include <vdr/thread.h>
#include "menuitem.h"
class cNopacityDisplayTracks : public cSkinDisplayTracks, cThread {
private:
cOsd *osd;
cImageCache *imgCache;
int FrameTime;
int FadeTime;
int width, height;
int menuItemWidth;
int menuItemHeight;
bool initial;
int currentIndex;
int numTracks;
int audioChannelLast;
cPixmap *pixmapContainer;
cPixmap *pixmapHeader;
cPixmap *pixmapHeaderAudio;
cPixmap *pixmapIcon;
cList<cNopacityMenuItem> menuItems;
virtual void Action(void);
void SetItem(const char *Text, int Index, bool Current);
void SetGeometry(void);
void CreatePixmaps(void);
void DrawHeader(const char *Title);
public:
cNopacityDisplayTracks(cImageCache *imgCache, const char *Title, int NumTracks, const char * const *Tracks);
virtual ~cNopacityDisplayTracks();
virtual void SetTrack(int Index, const char * const *Tracks);
virtual void SetAudioChannel(int AudioChannel);
virtual void Flush(void);
};
#endif //__NOPACITY_DISPLAYTRACKS_H
|