1
0
mirror of https://github.com/rofafor/vdr-plugin-femon.git synced 2023-10-10 11:36:53 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
Rolf Ahrenberg
9814970182 Default make target is now all.
Fixed the access rights of symbols subdirectory (Thanks to Harri Kukkonen).
Added a new theme: Moronimo (Thanks to Morone).
2005-04-01 04:20:00 +03:00
Rolf Ahrenberg
5bda0fa833 Horizontal offset setup option should be functional now. 2005-02-26 04:20:00 +02:00
10 changed files with 88 additions and 44 deletions

10
HISTORY
View File

@@ -137,3 +137,13 @@ VDR Plugin 'femon' Revision History
- Minor modification for DEBUG mode. - Minor modification for DEBUG mode.
- Added preliminary support for themes and some GUI tweaks. - Added preliminary support for themes and some GUI tweaks.
- Added horizontal offset setup option. - Added horizontal offset setup option.
2005-02-26: Version 0.8.6
- Horizontal offset setup option should be functional now.
2005-04-01: Version 0.8.7
- Default make target is now all.
- Fixed the access rights of symbols subdirectory (Thanks to Harri Kukkonen).
- Added a new theme: Moronimo (Thanks to Morone).

View File

@@ -52,6 +52,9 @@ ifdef DEBUG
DEFINES += -DDEBUG DEFINES += -DDEBUG
endif endif
.PHONY: all all-redirect
all-redirect: all
### The object files (add further files here): ### The object files (add further files here):
OBJS = femon.o femonosd.o femonreceiver.o femoncfg.o femoni18n.o OBJS = femon.o femonosd.o femonreceiver.o femoncfg.o femoni18n.o

8
README
View File

@@ -21,11 +21,9 @@ transponder and stream information are also available in advanced display modes.
The plugin is based on a neat console frontend status monitor application The plugin is based on a neat console frontend status monitor application
called 'femon' by Johannes Stezenbach (see DVB-apps/szap/femon.c for further called 'femon' by Johannes Stezenbach (see DVB-apps/szap/femon.c for further
information). The other parts of plugin code are borrowed from the excellent information). The bitrate calculation trick originates from the 'dvbstream'
'OSD Picture-In-Picture' plugin by Sascha Volkenandt and Andreas Regel. The application by Dave Chapman and the stream information routines are taken from
bitrate calculation algorithm originates from the 'dvbstream' application by the 'libdvb' library by Metzler Brothers.
Dave Chapman and the stream information routines from the 'libdvb' library by
Metzler Brothers.
Terminology: Terminology:

View File

@@ -102,6 +102,7 @@ cMenuFemonSetup::cMenuFemonSetup(void)
themes[eFemonThemeClassic] = tr("Classic"); themes[eFemonThemeClassic] = tr("Classic");
themes[eFemonThemeElchi] = tr("Elchi"); themes[eFemonThemeElchi] = tr("Elchi");
themes[eFemonThemeDeepBlue] = tr("DeepBlue"); themes[eFemonThemeDeepBlue] = tr("DeepBlue");
themes[eFemonThemeMoronimo] = tr("Moronimo");
Setup(); Setup();
} }

View File

@@ -11,7 +11,7 @@
#include <vdr/plugin.h> #include <vdr/plugin.h>
static const char *VERSION = "0.8.5"; static const char *VERSION = "0.8.7";
static const char *DESCRIPTION = "DVB Signal Information Monitor (OSD)"; static const char *DESCRIPTION = "DVB Signal Information Monitor (OSD)";
static const char *MAINMENUENTRY = "Signal Information"; static const char *MAINMENUENTRY = "Signal Information";

View File

@@ -66,5 +66,16 @@ const cFemonTheme femonTheme[eFemonThemeMaxNumber] =
0xFFCE7B00, // clrYellow 0xFFCE7B00, // clrYellow
0xFF336600, // clrGreen 0xFF336600, // clrGreen
}, },
{
// eFemonThemeMoronimo
0xDF294A6B, // clrBackground
0xDF3E5578, // clrTitleBackground
0xFF9BBAD7, // clrTitleText
0xFFCE7B00, // clrActiveText
0xFF9A9A9A, // clrInactiveText
0xFF992900, // clrRed
0xFFCE7B00, // clrYellow
0xFF336600, // clrGreen
},
}; };

View File

@@ -50,6 +50,7 @@ enum eFemonThemes
eFemonThemeClassic, eFemonThemeClassic,
eFemonThemeElchi, eFemonThemeElchi,
eFemonThemeDeepBlue, eFemonThemeDeepBlue,
eFemonThemeMoronimo,
eFemonThemeMaxNumber eFemonThemeMaxNumber
}; };

View File

@@ -242,45 +242,66 @@ const tI18nPhrase Phrases[] = {
}, },
{ "Elchi", // English { "Elchi", // English
"Elchi", // Deutsch "Elchi", // Deutsch
"", // Slovenski "Elchi", // Slovenski
"", // Italiano "Elchi", // Italiano
"", // Nederlands "Elchi", // Nederlands
"", // Portugu<67>s "Elchi", // Portugu<67>s
"", // Fran<61>ais "Elchi", // Fran<61>ais
"", // Norsk "Elchi", // Norsk
"Elchi", // suomi "Elchi", // suomi
"", // Polski "Elchi", // Polski
"", // Espa<70>ol "Elchi", // Espa<70>ol
"", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Greek) "Elchi", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Greek)
"", // Svenska "Elchi", // Svenska
"", // Romaneste "Elchi", // Romaneste
"", // Magyar "Elchi", // Magyar
"", // Catal<61> "Elchi", // Catal<61>
"", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Russian) "Elchi", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Russian)
"", // Hrvatski (Croatian) "Elchi", // Hrvatski (Croatian)
"Elchi", // Eesti "Elchi", // Eesti
"", // Dansk "Elchi", // Dansk
}, },
{ "DeepBlue", // English { "DeepBlue", // English
"DeepBlue", // Deutsch "DeepBlue", // Deutsch
"", // Slovenski "DeepBlue", // Slovenski
"", // Italiano "DeepBlue", // Italiano
"", // Nederlands "DeepBlue", // Nederlands
"", // Portugu<67>s "DeepBlue", // Portugu<67>s
"", // Fran<61>ais "DeepBlue", // Fran<61>ais
"", // Norsk "DeepBlue", // Norsk
"DeepBlue", // suomi "DeepBlue", // suomi
"", // Polski "DeepBlue", // Polski
"", // Espa<70>ol "DeepBlue", // Espa<70>ol
"", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Greek) "DeepBlue", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Greek)
"", // Svenska "DeepBlue", // Svenska
"", // Romaneste "DeepBlue", // Romaneste
"", // Magyar "DeepBlue", // Magyar
"", // Catal<61> "DeepBlue", // Catal<61>
"", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Russian) "DeepBlue", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Russian)
"", // Hrvatski (Croatian) "DeepBlue", // Hrvatski (Croatian)
"DeepBlue", // Eesti "DeepBlue", // Eesti
"", // Dansk "DeepBlue", // Dansk
},
{ "Moronimo", // English
"Moronimo", // Deutsch
"Moronimo", // Slovenski
"Moronimo", // Italiano
"Moronimo", // Nederlands
"Moronimo", // Portugu<67>s
"Moronimo", // Fran<61>ais
"Moronimo", // Norsk
"Moronimo", // suomi
"Moronimo", // Polski
"Moronimo", // Espa<70>ol
"Moronimo", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Greek)
"Moronimo", // Svenska
"Moronimo", // Romaneste
"Moronimo", // Magyar
"Moronimo", // Catal<61>
"Moronimo", // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> (Russian)
"Moronimo", // Hrvatski (Croatian)
"Moronimo", // Eesti
"Moronimo", // Dansk
}, },
{ "Hide main menu entry", // English { "Hide main menu entry", // English
"Hauptmen<EFBFBD>eintrag verstecken", // Deutsch "Hauptmen<EFBFBD>eintrag verstecken", // Deutsch

View File

@@ -884,7 +884,7 @@ void cFemonOsd::Show(void)
m_Frontend = -1; m_Frontend = -1;
return; return;
} }
m_Osd = cOsdProvider::NewOsd(((Setup.OSDWidth - OSDWIDTH) / 2) + Setup.OSDLeft, ((Setup.OSDHeight - OSDHEIGHT) / 2) + Setup.OSDTop); m_Osd = cOsdProvider::NewOsd(((Setup.OSDWidth - OSDWIDTH) / 2) + Setup.OSDLeft + femonConfig.osdoffset, ((Setup.OSDHeight - OSDHEIGHT) / 2) + Setup.OSDTop);
if (m_Osd) { if (m_Osd) {
tArea Areas1[] = { { 0, 0, OSDWIDTH, OSDHEIGHT, 4 } }; tArea Areas1[] = { { 0, 0, OSDWIDTH, OSDHEIGHT, 4 } };
if (m_Osd->CanHandleAreas(Areas1, sizeof(Areas1) / sizeof(tArea)) == oeOk) { if (m_Osd->CanHandleAreas(Areas1, sizeof(Areas1) / sizeof(tArea)) == oeOk) {
@@ -1057,9 +1057,8 @@ eOSState cFemonOsd::ProcessKey(eKeys Key)
} }
if (cDevice::GetDevice(device)->ProvidesChannel(channel)) { if (cDevice::GetDevice(device)->ProvidesChannel(channel)) {
Dprintf("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, Key, device); Dprintf("%s(%d) device(%d)\n", __PRETTY_FUNCTION__, Key, device);
//if (cDevice::ActualDevice() == cTransferControl::ReceiverDevice()) // 1) tune the channel on the new device
// cControl::Shutdown(); // 2) make the new device to actual device
//cDevice::GetDevice(channel)->SwitchChannel(channel, true);
break; break;
} }
} }

View File

@@ -62,7 +62,7 @@ cFemonReceiver::~cFemonReceiver(void)
Detach(); Detach();
if (m_Active) { if (m_Active) {
m_Active = false; m_Active = false;
Cancel(0); Cancel();
} }
} }
@@ -259,7 +259,7 @@ void cFemonReceiver::Activate(bool On)
} }
else if (m_Active) { else if (m_Active) {
m_Active = false; m_Active = false;
Cancel(0); Cancel();
} }
} }