summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorMidas <vdrportal_midas@gmx.de>2010-06-08 01:07:17 +0200
committerMidas <vdrportal_midas@gmx.de>2010-06-08 01:07:17 +0200
commitd854dd0631fe01f12fe6edf09165a3df5841fb9a (patch)
treecd2684fb0fe8967a5b898e6d9e052c67ed28e678 /setup.c
parent162820b474550d948c132c7d534e5a1c3f613946 (diff)
downloadvdr-plugin-block-d854dd0631fe01f12fe6edf09165a3df5841fb9a.tar.gz
vdr-plugin-block-d854dd0631fe01f12fe6edf09165a3df5841fb9a.tar.bz2
Tobias Grimm sent me some patches (thank you), according to
dist target, whitespaces and license information. No features added/removed, no code changes.
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/setup.c b/setup.c
index 42a4eb6..9a6c304 100644
--- a/setup.c
+++ b/setup.c
@@ -28,7 +28,7 @@ void cMenuSetupBlock::Set(void) {
DetectionMethods[0] = tr("On Switch");
DetectionMethods[1] = tr("Channel EPG");
-
+
Add(new cMenuEditStraItem(tr("Detection Method"), &mSetupData.DetectionMethod, 2, DetectionMethods));
item = new cOsdItem("");
@@ -62,8 +62,8 @@ void cMenuSetupBlock::SetHelpKeys(void)
printf("sethelpkeys, current = %d\n", Current());
if (Current() >= NONKEYWORDITEMS) {
- red = trVDR("Button$Edit");
- yellow = trVDR("Button$Delete");
+ red = trVDR("Button$Edit");
+ yellow = trVDR("Button$Delete");
}
SetHelp(red, trVDR("Button$New"), yellow, NULL);
}
@@ -104,11 +104,11 @@ eOSState cMenuSetupBlock::Delete(void)
{
if (HasSubMenu() || Current() < NONKEYWORDITEMS)
return osContinue;
-
+
cEventBlock *event = mEventsData.Get(Current() - NONKEYWORDITEMS);
if (event != NULL) {
- if (Interface->Confirm(tr("Delete keyword?")))
- mEventsData.Del(event);
+ if (Interface->Confirm(tr("Delete keyword?")))
+ mEventsData.Del(event);
}
Set();
return osContinue;
@@ -119,8 +119,8 @@ eOSState cMenuSetupBlock::ProcessKey(eKeys Key) {
eOSState state = cMenuSetupPage::ProcessKey(Key);
if (hadSubMenu && !HasSubMenu()) {
- Set();
- return state;
+ Set();
+ return state;
}
switch (state) {
@@ -138,9 +138,9 @@ eOSState cMenuSetupBlock::ProcessKey(eKeys Key) {
default:
break;
}
-
- if (!HasSubMenu())
- Set();
+
+ if (!HasSubMenu())
+ Set();
return state;
}
@@ -156,8 +156,8 @@ cMenuSetupEditBlock::cMenuSetupEditBlock(cEventBlock *Event):
snprintf(buf, sizeof(buf), "%s - %s '%s'", trVDR("Setup"), trVDR("Plugin"), "block");
SetTitle(buf);
Add(new cMenuEditStrItem(tr("Pattern"), mData.mPattern, sizeof(mData.mPattern), tr(ALLOWEDCHARS)));
- Add(new cMenuEditBoolItem(tr("Regular Expression"), &mData.mRegularExp));
- Add(new cMenuEditBoolItem(tr("Ignore Case"), &mData.mIgnoreCase));
+ Add(new cMenuEditBoolItem(tr("Regular Expression"), &mData.mRegularExp));
+ Add(new cMenuEditBoolItem(tr("Ignore Case"), &mData.mIgnoreCase));
}
eOSState cMenuSetupEditBlock::ProcessKey(eKeys Key)
@@ -167,13 +167,13 @@ eOSState cMenuSetupEditBlock::ProcessKey(eKeys Key)
if (state == osUnknown) {
switch (Key) {
case kOk:
- if (!mData.Compile()) {
- Skins.Message(mtError, tr("Malformed regular expression!"));
- state = osContinue;
- } else {
- *mEvent = mData;
- state = osBack;
- }
+ if (!mData.Compile()) {
+ Skins.Message(mtError, tr("Malformed regular expression!"));
+ state = osContinue;
+ } else {
+ *mEvent = mData;
+ state = osBack;
+ }
break;
default: