diff options
author | Martin Dummer <martin.dummer@gmx.net> | 2012-10-08 11:03:59 +0200 |
---|---|---|
committer | Martin Dummer <martin.dummer@gmx.net> | 2012-10-08 11:03:59 +0200 |
commit | 7b9d30ff7ecf564f0aa762b2537e45189626107d (patch) | |
tree | 9633b48fa70566f94a8c95b0a48de0e1cf207357 | |
parent | dc967e2de83b94e50b8ce205a93b2723bffa9857 (diff) | |
download | vdr-plugin-undelete-7b9d30ff7ecf564f0aa762b2537e45189626107d.tar.gz vdr-plugin-undelete-7b9d30ff7ecf564f0aa762b2537e45189626107d.tar.bz2 |
cleanup: remove menutext.[ch]
menutext.c and menutext.h were needed for vdr <1.3.8
-rw-r--r-- | HISTORY | 6 | ||||
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | menutext.c | 36 | ||||
-rw-r--r-- | menutext.h | 23 | ||||
-rw-r--r-- | menuundelete.c | 3 |
5 files changed, 6 insertions, 66 deletions
@@ -1,6 +1,12 @@ VDR Plugin 'undelete' Revision History -------------------------------------- +2012-10-08 Version: UNRELEASED +------------------------- +- edit plugin version string to reflect GIT commit IDs +- new minimum vdr version 1.5.7, added code to ensure this +- start code cleanup: remove conditional code for vdr <1.5.7 + 2012-10-05 Version: 0.0.7 ------------------------- - fix more typos @@ -74,10 +74,6 @@ endif ### The object files (add further files here): OBJS = $(PLUGIN).o menuundelete.o menusetup.o vdrtools.o menueditkeys.o menudispkey.o -#FIXME -ifeq ($(shell test $(VDRVERSNUM) -lt 10308 ; echo $$?),0) - OBJS += menutext.o -endif ifneq ($(strip $(GITTAG)),) DEFINES += -DGITVERSION='"-GIT-$(GITTAG)"' diff --git a/menutext.c b/menutext.c deleted file mode 100644 index 83e5a20..0000000 --- a/menutext.c +++ /dev/null @@ -1,36 +0,0 @@ -/* - * undelete: A plugin for the Video Disk Recorder - * - * See the README file for copyright information and how to reach the author. - * - * $Id: menutext.c 0.4 2005/11/16 18:39:18 hflor Exp $ - */ - -#include "menutext.h" -#include <vdr/menuitems.h> - -// --- cMenuText ------------------------------------------------------------- - -cMenuText::cMenuText(const char *Title, const char *Text, eDvbFont Font) -:cOsdMenu(Title) -{ - Add(new cMenuTextItem(Text, 1, 2, Setup.OSDwidth - 2, MAXOSDITEMS, clrWhite, clrBackground, Font)); -} - -eOSState cMenuText::ProcessKey(eKeys Key) -{ - eOSState state = cOsdMenu::ProcessKey(Key); - - switch (state) - { - case osUnknown: switch (NORMALKEY(Key)) - { - case kOk: state = osBack; - break; - default: break; - } - break; - default: break; - } - return state; -} diff --git a/menutext.h b/menutext.h deleted file mode 100644 index 1f163fe..0000000 --- a/menutext.h +++ /dev/null @@ -1,23 +0,0 @@ -/* - * undelete: A plugin for the Video Disk Recorder - * - * See the README file for copyright information and how to reach the author. - * - * $Id: menutext.h 0.4 2005/11/16 18:39:18 hflor Exp $ - */ - -#ifndef __MENUTEXT_H -#define __MENUTEXT_H - -#include <vdr/osd.h> -#include <vdr/osdbase.h> - -// --- cMenuText ------------------------------------------------------------- - -class cMenuText : public cOsdMenu { -public: - cMenuText(const char *Title, const char *Text, eDvbFont Font = fontOsd); - virtual eOSState ProcessKey(eKeys Key); - }; - -#endif // __MENUTEXT_H diff --git a/menuundelete.c b/menuundelete.c index e457703..2ca4f39 100644 --- a/menuundelete.c +++ b/menuundelete.c @@ -7,9 +7,6 @@ */ #include "menuundelete.h" -#if VDRVERSNUM < 10307 - #include "menutext.h" -#endif #include "undelete.h" #include "menudispkey.h" #include "vdrtools.h" |