Feature #329 » HideMainMenuEntry.diff
plugin/markad.cpp | ||
---|---|---|
setup.BackupMarks=false;
|
||
setup.Verbose=false;
|
||
setup.NoMargins=false;
|
||
setup.HideMainMenuEntry=false;
|
||
}
|
||
cPluginMarkAd::~cPluginMarkAd()
|
||
... | ... | |
else if (!strcasecmp(Name,"BackupMarks")) setup.BackupMarks=atoi(Value);
|
||
else if (!strcasecmp(Name,"Verbose")) setup.Verbose=atoi(Value);
|
||
else if (!strcasecmp(Name,"IgnoreMargins")) setup.NoMargins=atoi(Value);
|
||
else if (!strcasecmp(Name,"HideMainMenuEntry")) setup.HideMainMenuEntry=atoi(Value)?true:false;
|
||
else return false;
|
||
return true;
|
||
}
|
||
... | ... | |
return NULL;
|
||
}
|
||
const char *cPluginMarkAd::MainMenuEntry(void)
|
||
{
|
||
if(setup.HideMainMenuEntry)
|
||
return NULL;
|
||
else
|
||
return tr("State of mark advertisements");
|
||
}
|
||
|
||
VDRPLUGINCREATOR(cPluginMarkAd) // Don't touch this!
|
plugin/markad.h | ||
---|---|---|
virtual void MainThreadHook(void);
|
||
virtual cString Active(void);
|
||
virtual time_t WakeupTime(void);
|
||
virtual const char *MainMenuEntry(void)
|
||
{
|
||
return tr(MAINMENUENTRY);
|
||
}
|
||
virtual const char *MainMenuEntry(void);
|
||
virtual cOsdObject *MainMenuAction(void);
|
||
virtual cMenuSetupPage *SetupMenu(void);
|
||
virtual bool SetupParse(const char *Name, const char *Value);
|
plugin/po/de_DE.po | ||
---|---|---|
msgstr ""
|
||
"Project-Id-Version: vdr\n"
|
||
"Report-Msgid-Bugs-To: <see README>\n"
|
||
"POT-Creation-Date: 2010-04-26 13:57+0200\n"
|
||
"POT-Creation-Date: 2010-05-06 18:07+0200\n"
|
||
"PO-Revision-Date: 2009-08-27 14:18+0200\n"
|
||
"Last-Translator: Jochen Dolze <vdr@dolze.de>\n"
|
||
"Language-Team: <vdr@linuxtv.org>\n"
|
||
... | ... | |
msgid "markad still running"
|
||
msgstr "markad läuft noch"
|
||
#, fuzzy
|
||
msgid "State of mark advertisements"
|
||
msgstr "Status des Werbemarkierung"
|
||
msgid "running"
|
||
msgstr "aktiv"
|
||
... | ... | |
msgid "verbose logging"
|
||
msgstr "ausführliches Logging"
|
||
msgid "Hide Mainmenu Entry"
|
||
msgstr "Verberge Hauptmenüeintrag"
|
||
msgid "Mark advertisements"
|
||
msgstr "Markiere Werbung"
|
plugin/po/it_IT.po | ||
---|---|---|
msgstr ""
|
||
"Project-Id-Version: vdr\n"
|
||
"Report-Msgid-Bugs-To: <see README>\n"
|
||
"POT-Creation-Date: 2010-04-26 13:57+0200\n"
|
||
"POT-Creation-Date: 2010-05-06 18:07+0200\n"
|
||
"PO-Revision-Date: 2009-11-14 18:06+0100\n"
|
||
"Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n"
|
||
"Language-Team: <vdr@linuxtv.org>\n"
|
||
... | ... | |
msgid "markad still running"
|
||
msgstr ""
|
||
#, fuzzy
|
||
msgid "State of mark advertisements"
|
||
msgstr "Segna i marcatori della pubblicità"
|
||
msgid "running"
|
||
msgstr ""
|
||
... | ... | |
msgid "verbose logging"
|
||
msgstr ""
|
||
msgid "Hide Mainmenu Entry"
|
||
msgstr ""
|
||
msgid "Mark advertisements"
|
||
msgstr "Segna i marcatori della pubblicità"
|
plugin/setup.cpp | ||
---|---|---|
verbose=setup->Verbose;
|
||
genindex=setup->GenIndex;
|
||
nomargins=setup->NoMargins;
|
||
HideMainMenuEntry=setup->HideMainMenuEntry;
|
||
processTexts[0]=tr("after");
|
||
processTexts[1]=tr("during");
|
||
... | ... | |
Add(new cMenuEditBoolItem(tr("OSD message"),&osdmsg));
|
||
Add(new cMenuEditBoolItem(tr("backup marks"),&backupmarks));
|
||
Add(new cMenuEditBoolItem(tr("verbose logging"),&verbose));
|
||
Add(new cMenuEditBoolItem(tr("Hide Mainmenu Entry"),&HideMainMenuEntry));
|
||
Display();
|
||
}
|
||
... | ... | |
SetupStore("GenIndex",genindex);
|
||
SetupStore("OSDMessage",osdmsg);
|
||
SetupStore("Verbose",verbose);
|
||
SetupStore("HideMainMenuEntry",HideMainMenuEntry);
|
||
|
||
setup->ProcessDuring=(bool) processduring;
|
||
setup->whileRecording=(bool) whilerecording;
|
||
setup->whileReplaying=(bool) whilereplaying;
|
||
... | ... | |
setup->BackupMarks=(bool) backupmarks;
|
||
setup->Verbose=(bool) verbose;
|
||
setup->NoMargins=(bool) nomargins;
|
||
setup->HideMainMenuEntry=(bool) HideMainMenuEntry;
|
||
}
|
plugin/setup.h | ||
---|---|---|
bool Verbose;
|
||
bool GenIndex;
|
||
bool NoMargins;
|
||
bool HideMainMenuEntry;
|
||
};
|
||
class cSetupMarkAd : public cMenuSetupPage
|
||
... | ... | |
int verbose;
|
||
int genindex;
|
||
int nomargins;
|
||
int HideMainMenuEntry;
|
||
void write(void);
|
||
protected:
|
||
virtual void Store(void);
|
- « Previous
- 1
- 2
- Next »