summaryrefslogtreecommitdiff
path: root/menudetailview.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 /menudetailview.h
downloadskin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.gz
skin-nopacity-4b51af06327270caa4f38c31f28cdfbc1baabc4e.tar.bz2
Initial push nOpacity 0.0.3
Diffstat (limited to 'menudetailview.h')
-rw-r--r--menudetailview.h68
1 files changed, 68 insertions, 0 deletions
diff --git a/menudetailview.h b/menudetailview.h
new file mode 100644
index 0000000..51eb0e9
--- /dev/null
+++ b/menudetailview.h
@@ -0,0 +1,68 @@
+#ifndef __NOPACITY_MENUDETAILVIEW_H
+#define __NOPACITY_MENUDETAILVIEW_H
+
+class cNopacityMenuDetailView {
+protected:
+ cOsd *osd;
+ bool hasScrollbar;
+ int width, height, top;
+ int headerHeight;
+ int contentHeight;
+ int contentDrawPortHeight;
+ int border;
+ cTextWrapper content;
+ cFont *font, *fontHeader, *fontHeaderLarge;
+ cPixmap *pixmapHeader;
+ cPixmap *pixmapLogo;
+ cPixmap *pixmapContent;
+ void DrawContent(void);
+public:
+ cNopacityMenuDetailView(cOsd *osd);
+ virtual ~cNopacityMenuDetailView(void);
+ void SetGeometry(int width, int height, int top, int contentBorder, int headerHeight);
+ virtual void SetFonts(void) = 0;
+ void SetContent(const char *textContent);
+ bool Scrollable(void) {return hasScrollbar;}
+ double ScrollbarSize(void);
+ double Offset(void);
+ bool Scroll(bool Up, bool Page);
+ virtual void CreatePixmaps(void) = 0;
+ virtual void Render(void) = 0;
+};
+
+class cNopacityMenuDetailEventView : public cNopacityMenuDetailView {
+private:
+ void DrawHeader(void);
+ const char *channelName;
+ const cEvent *event;
+public:
+ cNopacityMenuDetailEventView(cOsd *osd, const cEvent *Event, const char *channel);
+ virtual ~cNopacityMenuDetailEventView(void);
+ void CreatePixmaps(void);
+ void SetFonts(void);
+ void Render(void);
+};
+
+class cNopacityMenuDetailRecordingView : public cNopacityMenuDetailView {
+private:
+ void DrawHeader(void);
+ const cRecording *recording;
+ const cRecordingInfo *info;
+public:
+ cNopacityMenuDetailRecordingView(cOsd *osd, const cRecording *Recording);
+ virtual ~cNopacityMenuDetailRecordingView(void);
+ void CreatePixmaps(void);
+ void SetFonts(void);
+ void Render(void);
+};
+
+class cNopacityMenuDetailTextView : public cNopacityMenuDetailView {
+private:
+public:
+ cNopacityMenuDetailTextView(cOsd *osd);
+ virtual ~cNopacityMenuDetailTextView(void);
+ void CreatePixmaps(void);
+ void SetFonts(void);
+ void Render(void);
+};
+#endif //__NOPACITY_MENUDETAILVIEW_H \ No newline at end of file