From 8d5dd700fa29e2af2f6f5b7b9cfaaa7d122b7157 Mon Sep 17 00:00:00 2001 From: svntcreutz Date: Mon, 27 Aug 2007 05:46:01 +0000 Subject: renamed cMenuSetupItemSetup to cMenuItemSetup git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6009 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- sources.mk | 2 +- src/menuitemsetup.cpp | 42 ++++++++++++++++++++++++++++++++++++++++++ src/menuitemsetup.h | 39 +++++++++++++++++++++++++++++++++++++++ src/menusetup.cpp | 4 ++-- src/menusetupitemsetup.cpp | 42 ------------------------------------------ src/menusetupitemsetup.h | 39 --------------------------------------- 6 files changed, 84 insertions(+), 84 deletions(-) create mode 100644 src/menuitemsetup.cpp create mode 100644 src/menuitemsetup.h delete mode 100644 src/menusetupitemsetup.cpp delete mode 100644 src/menusetupitemsetup.h diff --git a/sources.mk b/sources.mk index af934f2..25221b1 100644 --- a/sources.mk +++ b/sources.mk @@ -14,4 +14,4 @@ SRCS = \ src/systemmenunode.cpp \ src/i18n.cpp \ src/menusetup.cpp \ - src/menusetupitemsetup.cpp \ + src/menuitemsetup.cpp \ diff --git a/src/menuitemsetup.cpp b/src/menuitemsetup.cpp new file mode 100644 index 0000000..173292b --- /dev/null +++ b/src/menuitemsetup.cpp @@ -0,0 +1,42 @@ +/* + * 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$ + * + */ + +#include "menuitemsetup.h" + +cMenuItemSetup::cMenuItemSetup(void) +:cOsdMenu(tr("Item Setup"),25) +{ + itemTypeText[0] = "System"; + itemTypeText[1] = "Plugin"; + itemTypeText[2] = "Submenu"; + itemTypeText[3] = "Command"; + + Add(new cMenuEditStraItem(tr("Item Type"),&_itemType, 4, itemTypeText)); + // TODO: add osd items for the selectet item type +} + +eOSState cMenuItemSetup::ProcessKey(eKeys Key) +{ + dsyslog("menuorg: cMenuSetupItemSetup::ProcessKey called"); + eOSState state = cOsdMenu::ProcessKey(Key); + return state; +} diff --git a/src/menuitemsetup.h b/src/menuitemsetup.h new file mode 100644 index 0000000..b85400c --- /dev/null +++ b/src/menuitemsetup.h @@ -0,0 +1,39 @@ +/* + * 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 ___MENUITEMSETUP_H +#define ___MENUITEMSETUP_H + +#include + +class cMenuItemSetup : public cOsdMenu +{ + private: + int _itemType; + const char* itemTypeText[4]; + + public: + cMenuItemSetup(void); + virtual eOSState ProcessKey(eKeys Key); +}; + +#endif diff --git a/src/menusetup.cpp b/src/menusetup.cpp index 255801e..a0a96dc 100644 --- a/src/menusetup.cpp +++ b/src/menusetup.cpp @@ -25,7 +25,7 @@ #include #include #include "menuconfiguration.h" -#include "menusetupitemsetup.h" +#include "menuitemsetup.h" using namespace xmlpp; using namespace std; @@ -70,7 +70,7 @@ eOSState cMenuSetup::ProcessKey(eKeys Key) break; case kGreen: - state = AddSubMenu(new cMenuSetupItemSetup()); + state = AddSubMenu(new cMenuItemSetup()); break; case kYellow: diff --git a/src/menusetupitemsetup.cpp b/src/menusetupitemsetup.cpp deleted file mode 100644 index e670d19..0000000 --- a/src/menusetupitemsetup.cpp +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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$ - * - */ - -#include "menusetupitemsetup.h" - -cMenuSetupItemSetup::cMenuSetupItemSetup(void) -:cOsdMenu(tr("Item Setup"),25) -{ - itemTypeText[0] = "System"; - itemTypeText[1] = "Plugin"; - itemTypeText[2] = "Submenu"; - itemTypeText[3] = "Command"; - - Add(new cMenuEditStraItem(tr("Item Type"),&_itemType, 4, itemTypeText)); - // TODO: add osd items for the selectet item type -} - -eOSState cMenuSetupItemSetup::ProcessKey(eKeys Key) -{ - dsyslog("menuorg: cMenuSetupItemSetup::ProcessKey called"); - eOSState state = cOsdMenu::ProcessKey(Key); - return state; -} diff --git a/src/menusetupitemsetup.h b/src/menusetupitemsetup.h deleted file mode 100644 index 4735d4c..0000000 --- a/src/menusetupitemsetup.h +++ /dev/null @@ -1,39 +0,0 @@ -/* - * 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 ___MENUSETUP_ITEMSETUP_H -#define ___MENUSETUP_ITEMSETUP_H - -#include - -class cMenuSetupItemSetup : public cOsdMenu -{ - private: - int _itemType; - const char* itemTypeText[4]; - - public: - cMenuSetupItemSetup(void); - virtual eOSState ProcessKey(eKeys Key); -}; - -#endif -- cgit v1.2.3