summaryrefslogtreecommitdiff
path: root/displaytracks.h
diff options
context:
space:
mode:
authorroot <root@maschine.(none)>2012-11-27 02:11:15 +0100
committerroot <root@maschine.(none)>2012-11-27 02:11:15 +0100
commit4b51af06327270caa4f38c31f28cdfbc1baabc4e (patch)
tree2556e7eb912d5f1352866924cfe3e6f3d2dc13bb /displaytracks.h
downloadskin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.gz
skin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.bz2
Initial push nOpacity 0.0.3
Diffstat (limited to 'displaytracks.h')
-rw-r--r--displaytracks.h39
1 files changed, 39 insertions, 0 deletions
diff --git a/displaytracks.h b/displaytracks.h
new file mode 100644
index 0000000..83e388d
--- /dev/null
+++ b/displaytracks.h
@@ -0,0 +1,39 @@
+#ifndef __NOPACITY_DISPLAYTRACKS_H
+#define __NOPACITY_DISPLAYTRACKS_H
+
+class cNopacityDisplayTracks : public cSkinDisplayTracks, cThread {
+private:
+ cOsd *osd;
+ int FrameTime;
+ int FadeTime;
+ int width, height;
+ int menuItemWidth;
+ int menuItemHeight;
+ bool initial;
+ int currentIndex;
+ int numTracks;
+ cPixmap *pixmapContainer;
+ cPixmap *pixmapHeader;
+ cPixmap *pixmapIcon;
+ cList<cNopacityMenuItem> menuItems;
+ int handleBackgrounds[2];
+ cFont *font;
+ cFont *fontHeader;
+ virtual void Action(void);
+ void SetItem(const char *Text, int Index, bool Current);
+ static cBitmap bmStereo, bmDolbyDigital;
+ void SetGeometry(void);
+ void CreatePixmaps(void);
+ void CreateFonts(void);
+ void CreateBackgroundImages(void);
+ void DrawHeader(const char *Title);
+public:
+ cNopacityDisplayTracks(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 \ No newline at end of file