mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
The recording info of the default skins now shows the frame parameters of the recording at the end of the description (if such information is available)
This commit is contained in:
parent
cade92cda1
commit
0d4284df29
2
HISTORY
2
HISTORY
@ -9860,3 +9860,5 @@ Video Disk Recorder Revision History
|
|||||||
the 'info' file under the 'F' tag (thanks to Christoph Haubrich).
|
the 'info' file under the 'F' tag (thanks to Christoph Haubrich).
|
||||||
- Added the function cRecordingInfo::FrameParams(), which can be used to get a nicely
|
- Added the function cRecordingInfo::FrameParams(), which can be used to get a nicely
|
||||||
formatted string with all the available frame data.
|
formatted string with all the available frame data.
|
||||||
|
- The recording info of the default skins now shows the frame parameters of the
|
||||||
|
recording at the end of the description (if such information is available).
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: skinclassic.c 5.1 2021/07/01 15:40:46 kls Exp $
|
* $Id: skinclassic.c 5.2 2023/12/29 10:48:40 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "skinclassic.h"
|
#include "skinclassic.h"
|
||||||
@ -421,7 +421,13 @@ void cSkinClassicDisplayMenu::SetRecording(const cRecording *Recording)
|
|||||||
}
|
}
|
||||||
y += font->Height();
|
y += font->Height();
|
||||||
if (!isempty(Info->Description())) {
|
if (!isempty(Info->Description())) {
|
||||||
textScroller.Set(osd, x1, y, x2 - x1, y3 - y, Info->Description(), font, Theme.Color(clrMenuEventDescription), Theme.Color(clrBackground));
|
cString d = Info->Description();
|
||||||
|
cString f = Info->FrameParams();
|
||||||
|
if (*f) {
|
||||||
|
d.Append("\n\n");
|
||||||
|
d.Append(f);
|
||||||
|
}
|
||||||
|
textScroller.Set(osd, x1, y, x2 - x1, y3 - y, d, font, Theme.Color(clrMenuEventDescription), Theme.Color(clrBackground));
|
||||||
SetTextScrollbar();
|
SetTextScrollbar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
skinlcars.c
10
skinlcars.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: skinlcars.c 5.3 2021/07/01 15:40:46 kls Exp $
|
* $Id: skinlcars.c 5.4 2023/12/29 10:48:40 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
|
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures,
|
||||||
@ -1729,7 +1729,13 @@ void cSkinLCARSDisplayMenu::SetRecording(const cRecording *Recording)
|
|||||||
if (!isempty(Info->Description())) {
|
if (!isempty(Info->Description())) {
|
||||||
int yt = y;
|
int yt = y;
|
||||||
int yb = yi01;
|
int yb = yi01;
|
||||||
textScroller.Set(osd, xl, yt, xi01 - xl, yb - yt, Info->Description(), font, Theme.Color(clrEventDescription), Theme.Color(clrBackground));
|
cString d = Info->Description();
|
||||||
|
cString f = Info->FrameParams();
|
||||||
|
if (*f) {
|
||||||
|
d.Append("\n\n");
|
||||||
|
d.Append(f);
|
||||||
|
}
|
||||||
|
textScroller.Set(osd, xl, yt, xi01 - xl, yb - yt, d, font, Theme.Color(clrEventDescription), Theme.Color(clrBackground));
|
||||||
DrawTextScrollbar();
|
DrawTextScrollbar();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
skinsttng.c
10
skinsttng.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* how to reach the author.
|
||||||
*
|
*
|
||||||
* $Id: skinsttng.c 5.1 2021/07/01 15:40:46 kls Exp $
|
* $Id: skinsttng.c 5.2 2023/12/29 10:48:40 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures
|
// "Star Trek: The Next Generation"(R) is a registered trademark of Paramount Pictures
|
||||||
@ -745,7 +745,13 @@ void cSkinSTTNGDisplayMenu::SetRecording(const cRecording *Recording)
|
|||||||
if (!isempty(Info->Description())) {
|
if (!isempty(Info->Description())) {
|
||||||
int yt = y;
|
int yt = y;
|
||||||
int yb = y4 - Roundness;
|
int yb = y4 - Roundness;
|
||||||
textScroller.Set(osd, xl, yt, x4 - xl, yb - yt, Info->Description(), font, Theme.Color(clrMenuEventDescription), Theme.Color(clrBackground));
|
cString d = Info->Description();
|
||||||
|
cString f = Info->FrameParams();
|
||||||
|
if (*f) {
|
||||||
|
d.Append("\n\n");
|
||||||
|
d.Append(f);
|
||||||
|
}
|
||||||
|
textScroller.Set(osd, xl, yt, x4 - xl, yb - yt, d, font, Theme.Color(clrMenuEventDescription), Theme.Color(clrBackground));
|
||||||
yb = yt + textScroller.Height();
|
yb = yt + textScroller.Height();
|
||||||
osd->DrawEllipse (x1, yt - Roundness, x2, yt, frameColor, -3);
|
osd->DrawEllipse (x1, yt - Roundness, x2, yt, frameColor, -3);
|
||||||
osd->DrawRectangle(x1, yt, x2, yb, frameColor);
|
osd->DrawRectangle(x1, yt, x2, yb, frameColor);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user