mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
add {vdrHasTimers} to vdrstatus - can be used in skins for e.g. REC/SCHED/FREE (in combination with {vdrIsRecording})
This commit is contained in:
parent
589749731f
commit
39c1062353
5
HISTORY
5
HISTORY
@ -505,5 +505,6 @@ Version 1.2.15
|
|||||||
- [kamel5] Fix cutting marks wasn't updated
|
- [kamel5] Fix cutting marks wasn't updated
|
||||||
|
|
||||||
Version 1.2.16
|
Version 1.2.16
|
||||||
- [pbiering] add additional recording flag "isInUse" - can be used in skins for e.g. records in cutting/copy(queue)
|
- [pbiering] add additional recording flag {isInUse} - can be used in skins for e.g. records in cutting/copy(queue)
|
||||||
- [pbiering] add additional vdrstatus exposing "vdrIsRecordingsHandlersActive" and "vdrIsRecording" - can be used in skins for e.g. IDLE/BUSY REC/FREE
|
- [pbiering] add additional vdrstatus exposing {vdrIsRecordingsHandlersActive} and {vdrIsRecording} - can be used in skins for e.g. IDLE/BUSY REC/FREE
|
||||||
|
- [pbiering] add {vdrHasTimers} to vdrstatus - can be used in skins for e.g. REC/SCHED/FREE (in combination with {vdrIsRecording})
|
||||||
|
@ -739,6 +739,7 @@ enum class eDMVdrstatisticsIT {
|
|||||||
enum class eDMVdrstatusIT {
|
enum class eDMVdrstatusIT {
|
||||||
vdrIsRecordingsHandlersActive,
|
vdrIsRecordingsHandlersActive,
|
||||||
vdrIsRecording,
|
vdrIsRecording,
|
||||||
|
vdrHasTimers,
|
||||||
count
|
count
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -883,6 +883,7 @@ void cVeDmVdrstatus::SetTokenContainer(void) {
|
|||||||
tokenContainer = new skindesignerapi::cTokenContainer();
|
tokenContainer = new skindesignerapi::cTokenContainer();
|
||||||
tokenContainer->DefineIntToken("{vdrIsRecordingsHandlersActive}", (int)eDMVdrstatusIT::vdrIsRecordingsHandlersActive);
|
tokenContainer->DefineIntToken("{vdrIsRecordingsHandlersActive}", (int)eDMVdrstatusIT::vdrIsRecordingsHandlersActive);
|
||||||
tokenContainer->DefineIntToken("{vdrIsRecording}", (int)eDMVdrstatusIT::vdrIsRecording);
|
tokenContainer->DefineIntToken("{vdrIsRecording}", (int)eDMVdrstatusIT::vdrIsRecording);
|
||||||
|
tokenContainer->DefineIntToken("{vdrHasTimers}", (int)eDMVdrstatusIT::vdrHasTimers);
|
||||||
InheritTokenContainer();
|
InheritTokenContainer();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -890,9 +891,13 @@ bool cVeDmVdrstatus::Parse(bool forced) {
|
|||||||
if (!cViewElement::Parse(forced))
|
if (!cViewElement::Parse(forced))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
cGlobalTimers globalTimers;
|
||||||
|
globalTimers.LoadTimers();
|
||||||
|
|
||||||
tokenContainer->Clear();
|
tokenContainer->Clear();
|
||||||
tokenContainer->AddIntToken((int)eDMVdrstatusIT::vdrIsRecordingsHandlersActive, RecordingsHandler.Active());
|
tokenContainer->AddIntToken((int)eDMVdrstatusIT::vdrIsRecordingsHandlersActive, RecordingsHandler.Active());
|
||||||
tokenContainer->AddIntToken((int)eDMVdrstatusIT::vdrIsRecording, cRecordControls::Active());
|
tokenContainer->AddIntToken((int)eDMVdrstatusIT::vdrIsRecording, cRecordControls::Active());
|
||||||
|
tokenContainer->AddIntToken((int)eDMVdrstatusIT::vdrHasTimers, (globalTimers.Size() > 0));
|
||||||
SetDirty();
|
SetDirty();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -94,6 +94,7 @@
|
|||||||
<!-- Available Variables vdrstatus
|
<!-- Available Variables vdrstatus
|
||||||
{vdrIsRecordingsHandlersActive} true if active RecordingsHandlers (cut,copy,move) aka "busy"
|
{vdrIsRecordingsHandlersActive} true if active RecordingsHandlers (cut,copy,move) aka "busy"
|
||||||
{vdrIsRecording} true if active recording
|
{vdrIsRecording} true if active recording
|
||||||
|
{vdrHasTimers} true if numtimers > 0
|
||||||
-->
|
-->
|
||||||
<vdrstatus>
|
<vdrstatus>
|
||||||
</vdrstatus>
|
</vdrstatus>
|
||||||
|
Loading…
Reference in New Issue
Block a user