summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <kamel5 (at) gmx (dot) net>2018-03-29 12:54:19 +0200
committerkamel5 <kamel5 (at) gmx (dot) net>2018-03-29 12:56:06 +0200
commit69e5a0e5985001f51b50dfe1448a01d435b800bf (patch)
treee569d985cf6eff049942dd3d622232980a885d34
parent8ab8be6776c550c416c93abc9e6dc498a36e6229 (diff)
downloadskin-lcarsng-69e5a0e5985001f51b50dfe1448a01d435b800bf.tar.gz
skin-lcarsng-69e5a0e5985001f51b50dfe1448a01d435b800bf.tar.bz2
Rebase DrawRecordingNumberinPath() and DrawRecordingNumber()
-rw-r--r--lcarsng.c44
-rw-r--r--po/de_DE.po23
2 files changed, 43 insertions, 24 deletions
diff --git a/lcarsng.c b/lcarsng.c
index 0158dcb..5bb4e5c 100644
--- a/lcarsng.c
+++ b/lcarsng.c
@@ -31,7 +31,7 @@
#include <vdr/positioner.h>
#endif
#include <vdr/themes.h>
-#include "vdr/tools.h"
+#include <vdr/tools.h>
#include <vdr/videodir.h>
#include <sys/statvfs.h>
#include <string>
@@ -854,6 +854,8 @@ private:
void DrawDate(void);
void DrawDisk(void);
void DrawLoad(void);
+ void DrawRecordingNumberinPath(void);
+ void DrawRecordingNumber(void);
void DrawFrameDisplay(void);
void DrawScrollbar(int Total, int Offset, int Shown, bool CanScrollUp, bool CanScrollDown);
void DrawTimer(const cTimer *Timer, int y, bool MultiRec);
@@ -1332,6 +1334,33 @@ void cLCARSNGDisplayMenu::DrawLoad(void)
}
}
+void cLCARSNGDisplayMenu::DrawRecordingNumberinPath(void)
+{
+ const cFont *font = cFont::GetFont(fontOsd);
+ int NumRecordingsInPath = 0;
+ {
+ LOCK_RECORDINGS_READ;
+ NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath());
+ }
+ osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight);
+}
+
+void cLCARSNGDisplayMenu::DrawRecordingNumber(void)
+{
+ if (yb06) {
+ const cFont *font = cFont::GetFont(fontOsd);
+ tColor ColorFg = Theme.Color(clrMenuFrameFg);
+ tColor ColorBg = frameColor;
+ int NumRecordings = 0;
+ {
+ LOCK_RECORDINGS_READ;
+ NumRecordings = Recordings->Count();
+ }
+ osd->DrawText(xa00, yb06, tr("RECORDINGNUMBER"), ColorFg, ColorBg, tinyFont, xa02 - xa00, yb07 - yb06, taTop | taLeft | taBorder);
+ osd->DrawText(xa00, yb07 - lineHeight, cString::sprintf("%i", NumRecordings), Theme.Color(clrMenuFrameFg), frameColor, font, xa02 - xa00, lineHeight, taBottom | taRight);
+ }
+}
+
void cLCARSNGDisplayMenu::DrawMainBracket(void)
{
const cFont *font = cFont::GetFont(fontOsd);
@@ -1405,6 +1434,9 @@ void cLCARSNGDisplayMenu::DrawFrameDisplay(void)
osd->DrawText(xa00, yb09 - lineHeight, "LCARSNG", Theme.Color(clrMenuFrameFg), frameColor, font, xa02 - xa00, lineHeight, taBottom | taRight | taBorder);
}
}
+ DrawRecordingNumber();
+ if (MenuCategory() == mcRecording)
+ DrawRecordingNumberinPath();
// }
}
@@ -1885,9 +1917,6 @@ void cLCARSNGDisplayMenu::SetTitle(const char *Title)
const cFont *font = cFont::GetFont(fontOsd);
initial = true;
currentTitle = NULL;
-#ifdef USE_WAREAGLEICON
- int NumRecordingsInPath = 0;
-#endif /* WAREAGLEICON */
switch (MenuCategory()) {
case mcMain:
case mcSetup:
@@ -1895,13 +1924,6 @@ void cLCARSNGDisplayMenu::SetTitle(const char *Title)
case mcChannel:
break;
case mcRecording:
-#ifdef USE_WAREAGLEICON
- {
- LOCK_RECORDINGS_READ;
- NumRecordingsInPath = Recordings->GetNumRecordingsInPath(cMenuRecordings::GetActualPath());
- }
- osd->DrawText(xm04, ys00, cString::sprintf("%i", NumRecordingsInPath), Theme.Color(clrMenuFrameFg), frameColor, font, xm08 - xm04 - 1, lineHeight, taBottom | taRight);
-#endif /* WAREAGLEICON */
currentTitle = Title;
case mcRecordingInfo:
case mcRecordingEdit:
diff --git a/po/de_DE.po b/po/de_DE.po
index bd12219..f57b394 100644
--- a/po/de_DE.po
+++ b/po/de_DE.po
@@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: SkinLcarsng 0.0.2\n"
"Report-Msgid-Bugs-To: <see README>\n"
-"POT-Creation-Date: 2017-10-18 12:01+0200\n"
+"POT-Creation-Date: 2018-03-29 12:00+0200\n"
"PO-Revision-Date: 2017-10-18 12:01+0200\n"
"Last-Translator: Karl Melscher <kamel5@gmx.net>\n"
"Language-Team: <vdr@linuxtv.org>\n"
@@ -15,24 +15,15 @@ msgstr ""
"Content-Type: text/plain; charset=ISO-8859-15\n"
"Content-Transfer-Encoding: 8bit\n"
-msgid "clock"
-msgstr "Uhr"
-
-msgid "disk usage"
-msgstr ""
-
-msgid "free space"
-msgstr ""
-
-msgid "Volume"
-msgstr "Lautstärke"
-
msgid "DISK"
msgstr "PLATTE"
msgid "LOAD"
msgstr "LAST"
+msgid "RECORDINGNUMBER"
+msgstr "Anzahl Aufnahmen"
+
msgid "Setup"
msgstr "Einstellungen"
@@ -53,3 +44,9 @@ msgstr "LIVE"
msgid "PLAY"
msgstr "WIEDERGABE"
+
+#~ msgid "clock"
+#~ msgstr "Uhr"
+
+#~ msgid "Volume"
+#~ msgstr "Lautstärke"