20#define AUTO_ADVANCE_TIMEOUT 1500
22const char *
FileNameChars =
trNOOP(
"FileNameChars$ abcdefghijklmnopqrstuvwxyz0123456789-.,#~\\^$[]|()*+?{}/:%@&");
28 name = strdup(Name ? Name :
"???");
89 snprintf(buf,
sizeof(buf),
"%d", *
value);
99 int newValue = *
value;
109 newValue = newValue * 10 + (Key -
k0);
112 newValue = *
value - 1;
114 if (!IsRepeat && newValue <
min &&
max != INT_MAX)
118 newValue = *
value + 1;
120 if (!IsRepeat && newValue >
max &&
min != INT_MIN)
204 int l = strlen(
value);
210 int l = strlen(
value);
217 default:
return state;
279 while (Decimals-- > 0)
309 newValue = newValue * 10 + (Key -
k0);
340 allowed = strdup(Allowed ? Allowed :
"");
429 const char *charMap =
tr(
"CharMap$ 0\t-.,1#~\\^$[]|()*+?{}/:%@&\tabc2\tdef3\tghi4\tjkl5\tmno6\tpqrs7\ttuv8\twxyz9");
430 l = strlen(charMap) + 1;
462 SetHelp(
tr(
"Button$ABC/abc"),
insert ?
tr(
"Button$Overwrite") :
tr(
"Button$Insert"),
tr(
"Button$Delete"),
macros ?
tr(
"Button$Macro") : NULL);
502 width -= font->
Width(
"[]");
503 width -= font->
Width(
"<>");
507 int WidthFromOffset = 0;
511 if (WidthFromOffset > width) {
516 }
while (WidthFromOffset > width &&
offset <
pos);
559 while (*p && *(p + 1))
717 if (
Setup.NumberKeysForChars) {
862 snprintf(buf,
sizeof(buf),
"%d %s", *
value, Channel ? Channel->
Name() :
"");
880 case kLeft: delta = -1;
885 const cChannel *Channel = Channels->GetByNumber(*
value + delta, delta);
887 *
value = Channel->Number();
891 *
channelID = Channel ? Channel->GetChannelID().ToString() :
"";
909 const cChannel *Channel = Channels->First();
915 Channel = Channels->
Next(Channel);
925 *
source = Channel->Source();
970 for (
unsigned int i = 0; i <
sizeof(
days) /
sizeof(int); i++)
971 if (WeekDays ==
days[i])
978#define DATEBUFFERSIZE 32
986 localtime_r(
value, &tm_r);
1020 time_t now = time(NULL);
1069 else if (
k1 <= Key && Key <=
k7) {
1115 if (
k0 <= Key && Key <=
k9) {
1122 case 0:
if (n <= 2) {
1128 case 1:
if (
hh + n <= 23) {
1133 case 2:
if (n <= 5) {
1138 case 3:
if (
mm + n <= 59) {
1184 const char *s = NULL;
1193 snprintf(buf,
sizeof(buf),
"%d", n);
1206 int newValue = *
value;
1210 newValue =
map[n].driverValue;
1213 if (
map[++n].userValue >= 0)
1214 newValue =
map[n].driverValue;
1218 if (newValue != *
value) {
1266 plugin->SetupStore(Name, Value);
1272 plugin->SetupStore(Name, 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)
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 cString sprintf(const char *fmt,...) __attribute__((format(printf
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