diff options
author | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-09-05 00:00:12 +0000 |
---|---|---|
committer | svntobi <svntobi@cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f> | 2007-09-05 00:00:12 +0000 |
commit | d1a77c9d59ce17e3351b4e999b017dc694a6e422 (patch) | |
tree | 838cd95c32e6ca55e373b69222525d134df06b47 /src/RecursiveMenuSetup.h | |
parent | a9947ef10738a3db3f4d8443819fc852840a2c9d (diff) | |
download | vdr-plugin-menuorg-d1a77c9d59ce17e3351b4e999b017dc694a6e422.tar.gz vdr-plugin-menuorg-d1a77c9d59ce17e3351b4e999b017dc694a6e422.tar.bz2 |
intermediate commit
git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6133 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f
Diffstat (limited to 'src/RecursiveMenuSetup.h')
-rw-r--r-- | src/RecursiveMenuSetup.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/RecursiveMenuSetup.h b/src/RecursiveMenuSetup.h new file mode 100644 index 0000000..b09d6e2 --- /dev/null +++ b/src/RecursiveMenuSetup.h @@ -0,0 +1,55 @@ +/* + * vdr-menuorg - A plugin for the Linux Video Disk Recorder + * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * $Id$ + * + */ + +#ifndef ___RECURSIVEMENUSETUP_H_ +#define ___RECURSIVEMENUSETUP_H_ + +#include <vdr/menu.h> +#include "imenunodeprocessor.h" + +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(); +}; + +#endif |