summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-08-28 23:11:26 +0000
committersvntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-08-28 23:11:26 +0000
commitbf8c71c5cf4efc261b3fb39875c85c4d07bb316b (patch)
treec831d746b4710894b6ab39201318b3379ef34ba9 /src
parent97e0594e9621ca3f2acab81378e5ab691e12783b (diff)
downloadvdr-plugin-menuorg-bf8c71c5cf4efc261b3fb39875c85c4d07bb316b.tar.gz
vdr-plugin-menuorg-bf8c71c5cf4efc261b3fb39875c85c4d07bb316b.tar.bz2
now get the item and can do thinks with it in cMenuItemSetup
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6106 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src')
-rw-r--r--src/menuitemsetup.cpp5
-rw-r--r--src/menuitemsetup.h1
-rw-r--r--src/osdxmlitem.cpp2
3 files changed, 7 insertions, 1 deletions
diff --git a/src/menuitemsetup.cpp b/src/menuitemsetup.cpp
index 7b485ba..3fac29b 100644
--- a/src/menuitemsetup.cpp
+++ b/src/menuitemsetup.cpp
@@ -32,6 +32,11 @@ cMenuItemSetup::cMenuItemSetup(cOsdXmlItem* osdXmlItem)
itemTypeText[2] = "Submenu";
itemTypeText[3] = "Command";
+ _osdXmlItem = osdXmlItem;
+ _newItemType = _osdXmlItem->getItemType();
+
+ esyslog("menuorg: _newItemType=%d", _newItemType);
+
Add(new cMenuEditStraItem(tr("Item Type"), (int*) &_newItemType, 4, itemTypeText));
switch(_newItemType)
diff --git a/src/menuitemsetup.h b/src/menuitemsetup.h
index 3598dc3..d56286c 100644
--- a/src/menuitemsetup.h
+++ b/src/menuitemsetup.h
@@ -29,6 +29,7 @@
class cMenuItemSetup : public cOsdMenu
{
private:
+ cOsdXmlItem* _osdXmlItem;
cOsdXmlItem::sItemType _newItemType;
const char* itemTypeText[4];
diff --git a/src/osdxmlitem.cpp b/src/osdxmlitem.cpp
index b52dc99..77e99f1 100644
--- a/src/osdxmlitem.cpp
+++ b/src/osdxmlitem.cpp
@@ -29,7 +29,7 @@ using namespace std;
using namespace xmlpp;
cOsdXmlItem::cOsdXmlItem(const char* Text, const xmlpp::Element* xmlElement, eOSState State=osUnknown)
-: cOsdItem()
+: cOsdItem(Text, State)
{
_xmlElement = xmlElement;
parseXmlElement();