From 3d738f9c8a5d48bb22b3330c036b6887b0f9d6c1 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Sun, 13 Jun 2004 18:40:59 +0000 Subject: - added parameter alpha for images - 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 --- status.c | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 status.c (limited to 'status.c') 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; +} -- cgit v1.2.3