diff options
-rw-r--r-- | HISTORY | 1 | ||||
-rw-r--r-- | config.c | 2 | ||||
-rw-r--r-- | config.h | 1 | ||||
-rw-r--r-- | displaychannel.c | 74 | ||||
-rw-r--r-- | displaychannel.h | 3 | ||||
-rw-r--r-- | icons/skinIcons/crypted.png | bin | 0 -> 19542 bytes | |||
-rw-r--r-- | icons/skinIcons/dolbyoff.png | bin | 0 -> 14348 bytes | |||
-rw-r--r-- | icons/skinIcons/dolbyon.png | bin | 0 -> 15126 bytes | |||
-rw-r--r-- | icons/skinIcons/fta.png | bin | 0 -> 16836 bytes | |||
-rw-r--r-- | icons/skinIcons/recoff.png | bin | 0 -> 15327 bytes | |||
-rw-r--r-- | icons/skinIcons/recon.png | bin | 0 -> 19337 bytes | |||
-rw-r--r-- | icons/skinIcons/stereooff.png | bin | 0 -> 16325 bytes | |||
-rw-r--r-- | icons/skinIcons/stereoon.png | bin | 0 -> 20860 bytes | |||
-rw-r--r-- | icons/skinIcons/txtoff.png | bin | 0 -> 15447 bytes | |||
-rw-r--r-- | icons/skinIcons/txton.png | bin | 0 -> 17142 bytes | |||
-rw-r--r-- | menuitem.c | 4 | ||||
-rw-r--r-- | menuitem.h | 1 | ||||
-rw-r--r-- | po/de_DE.po | 11 | ||||
-rw-r--r-- | po/it_IT.po | 11 | ||||
-rw-r--r-- | po/sk_SK.po | 11 | ||||
-rw-r--r-- | setup.c | 4 | ||||
-rw-r--r-- | setup.h | 1 |
22 files changed, 113 insertions, 11 deletions
@@ -216,3 +216,4 @@ Version 0.1.2 running in the background - Additional information in channels menu configurable: choice between transponder information and current schedule +- Added optional dedicated status icons in channel display @@ -21,6 +21,7 @@ cNopacityConfig::cNopacityConfig() { logoExtension = "png"; logoBorder = 15; backgroundStyle = 0; + symbolStyle = 0; roundedCornersChannel = 1; displaySignalStrength = 1; displayPrevNextChannelGroup = 1; @@ -303,6 +304,7 @@ bool cNopacityConfig::SetupParse(const char *Name, const char *Value) { else if (strcmp(Name, "logoHeight") == 0) logoHeight = atoi(Value); else if (strcmp(Name, "logoBorder") == 0) logoBorder = atoi(Value); else if (strcmp(Name, "backgroundStyle") == 0) backgroundStyle = atoi(Value); + else if (strcmp(Name, "symbolStyle") == 0) symbolStyle = atoi(Value); else if (strcmp(Name, "roundedCornersChannel") == 0) roundedCornersChannel = atoi(Value); else if (strcmp(Name, "displaySignalStrength") == 0) displaySignalStrength = atoi(Value); else if (strcmp(Name, "displayPrevNextChannelGroup") == 0) displayPrevNextChannelGroup = atoi(Value); @@ -46,6 +46,7 @@ class cNopacityConfig { int logoHeight;
int logoBorder;
int backgroundStyle;
+ int symbolStyle;
int roundedCornersChannel;
int displaySignalStrength;
int displayPrevNextChannelGroup;
diff --git a/displaychannel.c b/displaychannel.c index 77c1488..919ebb0 100644 --- a/displaychannel.c +++ b/displaychannel.c @@ -302,6 +302,72 @@ void cNopacityDisplayChannel::DrawIcons(const cChannel *Channel) { pixmapStreamInfoBack->DrawRectangle(cRect(backX, backY, iconSize-10, iconSize-10), colRecording); } +void cNopacityDisplayChannel::DrawIconsSingle(const cChannel *Channel) { + isRadioChannel = ((!Channel->Vpid())&&(Channel->Apid(0)))?true:false; + pixmapStreamInfo->Fill(clrTransparent); + int iconX = 0; + cImageLoader imgLoader; + + if (Channel->Vpid() && Channel->Tpid()) { + if (imgLoader.LoadIcon("skinIcons/txton", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } else { + if (imgLoader.LoadIcon("skinIcons/txtoff", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } + + iconX += iconSize; + + if (Channel->Apid(1)) { + if (imgLoader.LoadIcon("skinIcons/stereoon", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } else { + if (imgLoader.LoadIcon("skinIcons/stereooff", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } + + iconX += iconSize; + + if (Channel->Dpid(0)) { + if (imgLoader.LoadIcon("skinIcons/dolbyon", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } else { + if (imgLoader.LoadIcon("skinIcons/dolbyoff", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } + + iconX += iconSize; + + if (Channel->Ca()) { + if (imgLoader.LoadIcon("skinIcons/crypted", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } else { + if (imgLoader.LoadIcon("skinIcons/fta", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } + + iconX += iconSize; + + if (cRecordControls::Active()) { + if (imgLoader.LoadIcon("skinIcons/recon", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } else { + if (imgLoader.LoadIcon("skinIcons/recoff", iconSize)) { + pixmapStreamInfo->DrawImage(cPoint(iconX, 0), imgLoader.GetImage()); + } + } + +} + void cNopacityDisplayChannel::DrawScreenResolution(void) { int spacing = 10; int screenWidth = 0; @@ -447,8 +513,12 @@ void cNopacityDisplayChannel::SetChannel(const cChannel *Channel, int Number) { if (!groupSep) { if (withInfo) { - DrawIconMask(); - DrawIcons(Channel); + if (config.symbolStyle == 0) { + DrawIconMask(); + DrawIcons(Channel); + } else { + DrawIconsSingle(Channel); + } } cString channelString = cString::sprintf("%s %s", *ChannelNumber, *ChannelName); pixmapChannelInfo->DrawText(cPoint(channelInfoHeight/2, (channelInfoHeight-fontHeader->Height())/2), channelString, Theme.Color(clrChannelHead), clrTransparent, fontHeader); diff --git a/displaychannel.h b/displaychannel.h index eec252a..d255900 100644 --- a/displaychannel.h +++ b/displaychannel.h @@ -74,7 +74,8 @@ private: void DrawProgressBar(int Current, int Total); tColor DrawProgressbarBackground(int left, int top, int width, int height); void DrawIconMask(void); - void DrawIcons(const cChannel *channel); + void DrawIcons(const cChannel *Channel); + void DrawIconsSingle(const cChannel *Channel); void DrawScreenResolution(void); void DrawSignalMeter(void); void DrawSignal(void); diff --git a/icons/skinIcons/crypted.png b/icons/skinIcons/crypted.png Binary files differnew file mode 100644 index 0000000..9415299 --- /dev/null +++ b/icons/skinIcons/crypted.png diff --git a/icons/skinIcons/dolbyoff.png b/icons/skinIcons/dolbyoff.png Binary files differnew file mode 100644 index 0000000..e3b516f --- /dev/null +++ b/icons/skinIcons/dolbyoff.png diff --git a/icons/skinIcons/dolbyon.png b/icons/skinIcons/dolbyon.png Binary files differnew file mode 100644 index 0000000..7697dcc --- /dev/null +++ b/icons/skinIcons/dolbyon.png diff --git a/icons/skinIcons/fta.png b/icons/skinIcons/fta.png Binary files differnew file mode 100644 index 0000000..833bbaf --- /dev/null +++ b/icons/skinIcons/fta.png diff --git a/icons/skinIcons/recoff.png b/icons/skinIcons/recoff.png Binary files differnew file mode 100644 index 0000000..ac35bf4 --- /dev/null +++ b/icons/skinIcons/recoff.png diff --git a/icons/skinIcons/recon.png b/icons/skinIcons/recon.png Binary files differnew file mode 100644 index 0000000..fe37b18 --- /dev/null +++ b/icons/skinIcons/recon.png diff --git a/icons/skinIcons/stereooff.png b/icons/skinIcons/stereooff.png Binary files differnew file mode 100644 index 0000000..a8d1ec6 --- /dev/null +++ b/icons/skinIcons/stereooff.png diff --git a/icons/skinIcons/stereoon.png b/icons/skinIcons/stereoon.png Binary files differnew file mode 100644 index 0000000..dac8469 --- /dev/null +++ b/icons/skinIcons/stereoon.png diff --git a/icons/skinIcons/txtoff.png b/icons/skinIcons/txtoff.png Binary files differnew file mode 100644 index 0000000..1cef83f --- /dev/null +++ b/icons/skinIcons/txtoff.png diff --git a/icons/skinIcons/txton.png b/icons/skinIcons/txton.png Binary files differnew file mode 100644 index 0000000..58403a7 --- /dev/null +++ b/icons/skinIcons/txton.png @@ -562,7 +562,6 @@ void cNopacityScheduleMenuItem::DrawRemaining(int x, int y, int width) { cNopacityChannelMenuItem::cNopacityChannelMenuItem(cOsd *osd, const cChannel *Channel, bool sel, cRect *vidWin) : cNopacityMenuItem (osd, "", sel) { this->Channel = Channel; this->vidWin = vidWin; - epgRead = false; } cNopacityChannelMenuItem::~cNopacityChannelMenuItem(void) { @@ -721,9 +720,6 @@ void cNopacityChannelMenuItem::Render() { if (selectable) { //Channels DrawBackground(); - if (!epgRead) { - - } int logoWidth = config.menuItemLogoWidth; int logoHeight = config.menuItemLogoHeight; if (!drawn) { @@ -116,7 +116,6 @@ private: std::string strEpgInfoFull; std::string strTimeInfo; cRect *vidWin; - bool epgRead; void SetTextFull(void); void SetTextShort(void); void DrawBackground(void); diff --git a/po/de_DE.po b/po/de_DE.po index ce5cdfc..09fd2e6 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-05-09 14:41+0200\n" +"POT-Creation-Date: 2013-05-10 11:09+0200\n" "PO-Revision-Date: 2012-11-11 17:49+0200\n" "Last-Translator: louis\n" "Language-Team: \n" @@ -347,6 +347,12 @@ msgstr "Weitere EPG Bilder in der detaillierten Aufnahmeansicht anzeigen" msgid "Folder Icon Size" msgstr "Order Icon Größe" +msgid "simple, one common image" +msgstr "einfach, eine gemeinsame Graphik" + +msgid "complex, dedicated images" +msgstr "aufwändig, einzelne Graphiken" + msgid "transparent channel logo" msgstr "Kanallogo transparent" @@ -398,6 +404,9 @@ msgstr "Größe des Icons zur Anzeige der Bildschirmauflösung" msgid "Status Icons Size" msgstr "Status Icon Größe" +msgid "Status Icon Style" +msgstr "Status Icon Stil" + msgid "Adjust Font Size - EPG Text" msgstr "Schriftgröße anpassen - EPG Text" diff --git a/po/it_IT.po b/po/it_IT.po index 57a1a12..45b1422 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-05-09 14:41+0200\n" +"POT-Creation-Date: 2013-05-10 11:09+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" "Language-Team: \n" @@ -350,6 +350,12 @@ msgstr "Mostra immagini EPG aggiuntivo nella vista dettagli registrazione" msgid "Folder Icon Size" msgstr "Dim. icona cartella" +msgid "simple, one common image" +msgstr "" + +msgid "complex, dedicated images" +msgstr "" + msgid "transparent channel logo" msgstr "" @@ -401,6 +407,9 @@ msgstr "Dim. icona risoluzione schermo" msgid "Status Icons Size" msgstr "Dim. icone stato" +msgid "Status Icon Style" +msgstr "" + msgid "Adjust Font Size - EPG Text" msgstr "Adatta dim. caratteri - Testo EPG" diff --git a/po/sk_SK.po b/po/sk_SK.po index 79b0f14..3daa603 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinnopacity 0.0.6\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-05-09 14:41+0200\n" +"POT-Creation-Date: 2013-05-10 11:09+0200\n" "PO-Revision-Date: 2013-03-12 15:59+0100\n" "Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n" "Language-Team: \n" @@ -350,6 +350,12 @@ msgstr "Zobrazi» ïal¹ie EPG obrázky v podrobnom zobrazení nahrávky" msgid "Folder Icon Size" msgstr "Veµkos» ikony prieèinku" +msgid "simple, one common image" +msgstr "" + +msgid "complex, dedicated images" +msgstr "" + msgid "transparent channel logo" msgstr "" @@ -401,6 +407,9 @@ msgstr "Veµkos» ikony rozlí¹enia obrazovky" msgid "Status Icons Size" msgstr "Veµkos» ikón panelu úloh" +msgid "Status Icon Style" +msgstr "" + msgid "Adjust Font Size - EPG Text" msgstr "Nastavenie veµkos»i písma - EPG text" @@ -80,6 +80,7 @@ void cNopacitySetup::Store(void) { SetupStore("logoHeight", config.logoHeight); SetupStore("logoBorder", config.logoBorder); SetupStore("backgroundStyle", config.backgroundStyle); + SetupStore("symbolStyle", config.symbolStyle); SetupStore("roundedCornersChannel", config.roundedCornersChannel); SetupStore("displaySignalStrength", config.displaySignalStrength); SetupStore("displayPrevNextChannelGroup", config.displayPrevNextChannelGroup); @@ -456,6 +457,8 @@ void cNopacitySetupMenuDisplayRecordings::Set(void) { //----ChannelDisplay-------------------------------------------------------------------------------------------------------------- cNopacitySetupChannelDisplay::cNopacitySetupChannelDisplay(cNopacityConfig* data) : cMenuSetupSubMenu(tr("Channel Switching"), data) { + symStyle[0] = tr("simple, one common image"); + symStyle[1] = tr("complex, dedicated images"); bgStyle[0] = tr("transparent channel logo"); bgStyle[1] = tr("full osd width"); logoPos[0] = tr("do not display"); @@ -487,6 +490,7 @@ void cNopacitySetupChannelDisplay::Set(void) { Add(new cMenuEditBoolItem(tr("Display previous and next Channel Group"), &tmpNopacityConfig->displayPrevNextChannelGroup)); Add(new cMenuEditIntItem(tr("Screen Resolution Icon Size"), &tmpNopacityConfig->resolutionIconSize, 30, 200)); Add(new cMenuEditIntItem(tr("Status Icons Size"), &tmpNopacityConfig->statusIconSize, 30, 150)); + Add(new cMenuEditStraItem(tr("Status Icon Style"), &tmpNopacityConfig->symbolStyle, 2, symStyle)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Header"), &tmpNopacityConfig->fontChannelHeaderSize, -20, 20)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Date"), &tmpNopacityConfig->fontChannelDateSize, -20, 20)); Add(new cMenuEditIntItem(tr("Adjust Font Size - EPG Text"), &tmpNopacityConfig->fontEPGSize, -20, 20)); @@ -81,6 +81,7 @@ class cNopacitySetupChannelDisplay : public cMenuSetupSubMenu { protected: const char *logoPos[3]; const char *progressStyleCurrentSchedule[2]; + const char *symStyle[2]; const char *bgStyle[2]; void Set(void); public: |