summaryrefslogtreecommitdiff
path: root/dxr3.h
diff options
context:
space:
mode:
authoraustriancoder <austriancoder>2004-08-05 23:05:21 +0000
committeraustriancoder <austriancoder>2004-08-05 23:05:21 +0000
commitc47666d42f7972e1b51f9de61ce0fa27c72f3127 (patch)
treee34a87e37901b7f892fb6f330ccb15bcba30039b /dxr3.h
downloadvdr-plugin-dxr3-c47666d42f7972e1b51f9de61ce0fa27c72f3127.tar.gz
vdr-plugin-dxr3-c47666d42f7972e1b51f9de61ce0fa27c72f3127.tar.bz2
initial import
Diffstat (limited to 'dxr3.h')
-rw-r--r--dxr3.h107
1 files changed, 107 insertions, 0 deletions
diff --git a/dxr3.h b/dxr3.h
new file mode 100644
index 0000000..069f488
--- /dev/null
+++ b/dxr3.h
@@ -0,0 +1,107 @@
+#ifndef _DXR3_H_
+#define _DXR3_H_
+
+// --- cMenuSetupDxr3 -------------------------------------------------------
+const char* menuVideoModes[] =
+{
+ "PAL",
+ "PAL60",
+ "NTSC"
+};
+
+// debug modes
+const char* menuDebugModes[] =
+{
+ "Low",
+ "Everything"
+};
+
+// ==================================
+// setup screen
+class cMenuSetupDxr3 : public cMenuSetupPage
+{
+public:
+ cMenuSetupDxr3();
+
+protected:
+ virtual void Store();
+
+private:
+ int newUseDigitalOut;
+ int newDxr3Card;
+ int newVideoMode;
+ int newDebug;
+ int newDebugLevel;
+};
+
+
+// ==================================
+enum eDxr3OsdItem
+{
+ DXR3_RESET_HARDWARE,
+ DXR3_FORCE_LETTER_BOX,
+ DXR3_DIGITAL_OUT,
+ DXR3_ANALOG_OUT,
+ DXR3_AC3_OUT
+};
+
+// ==================================
+// osd item
+class cDxr3OsdItem : public cOsdItem
+{
+public:
+ cDxr3OsdItem(const char* text, eDxr3OsdItem item) : cOsdItem(text), m_item(item) {}
+
+ // process fb input
+ eOSState ProcessKey(eKeys Key);
+
+protected:
+ eDxr3OsdItem m_item;
+};
+
+// ==================================
+// main screen
+class cDxr3OsdMenu : public cOsdMenu
+{
+public:
+ cDxr3OsdMenu(): cOsdMenu("DXR3 Adjustment")
+ {
+ Clear();
+ SetHasHotkeys();
+ Add(new cDxr3OsdItem(hk("Reset DXR3 Hardware"), DXR3_RESET_HARDWARE));
+ Add(new cDxr3OsdItem(hk("Toggle Force LetterBox"), DXR3_FORCE_LETTER_BOX));
+
+ if (cDxr3ConfigData::Instance().GetUseDigitalOut())
+ {
+ Add(new cDxr3OsdItem(hk("Analog Output"), DXR3_ANALOG_OUT));
+ }
+ else
+ {
+ Add(new cDxr3OsdItem(hk("Digital Output"), DXR3_DIGITAL_OUT));
+ }
+/*
+ if (cDxr3ConfigData::Instance().GetUseDigitalOut())
+ {
+ Add(new cDxr3OsdItem(hk("Analog Output"), DXR3_ANALOG_OUT));
+
+ if (cDxr3ConfigData::Instance().GetAc3OutPut())
+ {
+ Add(new cDxr3OsdItem(hk("AC3 Output Off"), DXR3_AC3_OUT));
+ }
+ else
+ {
+ if (cDxr3Interface::Instance().IsAc3Present())
+ {
+ Add(new cDxr3OsdItem(hk("AC3 Output On"), DXR3_AC3_OUT));
+ }
+ }
+ }
+ else
+ {
+ Add(new cDxr3OsdItem(hk("Digital Output"), DXR3_DIGITAL_OUT));
+ }
+ */
+ }
+};
+
+#endif /*_DXR3_H_*/