diff options
author | svntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-28 15:47:01 +0000 |
---|---|---|
committer | svntcreutz <svntcreutz@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-08-28 15:47:01 +0000 |
commit | 9d7b5af5135a30bc7d0be7773acb00a8b8b4684b (patch) | |
tree | b985e99f1a2d25f336c01759b8882dde365d699f /src | |
parent | 08af382506368730a9e297e876f89f5d2e5b5fcb (diff) | |
download | vdr-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')
-rw-r--r-- | src/menuitemsetup.cpp | 18 | ||||
-rw-r--r-- | src/menuitemsetup.h | 6 | ||||
-rw-r--r-- | src/menusetup.cpp | 2 |
3 files changed, 22 insertions, 4 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); diff --git a/src/menuitemsetup.h b/src/menuitemsetup.h index b85400c..c268d0f 100644 --- a/src/menuitemsetup.h +++ b/src/menuitemsetup.h @@ -24,15 +24,19 @@ #define ___MENUITEMSETUP_H #include <vdr/menu.h> +#include <libxml++/libxml++.h> + +namespace xmlpp { class Element; } class cMenuItemSetup : public cOsdMenu { private: int _itemType; + const xmlpp::Element* _xmlElement; const char* itemTypeText[4]; public: - cMenuItemSetup(void); + cMenuItemSetup(const xmlpp::Element* xmlElement); virtual eOSState ProcessKey(eKeys Key); }; diff --git a/src/menusetup.cpp b/src/menusetup.cpp index 5fedd3a..5d8bfef 100644 --- a/src/menusetup.cpp +++ b/src/menusetup.cpp @@ -100,7 +100,7 @@ eOSState cMenuOrgSetup::ProcessKey(eKeys Key) break; case kGreen: - state = AddSubMenu(new cMenuItemSetup()); + state = AddSubMenu(new cMenuItemSetup(NULL)); break; case kYellow: |