mirror of
https://github.com/rofafor/vdr-plugin-femon.git
synced 2023-10-10 13:36:53 +02:00
Added a setup option to downscale the OSD size.
This commit is contained in:
parent
60386835dd
commit
513791d5f1
4
HISTORY
4
HISTORY
@ -389,3 +389,7 @@ VDR Plugin 'femon' Revision History
|
||||
- Updated for vdr-1.7.12.
|
||||
- Updated Estonian translation (Thanks to Arthur Konovalov).
|
||||
- Added Lithuanian translation (Thanks to Valdemaras Pipiras).
|
||||
|
||||
2010-xx-xx: Version 1.7.7
|
||||
|
||||
- Added a setup option to downscale the OSD size.
|
||||
|
6
femon.c
6
femon.c
@ -18,7 +18,7 @@
|
||||
#error "VDR-1.7.12 API version or greater is required!"
|
||||
#endif
|
||||
|
||||
static const char VERSION[] = "1.7.6";
|
||||
static const char VERSION[] = "1.7.7";
|
||||
static const char DESCRIPTION[] = trNOOP("DVB Signal Information Monitor (OSD)");
|
||||
static const char MAINMENUENTRY[] = trNOOP("Signal Information");
|
||||
|
||||
@ -319,6 +319,9 @@ void cMenuFemonSetup::Setup(void)
|
||||
Add(new cMenuEditBoolItem(tr("Position"), &data.position, trVDR("bottom"), trVDR("top")));
|
||||
help.Append(tr("Define the position of OSD."));
|
||||
|
||||
Add(new cMenuEditIntItem(tr("Downscale OSD size [%]"), &data.downscale, 0, 20));
|
||||
help.Append(tr("Define the downscale ratio for OSD size."));
|
||||
|
||||
Add(new cMenuEditIntItem(tr("Red limit [%]"), &data.redlimit, 1, 50));
|
||||
help.Append(tr("Define a limit for red bar, which is used to indicate a bad signal."));
|
||||
|
||||
@ -360,6 +363,7 @@ void cMenuFemonSetup::Store(void)
|
||||
SetupStore("Skin", femonConfig.skin);
|
||||
SetupStore("Theme", femonConfig.theme);
|
||||
SetupStore("Position", femonConfig.position);
|
||||
SetupStore("Downscale", femonConfig.downscale);
|
||||
SetupStore("RedLimit", femonConfig.redlimit);
|
||||
SetupStore("GreenLimit", femonConfig.greenlimit);
|
||||
SetupStore("UpdateInterval", femonConfig.updateinterval);
|
||||
|
@ -17,6 +17,7 @@ cFemonConfig::cFemonConfig(void)
|
||||
skin = 0;
|
||||
theme = 0;
|
||||
position = 1;
|
||||
downscale = 0;
|
||||
redlimit = 33;
|
||||
greenlimit = 66;
|
||||
updateinterval = 5;
|
||||
|
@ -28,6 +28,7 @@ public:
|
||||
int skin;
|
||||
int theme;
|
||||
int position;
|
||||
int downscale;
|
||||
int redlimit;
|
||||
int greenlimit;
|
||||
int updateinterval;
|
||||
|
@ -179,8 +179,10 @@ cFemonOsd::cFemonOsd()
|
||||
m_UNCValid(false),
|
||||
m_FrontendStatusValid(false),
|
||||
m_DisplayMode(femonConfig.displaymode),
|
||||
m_OsdWidth(cOsd::OsdWidth()),
|
||||
m_OsdHeight(cOsd::OsdHeight()),
|
||||
m_OsdWidth(cOsd::OsdWidth() * (100 - femonConfig.downscale) / 100),
|
||||
m_OsdHeight(cOsd::OsdHeight() * (100 - femonConfig.downscale) / 100),
|
||||
m_OsdLeft(cOsd::OsdLeft() + (cOsd::OsdWidth() * femonConfig.downscale / 200)),
|
||||
m_OsdTop(cOsd::OsdTop() + (cOsd::OsdHeight() * femonConfig.downscale / 200)),
|
||||
m_InputTime(0),
|
||||
m_Sleep(),
|
||||
m_Mutex()
|
||||
@ -597,7 +599,7 @@ void cFemonOsd::Show(void)
|
||||
return;
|
||||
}
|
||||
|
||||
m_Osd = cOsdProvider::NewOsd(cOsd::OsdLeft(), cOsd::OsdTop());
|
||||
m_Osd = cOsdProvider::NewOsd(m_OsdLeft, m_OsdTop);
|
||||
if (m_Osd) {
|
||||
tArea Areas1[] = { { 0, 0, OSDWIDTH - 1, OSDHEIGHT - 1, 8 } };
|
||||
if (Setup.AntiAlias && m_Osd->CanHandleAreas(Areas1, sizeof(Areas1) / sizeof(tArea)) == oeOk) {
|
||||
|
@ -50,6 +50,8 @@ private:
|
||||
int m_DisplayMode;
|
||||
int m_OsdWidth;
|
||||
int m_OsdHeight;
|
||||
int m_OsdLeft;
|
||||
int m_OsdTop;
|
||||
cFont *m_Font;
|
||||
cTimeMs m_InputTime;
|
||||
cCondWait m_Sleep;
|
||||
|
10
po/de_DE.po
10
po/de_DE.po
@ -7,9 +7,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
|
||||
"Last-Translator: Christian Wieninger\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -89,6 +89,12 @@ msgstr "Position"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Grenze Rot [%]"
|
||||
|
||||
|
10
po/es_ES.po
10
po/es_ES.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
|
||||
"Last-Translator: Luis Palacios\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "Posici
|
||||
msgid "Define the position of OSD."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Límite de rojo [%s]"
|
||||
|
||||
|
10
po/et_EE.po
10
po/et_EE.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
|
||||
"Last-Translator: Arthur Konovalov\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "Positsioon"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "Ekraaniinfo positsiooni määritlemine."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Punase limiit [%]"
|
||||
|
||||
|
10
po/fi_FI.po
10
po/fi_FI.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
|
||||
"Last-Translator: Rolf Ahrenberg\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "Sijainti"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "Määrittele näytön sijainti."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr "Pienennä näytön kokoa [%]"
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr "Määrittele näytön pienennyssuhde."
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Punaisen taso [%]"
|
||||
|
||||
|
10
po/fr_FR.po
10
po/fr_FR.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2008-01-26 09:59+0100\n"
|
||||
"Last-Translator: NIVAL Michaël <mnival@club-internet.fr>\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "Position"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "Définit la position de l'OSD."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Limite du rouge (%)"
|
||||
|
||||
|
10
po/it_IT.po
10
po/it_IT.po
@ -6,9 +6,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2008-11-10 23:37+0100\n"
|
||||
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -88,6 +88,12 @@ msgstr "Posizione"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "Definisci la posizione dell'OSD."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Limite rosso [%]"
|
||||
|
||||
|
10
po/lt_LT.po
10
po/lt_LT.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
|
||||
"Last-Translator: Valdemaras Pipiras\n"
|
||||
"Language-Team: <varas@ambernet.lt>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "Pozicija"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "Nustatyti ekrano užsklandos poziciją."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "Raudonoji ribą [%]"
|
||||
|
||||
|
10
po/ru_RU.po
10
po/ru_RU.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2007-08-12 23:22+0300\n"
|
||||
"Last-Translator: Vyacheslav Dikonov\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "
|
||||
msgid "Define the position of OSD."
|
||||
msgstr ""
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "ºàÐáÝÐï ×ÞÝÐ áÛÐÑÞÓÞ áØÓÝÐÛÐ ÔÞ (%)"
|
||||
|
||||
|
10
po/zh_CN.po
10
po/zh_CN.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2009-09-21 21:36+0800\n"
|
||||
"Last-Translator: NanFeng <nfgx@21cn.com>\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "位置"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "确定菜单的位置."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "红限制[ % ]"
|
||||
|
||||
|
10
po/zh_TW.po
10
po/zh_TW.po
@ -5,9 +5,9 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: femon 1.7.3\n"
|
||||
"Project-Id-Version: femon 1.7.7\n"
|
||||
"Report-Msgid-Bugs-To: Rolf Ahrenberg\n"
|
||||
"POT-Creation-Date: 2009-08-29 20:57+0300\n"
|
||||
"POT-Creation-Date: 2010-02-25 20:31+0200\n"
|
||||
"PO-Revision-Date: 2009-09-21 21:36+0800\n"
|
||||
"Last-Translator: NanFeng <nfgx@21cn.com>\n"
|
||||
"Language-Team: <vdr@linuxtv.org>\n"
|
||||
@ -87,6 +87,12 @@ msgstr "位置"
|
||||
msgid "Define the position of OSD."
|
||||
msgstr "確定菜單的位置."
|
||||
|
||||
msgid "Downscale OSD size [%]"
|
||||
msgstr ""
|
||||
|
||||
msgid "Define the downscale ratio for OSD size."
|
||||
msgstr ""
|
||||
|
||||
msgid "Red limit [%]"
|
||||
msgstr "紅限制[ % ]"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user