diff options
author | Andreas Brachold <vdr07@deltab.de> | 2007-10-08 16:58:00 +0000 |
---|---|---|
committer | Andreas Brachold <vdr07@deltab.de> | 2007-10-08 16:58:00 +0000 |
commit | 7915728c0daf44bc55a04c5190ea08172728b0a7 (patch) | |
tree | a3dccdbaad21df91857caa7971749a51f9c7b463 /setup-image.c | |
parent | b7c2731e64a99397ff9bee2e34764ea0af64b3ce (diff) | |
download | vdr-plugin-image-7915728c0daf44bc55a04c5190ea08172728b0a7.tar.gz vdr-plugin-image-7915728c0daf44bc55a04c5190ea08172728b0a7.tar.bz2 |
* Add setup option to hide main menu entry (Thanks to Alf Fahland, for summit a patch)
* Fix some compiler warnings
* Remove pregenerated header from i18n files and set proper owner, if known
Diffstat (limited to 'setup-image.c')
-rw-r--r-- | setup-image.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/setup-image.c b/setup-image.c index 5d6cae2..5f1f7d0 100644 --- a/setup-image.c +++ b/setup-image.c @@ -59,6 +59,8 @@ cImageSetup::cImageSetup(void) m_nBorderHeight = 16; m_nBorderWidth = 16; + + m_bHideMenu = false; } #define ParseInteger(szTitle,nValue,nMin,nMax) \ @@ -80,6 +82,7 @@ bool cImageSetup::SetupParse(const char *szName, const char *szValue) else ParseInteger("ShowNumbers", m_bShowNumbers,0,1) else ParseInteger("LiveAudio", m_bLiveAudio,0,1) else ParseInteger("Housekeeping", m_bHousekeeping,0,1) + else ParseInteger("HideMainMenu", m_bHideMenu,0,1) else if(!strcasecmp(szName, "TempDir")) { strn0cpy(m_szTempDir,szValue,sizeof(m_szTempDir)); } @@ -100,6 +103,7 @@ void cMenuSetupImage::Store(void) SetupStore("Housekeeping", ImageSetup.m_bHousekeeping); SetupStore("BorderHeight", ImageSetup.m_nBorderHeight); SetupStore("BorderWidth", ImageSetup.m_nBorderWidth); + SetupStore("HideMainMenu", ImageSetup.m_bHideMenu); } cMenuSetupImage::cMenuSetupImage(void) @@ -107,6 +111,10 @@ cMenuSetupImage::cMenuSetupImage(void) { SetSection(tr("Image")); + Add(new cMenuEditBoolItem(tr("Hide main menu entry"), + &m_tmpSetup.m_bHideMenu, + tr("no"), tr("yes"))); + Add(new cMenuEditBoolItem(tr("Slide show"), &m_tmpSetup.m_bSlideShow, tr("no"), tr("yes"))); |