2014-09-27 09:25:14 +02:00
|
|
|
#define __STL_CONFIG_H
|
|
|
|
#include <vdr/menu.h>
|
|
|
|
#include "displaymessageview.h"
|
|
|
|
|
|
|
|
cDisplayMessageView::cDisplayMessageView(cTemplateView *tmplView) : cView(tmplView) {
|
|
|
|
DeleteOsdOnExit();
|
|
|
|
}
|
|
|
|
|
|
|
|
cDisplayMessageView::~cDisplayMessageView() {
|
|
|
|
}
|
|
|
|
|
|
|
|
bool cDisplayMessageView::createOsd(void) {
|
|
|
|
cRect osdSize = tmplView->GetOsdSize();
|
|
|
|
bool ok = CreateOsd(cOsd::OsdLeft() + osdSize.X(),
|
|
|
|
cOsd::OsdTop() + osdSize.Y(),
|
|
|
|
osdSize.Width(),
|
|
|
|
osdSize.Height());
|
2015-03-12 17:28:35 +01:00
|
|
|
if (!ok) {
|
|
|
|
DeleteOsdOnExit(false);
|
|
|
|
}
|
2014-09-27 09:25:14 +02:00
|
|
|
return ok;
|
|
|
|
}
|
|
|
|
|
|
|
|
void cDisplayMessageView::DrawBackground(void) {
|
|
|
|
map < string, string > stringTokens;
|
|
|
|
map < string, int > intTokens;
|
|
|
|
DrawViewElement(veBackground, &stringTokens, &intTokens);
|
|
|
|
}
|
|
|
|
|
|
|
|
void cDisplayMessageView::DrawMessage(eMessageType type, const char *text) {
|
|
|
|
map < string, string > stringTokens;
|
|
|
|
map < string, int > intTokens;
|
2015-05-14 11:26:30 +02:00
|
|
|
SetMenuMessage(type, text, stringTokens, intTokens);
|
2014-09-27 09:25:14 +02:00
|
|
|
DrawViewElement(veMessage, &stringTokens, &intTokens);
|
|
|
|
}
|
|
|
|
|
2014-11-18 18:33:27 +01:00
|
|
|
void cDisplayMessageView::ClearMessage(void) {
|
|
|
|
ClearViewElement(veMessage);
|
|
|
|
}
|