20 #define AUTO_ADVANCE_TIMEOUT 1500
22 const char *
FileNameChars =
trNOOP(
"FileNameChars$ abcdefghijklmnopqrstuvwxyz0123456789-.,#~\\^$[]|()*+?{}/:%@&");
28 name = strdup(Name ? Name :
"???");
90 snprintf(buf,
sizeof(buf),
"%d", *
value);
100 int newValue = *
value;
110 newValue = newValue * 10 + (Key -
k0);
113 newValue = *
value - 1;
115 if (!IsRepeat && newValue <
min &&
max != INT_MAX)
119 newValue = *
value + 1;
121 if (!IsRepeat && newValue >
max &&
min != INT_MIN)
205 int l = strlen(
value);
211 int l = strlen(
value);
218 default:
return state;
280 while (Decimals-- > 0)
310 newValue = newValue * 10 + (Key -
k0);
341 allowed = strdup(Allowed ? Allowed :
"");
430 const char *charMap =
tr(
"CharMap$ 0\t-.,1#~\\^$[]|()*+?{}/:%@&\tabc2\tdef3\tghi4\tjkl5\tmno6\tpqrs7\ttuv8\twxyz9");
431 l = strlen(charMap) + 1;
463 SetHelp(
tr(
"Button$ABC/abc"),
insert ?
tr(
"Button$Overwrite") :
tr(
"Button$Insert"),
tr(
"Button$Delete"),
macros ?
tr(
"Button$Macro") : NULL);
503 width -= font->
Width(
"[]");
504 width -= font->
Width(
"<>");
508 int WidthFromOffset = 0;
512 if (WidthFromOffset > width) {
517 }
while (WidthFromOffset > width &&
offset <
pos);
560 while (*p && *(p + 1))
863 snprintf(buf,
sizeof(buf),
"%d %s", *
value, Channel ? Channel->
Name() :
"");
881 case kLeft: delta = -1;
886 const cChannel *Channel = Channels->GetByNumber(*
value + delta, delta);
888 *
value = Channel->Number();
892 *
channelID = Channel ? Channel->GetChannelID().ToString() :
"";
910 const cChannel *Channel = Channels->First();
916 Channel = Channels->
Next(Channel);
926 *
source = Channel->Source();
971 for (
unsigned int i = 0; i <
sizeof(
days) /
sizeof(
int); i++)
972 if (WeekDays ==
days[i])
979 #define DATEBUFFERSIZE 32
987 localtime_r(
value, &tm_r);
1021 time_t now = time(NULL);
1070 else if (
k1 <= Key && Key <=
k7) {
1116 if (
k0 <= Key && Key <=
k9) {
1123 case 0:
if (n <= 2) {
1129 case 1:
if (
hh + n <= 23) {
1134 case 2:
if (n <= 5) {
1139 case 3:
if (
mm + n <= 59) {
1185 const char *s = NULL;
1194 snprintf(buf,
sizeof(buf),
"%d", n);
1207 int newValue = *
value;
1214 if (
map[++n].userValue >= 0)
1219 if (newValue != *
value) {
#define LOCK_CHANNELS_READ
#define ISTRANSPONDER(f1, f2)
const char * Name(void) const
tChannelID GetChannelID(void) const
bool GroupSep(void) const
int Transponder(void) const
Returns the transponder frequency in MHz, plus the polarization in case of sat.
virtual int Width(void) const =0
Returns the original character width as requested when the font was created, or 0 if the default widt...
cListObject * Next(void) const
virtual eOSState ProcessKey(eKeys Key)
void SetText(const char *Text, bool Copy=true)
void SetupStore(const char *Name, const char *Value=NULL)
static cSkinDisplay * Current(void)
Returns the currently active cSkinDisplay.
virtual void SetButtons(const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
Sets the color buttons to the given strings, provided this cSkinDisplay actually has a color button d...
static void MsgOsdHelpKeys(const char *Red, const char *Green, const char *Yellow, const char *Blue)
static void MsgOsdCurrentItem(const char *Text)
int Find(const char *s) const
static cString sprintf(const char *fmt,...) __attribute__((format(printf
void Set(int Ms=0)
Sets the timer.
bool TimedOut(void) const
static time_t SetTime(time_t t, int SecondsFromMidnight)
static int GetWDay(time_t t)
static cString PrintDay(time_t Day, int WeekDays, bool SingleByteChars)
static bool ParseDay(const char *s, time_t &Day, int &WeekDays)
int DriverIndex(int Value, const tDvbParameterMap *Map)
int MapToUser(int Value, const tDvbParameterMap *Map, const char **String)
static tChannelID FromString(const char *s)
cString ToString(void) const