diff options
author | Andreas Brugger <brougs78@gmx.net> | 2009-06-06 01:29:22 +0200 |
---|---|---|
committer | Thomas Günther <tom@toms-cafe.de> | 2009-06-06 01:29:22 +0200 |
commit | 60cd7db51838bb076312fd10e08bca0f4a005f82 (patch) | |
tree | 2ce8a57369abbd1ac1fed4a0d6527140808fbc3c /menu.c | |
parent | 5ace1ef884772e4a15d58839074785b89412c8ee (diff) | |
parent | ac64ce03ec6b5766691ff2da3af6f51ed800792a (diff) | |
download | vdr-plugin-text2skin-60cd7db51838bb076312fd10e08bca0f4a005f82.tar.gz vdr-plugin-text2skin-60cd7db51838bb076312fd10e08bca0f4a005f82.tar.bz2 |
Added brougs78-extensions (thanks to Andreas Brugger / references #39)
- added tokens for the next 3 timers:
CurrentEventsTitle[123], CurrentEventsStartDateTime[123],
CurrentEventsStopDateTime[123], CurrentEventsChannelNumber[123],
CurrentEventsChannelName[123], CurrentEventsIsRecording[123]
- added audio- and video-tokens:
PresentLanguageCode, PresentLanguageDescription, PresentVideoAR and
implemented the missing code for the Language-token
- added tokens for replay:
ReplayName, ReplayDateTime, ReplayShortText, ReplayDescription,
ReplayLanguageCode, ReplayLanguageDescription, ReplayVideoAR
- additional recording-tokens:
RecordingVideoAR, RecordingSize
- added a reset for scrolling text (configurable)
- added recording-tokens:
RecordingLength, RecordingCuttedLength
- added tokens:
OsdWidth, OsdHeight
- switched the search-order for the fonts to priorise the skin-folder
(this avoids error-messages in the log)
- added the possibility to have a scrollbar in every menu - not fully
implemented yet (to position in menu-lists is not necessarily correct,
if there are more items with the same osd-text)
- added a configuration option for showing the scrollbar in the menus
- added token TimerConflicts using the service interface of the epgsearch
plugin "Epgsearch-lastconflictinfo-v1.0"
- added a test-feature to search for reruns of a program and add the
information to the extended epg-info (trigger DEVELOPMENT_FEATURES).
This uses a service interface of the epgsearch plugin
"Epgsearch-searchresults-v1.0"
- the extended epg-info and the recording-info are extended by AUX-Infos
(configurable)
there is also an option to strip known tags
- the tab-widths are scaled for taking into account that different TT-Fonts
have a different width than the default font from VDR
- added tokens for signal-info:
FrontendSTR, FrontendSNR, FrontendHasLock, FrontendHasSignal
- added token PresentEventID for EPG-images
- added tokens for recordings:
RecordingFilename, RecordingPriority, RecordingLifetime
- set EditableWidth. This is important for plugins like 'rotor' or
'extrecmenu'
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 37 |
1 files changed, 37 insertions, 0 deletions
@@ -9,19 +9,52 @@ cText2SkinSetupPage::cText2SkinSetupPage(void) { mData = Text2SkinSetup; + Setup(); +} + +void cText2SkinSetupPage::Setup(void) { + int current = Current(); + Clear(); + + Add(new cMenuEditBoolItem(tr("Show scrollbar in the menus"), &mData.MenuScrollbar, tr("no"), tr("yes"))); + Add(new cMenuEditBoolItem(tr("Scrolling behaviour"), &mData.MarqueeLeftRight, tr("to the left"), tr("left and right"))); + Add(new cMenuEditBoolItem(tr("Reset Marquee for new item"), &mData.MarqueeReset, tr("no"), tr("yes"))); +#if VDRVERSNUM >= 10344 + Add(new cMenuEditBoolItem(tr("Show auxiliary infos of recordings"), &mData.ShowAux, tr("no"), tr("yes"))); + if (mData.ShowAux) + Add(new cMenuEditBoolItem(tr(" Extract known tags"), &mData.StripAux, tr("no"), tr("yes"))); +#endif +#if VDRVERSNUM >= 10330 + Add(new cMenuEditBoolItem(tr("Use 'timeline' to check timer-conflicts"), &mData.CheckTimerConflict, tr("no"), tr("yes"))); +#endif Add(new cOsdItem(tr("Flush image cache"), osUser1)); Add(new cMenuEditIntItem(tr("Max. image cache size"), &mData.MaxCacheFill)); + + SetCurrent(Get(current)); + Display(); } cText2SkinSetupPage::~cText2SkinSetupPage() { } void cText2SkinSetupPage::Store(void) { + SetupStore("MenuScrollbar", mData.MenuScrollbar); + SetupStore("MarqueeLeftRight", mData.MarqueeLeftRight); + SetupStore("MarqueeReset", mData.MarqueeReset); +#if VDRVERSNUM >= 10344 + SetupStore("ShowAux", mData.ShowAux); + SetupStore("StripAux", mData.StripAux); +#endif +#if VDRVERSNUM >= 10330 + SetupStore("CheckTimerConflict", mData.CheckTimerConflict); +#endif SetupStore("MaxCacheFill", mData.MaxCacheFill); Text2SkinSetup = mData; } eOSState cText2SkinSetupPage::ProcessKey(eKeys Key) { + int oldShowAux = mData.ShowAux; + eOSState state = cMenuSetupPage::ProcessKey(Key); if (state == osUser1) { Skins.Message(mtInfo, tr("Flushing image cache...")); @@ -29,6 +62,10 @@ eOSState cText2SkinSetupPage::ProcessKey(eKeys Key) { Skins.Message(mtInfo, NULL); return osContinue; } + + if (mData.ShowAux != oldShowAux) + Setup(); + return state; } |