From 7ee95418c543dd4f1c53facf937a043eb8dfc5f4 Mon Sep 17 00:00:00 2001 From: svntcreutz Date: Sun, 19 Aug 2007 23:19:00 +0000 Subject: reverted command stuff changes in dtd and added it in _dtd const git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/submenu/trunk@5840 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- TODO | 2 +- menuorg.dtd | 20 ++++++++++++++++---- src/menuconfiguration.cpp | 11 ++++++++--- 3 files changed, 25 insertions(+), 8 deletions(-) diff --git a/TODO b/TODO index 3a88b0e..128d1e2 100644 --- a/TODO +++ b/TODO @@ -2,7 +2,7 @@ Some Stuff that whe would integrade in future version: - Setup OSD for managing the submenu -- reload the config file when openuing mainmenu (only when menu configuration has been changed - checking timestamp of xml!) +- reload the config file when opening mainmenu (only when menu configuration has been changed - checking timestamp of xml!) - alternate titles for plugins - command handling like the setup plugin - Enable / Disable in OSD-Setup diff --git a/menuorg.dtd b/menuorg.dtd index 576c9c8..f0399db 100644 --- a/menuorg.dtd +++ b/menuorg.dtd @@ -19,10 +19,22 @@ $Id$ --> - - + - + - + + + + diff --git a/src/menuconfiguration.cpp b/src/menuconfiguration.cpp index 11f0820..b95c330 100644 --- a/src/menuconfiguration.cpp +++ b/src/menuconfiguration.cpp @@ -33,13 +33,18 @@ using namespace xmlpp; using namespace std; const string MenuConfiguration::_dtd = - "\n" + "\n" "\n" "\n" "\n" "\n" "\n" - "\n"; + "\n" + "\n" + ""; MenuNode* MenuConfiguration::LoadMenu(string menuFileName) { @@ -61,7 +66,7 @@ MenuNode* MenuConfiguration::LoadMenu(string menuFileName) const Element* rootElement = parser.get_document()->get_root_node(); ParseElement(rootElement, menuRoot); - + AddUnconfiguredPlugins(menuRoot); } catch(const std::exception& ex) -- cgit v1.2.3