summaryrefslogtreecommitdiff
path: root/src/RecursiveMenuSetup.h
diff options
context:
space:
mode:
authorsvntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-09-09 23:51:48 +0000
committersvntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f>2007-09-09 23:51:48 +0000
commit54a81935b17db6a192e51ccbb0c0521dc58ee282 (patch)
tree69e547754082a8e96da7370c6f4380da3d2da1d1 /src/RecursiveMenuSetup.h
parent3ec475ea9846e02414684de3b5943d7c3e7dd2ea (diff)
downloadvdr-plugin-menuorg-54a81935b17db6a192e51ccbb0c0521dc58ee282.tar.gz
vdr-plugin-menuorg-54a81935b17db6a192e51ccbb0c0521dc58ee282.tar.bz2
Changed a lot !!!
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6139 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/RecursiveMenuSetup.h')
-rw-r--r--src/RecursiveMenuSetup.h44
1 files changed, 23 insertions, 21 deletions
diff --git a/src/RecursiveMenuSetup.h b/src/RecursiveMenuSetup.h
index b09d6e2..8817ed4 100644
--- a/src/RecursiveMenuSetup.h
+++ b/src/RecursiveMenuSetup.h
@@ -24,32 +24,34 @@
#define ___RECURSIVEMENUSETUP_H_
#include <vdr/menu.h>
-#include "imenunodeprocessor.h"
+#include "IMenuNodeProcessor.h"
+class MenuConfigurationRepository;
class MenuNode;
class RecursiveMenuSetup: public cOsdMenu
{
- private:
- MenuNode& _rootMenu;
- bool _moving;
-
- public:
- RecursiveMenuSetup(MenuNode& rootMenu);
- ~RecursiveMenuSetup();
-
- // cOsdMenu
- eOSState ProcessKey(eKeys Key);
-
- private:
- void CreateMenuItems();
- void ShowHelp();
- void StartMoving();
- void StopMoving();
- eOSState MoveCurrentItem(bool moveUp);
- eOSState ShowEditMenuForSelectedItem();
- eOSState ShowSubOrEditMenuForSelectedItem();
- MenuNode* SelectedItem();
+ private:
+ MenuConfigurationRepository* _menuConfigurationRepository;
+ SubMenuNode* _menuConfiguration;
+ SubMenuNode* _currentRootMenuNode;
+ bool _moving;
+
+ public:
+ RecursiveMenuSetup(MenuConfigurationRepository* menuConfigurationRepository, SubMenuNode* rootMenuNode = NULL);
+ ~RecursiveMenuSetup();
+
+ // cOsdMenu
+ eOSState ProcessKey(eKeys Key);
+
+ private:
+ void CreateMenuItems();
+ void ShowHelp();
+ void StartMoving();
+ void StopMoving();
+ eOSState MoveCurrentItem(bool moveUp);
+ eOSState ShowEditMenuForSelectedItem(bool openSubmenuInsteadOfEditing);
+ MenuNode* SelectedItem();
};
#endif