mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
39 lines
1.0 KiB
C
39 lines
1.0 KiB
C
#include "templateviewtab.h"
|
|
|
|
cTemplateViewTab::cTemplateViewTab(void) : cTemplatePixmap() {
|
|
scrollStep = -1;
|
|
}
|
|
|
|
cTemplateViewTab::~cTemplateViewTab(void) {
|
|
}
|
|
|
|
int cTemplateViewTab::GetScrollStep(void) {
|
|
if (scrollStep > 0)
|
|
return scrollStep;
|
|
int pixWidth = GetNumericParameter(ptWidth);
|
|
int pixHeight = GetNumericParameter(ptHeight);
|
|
string scrollHeight = parameters->GetParameter(ptScrollHeight);
|
|
|
|
cNumericParameter p(scrollHeight);
|
|
p.SetAreaSize(pixWidth, pixHeight);
|
|
string parsedValue = "";
|
|
scrollStep = p.Parse(parsedValue);
|
|
if (scrollStep < 1)
|
|
scrollStep = 50;
|
|
return scrollStep;
|
|
}
|
|
|
|
string cTemplateViewTab::GetName(void) {
|
|
return parameters->GetParameter(ptName);
|
|
}
|
|
|
|
void cTemplateViewTab::SetName(string trans) {
|
|
parameters->SetParameter(ptName, trans);
|
|
}
|
|
|
|
void cTemplateViewTab::Debug(void) {
|
|
esyslog("skindesigner: cTemplateViewTab Debug %s", GetName().c_str());
|
|
cTemplatePixmap::Debug();
|
|
esyslog("skindesigner: -------------------------------------------------------");
|
|
}
|