mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#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());
|
|
if (!ok) {
|
|
DeleteOsdOnExit(false);
|
|
}
|
|
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;
|
|
SetMenuMessage(type, text, stringTokens, intTokens);
|
|
DrawViewElement(veMessage, &stringTokens, &intTokens);
|
|
}
|
|
|
|
void cDisplayMessageView::ClearMessage(void) {
|
|
ClearViewElement(veMessage);
|
|
}
|