diff options
author | Thomas Maass <mase@mase1.setho.org> | 2013-10-26 14:15:01 +0200 |
---|---|---|
committer | Thomas Maass <mase@mase1.setho.org> | 2013-10-26 14:15:01 +0200 |
commit | b72fb78c521fd35188728e2ef977eb14790378df (patch) | |
tree | 48c1f0d1353a8915656372779cf2dda1e97dea9c | |
parent | ed7410fbae5a5b0207e7aa4fc3a8652f4ad25195 (diff) | |
download | vdr-plugin-hddarchive-b72fb78c521fd35188728e2ef977eb14790378df.tar.gz vdr-plugin-hddarchive-b72fb78c521fd35188728e2ef977eb14790378df.tar.bz2 |
Updated patch for skinnopacity.
-rw-r--r-- | patches/skinnopacity-hddarchive.patch | 48 |
1 files changed, 19 insertions, 29 deletions
diff --git a/patches/skinnopacity-hddarchive.patch b/patches/skinnopacity-hddarchive.patch index 098ab49..e9b7953 100644 --- a/patches/skinnopacity-hddarchive.patch +++ b/patches/skinnopacity-hddarchive.patch @@ -1,25 +1,18 @@ ---- menuitem.c 2013-10-19 19:59:29.867915217 +0200 -+++ menuitem.c 2013-10-19 19:56:14.335920540 +0200 +--- menuitem.c 2013-10-26 14:01:22.324425496 +0200 ++++ menuitem.c 2013-10-26 13:50:14.288443681 +0200 @@ -1,4 +1,5 @@ #include "menuitem.h" +#include "services/hddarchive.h" #include <string> #include <sstream> #include <algorithm> -@@ -1154,7 +1155,6 @@ - - void cNopacityRecordingMenuItem::DrawRecordingNewIcon(void) { - int iconNewSize = height/3; -- - cImage *imgIcon = imgCache->GetSkinIcon("skinIcons/newrecording", iconNewSize, iconNewSize); - if (imgIcon) { - int iconX = pixmapIcon->ViewPort().Width() - iconNewSize; -@@ -1175,6 +1175,16 @@ +@@ -1281,6 +1282,17 @@ } } +void cNopacityRecordingMenuItem::DrawRecordingArchiveIcon(void) { + int iconArchiveSize = height/3; ++ + cImage *imgIcon = imgCache->GetSkinIcon("skinIcons/archive", iconArchiveSize, iconArchiveSize); + if (imgIcon) { + int iconX = pixmapIcon->ViewPort().Width() - iconArchiveSize; @@ -28,33 +21,31 @@ + } +} + - void cNopacityRecordingMenuItem::DrawFolderIcon(void) { - cImage *imgIcon = imgCache->GetSkinIcon("skinIcons/recfolder", posterWidth, posterHeight); - if (imgIcon) { -@@ -1243,9 +1253,19 @@ - DrawFolderNewSeen(); - SetTextShort(); + void cNopacityRecordingMenuItem::DrawRecordingEditedIcon(void) { + int iconCutSize = height/3; + cImage *imgIcon = imgCache->GetSkinIcon("skinIcons/recordingcutted", iconCutSize, iconCutSize); +@@ -1363,7 +1375,17 @@ } else { -+ cPlugin *hddarchivePlugin = cPluginManager::GetPlugin("hddarchive"); + DrawPoster(); + DrawRecDateTime(); +- if (Recording->IsNew()) { ++ cPlugin *hddarchivePlugin = cPluginManager::GetPlugin("hddarchive"); + Hddarchive_archiveid_v1_0 data; + data.recording = Recording; + data.isarchive = false; + if (hddarchivePlugin) { + hddarchivePlugin->Service("Hddarchive-archiveid_v1.0", &data); + } - DrawPoster(); - DrawRecDateTime(); -- if (Recording->IsNew()) { + if (data.isarchive) { -+ DrawRecordingArchiveIcon(); ++ DrawRecordingArchiveIcon(); + } + else if (Recording->IsNew()) { DrawRecordingNewIcon(); } if (Recording->IsEdited()) { ---- menuitem.h 2013-10-19 19:59:29.867915217 +0200 -+++ menuitem.h 2013-10-19 19:56:14.335920540 +0200 -@@ -173,6 +173,7 @@ +--- menuitem.h 2013-10-26 14:01:22.324425496 +0200 ++++ menuitem.h 2013-10-26 13:50:14.232443682 +0200 +@@ -175,6 +175,7 @@ void SetTextShortRecording(void); void DrawBackground(void); void DrawRecordingNewIcon(void); @@ -63,12 +54,11 @@ void DrawFolderIcon(void); void DrawRecDateTime(void); --- services/hddarchive.h 1970-01-01 01:00:00.000000000 +0100 -+++ services/hddarchive.h 2013-10-19 19:46:57.000000000 +0200 -@@ -0,0 +1,7 @@ ++++ services/hddarchive.h 2013-10-26 13:50:56.104442542 +0200 +@@ -0,0 +1,6 @@ +struct Hddarchive_archiveid_v1_0 +{ + const cRecording *recording; + bool isarchive; + char *archiveid; -+}; -+ ++}; |