diff options
author | Midas <vdrportal_midas@gmx.de> | 2010-06-15 17:58:42 +0200 |
---|---|---|
committer | Midas <vdrportal_midas@gmx.de> | 2010-06-15 17:58:42 +0200 |
commit | 55b63ab8444ab93cc3851e22d99eeba832ffc3b4 (patch) | |
tree | 9847f43a4ea83a1a9261632e6e66c839d93a850e /setup.c | |
parent | 56417444a0ad91164efcc094731a3206deed366b (diff) | |
download | vdr-plugin-block-55b63ab8444ab93cc3851e22d99eeba832ffc3b4.tar.gz vdr-plugin-block-55b63ab8444ab93cc3851e22d99eeba832ffc3b4.tar.bz2 |
Release of 0.0.3
First official release with parental guidance capability.
Please see README for details.
Changes in this commit:
-Command line parsing code added (function considered
as momentarily not useful - commented out).
-Potential bug sources eliminated - in rare cases the
plugin did not block
-Several strings changed / german translation updated
-Internal changes to ParentalGuidance setup (for command
line parsing see above)
Diffstat (limited to 'setup.c')
-rw-r--r-- | setup.c | 31 |
1 files changed, 13 insertions, 18 deletions
@@ -29,23 +29,16 @@ void cMenuSetupBlock::Set(void) { DetectionMethods[0] = tr("On Switch"); DetectionMethods[1] = tr("Channel EPG"); - if(mSetupData.ExtraOptionsVisible==1) - { - Add(new cMenuEditStraItem(tr("Detection Method"), &mSetupData.DetectionMethod, 2, DetectionMethods)); - Add(new cMenuEditBoolItem(tr("Ok deblocks temporarily"), &mSetupData.OkAllowed)); - } - else + cMenuEditStraItem *methoditem = new cMenuEditStraItem(tr("Detection Method"), &mSetupData.DetectionMethod, 2, DetectionMethods); + cMenuEditBoolItem *okitem = new cMenuEditBoolItem(tr("Ok deblocks temporarily"), &mSetupData.OkAllowed); + + if(cSetupBlock::ParentalGuidance==1) { - cMenuEditStraItem *methoditem = new cMenuEditStraItem(tr("Detection Method"), &mSetupData.DetectionMethod, 2, DetectionMethods); - cMenuEditBoolItem *okitem = new cMenuEditBoolItem(tr("Ok deblocks temporarily"), &mSetupData.OkAllowed); methoditem->SetSelectable(false); okitem->SetSelectable(false); - Add(methoditem); - Add(okitem); -// Add((new cMenuEditStraItem(tr("Detection Method"), &mSetupData.DetectionMethod, 2, DetectionMethods))::SetSelectable(false)); -// Add(new cMenuEditBoolItem(tr("Ok deblocks temporarily"), &mSetupData.ExtraOptionsVisible)); - } - + } + Add(methoditem); + Add(okitem); item = new cOsdItem(""); item->SetSelectable(false); @@ -143,10 +136,12 @@ eOSState cMenuSetupBlock::ProcessKey(eKeys Key) { switch (state) { case osUnknown: // normal key handling switch (Key) { - case kRed: if (mSetupData.ExtraOptionsVisible==1) return Edit(); - case kGreen: return New(); - case kYellow: if (mSetupData.ExtraOptionsVisible==1) return Delete(); - + case kRed: if (mSetupData.ParentalGuidance!=1) return Edit(); + break; + case kGreen: if (mSetupData.ParentalGuidance!=1) return New(); + break; + case kYellow: if (mSetupData.ParentalGuidance!=1) return Delete(); + break; default: break; } |