mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
added tokens for slow forward and rewind in displayreplay
This commit is contained in:
parent
d9ab1eb1ca
commit
e114338c4e
@ -1517,13 +1517,21 @@ enum class eDRControlIconsIT {
|
|||||||
play = 0,
|
play = 0,
|
||||||
pause,
|
pause,
|
||||||
forward,
|
forward,
|
||||||
|
slowforward,
|
||||||
forward1x,
|
forward1x,
|
||||||
forward2x,
|
forward2x,
|
||||||
forward3x,
|
forward3x,
|
||||||
|
slowforward1x,
|
||||||
|
slowforward2x,
|
||||||
|
slowforward3x,
|
||||||
rewind,
|
rewind,
|
||||||
|
slowrewind,
|
||||||
rewind1x,
|
rewind1x,
|
||||||
rewind2x,
|
rewind2x,
|
||||||
rewind3x,
|
rewind3x,
|
||||||
|
slowrewind1x,
|
||||||
|
slowrewind2x,
|
||||||
|
slowrewind3x,
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -430,13 +430,21 @@ void cVeDrControlIcons::SetTokenContainer(void) {
|
|||||||
tokenContainer->DefineIntToken("{play}", (int)eDRControlIconsIT::play);
|
tokenContainer->DefineIntToken("{play}", (int)eDRControlIconsIT::play);
|
||||||
tokenContainer->DefineIntToken("{pause}", (int)eDRControlIconsIT::pause);
|
tokenContainer->DefineIntToken("{pause}", (int)eDRControlIconsIT::pause);
|
||||||
tokenContainer->DefineIntToken("{forward}", (int)eDRControlIconsIT::forward);
|
tokenContainer->DefineIntToken("{forward}", (int)eDRControlIconsIT::forward);
|
||||||
|
tokenContainer->DefineIntToken("{slowforward}", (int)eDRControlIconsIT::slowforward);
|
||||||
tokenContainer->DefineIntToken("{forward1x}", (int)eDRControlIconsIT::forward1x);
|
tokenContainer->DefineIntToken("{forward1x}", (int)eDRControlIconsIT::forward1x);
|
||||||
tokenContainer->DefineIntToken("{forward2x}", (int)eDRControlIconsIT::forward2x);
|
tokenContainer->DefineIntToken("{forward2x}", (int)eDRControlIconsIT::forward2x);
|
||||||
tokenContainer->DefineIntToken("{forward3x}", (int)eDRControlIconsIT::forward3x);
|
tokenContainer->DefineIntToken("{forward3x}", (int)eDRControlIconsIT::forward3x);
|
||||||
|
tokenContainer->DefineIntToken("{slowforward1x}", (int)eDRControlIconsIT::slowforward1x);
|
||||||
|
tokenContainer->DefineIntToken("{slowforward2x}", (int)eDRControlIconsIT::slowforward2x);
|
||||||
|
tokenContainer->DefineIntToken("{slowforward3x}", (int)eDRControlIconsIT::slowforward3x);
|
||||||
tokenContainer->DefineIntToken("{rewind}", (int)eDRControlIconsIT::rewind);
|
tokenContainer->DefineIntToken("{rewind}", (int)eDRControlIconsIT::rewind);
|
||||||
|
tokenContainer->DefineIntToken("{slowrewind}", (int)eDRControlIconsIT::slowrewind);
|
||||||
tokenContainer->DefineIntToken("{rewind1x}", (int)eDRControlIconsIT::rewind1x);
|
tokenContainer->DefineIntToken("{rewind1x}", (int)eDRControlIconsIT::rewind1x);
|
||||||
tokenContainer->DefineIntToken("{rewind2x}", (int)eDRControlIconsIT::rewind2x);
|
tokenContainer->DefineIntToken("{rewind2x}", (int)eDRControlIconsIT::rewind2x);
|
||||||
tokenContainer->DefineIntToken("{rewind3x}", (int)eDRControlIconsIT::rewind3x);
|
tokenContainer->DefineIntToken("{rewind3x}", (int)eDRControlIconsIT::rewind3x);
|
||||||
|
tokenContainer->DefineIntToken("{slowrewind1x}", (int)eDRControlIconsIT::slowrewind1x);
|
||||||
|
tokenContainer->DefineIntToken("{slowrewind2x}", (int)eDRControlIconsIT::slowrewind2x);
|
||||||
|
tokenContainer->DefineIntToken("{slowrewind3x}", (int)eDRControlIconsIT::slowrewind3x);
|
||||||
InheritTokenContainer();
|
InheritTokenContainer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -454,13 +462,21 @@ bool cVeDrControlIcons::Parse(bool force) {
|
|||||||
bool isPlay = false;
|
bool isPlay = false;
|
||||||
bool isPause = false;
|
bool isPause = false;
|
||||||
bool isFF = false;
|
bool isFF = false;
|
||||||
|
bool isSlowFF = false;
|
||||||
bool isFF1x = false;
|
bool isFF1x = false;
|
||||||
bool isFF2x = false;
|
bool isFF2x = false;
|
||||||
bool isFF3x = false;
|
bool isFF3x = false;
|
||||||
|
bool isSlowFF1x = false;
|
||||||
|
bool isSlowFF2x = false;
|
||||||
|
bool isSlowFF3x = false;
|
||||||
bool isRew = false;
|
bool isRew = false;
|
||||||
|
bool isSlowRew = false;
|
||||||
bool isRew1x = false;
|
bool isRew1x = false;
|
||||||
bool isRew2x = false;
|
bool isRew2x = false;
|
||||||
bool isRew3x = false;
|
bool isRew3x = false;
|
||||||
|
bool isSlowRew1x = false;
|
||||||
|
bool isSlowRew2x = false;
|
||||||
|
bool isSlowRew3x = false;
|
||||||
|
|
||||||
if (speed == -1) {
|
if (speed == -1) {
|
||||||
if (play) {
|
if (play) {
|
||||||
@ -474,12 +490,20 @@ bool cVeDrControlIcons::Parse(bool force) {
|
|||||||
}
|
}
|
||||||
if (speed == 1) {
|
if (speed == 1) {
|
||||||
isFF1x = true;
|
isFF1x = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowFF1x = true;
|
||||||
} else if (speed == 2) {
|
} else if (speed == 2) {
|
||||||
isFF2x = true;
|
isFF2x = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowFF2x = true;
|
||||||
} else if (speed == 3) {
|
} else if (speed == 3) {
|
||||||
isFF3x = true;
|
isFF3x = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowFF3x = true;
|
||||||
} else {
|
} else {
|
||||||
isFF = true;
|
isFF = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowFF = true;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!play) {
|
if (!play) {
|
||||||
@ -487,25 +511,41 @@ bool cVeDrControlIcons::Parse(bool force) {
|
|||||||
}
|
}
|
||||||
if (speed == 1) {
|
if (speed == 1) {
|
||||||
isRew1x = true;
|
isRew1x = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowRew1x = true;
|
||||||
} else if (speed == 2) {
|
} else if (speed == 2) {
|
||||||
isRew2x = true;
|
isRew2x = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowRew2x = true;
|
||||||
} else if (speed == 3) {
|
} else if (speed == 3) {
|
||||||
isRew3x = true;
|
isRew3x = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowRew3x = true;
|
||||||
} else {
|
} else {
|
||||||
isRew = true;
|
isRew = true;
|
||||||
|
if (!play)
|
||||||
|
isSlowRew = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
tokenContainer->Clear();
|
tokenContainer->Clear();
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::play, isPlay);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::play, isPlay);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::pause, isPause);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::pause, isPause);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward, isFF);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward, isFF);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowforward, isSlowFF);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward1x, isFF1x);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward1x, isFF1x);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward2x, isFF2x);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward2x, isFF2x);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward3x, isFF3x);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::forward3x, isFF3x);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowforward1x, isSlowFF1x);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowforward2x, isSlowFF2x);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowforward3x, isSlowFF3x);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind, isRew);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind, isRew);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowrewind, isSlowRew);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind1x, isRew1x);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind1x, isRew1x);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind2x, isRew2x);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind2x, isRew2x);
|
||||||
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind3x, isRew3x);
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::rewind3x, isRew3x);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowrewind1x, isSlowRew1x);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowrewind2x, isSlowRew2x);
|
||||||
|
tokenContainer->AddIntToken((int)eDRControlIconsIT::slowrewind3x, isSlowRew3x);
|
||||||
SetDirty();
|
SetDirty();
|
||||||
changed = false;
|
changed = false;
|
||||||
return true;
|
return true;
|
||||||
|
@ -116,14 +116,22 @@
|
|||||||
<!-- Available Variables controlicons and controliconsmodeonly:
|
<!-- Available Variables controlicons and controliconsmodeonly:
|
||||||
{play} true if recording is played currently
|
{play} true if recording is played currently
|
||||||
{pause} true if recording is paused
|
{pause} true if recording is paused
|
||||||
{forward} true if fast forwarding
|
{forward} true if slow or fast forwarding
|
||||||
{forward1x} true if fast forwarding 1x (with 3 trickspeeds)
|
{slowforward} true if slow forwarding
|
||||||
{forward2x} true if fast forwarding 2x (with 3 trickspeeds)
|
{forward1x} true if slow or fast forwarding 1x (with 3 trickspeeds)
|
||||||
{forward3x} true if fast forwarding 3x (with 3 trickspeeds)
|
{forward2x} true if slow or fast forwarding 2x (with 3 trickspeeds)
|
||||||
{rewind} true if rewinding
|
{forward3x} true if slow or fast forwarding 3x (with 3 trickspeeds)
|
||||||
{rewind1x} true if rewinding 1x (with 3 trickspeeds)
|
{slowforward1x} true if slow forwarding 1x (with 3 trickspeeds)
|
||||||
{rewind2x} true if rewinding 2x (with 3 trickspeeds)
|
{slowforward2x} true if slow forwarding 2x (with 3 trickspeeds)
|
||||||
{rewind3x} true if rewinding 3x (with 3 trickspeeds)
|
{slowforward3x} true if slow forwarding 3x (with 3 trickspeeds)
|
||||||
|
{rewind} true if slow or fast rewinding
|
||||||
|
{slowrewind} true if slow rewinding
|
||||||
|
{rewind1x} true if slow or fast rewinding 1x (with 3 trickspeeds)
|
||||||
|
{rewind2x} true if slow or fast rewinding 2x (with 3 trickspeeds)
|
||||||
|
{rewind3x} true if slow or fast rewinding 3x (with 3 trickspeeds)
|
||||||
|
{slowrewind1x} true if slow rewinding 1x (with 3 trickspeeds)
|
||||||
|
{slowrewind2x} true if slow rewinding 2x (with 3 trickspeeds)
|
||||||
|
{slowrewind3x} true if slow rewinding 3x (with 3 trickspeeds)
|
||||||
-->
|
-->
|
||||||
<controlicons>
|
<controlicons>
|
||||||
</controlicons>
|
</controlicons>
|
||||||
|
Loading…
Reference in New Issue
Block a user