From c5dfe5834603465b7597f7828400f0d23b3bed73 Mon Sep 17 00:00:00 2001 From: svntobi Date: Sat, 22 Mar 2008 19:52:34 +0000 Subject: - Using gettext / vdr 1.5.18 now - remember cursor position when entering submenu - updated copyright header git-svn-id: file:///home/tobias/sandbox/vdr/--/vdr-pkg/vdr-pkg/menuorg/trunk@6965 cd0d6b48-d4f9-0310-940f-ab8c4eb44d3f --- .cproject | 927 ++++++++++++++++++++++++++++++++++++ .project | 82 ++++ HISTORY | 6 +- Makefile | 44 +- README | 2 +- debian/control | 2 +- debian/copyright | 2 +- debian/install | 1 + debian/rules | 91 +--- po/de.po | 25 + po/it.po | 26 + po/menuorg.pot | 29 ++ sources.mk | 1 - src/ChildLock.cpp | 23 +- src/ChildLock.h | 23 +- src/CommandMenuNode.cpp | 23 +- src/CommandMenuNode.h | 23 +- src/IChildLockService.h | 23 +- src/IMenuNodeProcessor.h | 23 +- src/MainMenuItemsProvider.cpp | 28 +- src/MainMenuItemsProvider.h | 24 +- src/MenuConfigurationRepository.cpp | 23 +- src/MenuConfigurationRepository.h | 23 +- src/MenuItemDefinitionFactory.cpp | 40 +- src/MenuItemDefinitionFactory.h | 28 +- src/MenuNode.cpp | 23 +- src/MenuNode.h | 23 +- src/MenuOrgPlugin.cpp | 33 +- src/MenuOrgPlugin.h | 23 +- src/OsdItemDefinition.cpp | 31 +- src/OsdItemDefinition.h | 27 +- src/OsdLineItem.cpp | 23 +- src/OsdLineItem.h | 23 +- src/PluginConfiguration.cpp | 45 +- src/PluginConfiguration.h | 29 +- src/PluginCreator.cpp | 23 +- src/PluginItemDefinition.cpp | 28 +- src/PluginItemDefinition.h | 24 +- src/PluginMenuNode.cpp | 23 +- src/PluginMenuNode.h | 23 +- src/PluginSetup.cpp | 27 +- src/PluginSetup.h | 24 +- src/SeparatorMenuNode.cpp | 23 +- src/SeparatorMenuNode.h | 23 +- src/SubMenuNode.cpp | 23 +- src/SubMenuNode.h | 23 +- src/SystemMenuNode.cpp | 25 +- src/SystemMenuNode.h | 23 +- src/VdrState.cpp | 23 +- src/VdrState.h | 23 +- src/i18n.cpp | 218 --------- src/i18n.h | 31 -- src/version.h | 23 +- tools/release | 24 + tools/relicense | 15 + tools/sourcefileheader.txt | 22 + 56 files changed, 1693 insertions(+), 820 deletions(-) create mode 100644 .cproject create mode 100644 .project create mode 100644 po/de.po create mode 100644 po/it.po create mode 100644 po/menuorg.pot delete mode 100644 src/i18n.cpp delete mode 100644 src/i18n.h create mode 100755 tools/release create mode 100755 tools/relicense create mode 100644 tools/sourcefileheader.txt diff --git a/.cproject b/.cproject new file mode 100644 index 0000000..9a03f93 --- /dev/null +++ b/.cproject @@ -0,0 +1,927 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..c2ba86c --- /dev/null +++ b/.project @@ -0,0 +1,82 @@ + + + vdr-menuorg + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + org.eclipse.cdt.make.core.cleanBuildTarget + clean + + + org.eclipse.cdt.make.core.enableCleanBuild + true + + + ?name? + + + + org.eclipse.cdt.make.core.append_environment + true + + + org.eclipse.cdt.make.core.stopOnError + true + + + org.eclipse.cdt.make.core.buildCommand + make + + + org.eclipse.cdt.make.core.contents + org.eclipse.cdt.make.core.activeConfigSettings + + + org.eclipse.cdt.make.core.buildLocation + ${workspace_loc:/vdr-menuorg/Debug} + + + org.eclipse.cdt.make.core.useDefaultBuildCmd + true + + + org.eclipse.cdt.make.core.enableAutoBuild + false + + + org.eclipse.cdt.make.core.enableFullBuild + true + + + org.eclipse.cdt.make.core.buildArguments + + + + org.eclipse.cdt.make.core.fullBuildTarget + all + + + org.eclipse.cdt.make.core.autoBuildTarget + all + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + + + + + + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.core.cnature + + diff --git a/HISTORY b/HISTORY index d15c13a..c1f894c 100644 --- a/HISTORY +++ b/HISTORY @@ -23,11 +23,13 @@ VDR Plugin 'menuorg' Revision History 2007-12-17: Version 0.3.2 -- Added Italian translation from the Italian VDR Community +- Added Italian translation from the + Italian VDR Community UNRELEASED: Version 0.4 - Added optional title attribute for system and plugin menu items -- Added Setup OSD and Setup parameter load and save routines - Added a Seperator Item definition - Now an empty submenu can exist +- Now VDR >= 1.5.18 is required +- When leaving a submenu, the cursor is now positioned on the submenu entry diff --git a/Makefile b/Makefile index ed4e7ef..e1736e2 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,6 @@ VERSION = $(shell grep 'static const char VERSION\[\] =' src/version.h | \ CXX ?= g++ CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual - ### The directory environment: DVBDIR = ../../../../DVB @@ -92,18 +91,41 @@ MAKEDEP = $(CXX) -MM BUILD_DEPFILE = .dependencies $(BUILD_DEPFILE): Makefile - @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(SRCS) $(SRCS_TESTABLE) \ + @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(SRCS) \ | sed "s/.*: \([^ ]*\/\).*/\1\0/" > $@ -$(TESTS_DEPFILE): Makefile $(SRCS_TESTPARTS) - @$(MAKEDEP) $(DEFINES) $(INCLUDES) $(SRCS_TESTABLE) $(SRCS_TESTONLY) \ - $(SRCS_TESTPARTS) | sed "s/.*: \([^ ]*\/\).*/\1\0/" > $@ - -include $(BUILD_DEPFILE) +### Internationalization (I18N): + +PODIR = po +LOCALEDIR = $(VDRDIR)/locale +I18Npo = $(wildcard $(PODIR)/*.po) +I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr-$(PLUGIN).mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) +I18Npot = $(PODIR)/$(PLUGIN).pot + +%.mo: %.po + msgfmt -c -o $@ $< + +%.po: $(I18Npot) + msgmerge -U --no-wrap --no-location --backup=none -q $@ $< + @touch $@ + +$(I18Npot): $(SRCS) $(SRCS_TESTABLE) + xgettext -C -cTRANSLATORS --no-wrap --no-location -k -ktr -ktrNOOP --msgid-bugs-address='' -o $@ $^ + +$(I18Nmsgs): $(LOCALEDIR)/%/LC_MESSAGES/vdr-$(PLUGIN).mo: $(PODIR)/%.mo + @mkdir -p $(dir $@) + mv $< $@ + +update-po: $(I18Npo) + +.PHONY: i18n +i18n: $(I18Nmsgs) + ### Targets: -all: libvdr-$(PLUGIN).so +all: libvdr-$(PLUGIN).so i18n libvdr-$(PLUGIN).so: $(OBJS) $(CXX) $(CXXFLAGS) -shared $(OBJS) -L. $(LIBS) -o $@ @@ -114,13 +136,11 @@ dist: clean @mkdir $(TMPDIR)/$(ARCHIVE) @cp -a * $(TMPDIR)/$(ARCHIVE) @tar czf $(PACKAGE).tar.gz -C $(TMPDIR) --exclude debian --exclude CVS \ - --exclude .svn --exclude tools $(ARCHIVE) + --exclude .svn --exclude tools --exclude .cproject --exclude .project \ + --exclude $(ARCHIVE) @-rm -rf $(TMPDIR)/$(ARCHIVE) @echo Distribution package created as $(PACKAGE).tar.gz - -release: dist - svn cp -m"release $(VERSION)" $(SVNROOT)/trunk $(SVNROOT)/tags/$(VERSION) clean: - @-rm -f $(BUILD_DEPFILE) $(TESTS_DEPFILE) *.so* *.tar.gz core* *~ + @-rm -f $(BUILD_DEPFILE) *.so* *.tar.gz core* *~ @-find . -name \*.\o -exec rm -f {} \; diff --git a/README b/README index c0109e3..63ee9af 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ This is a plug-in for the Video Disk Recorder (VDR). Written by: Thomas Creutz - Tobias Grimm + Tobias Grimm Italian translation: The Italian VDR Community - Gringo diff --git a/debian/control b/debian/control index 94c8f0a..74b7d2a 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: vdr-plugin-menuorg Section: misc Priority: extra Maintainer: Tobias Grimm -Build-Depends: debhelper (>= 5), vdr-dev (>= 1.4.7-2ctvdr1), libxml++2.6-dev, libglibmm-2.4-dev +Build-Depends: debhelper (>= 5), cdbs, vdr-dev (>= 1.4.7-2ctvdr1), libxml++2.6-dev, libglibmm-2.4-dev Standards-Version: 3.7.2 Package: vdr-plugin-menuorg diff --git a/debian/copyright b/debian/copyright index f60b0dc..b12634b 100644 --- a/debian/copyright +++ b/debian/copyright @@ -3,7 +3,7 @@ Upstream Homepage: Upstream Authors: Thomas Creutz - Tobias Grimm + Tobias Grimm Debian Maintainers: Tobias Grimm diff --git a/debian/install b/debian/install index ec489ee..0d5079c 100644 --- a/debian/install +++ b/debian/install @@ -3,3 +3,4 @@ menuorg.xml usr/share/vdr-plugin-menuorg/ menuorg.dtd usr/share/vdr-plugin-menuorg/ debian/menuorg.xml.minimum usr/share/vdr-plugin-menuorg/ vdr-submenu2menuorg usr/bin/ +debian/tmp/usr/share/locale diff --git a/debian/rules b/debian/rules index ca4b1db..bef6d5f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,93 +1,20 @@ #! /bin/sh /usr/share/vdr-dev/make-special-vdr.sh -# Sample debian/rules that uses debhelper. -# GNU copyright 1997 to 1999 by Joey Hess. -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +include /usr/share/cdbs/1/rules/debhelper.mk +#include /usr/share/cdbs/1/rules/dpatch.mk -ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) - CFLAGS += -g -endif -ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) - INSTALL_PROGRAM += -s -endif +DEB_INSTALL_CHANGELOGS_ALL = HISTORY -# To use dpatch uncomment the following line and set Build-Depends to dpatch -# DPATCH=yes +MAKE_OPTIONS = DVBDIR=/usr VDRDIR=/usr/include/vdr LIBDIR=. \ + LOCALEDIR=debian/tmp/usr/share/locale -ifdef DPATCH -include /usr/share/dpatch/dpatch.make -else -patch: -patch-stamp: -unpatch: -endif - -MAKE_OPTIONS = DVBDIR=/usr VDRDIR=/usr/include/vdr LIBDIR=. - -configure: configure-stamp -configure-stamp: patch-stamp - dh_testdir - touch configure-stamp - -build: build-stamp -build-stamp: configure-stamp - dh_testdir +common-build-arch:: $(MAKE) all $(MAKE_OPTIONS) - touch build-stamp -clean: clean-patched unpatch -clean-patched: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - -$(MAKE) -o .dependencies clean $(MAKE_OPTIONS) +cleanbuilddir:: + $(MAKE) -o .dependencies clean $(MAKE_OPTIONS) rm -f libvdr-*.so.* - dh_clean -install: build - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs - dh_install - -# Build architecture-independent files here. -binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install - dh_testdir - dh_testroot -# dh_installdebconf - dh_installdocs - dh_installexamples -# dh_installmenu -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit -# dh_installcron -# dh_installman -# dh_installinfo -# dh_undocumented - dh_installchangelogs HISTORY - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_makeshlibs - dh_installdeb -# dh_perl - dh_shlibdeps +common-binary-predeb-arch:: sh /usr/share/vdr-dev/patchlevel.sh subst sh /usr/share/vdr-dev/dependencies.sh - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure \ - clean-patched patch unpatch diff --git a/po/de.po b/po/de.po new file mode 100644 index 0000000..8c2e66a --- /dev/null +++ b/po/de.po @@ -0,0 +1,25 @@ +msgid "" +msgstr "" +"Project-Id-Version: vdr-menuorg\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-03-22 16:44+0100\n" +"PO-Revision-Date: 2008-03-22 16:44+0100\n" +"Last-Translator: Tobias Grimm \n" +"Language-Team: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: German\n" +"X-Poedit-Country: GERMANY\n" + +msgid "Reorganizes the main menu" +msgstr "Reorganisiert das Haupmenü" + +msgid "Failed to load MenuOrg's config file!" +msgstr "Konnte MenuOrg-Konfiguration nicht laden!" + +msgid "Enable custom menu" +msgstr "Benutzerdefiniertes Menü aktivieren" + +msgid "Include unconfigured plugins" +msgstr "Nicht konfigurierte Plugins darstellen" diff --git a/po/it.po b/po/it.po new file mode 100644 index 0000000..c47840d --- /dev/null +++ b/po/it.po @@ -0,0 +1,26 @@ +msgid "" +msgstr "" +"Project-Id-Version: vdr-menuorg\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-03-22 16:44+0100\n" +"PO-Revision-Date: 2008-03-22 16:47+0100\n" +"Last-Translator: Gringo \n" +"Language-Team: Gringo \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Poedit-Language: Italian\n" +"X-Poedit-Country: ITALY\n" + +msgid "Reorganizes the main menu" +msgstr "" + +msgid "Failed to load MenuOrg's config file!" +msgstr "Impossibile caricare il file di configurazione MenuOrg" + +msgid "Enable custom menu" +msgstr "" + +msgid "Include unconfigured plugins" +msgstr "" + diff --git a/po/menuorg.pot b/po/menuorg.pot new file mode 100644 index 0000000..2949233 --- /dev/null +++ b/po/menuorg.pot @@ -0,0 +1,29 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2008-03-22 16:55+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Reorganizes the main menu" +msgstr "" + +msgid "Failed to load MenuOrg's config file!" +msgstr "" + +msgid "Enable custom menu" +msgstr "" + +msgid "Include unconfigured plugins" +msgstr "" diff --git a/sources.mk b/sources.mk index 8d5d657..d6b1f41 100644 --- a/sources.mk +++ b/sources.mk @@ -13,7 +13,6 @@ SRCS = \ src/PluginSetup.cpp \ src/SubMenuNode.cpp \ src/SystemMenuNode.cpp \ - src/i18n.cpp \ src/OsdLineItem.cpp \ src/SeparatorMenuNode.cpp \ src/VdrState.cpp \ diff --git a/src/ChildLock.cpp b/src/ChildLock.cpp index 35a8496..4af2211 100644 --- a/src/ChildLock.cpp +++ b/src/ChildLock.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/ChildLock.h b/src/ChildLock.h index f129b67..073b3bb 100644 --- a/src/ChildLock.h +++ b/src/ChildLock.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/CommandMenuNode.cpp b/src/CommandMenuNode.cpp index 5ebb5a5..680b7bd 100644 --- a/src/CommandMenuNode.cpp +++ b/src/CommandMenuNode.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/CommandMenuNode.h b/src/CommandMenuNode.h index 638cee0..f02d6be 100644 --- a/src/CommandMenuNode.h +++ b/src/CommandMenuNode.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/IChildLockService.h b/src/IChildLockService.h index f677f72..fdf8e16 100644 --- a/src/IChildLockService.h +++ b/src/IChildLockService.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/IMenuNodeProcessor.h b/src/IMenuNodeProcessor.h index e0ddab8..4dbe320 100644 --- a/src/IMenuNodeProcessor.h +++ b/src/IMenuNodeProcessor.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/MainMenuItemsProvider.cpp b/src/MainMenuItemsProvider.cpp index 13fab09..14462a1 100644 --- a/src/MainMenuItemsProvider.cpp +++ b/src/MainMenuItemsProvider.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -29,6 +30,7 @@ MainMenuItemsProvider::MainMenuItemsProvider(MenuConfigurationRepository& menuCo :_menuConfigurationRepository(menuConfigurationRepository) { EnterRootMenu(); + _previousMenu = NULL; } MainMenuItemsProvider::~MainMenuItemsProvider() @@ -45,7 +47,8 @@ MenuItemDefinitions* MainMenuItemsProvider::MainMenuItems() { if (!(*i)->IsHidden()) { - _currentMainMenuItems.push_back(MenuItemDefinitionFactory::CreateFromMenuNode(*i)); + bool isSelected = ((*i) == _previousMenu); + _currentMainMenuItems.push_back(MenuItemDefinitionFactory::CreateFromMenuNode(*i, isSelected)); } } @@ -80,6 +83,7 @@ bool MainMenuItemsProvider::LeaveSubMenu() { if (_currentMenu->Parent()) { + _previousMenu = _currentMenu; _currentMenu = _currentMenu->Parent(); return true; } diff --git a/src/MainMenuItemsProvider.h b/src/MainMenuItemsProvider.h index 91845be..40cc108 100644 --- a/src/MainMenuItemsProvider.h +++ b/src/MainMenuItemsProvider.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -33,6 +34,7 @@ class MainMenuItemsProvider: public IMainMenuItemsProvider, public IMenuNodeProc { private: SubMenuNode* _currentMenu; + SubMenuNode* _previousMenu; MenuItemDefinitions _currentMainMenuItems; MenuConfigurationRepository& _menuConfigurationRepository; diff --git a/src/MenuConfigurationRepository.cpp b/src/MenuConfigurationRepository.cpp index 63c25a1..9985e4b 100644 --- a/src/MenuConfigurationRepository.cpp +++ b/src/MenuConfigurationRepository.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/MenuConfigurationRepository.h b/src/MenuConfigurationRepository.h index 2dd223e..e5ec9b7 100644 --- a/src/MenuConfigurationRepository.h +++ b/src/MenuConfigurationRepository.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/MenuItemDefinitionFactory.cpp b/src/MenuItemDefinitionFactory.cpp index f2ee3ab..d6c0744 100644 --- a/src/MenuItemDefinitionFactory.cpp +++ b/src/MenuItemDefinitionFactory.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -33,16 +34,21 @@ using namespace std; -IMenuItemDefinition* MenuItemDefinitionFactory::CreateFromMenuNode(MenuNode* menuNode) +IMenuItemDefinition* MenuItemDefinitionFactory::CreateFromMenuNode(MenuNode* menuNode, bool isSelected) { - MenuItemDefinitionFactory* factory = new MenuItemDefinitionFactory(); + MenuItemDefinitionFactory* factory = new MenuItemDefinitionFactory(isSelected); menuNode->Process(factory); return factory->_createdMenuItemDefinition; } +MenuItemDefinitionFactory::MenuItemDefinitionFactory(bool isSelected) +{ + _isSelected = isSelected; +} + void MenuItemDefinitionFactory::ProcessSystemMenuNode(SystemMenuNode* node) { - _createdMenuItemDefinition = new OsdItemDefinition(new cOsdItem(node->DisplayText().c_str(), node->State().OSState())); + _createdMenuItemDefinition = new OsdItemDefinition(new cOsdItem(node->DisplayText().c_str(), node->State().OSState()), false); } void MenuItemDefinitionFactory::ProcessPluginMenuNode(PluginMenuNode* node) @@ -52,15 +58,15 @@ void MenuItemDefinitionFactory::ProcessPluginMenuNode(PluginMenuNode* node) void MenuItemDefinitionFactory::ProcessSubMenuNode(SubMenuNode* node) { - _createdMenuItemDefinition = new OsdItemDefinition(new cOsdItem(node->Text().c_str(), osUser1)); + _createdMenuItemDefinition = new OsdItemDefinition(new cOsdItem(node->Text().c_str(), osUser1), _isSelected); } void MenuItemDefinitionFactory::ProcessCommandMenuNode(CommandMenuNode* node) { - _createdMenuItemDefinition = new OsdItemDefinition(new cOsdItem(node->Text().c_str(), osUser2)); + _createdMenuItemDefinition = new OsdItemDefinition(new cOsdItem(node->Text().c_str(), osUser2), _isSelected); } void MenuItemDefinitionFactory::ProcessSeparatorMenuNode(SeparatorMenuNode* node) { - _createdMenuItemDefinition = new OsdItemDefinition(new cOsdSeparatorItem(node->DisplayText().c_str())); + _createdMenuItemDefinition = new OsdItemDefinition(new cOsdSeparatorItem(node->DisplayText().c_str()), false); } diff --git a/src/MenuItemDefinitionFactory.h b/src/MenuItemDefinitionFactory.h index 1e0ad5f..9509345 100644 --- a/src/MenuItemDefinitionFactory.h +++ b/src/MenuItemDefinitionFactory.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -37,9 +38,10 @@ class MenuItemDefinitionFactory: IMenuNodeProcessor { private: IMenuItemDefinition* _createdMenuItemDefinition; + bool _isSelected; public: - static IMenuItemDefinition* CreateFromMenuNode(MenuNode* menuNode); + static IMenuItemDefinition* CreateFromMenuNode(MenuNode* menuNode, bool isSelected); // IMenuNodeProcessor void ProcessSystemMenuNode(SystemMenuNode* node); @@ -49,7 +51,7 @@ class MenuItemDefinitionFactory: IMenuNodeProcessor void ProcessSeparatorMenuNode(SeparatorMenuNode* node); private: - MenuItemDefinitionFactory(){}; + MenuItemDefinitionFactory(bool isSelected); }; #endif diff --git a/src/MenuNode.cpp b/src/MenuNode.cpp index e0b8e1c..4a3c581 100644 --- a/src/MenuNode.cpp +++ b/src/MenuNode.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/MenuNode.h b/src/MenuNode.h index 727c5bb..cdb1792 100644 --- a/src/MenuNode.h +++ b/src/MenuNode.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/MenuOrgPlugin.cpp b/src/MenuOrgPlugin.cpp index 19e5b6b..0a67a1b 100644 --- a/src/MenuOrgPlugin.cpp +++ b/src/MenuOrgPlugin.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -32,7 +33,6 @@ #include "MenuOrgPlugin.h" #include "MenuConfigurationRepository.h" #include "MainMenuItemsProvider.h" -#include "i18n.h" #include "PluginSetup.h" using namespace std; @@ -59,15 +59,12 @@ const char* MenuOrgPlugin::Version(void) const char* MenuOrgPlugin::Description(void) { - return tr("reorganize main menu"); + return tr("Reorganizes the main menu"); } const char* MenuOrgPlugin::MainMenuEntry(void) { - if(_pluginConfiguration.MainMenuEntryHidden()) - return NULL; - else - return tr("Menu-Organizer"); + return NULL; } const char *MenuOrgPlugin::CommandLineHelp(void) @@ -107,8 +104,6 @@ bool MenuOrgPlugin::ProcessArgs(int argc, char *argv[]) bool MenuOrgPlugin::Initialize(void) { - RegisterI18n(Phrases); - if (_configFile.empty()) { _configFile = (string) ConfigDirectory() + "/menuorg.xml"; diff --git a/src/MenuOrgPlugin.h b/src/MenuOrgPlugin.h index faf67cf..c33b702 100644 --- a/src/MenuOrgPlugin.h +++ b/src/MenuOrgPlugin.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/OsdItemDefinition.cpp b/src/OsdItemDefinition.cpp index 9be51ee..78a7757 100644 --- a/src/OsdItemDefinition.cpp +++ b/src/OsdItemDefinition.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -22,9 +23,10 @@ #include "OsdItemDefinition.h" -OsdItemDefinition::OsdItemDefinition(cOsdItem* osdItem) +OsdItemDefinition::OsdItemDefinition(cOsdItem* osdItem, bool isSelected) { _osdItem = osdItem; + _isSelected = isSelected; } bool OsdItemDefinition::IsCustomOsdItem() @@ -47,6 +49,11 @@ const char* OsdItemDefinition::PluginMenuEntry() return NULL; } +bool OsdItemDefinition::IsSelected() +{ + return _isSelected; +} + int OsdItemDefinition::PluginIndex() { return 0; diff --git a/src/OsdItemDefinition.h b/src/OsdItemDefinition.h index 0c4bad7..32b0733 100644 --- a/src/OsdItemDefinition.h +++ b/src/OsdItemDefinition.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -29,13 +30,15 @@ class OsdItemDefinition: public IMenuItemDefinition { private: cOsdItem* _osdItem; + bool _isSelected; public: - OsdItemDefinition(cOsdItem* osdItem); + OsdItemDefinition(cOsdItem* osdItem, bool isSelected); virtual bool IsCustomOsdItem(); virtual bool IsPluginItem(); virtual cOsdItem* CustomOsdItem(); virtual const char* PluginMenuEntry(); + virtual bool IsSelected(); virtual int PluginIndex(); }; diff --git a/src/OsdLineItem.cpp b/src/OsdLineItem.cpp index f0600df..510d70c 100644 --- a/src/OsdLineItem.cpp +++ b/src/OsdLineItem.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/OsdLineItem.h b/src/OsdLineItem.h index 85ce6bf..38358e6 100644 --- a/src/OsdLineItem.h +++ b/src/OsdLineItem.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/PluginConfiguration.cpp b/src/PluginConfiguration.cpp index dbbdef2..5cc0191 100644 --- a/src/PluginConfiguration.cpp +++ b/src/PluginConfiguration.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -26,8 +27,6 @@ const char* PluginConfiguration::SetupName::CustomMenuActive = "customMenuActive"; const char* PluginConfiguration::SetupName::UnconfiguredPluginsIncluded = "unconfiguredPluginsIncluded"; -const char* PluginConfiguration::SetupName::HideMainMenuEntry = "hideMainMenuEntry"; -const char* PluginConfiguration::SetupName::MenuSetupStyle = "menuSetupStyle"; PluginConfiguration::PluginConfiguration() { @@ -44,21 +43,9 @@ bool PluginConfiguration::UnconfiguredPluginsInluded() return _unconfiguredPluginsIncluded; } -bool PluginConfiguration::MainMenuEntryHidden() -{ - return _hideMainMenuEntry; -} - -int PluginConfiguration::MenuSetupStyle() -{ - return _menuSetupStyle; -} - void PluginConfiguration::SetDefaults() { _customMenuActive = true; - _hideMainMenuEntry = true; - _menuSetupStyle = 0; _unconfiguredPluginsIncluded = true; } @@ -72,14 +59,6 @@ bool PluginConfiguration::SetConfigurationOptionByName(const char* Name, const c { _unconfiguredPluginsIncluded = (atoi(Value) != 0); } - else if(!strcasecmp(Name, SetupName::HideMainMenuEntry)) - { - _hideMainMenuEntry = (atoi(Value) != 0); - } - else if(!strcasecmp(Name, SetupName::MenuSetupStyle)) - { - _menuSetupStyle = (atoi(Value) != 0); - } else return false; diff --git a/src/PluginConfiguration.h b/src/PluginConfiguration.h index b90d6b0..fa6bcaf 100644 --- a/src/PluginConfiguration.h +++ b/src/PluginConfiguration.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -32,23 +33,17 @@ class PluginConfiguration { static const char* CustomMenuActive; static const char* UnconfiguredPluginsIncluded; - static const char* HideMainMenuEntry; - static const char* MenuSetupStyle; }; private: bool _customMenuActive; bool _unconfiguredPluginsIncluded; - bool _hideMainMenuEntry; - int _menuSetupStyle; public: PluginConfiguration(); bool SetConfigurationOptionByName(const char* Name, const char* Value); bool CustomMenuActive(); bool UnconfiguredPluginsInluded(); - bool MainMenuEntryHidden(); - int MenuSetupStyle(); private: void SetDefaults(); diff --git a/src/PluginCreator.cpp b/src/PluginCreator.cpp index e845f56..ec51372 100644 --- a/src/PluginCreator.cpp +++ b/src/PluginCreator.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/PluginItemDefinition.cpp b/src/PluginItemDefinition.cpp index baf09bd..15e880c 100644 --- a/src/PluginItemDefinition.cpp +++ b/src/PluginItemDefinition.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -50,6 +51,11 @@ const char* PluginItemDefinition::PluginMenuEntry() return _mainMenuEntry.c_str(); } +bool PluginItemDefinition::IsSelected() +{ + return false; +} + int PluginItemDefinition::PluginIndex() { return _pluginIndex; diff --git a/src/PluginItemDefinition.h b/src/PluginItemDefinition.h index 8a4be57..b150280 100644 --- a/src/PluginItemDefinition.h +++ b/src/PluginItemDefinition.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -38,6 +39,7 @@ class PluginItemDefinition: public IMenuItemDefinition virtual bool IsPluginItem(); virtual cOsdItem* CustomOsdItem(); virtual const char* PluginMenuEntry(); + virtual bool IsSelected(); virtual int PluginIndex(); }; diff --git a/src/PluginMenuNode.cpp b/src/PluginMenuNode.cpp index 80cfeb2..2e4f4cd 100644 --- a/src/PluginMenuNode.cpp +++ b/src/PluginMenuNode.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/PluginMenuNode.h b/src/PluginMenuNode.h index 4a08102..d056ae9 100644 --- a/src/PluginMenuNode.h +++ b/src/PluginMenuNode.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/PluginSetup.cpp b/src/PluginSetup.cpp index e59b987..8042fe0 100644 --- a/src/PluginSetup.cpp +++ b/src/PluginSetup.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -39,14 +40,10 @@ void PluginSetup::Store(void) SetupStore(PluginConfiguration::SetupName::UnconfiguredPluginsIncluded, _pluginConfiguration._unconfiguredPluginsIncluded = _newUnconfiguredPluginsIncluded); - - SetupStore(PluginConfiguration::SetupName::HideMainMenuEntry, - _pluginConfiguration._hideMainMenuEntry = _newHideMainMenuEntry); } void PluginSetup::CreateMenuItems() { Add(new cMenuEditBoolItem(tr("Enable custom menu"), &_newCustomMenuActive)); Add(new cMenuEditBoolItem(tr("Include unconfigured plugins"), &_newUnconfiguredPluginsIncluded)); - Add(new cMenuEditBoolItem(tr("Hide main menu entry"), &_newHideMainMenuEntry)); } diff --git a/src/PluginSetup.h b/src/PluginSetup.h index 1394950..817a6ef 100644 --- a/src/PluginSetup.h +++ b/src/PluginSetup.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -33,7 +34,6 @@ class PluginSetup : public cMenuSetupPage private: int _newCustomMenuActive; int _newUnconfiguredPluginsIncluded; - int _newHideMainMenuEntry; PluginConfiguration& _pluginConfiguration; MenuConfigurationRepository& _menuConfiguration; diff --git a/src/SeparatorMenuNode.cpp b/src/SeparatorMenuNode.cpp index 2d5ce14..358292c 100644 --- a/src/SeparatorMenuNode.cpp +++ b/src/SeparatorMenuNode.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/SeparatorMenuNode.h b/src/SeparatorMenuNode.h index 06d9f09..0a9356b 100644 --- a/src/SeparatorMenuNode.h +++ b/src/SeparatorMenuNode.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/SubMenuNode.cpp b/src/SubMenuNode.cpp index 9d5de39..91e939f 100644 --- a/src/SubMenuNode.cpp +++ b/src/SubMenuNode.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/SubMenuNode.h b/src/SubMenuNode.h index b83c841..c1e77ae 100644 --- a/src/SubMenuNode.h +++ b/src/SubMenuNode.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/SystemMenuNode.cpp b/src/SystemMenuNode.cpp index aac4cf5..0fc5af2 100644 --- a/src/SystemMenuNode.cpp +++ b/src/SystemMenuNode.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * @@ -72,7 +73,7 @@ string SystemMenuNode::DisplayText() { if (_customTitle.empty()) { - return tr(_state.Name().c_str()); + return trVDR(_state.Name().c_str()); } else { diff --git a/src/SystemMenuNode.h b/src/SystemMenuNode.h index 091c7f9..d582b85 100644 --- a/src/SystemMenuNode.h +++ b/src/SystemMenuNode.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/VdrState.cpp b/src/VdrState.cpp index 6e65553..4481780 100644 --- a/src/VdrState.cpp +++ b/src/VdrState.cpp @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/VdrState.h b/src/VdrState.h index 081b7c5..3cfbd52 100644 --- a/src/VdrState.h +++ b/src/VdrState.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/src/i18n.cpp b/src/i18n.cpp deleted file mode 100644 index d17cc13..0000000 --- a/src/i18n.cpp +++ /dev/null @@ -1,218 +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$ - * - */ - -/* - * Translators: - * - Italian translations provided by Gringo - * - */ - -#include "i18n.h" - -const tI18nPhrase Phrases[] = -{ - { - "Failed to load MenuOrg's config file!", // 1 English - "Konnte die MenuOrg Konfigurationsdatei nicht laden", // 2 Deutsch - "", // 3 Slovenski - "Impossibile caricare il file di configurazione MenuOrg", // 4 Italiano - "", // 5 Nederlands - "", // 6 Português - "", // 7 Français - "", // 8 Norsk - "", // 9 suomi - Finnish - "", // 10 Polski - "", // 11 Español - "", // 12 ÅëëçíéêÜ - Greek - "", // 13 Svenska - "", // 14 Românã - "", // 15 Magyar - "", // 16 Català  - "", // 17 ÀãááÚØÙ - Russian - "", // 18 Hrvatski - "", // 19 Eesti - "", // 20 Dansk - "", // 21 Èesky - Czech - }, - { - "Up/Dn for new location - OK to move", - "Auf/Ab für neue Position - dann OK", - "Gor/Dol za novo poz. - Ok za premik", - "Su/Giu per nuova posizione - OK per muovere", - "Gebruik Omhoog/Omlaag - daarna Ok", - "Cima/Baixo para nova localização - Ok para mover", - "Haut/Bas -> nouvelle place - OK -> déplacer", - "Opp/Ned for ny plass - OK for å flytte", - "'Ylös/Alas' uusi paikka - 'OK' hyväksy", - "Do góry/Na dó³ na now± pozycjê - Ok zatwierdza", - "Arriba/Abajo para mover - OK para confirmar", - "ÐÜíù/ÊÜôù ãéÜ íÝá èÝóç. ÌåôÜ ÏÊ", - "Upp/Ner för nya platsen - därefter OK för att flytta", - "Sus/Jos pentru noua locaþie - OK pentru a muta", - "Fel/Le egy uj opcióért - aztán OK", - "Amunt/Avall per una nova localització - OK per moure", - "½ÐÖØÜÐÙâÕ \"²ÒÕàå\"/\"²ÝØ×\" ÔÛï ÒëÑÞàÐ ßÞ×ØæØØ, Ð ×ÐâÕÜ \"OK\"", - "Gore/Dolje na novu poziciju - zatim OK", - "'Üles/Alla' uus asukoht - 'OK' kinnitus", - "Op/Ned for ny placering - OK for at flytte", - "Nahoru/Dolu pro novou pozici - Ok pøesune", - }, - { - "Name", - "Name", - "Ime", - "Nome", - "Naam", - "Nome", - "Nom", - "Navn", - "Nimi", - "Nazwa", - "Nombre", - "¼íïìá", - "Namn", - "Nume", - "Név", - "Nom", - "½Ð×ÒÐÝØÕ", - "Naziv", - "Nimi", - "Navn", - "Název", - }, - { - "Title", - "Titel", - "Naslov", - "Titolo", - "Titel", - "", - "Titre", - "", - "Kappale", - "tytu³u", - "título", - "Ôßôëï", - "titel", - "nélkül", - "", - "Títol", - "½Ð×ÒÐÝØÕ", - "titla", - "", - "titel", - "názvu", - }, - // Button texts (should not be more than 10 characters!): - { - "Button$Edit", - "Editieren", - "Uredi", - "Modifica", - "Verander", - "Modificar", - "Modifier", - "Editer", - "Muokkaa", - "Edytuj", - "Modificar", - "ÐñïóáñìïãÞ", - "Ändra", - "Modificã", - "Beállítani", - "Editar", - "ÀÕÔÐÚâØàÞÒÐâì", - "Promijeni", - "Muuda", - "Rediger", - "Editace", - }, - { - "Button$New", - "Neu", - "Novo", - "Nuovo", - "Nieuw", - "Novo", - "Nouveau", - "Ny", - "Uusi", - "Nowy", - "Nuevo", - "NÝï", - "Ny", - "Nou", - "Új", - "Nou", - "´ÞÑÐÒØâì", - "Novi", - "Uus", - "Ny", - "Nový", - }, - { - "Button$Delete", - "Löschen", - "Izbri¹i", - "Cancella", - "Verwijder", - "Apagar", - "Supprimer", - "Slett", - "Poista", - "Usuñ", - "Borrar", - "ÄéáãñáöÞ", - "Ta bort", - "ªterge", - "Törölni", - "Esborrar", - "ÃÔÐÛØâì", - "Obri¹i", - "Kustuta", - "Slet", - "Smazat", - }, - { - "Button$Move", - "Verschieben", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - }, - { NULL } -}; diff --git a/src/i18n.h b/src/i18n.h deleted file mode 100644 index 65a1ed1..0000000 --- a/src/i18n.h +++ /dev/null @@ -1,31 +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 ___I18N__H -#define ___I18N__H - -#include -#include - -extern const tI18nPhrase Phrases[]; - -#endif diff --git a/src/version.h b/src/version.h index 4a02c5f..30896b9 100644 --- a/src/version.h +++ b/src/version.h @@ -1,20 +1,21 @@ /* * vdr-menuorg - A plugin for the Linux Video Disk Recorder - * Copyright (C) 2007 Thomas Creutz, Tobias Grimm + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz * - * 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 + * 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. + * 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 + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * $Id$ * diff --git a/tools/release b/tools/release new file mode 100755 index 0000000..d7c8e09 --- /dev/null +++ b/tools/release @@ -0,0 +1,24 @@ +#!/bin/sh + +set -e + +# clean +make clean + +make update-po + +if [ -n "`svn st`" ] ; then + echo "uncommited changes !!!" + exit 1 +fi + +# make distribution tarball +make dist + +# read version +VERSION=`grep 'static const char VERSION\[\] =' src/version.h | awk '{ print $6 }' | sed -e 's/[";]//g'` + +# tag version +echo "Tagging: $VERSION" +svn cp -m "Releasing Menuorg $VERSION" svn+e-tobi://e-tobi.net/menuorg/trunk \ + "svn+e-tobi://e-tobi.net/menuorg/tags/$VERSION" diff --git a/tools/relicense b/tools/relicense new file mode 100755 index 0000000..526a16f --- /dev/null +++ b/tools/relicense @@ -0,0 +1,15 @@ +#!/usr/bin/ruby + +header = IO.read(File.dirname(__FILE__) + "/sourcefileheader.txt") + +for file in Dir['./**/*.{h,cpp}'] + if IO.read(file) =~ /(\/\*[\S\s]*?\*\/\n)(.*)/m + src = $2 + if $1 =~ /.*Tobias Grimm.*/m + file = File.new(file, "w") + file.write(header) + file.write(src) + file.close + end + end +end diff --git a/tools/sourcefileheader.txt b/tools/sourcefileheader.txt new file mode 100644 index 0000000..1904bf1 --- /dev/null +++ b/tools/sourcefileheader.txt @@ -0,0 +1,22 @@ +/* + * vdr-menuorg - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm + * Copyright (c) 2007 Thomas Creutz + * + * 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., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id$ + * + */ -- cgit v1.2.3