diff --git a/setup.c b/setup.c index c74e11e..d4e2885 100644 --- a/setup.c +++ b/setup.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: setup.c,v 1.45 2008/01/04 23:36:37 ajhseppa Exp $ + * $Id: setup.c,v 1.46 2008/01/19 16:24:40 rahrenbe Exp $ */ #include @@ -11,6 +11,7 @@ #include #include #include +#include #include "common.h" #include "config.h" @@ -637,16 +638,24 @@ void cIptvPluginSetup::Setup(void) { int current = Current(); Clear(); + help.Clear(); Add(new cMenuEditIntItem( tr("TS buffer size [MB]"), &tsBufferSize, 1, 4)); + help.Append(tr("No help available!")); Add(new cMenuEditIntItem( tr("TS buffer prefill ratio [%]"), &tsBufferPrefill, 0, 40)); + help.Append(tr("No help available!")); Add(new cMenuEditIntItem( tr("EXT protocol base port"), &extProtocolBasePort, 0, 0xFFF7)); + help.Append(tr("No help available!")); Add(new cMenuEditBoolItem(tr("Use section filtering"), §ionFiltering)); + help.Append(tr("No help available!")); if (sectionFiltering) { Add(new cMenuEditBoolItem(tr("Scan Sid automatically"), &sidScanning)); + help.Append(tr("No help available!")); Add(new cMenuEditIntItem( tr("Disable filters"), &numDisabledFilters, 0, SECTION_FILTER_TABLE_SIZE)); + help.Append(tr("No help available!")); for (int i = 0; i < numDisabledFilters; ++i) { // TRANSLATORS: note the singular! Add(new cMenuEditStraItem(tr("Disable filter"), &disabledFilterIndexes[i], SECTION_FILTER_TABLE_SIZE, disabledFilterNames)); + help.Append(tr("No help available!")); } } SetCurrent(Get(current)); @@ -678,6 +687,8 @@ eOSState cIptvPluginSetup::ProcessKey(eKeys Key) switch (Key) { case kRed: return EditChannel(); case kBlue: return ShowInfo(); + case kInfo: if (Current() < help.Size()) + return AddSubMenu(new cMenuText(cString::sprintf("%s - %s '%s'", tr("Help"), trVDR("Plugin"), PLUGIN_NAME_I18N), help[Current()])); default: state = osContinue; } } diff --git a/setup.h b/setup.h index efcc77e..f03b7f9 100644 --- a/setup.h +++ b/setup.h @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: setup.h,v 1.16 2007/10/20 17:26:46 rahrenbe Exp $ + * $Id: setup.h,v 1.17 2008/01/19 16:24:40 rahrenbe Exp $ */ #ifndef __IPTV_SETUP_H @@ -23,6 +23,7 @@ private: int numDisabledFilters; int disabledFilterIndexes[SECTION_FILTER_TABLE_SIZE]; const char *disabledFilterNames[SECTION_FILTER_TABLE_SIZE]; + cVector help; eOSState EditChannel(void); eOSState ShowInfo(void);