Re: [vdr] vdr-prefermenu and vdr 1.7.21

2013-09-27 Thread Karim
Fixed.
Thank you very much Matti  !

-Message d'origine-
De : vdr-boun...@linuxtv.org [mailto:vdr-boun...@linuxtv.org] De la part de
Matti Lehtimäki
Envoyé : vendredi 27 septembre 2013 23:08
À : vdr@linuxtv.org
Objet : Re: [vdr] vdr-prefermenu and vdr 1.7.21

Hi

There is an additional patch for prefermenu plugin in debian unstable which
should fix the problem your describe. The patch is attached.

-Matti

On 09/27/2013 09:54 PM, Karim wrote:
> Hi,
>
> I tried to compil vdr-prefermenu-0.6.6 ant theses patches under vdr-2.0.3.
> Unfortunately, compilation failed. Is there any more recent patch, or 
> could you help me to fix ?
>
>
> *** Plugin prefermenu:
> WARNING: plugin prefermenu is using an old Makefile!
> g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC
> -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE 
> -D_LARGEFILE64_SOURCE -I/usr/include/linux/dvb -c 
> -DPLUGIN_NAME_I18N='"prefermenu"' -D_GNU_SOURCE 
> -I/usr/local/src/vdr-2.0.3/include prefermenu.c In file included from 
> prefermenu.c:14:0:
> i18n.h:14:14: error: ‘tI18nPhrase’ does not name a type
> prefermenu.c: In member function ‘virtual bool
cPluginPrefermenu::Start()’:
> prefermenu.c:52:16: error: ‘Phrases’ was not declared in this scope
> prefermenu.c:52:23: error: ‘RegisterI18n’ was not declared in this 
> scope
> make[1]: *** [prefermenu.o] Erreur 1
>
>
> Thank you.
> Karim
>
>
>
>
>
>
>
>
> -Message d'origine-
> De : vdr-boun...@linuxtv.org [mailto:vdr-boun...@linuxtv.org] De la 
> part de Matti Lehtimäki Envoyé : mercredi 7 décembre 2011 17:01 À : 
> vdr@linuxtv.org Objet : Re: [vdr] vdr-prefermenu and vdr 1.7.21
>
> On 12/07/2011 01:01 PM, Arturo Martinez wrote:
>> Is there a patch for vdr-prefermenu to work with vdr 1.7.21 ?
>
> If you prefer the small OSD of original prefermenu-plugin then there 
> are
> 3 patches in debian unstable so it works also with new versions of vdr 
> (I tested it with 1.7.22). The patches are attached.
>
> --
> Matti Lehtimäki
>
>
>
> ___
> vdr mailing list
> vdr@linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
>



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-prefermenu and vdr 1.7.21

2013-09-27 Thread Matti Lehtimäki

Hi

There is an additional patch for prefermenu plugin in debian unstable 
which should fix the problem your describe. The patch is attached.


-Matti

On 09/27/2013 09:54 PM, Karim wrote:

Hi,

I tried to compil vdr-prefermenu-0.6.6 ant theses patches under vdr-2.0.3.
Unfortunately, compilation failed. Is there any more recent patch, or could
you help me to fix ?


*** Plugin prefermenu:
WARNING: plugin prefermenu is using an old Makefile!
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/linux/dvb -c
-DPLUGIN_NAME_I18N='"prefermenu"' -D_GNU_SOURCE
-I/usr/local/src/vdr-2.0.3/include prefermenu.c
In file included from prefermenu.c:14:0:
i18n.h:14:14: error: ‘tI18nPhrase’ does not name a type
prefermenu.c: In member function ‘virtual bool cPluginPrefermenu::Start()’:
prefermenu.c:52:16: error: ‘Phrases’ was not declared in this scope
prefermenu.c:52:23: error: ‘RegisterI18n’ was not declared in this scope
make[1]: *** [prefermenu.o] Erreur 1


Thank you.
Karim








-Message d'origine-
De : vdr-boun...@linuxtv.org [mailto:vdr-boun...@linuxtv.org] De la part de
Matti Lehtimäki
Envoyé : mercredi 7 décembre 2011 17:01
À : vdr@linuxtv.org
Objet : Re: [vdr] vdr-prefermenu and vdr 1.7.21

On 12/07/2011 01:01 PM, Arturo Martinez wrote:

Is there a patch for vdr-prefermenu to work with vdr 1.7.21 ?


If you prefer the small OSD of original prefermenu-plugin then there are
3 patches in debian unstable so it works also with new versions of vdr (I
tested it with 1.7.22). The patches are attached.

--
Matti Lehtimäki



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr



Index: vdr-plugin-prefermenu/i18n.c
===
--- vdr-plugin-prefermenu.orig/i18n.c	2012-04-22 13:57:40.0 +0200
+++ /dev/null	1970-01-01 00:00:00.0 +
@@ -1,268 +0,0 @@
-/*
- * PreferMenu plugin to VDR (C++)
- *
- * (C) 2004,2005,2006 Olivier Jacques 
- *
- * This code 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 code 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.
- * Or, point your browser to http://www.gnu.org/copyleft/gpl.html
- */
-
-#include "i18n.h"
-
-const tI18nPhrase Phrases[] = {
-/*
- * French  translations provided by Maxime Guilbot 
- */
-  { "Channel", // ENGLISH
-"Kanal", // GERMAN
-"", // TODO
-"Canale", // ITALIAN
-"Kanaal", // NL
-"", // TODO
-"Chaînes", // FR
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"Czatoma", // HU
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-  },
-  { "Origin X", // EN
-"Position X", // GERMAN
-"", // TODO
-"Origine X", // ITALIAN
-"X positie", // NL
-"", // TODO
-"Origine X", // FR
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"X helyzet", // HU
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-  },
-  { "Origin Y", // EN
-"Position Y", // GERMAN
-"", // TODO
-"Origine Y", // ITALIAN 
-"Y positie", // NL
-"", // TODO
-"Origine Y", // FR
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"Y helyzet", // HU
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-"", // TODO
-  },
-  { "Width", //EN
-"Breite",

Re: [vdr] vdr-prefermenu and vdr 1.7.21

2013-09-27 Thread Karim
Hi,

I tried to compil vdr-prefermenu-0.6.6 ant theses patches under vdr-2.0.3.
Unfortunately, compilation failed. Is there any more recent patch, or could
you help me to fix ?


*** Plugin prefermenu:
WARNING: plugin prefermenu is using an old Makefile!
g++ -g -O3 -Wall -Werror=overloaded-virtual -Wno-parentheses -fPIC
-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-D_LARGEFILE64_SOURCE -I/usr/include/linux/dvb -c
-DPLUGIN_NAME_I18N='"prefermenu"' -D_GNU_SOURCE
-I/usr/local/src/vdr-2.0.3/include prefermenu.c
In file included from prefermenu.c:14:0:
i18n.h:14:14: error: ‘tI18nPhrase’ does not name a type
prefermenu.c: In member function ‘virtual bool cPluginPrefermenu::Start()’:
prefermenu.c:52:16: error: ‘Phrases’ was not declared in this scope
prefermenu.c:52:23: error: ‘RegisterI18n’ was not declared in this scope
make[1]: *** [prefermenu.o] Erreur 1


Thank you.
Karim






 

-Message d'origine-
De : vdr-boun...@linuxtv.org [mailto:vdr-boun...@linuxtv.org] De la part de
Matti Lehtimäki
Envoyé : mercredi 7 décembre 2011 17:01
À : vdr@linuxtv.org
Objet : Re: [vdr] vdr-prefermenu and vdr 1.7.21

On 12/07/2011 01:01 PM, Arturo Martinez wrote:
> Is there a patch for vdr-prefermenu to work with vdr 1.7.21 ?

If you prefer the small OSD of original prefermenu-plugin then there are
3 patches in debian unstable so it works also with new versions of vdr (I
tested it with 1.7.22). The patches are attached.

--
Matti Lehtimäki



___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-prefermenu and vdr 1.7.21

2011-12-07 Thread Joachim
Am 07.12.2011 um 18:03 schrieb VDR User :

> 
> Can you please provide a few screenshots.
> 
> Thanks,
> Derek
> 
> 

I could, but it basically looks like the vdr channels menu ;). 

Regards,

Joachim


___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-prefermenu and vdr 1.7.21

2011-12-07 Thread VDR User
On Wed, Dec 7, 2011 at 7:54 AM, Joe  wrote:
> A while ago, I forked the prefermenu-plugin and named it favorites. It can
> be downloaded from the German vdr-portal:
> http://www.vdr-portal.de/board1-news/board2-vdr-news/106482-announce-favorites-0-0-1-aka-skin-enabled-prefermenu/
>   .  My version is skin enabled, so it uses the original vdr menu functions
> and skin. The drawback might be that the channel list is now a normal vdr
> menu with uses the whole OSD area.

Can you please provide a few screenshots.

Thanks,
Derek

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-prefermenu and vdr 1.7.21

2011-12-07 Thread Matti Lehtimäki

On 12/07/2011 01:01 PM, Arturo Martinez wrote:

Is there a patch for vdr-prefermenu to work with vdr 1.7.21 ?


If you prefer the small OSD of original prefermenu-plugin then there are 
3 patches in debian unstable so it works also with new versions of vdr 
(I tested it with 1.7.22). The patches are attached.


--
Matti Lehtimäki

#! /bin/sh /usr/share/dpatch/dpatch-run

## 01_Makefile-fPIC-fix.dpatch by Thomas Schmidt 
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Adds -fPIC to Makefile 

@DPATCH@
diff -urNad /usr/src/self-compiled/vdr/plugins/prefermenu/vdr-plugin-prefermenu-0.6.2/Makefile vdr-plugin-prefermenu-0.6.2/Makefile
--- /usr/src/self-compiled/vdr/plugins/prefermenu/vdr-plugin-prefermenu-0.6.2/Makefile	2004-08-05 22:48:29.0 +0200
+++ vdr-plugin-prefermenu-0.6.2/Makefile	2004-08-05 22:49:27.0 +0200
@@ -16,7 +16,7 @@
 ### The C++ compiler and options:
 
 CXX  ?= g++
-CXXFLAGS ?= -O2 -Wall -Woverloaded-virtual
+CXXFLAGS ?= -fPIC -O2 -Wall -Woverloaded-virtual
 
 ### The directory environment:
 
#!/bin/sh /usr/share/dpatch/dpatch-run

## makefile
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: add -D_GNU_SOURCE to enable GNU extensions

@DPATCH@
Index: vdr-plugin-prefermenu-0.6.6/Makefile
===
--- vdr-plugin-prefermenu-0.6.6.orig/Makefile	2011-04-09 13:51:33.0 +0200
+++ vdr-plugin-prefermenu-0.6.6/Makefile	2011-04-09 13:51:34.0 +0200
@@ -46,6 +46,7 @@
 endif
 
 DEFINES += -DPLUGIN_NAME_I18N='"$(PLUGIN)"'
+DEFINES += -D_GNU_SOURCE
 
 ### The object files (add further files here):
 
#! /bin/sh /usr/share/dpatch/dpatch-run
## 90_prefermenu-0.6.6-1.5.3+SetAreas-bugfix.dpatch by Thomas Günther 
## http://toms-cafe.de/vdr/download/prefermenu-0.6.6-1.5.3+SetAreas-bugfix.diff
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Changes for VDR >= 1.5.3.

@DPATCH@
Index: vdr-plugin-prefermenu-0.6.6/prefermenu.c
===
--- vdr-plugin-prefermenu-0.6.6.orig/prefermenu.c	2005-01-11 20:09:40.0 +0100
+++ vdr-plugin-prefermenu-0.6.6/prefermenu.c	2011-04-09 13:51:46.0 +0200
@@ -75,6 +75,7 @@
   }
   // Clean up the file with current VDR channels.conf
   PreferedChannelsList.Save();
+  const int LINEHEIGHT = cFont::GetFont(fontOsd)->Height();
   config.height= (config.lines * (LINEHEIGHT+BORDERSIZE+2))+BORDERSIZE;
   return new cPreferOsd;
 }
Index: vdr-plugin-prefermenu-0.6.6/preferosd.c
===
--- vdr-plugin-prefermenu-0.6.6.orig/preferosd.c	2006-05-06 15:19:28.0 +0200
+++ vdr-plugin-prefermenu-0.6.6/preferosd.c	2011-04-09 13:51:46.0 +0200
@@ -60,7 +60,8 @@
   }
   osd=cOsdProvider::NewOsd(config.originx, config.originy);
   if (osd) {
-tArea Area = { 0, 0, config.width+LINEHEIGHT, config.height-1, 4};
+const int LINEHEIGHT = cFont::GetFont(fontOsd)->Height();
+tArea Area = { 0, 0, ((config.width+LINEHEIGHT) & ~0x01) - 1, config.height-1, 4};
 osd->SetAreas(&Area, 1);
 DrawPreferMenu(0,0);
 DisplayPreferMenu();
@@ -168,6 +169,7 @@
 {
   if (current > 1) {
 current -= 1;
+const int LINEHEIGHT = cFont::GetFont(fontOsd)->Height();
 DrawPreferMenu(-LINEHEIGHT,1);
 DisplayPreferMenu();
 //DrawPreferMneu(-10,1);
@@ -181,6 +183,7 @@
 {
   if (current < number) {
 current += 1; 
+const int LINEHEIGHT = cFont::GetFont(fontOsd)->Height();
 DrawPreferMenu(+LINEHEIGHT,-1);
 DisplayPreferMenu();
 //DrawPreferMenu(+10,-1);
@@ -315,6 +318,8 @@
 
 void cPreferOsd::DrawPreferMenu(int delta, int highlight)
 {
+  const cFont *font = cFont::GetFont(fontOsd);
+  const int LINEHEIGHT = font->Height();
   
   int middle = int(config.height/2) + config.height%2;
 
@@ -390,6 +395,8 @@
 
 void cPreferOsd::DrawChannelsNames(int delta)
 {
+  const cFont *font = cFont::GetFont(fontOsd);
+  const int LINEHEIGHT = font->Height();
 
   // XXX The margin is hardcoded for now
   // TODO: make it more flexible
Index: vdr-plugin-prefermenu-0.6.6/preferosd.h
===
--- vdr-plugin-prefermenu-0.6.6.orig/preferosd.h	2006-05-04 21:59:17.0 +0200
+++ vdr-plugin-prefermenu-0.6.6/preferosd.h	2011-04-09 13:51:46.0 +0200
@@ -4,8 +4,6 @@
 #include 
 
 static const int BORDERSIZE = 2;
-static const cFont *font = cFont::GetFont(fontOsd);
-static const int LINEHEIGHT = font->Height();
 
 
 class cPreferOsd : public cOsdObject {
___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr


Re: [vdr] vdr-prefermenu and vdr 1.7.21

2011-12-07 Thread Joe

Am 07.12.2011 12:01, schrieb Arturo Martinez:

Is there a patch for vdr-prefermenu to work with vdr 1.7.21 ?

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr
A while ago, I forked the prefermenu-plugin and named it favorites. It 
can be downloaded from the German vdr-portal: 
http://www.vdr-portal.de/board1-news/board2-vdr-news/106482-announce-favorites-0-0-1-aka-skin-enabled-prefermenu/ 
  
.  My version is skin enabled, so it uses the original vdr menu 
functions and skin. The drawback might be that the channel list is now a 
normal vdr menu with uses the whole OSD area.

@ Klaus
Would it be possible to implement a general small menu in vdr like 
cDisplayTracks with functionality of cOsdMenu ?


Regards,

Joachim

___
vdr mailing list
vdr@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr