diff options
| author | louis <louis.braun@gmx.de> | 2014-11-15 09:47:22 +0100 |
|---|---|---|
| committer | louis <louis.braun@gmx.de> | 2014-11-15 09:47:22 +0100 |
| commit | be3b49f695ca8cffef906d893fb2f6f205f75898 (patch) | |
| tree | 5d10d1e1e481e22eaf84ef1d78e6625dca35377f /views/displaymenuitemcurrentview.c | |
| parent | 7e7d7c994caa612f8520a772c8dcc964a5207414 (diff) | |
| download | vdr-plugin-skindesigner-be3b49f695ca8cffef906d893fb2f6f205f75898.tar.gz vdr-plugin-skindesigner-be3b49f695ca8cffef906d893fb2f6f205f75898.tar.bz2 | |
added Plugin Interface
Diffstat (limited to 'views/displaymenuitemcurrentview.c')
| -rw-r--r-- | views/displaymenuitemcurrentview.c | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/views/displaymenuitemcurrentview.c b/views/displaymenuitemcurrentview.c index 4044b4f..2be72be 100644 --- a/views/displaymenuitemcurrentview.c +++ b/views/displaymenuitemcurrentview.c @@ -668,3 +668,48 @@ void cDisplayMenuItemCurrentRecordingView::Action(void) { } } } + +/************************************************************* +* cDisplayMenuItemCurrentPluginView +*************************************************************/ + +cDisplayMenuItemCurrentPluginView::cDisplayMenuItemCurrentPluginView(cTemplateViewElement *tmplCurrent, map <string,string> &plugStringTokens, + map <string,int> &plugIntTokens, map<string,vector<map<string,string> > > &pluginLoopTokens) + : cDisplayMenuItemCurrentView(tmplCurrent) { + + stringTokens = plugStringTokens; + intTokens = plugIntTokens; + loopTokens = pluginLoopTokens; +} + +cDisplayMenuItemCurrentPluginView::~cDisplayMenuItemCurrentPluginView() { +} + +void cDisplayMenuItemCurrentPluginView::Prepare(void) { +} + + +void cDisplayMenuItemCurrentPluginView::Render(void) { + SetTokensPosMenuItem(); + DrawViewElement(veMenuCurrentItemDetail, &stringTokens, &intTokens, &loopTokens); +} + +void cDisplayMenuItemCurrentPluginView::Clear(void) { + +} + +void cDisplayMenuItemCurrentPluginView::Action(void) { + SetInitFinished(); + DoSleep(delay); + Render(); + FadeIn(); + DoFlush(); + if (scrolling) { + DoSleep(scrollDelay); + if (scrollOrientation == orHorizontal) { + ScrollHorizontal(scrollingPix, scrollDelay, scrollSpeed, scrollMode); + } else { + ScrollVertical(scrollingPix, scrollDelay, scrollSpeed); + } + } +} |
