summaryrefslogtreecommitdiff
path: root/status.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-06-13 18:40:59 +0000
committerlordjaxom <lordjaxom>2004-06-13 18:40:59 +0000
commit3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1 (patch)
tree218f9b266dbde63a76caa8548108e1dccec4afc7 /status.c
parentc73c6b62067cef765a85dd2a19dcc7296b813b2c (diff)
downloadvdr-plugin-text2skin-3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1.tar.gz
vdr-plugin-text2skin-3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1.tar.bz2
- added parameter alpha for imagesv0.0.4
- added ReplayMode as Logo to display a replaylogo (normal, vcd, mp3, dvd, ...) - added some german and finnish (thx to Rolf Ahrenberg) translations - fixed VPSTime which was displayed although is was equal to the StartTime - fixed MenuItems which displayed non-Text items periodically - fixed calculation of the editable width in the main menu - fixed animation delay (specified in 1/100th, used 1/1000th) - flushing cache when entering a new display (now the cache basically holds all items necessary in one display) - removed "flush image cache" from setup menu - added "max. cache size" to setup menu
Diffstat (limited to 'status.c')
-rw-r--r--status.c42
1 files changed, 42 insertions, 0 deletions
diff --git a/status.c b/status.c
new file mode 100644
index 0000000..fb2002d
--- /dev/null
+++ b/status.c
@@ -0,0 +1,42 @@
+/*
+ * $Id: status.c,v 1.2 2004/06/12 19:17:06 lordjaxom Exp $
+ */
+
+#include "status.h"
+
+cText2SkinStatus cText2SkinStatus::mStatus;
+
+cText2SkinStatus::cText2SkinStatus(void) {
+ mReplayMode = replayNone;
+}
+
+void cText2SkinStatus::Replaying(const cControl *Control, const char *Name) {
+ if (Name != NULL) {
+ mReplayMode = replayNormal;
+ if (strlen(Name) > 6 && Name[0]=='[' && Name[3]==']' && Name[5]=='(') {
+ int i;
+ for (i = 6; Name[i]; ++i) {
+ if (Name[i] == ' ' && Name[i-1] == ')')
+ break;
+ }
+ if (Name[i]) // replaying mp3
+ mReplayMode = replayMP3;
+ } else if (strcmp(Name, "DVD") == 0)
+ mReplayMode = replayDVD;
+ else if (strcmp(Name, "VCD") == 0)
+ mReplayMode = replayVCD;
+ else if (access(Name, F_OK) == 0)
+ mReplayMode = replayMPlayer;
+ else if (strlen(Name) > 7) {
+ int i, n;
+ for (i = 0, n = 0; Name[i]; ++i) {
+ if (Name[i] == ' ' && Name[i-1] == ',' && ++n == 4)
+ break;
+ }
+ if (Name[i]) { // replaying DVD
+ mReplayMode = replayDVD;
+ }
+ }
+ } else
+ mReplayMode = replayNone;
+}