mirror of
https://github.com/rofafor/vdr-plugin-iptv.git
synced 2023-10-10 11:37:03 +00:00
Added preliminary help support for setup.
This commit is contained in:
parent
7206a8d189
commit
7ce44c9175
13
setup.c
13
setup.c
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* 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 <string.h>
|
#include <string.h>
|
||||||
@ -11,6 +11,7 @@
|
|||||||
#include <vdr/device.h>
|
#include <vdr/device.h>
|
||||||
#include <vdr/interface.h>
|
#include <vdr/interface.h>
|
||||||
#include <vdr/status.h>
|
#include <vdr/status.h>
|
||||||
|
#include <vdr/menu.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
@ -637,16 +638,24 @@ void cIptvPluginSetup::Setup(void)
|
|||||||
{
|
{
|
||||||
int current = Current();
|
int current = Current();
|
||||||
Clear();
|
Clear();
|
||||||
|
help.Clear();
|
||||||
Add(new cMenuEditIntItem( tr("TS buffer size [MB]"), &tsBufferSize, 1, 4));
|
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));
|
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));
|
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));
|
Add(new cMenuEditBoolItem(tr("Use section filtering"), §ionFiltering));
|
||||||
|
help.Append(tr("No help available!"));
|
||||||
if (sectionFiltering) {
|
if (sectionFiltering) {
|
||||||
Add(new cMenuEditBoolItem(tr("Scan Sid automatically"), &sidScanning));
|
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));
|
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) {
|
for (int i = 0; i < numDisabledFilters; ++i) {
|
||||||
// TRANSLATORS: note the singular!
|
// TRANSLATORS: note the singular!
|
||||||
Add(new cMenuEditStraItem(tr("Disable filter"), &disabledFilterIndexes[i], SECTION_FILTER_TABLE_SIZE, disabledFilterNames));
|
Add(new cMenuEditStraItem(tr("Disable filter"), &disabledFilterIndexes[i], SECTION_FILTER_TABLE_SIZE, disabledFilterNames));
|
||||||
|
help.Append(tr("No help available!"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
SetCurrent(Get(current));
|
SetCurrent(Get(current));
|
||||||
@ -678,6 +687,8 @@ eOSState cIptvPluginSetup::ProcessKey(eKeys Key)
|
|||||||
switch (Key) {
|
switch (Key) {
|
||||||
case kRed: return EditChannel();
|
case kRed: return EditChannel();
|
||||||
case kBlue: return ShowInfo();
|
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;
|
default: state = osContinue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
3
setup.h
3
setup.h
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* See the README file for copyright information and how to reach the author.
|
* 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
|
#ifndef __IPTV_SETUP_H
|
||||||
@ -23,6 +23,7 @@ private:
|
|||||||
int numDisabledFilters;
|
int numDisabledFilters;
|
||||||
int disabledFilterIndexes[SECTION_FILTER_TABLE_SIZE];
|
int disabledFilterIndexes[SECTION_FILTER_TABLE_SIZE];
|
||||||
const char *disabledFilterNames[SECTION_FILTER_TABLE_SIZE];
|
const char *disabledFilterNames[SECTION_FILTER_TABLE_SIZE];
|
||||||
|
cVector<const char*> help;
|
||||||
|
|
||||||
eOSState EditChannel(void);
|
eOSState EditChannel(void);
|
||||||
eOSState ShowInfo(void);
|
eOSState ShowInfo(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user