summaryrefslogtreecommitdiff
path: root/src/menuitemsetup.cpp
diff options
context:
space:
mode:
authorsvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-08-28 15:47:01 +0000
committersvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-08-28 15:47:01 +0000
commit9d7b5af5135a30bc7d0be7773acb00a8b8b4684b (patch)
treeb985e99f1a2d25f336c01759b8882dde365d699f /src/menuitemsetup.cpp
parent08af382506368730a9e297e876f89f5d2e5b5fcb (diff)
downloadvdr-plugin-menuorg-9d7b5af5135a30bc7d0be7773acb00a8b8b4684b.tar.gz
vdr-plugin-menuorg-9d7b5af5135a30bc7d0be7773acb00a8b8b4684b.tar.bz2
again some definitions for the osd made
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6101 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/menuitemsetup.cpp')
-rw-r--r--src/menuitemsetup.cpp18
1 files changed, 16 insertions, 2 deletions
diff --git a/src/menuitemsetup.cpp b/src/menuitemsetup.cpp
index 6177e0a..382cfee 100644
--- a/src/menuitemsetup.cpp
+++ b/src/menuitemsetup.cpp
@@ -22,8 +22,11 @@
#include "menuitemsetup.h"
#include <iostream>
+#include <libxml++/libxml++.h>
-cMenuItemSetup::cMenuItemSetup(void)
+using namespace xmlpp;
+
+cMenuItemSetup::cMenuItemSetup(const Element* xmlElement)
:cOsdMenu(tr("Item Setup"))
{
itemTypeText[0] = "System";
@@ -31,33 +34,44 @@ cMenuItemSetup::cMenuItemSetup(void)
itemTypeText[2] = "Submenu";
itemTypeText[3] = "Command";
+ _xmlElement = xmlElement;
+
Add(new cMenuEditStraItem(tr("Item Type"),&_itemType, 4, itemTypeText));
switch(_itemType)
{
case 0:
// Add listItem of valid System Items
+ //Add(new cMenuEditStraItem(tr("available System Items"),))
// Add textItem for title attribute
- Add()
+ //Add(new cMenuEditStrItem(tr("title"), VAR, 64, NULL))
break;
case 1:
// Add listItem of unused plugins or a submenu with the items
+ //Add(new cMenuEditStraItem(tr("available Plugins Items"),))
// Add textItem for title attribute
+ //Add(new cMenuEditStrItem(tr("title"), VAR, 64, NULL))
break;
case 2:
// Add textItem for name attribute
+ //Add(new cMenuEditStrItem(tr("name"), VAR, 64, NULL))
break;
case 3:
// Add textItem for name attribute
+ //Add(new cMenuEditStrItem(tr("name"), VAR, 64, NULL))
// Add textItem for command attribute
+ //Add(new cMenuEditStrItem(tr("command"), VAR, 64, NULL))
// Add boolItem for confirm attribute
+ //Add(new cMenuEditBoolItem(tr("confirm"), &_confirm));
break;
}
}
+// TODO: When exit check if the type was menu and now is changed -> bring a warning on the osd that the subitems will be deleted
+
eOSState cMenuItemSetup::ProcessKey(eKeys Key)
{
eOSState state = cOsdMenu::ProcessKey(Key);