diff options
author | Christian <zerov83@gmail.com> | 2016-03-17 20:15:56 +0100 |
---|---|---|
committer | Christian <zerov83@gmail.com> | 2016-03-17 20:37:05 +0100 |
commit | 27817bc027d6b744197d9c2614f87e90c1d2e208 (patch) | |
tree | 8321791b0e6dc69dadb4c867b8ad837fd4ed1ce7 | |
parent | 7d6566a4cc70b5fb3b5dd66e66c852f6a765c2ac (diff) | |
download | vdr-plugin-plex-27817bc027d6b744197d9c2614f87e90c1d2e208.tar.gz vdr-plugin-plex-27817bc027d6b744197d9c2614f87e90c1d2e208.tar.bz2 |
Started DisplayReplay + Fixes
-rw-r--r-- | Config.cpp | 11 | ||||
-rw-r--r-- | Config.h | 2 | ||||
-rw-r--r-- | Makefile | 3 | ||||
-rw-r--r-- | detailView.cpp | 2 | ||||
-rw-r--r-- | displayReplaySD.cpp | 10 | ||||
-rw-r--r-- | displayReplaySD.h | 18 | ||||
-rw-r--r-- | plex.cpp | 8 | ||||
-rw-r--r-- | plex.h | 1 | ||||
-rw-r--r-- | po/de_DE.po | 8 |
9 files changed, 59 insertions, 4 deletions
@@ -107,6 +107,8 @@ bool Config::Parse(const char *name, const char *value) else if (strcasecmp(name, "DetailGridRows") == 0) Config::GetInstance().DetailGridRows = atoi(value); else if (strcasecmp(name, "ListGridColumns") == 0) Config::GetInstance().ListGridColumns = atoi(value); else if (strcasecmp(name, "ListGridRows") == 0) Config::GetInstance().ListGridRows = atoi(value); + else if (strcasecmp(name, "ExtrasGridColumns") == 0) Config::GetInstance().ExtrasGridColumns = atoi(value); + else if (strcasecmp(name, "ExtrasGridRows") == 0) Config::GetInstance().ExtrasGridRows = atoi(value); else if (strcasecmp(name, "UseMpv") == 0) Config::GetInstance().UseMpv = atoi(value) ? true : false; else if (strcasecmp(name, "ScrollByPage") == 0) Config::GetInstance().ScrollByPage = atoi(value) ? true : false; else if (strcasecmp(name, "ScrollAllAround") == 0) Config::GetInstance().ScrollAllAround = atoi(value) ? true : false; @@ -157,6 +159,8 @@ cMyMenuSetupPage::cMyMenuSetupPage(void) DetailGridRows = Config::GetInstance().DetailGridRows; ListGridColumns = Config::GetInstance().ListGridColumns; ListGridRows = Config::GetInstance().ListGridRows; + ExtrasGridColumns = Config::GetInstance().ExtrasGridColumns; + ExtrasGridRows = Config::GetInstance().ExtrasGridRows; UseMpv = Config::GetInstance().UseMpv; ScrollByPage = Config::GetInstance().ScrollByPage; ScrollAllAround = Config::GetInstance().ScrollAllAround; @@ -192,6 +196,9 @@ cMyMenuSetupPage::cMyMenuSetupPage(void) Add(new cMenuEditIntItem(tr("List Grid Columns"), &ListGridColumns)); Add(new cMenuEditIntItem(tr("List Grid Rows"), &ListGridRows)); + Add(new cMenuEditIntItem(tr("Extras Grid Columns"), &ExtrasGridColumns)); + Add(new cMenuEditIntItem(tr("Extras Grid Rows"), &ExtrasGridRows)); + cMenuEditStrItem* devUUID = new cMenuEditStrItem(tr("Current UUID"), Uuid, STRING_SIZE); devUUID->SetSelectable(false); Add(devUUID); @@ -216,6 +223,8 @@ void cMyMenuSetupPage::Store(void) Config::GetInstance().DetailGridRows = DetailGridRows; Config::GetInstance().ListGridColumns = ListGridColumns; Config::GetInstance().ListGridRows = ListGridRows; + Config::GetInstance().ExtrasGridColumns = ExtrasGridColumns; + Config::GetInstance().ExtrasGridRows = ExtrasGridRows; Config::GetInstance().DefaultViewMode = (ViewMode)DefaultViewMode; Config::GetInstance().UseMpv = UseMpv; Config::GetInstance().ScrollByPage = ScrollByPage; @@ -238,6 +247,8 @@ void cMyMenuSetupPage::Store(void) SetupStore("DetailGridRows", Config::GetInstance().DetailGridRows); SetupStore("ListGridColumns", Config::GetInstance().ListGridColumns); SetupStore("ListGridRows", Config::GetInstance().ListGridRows); + SetupStore("ExtrasGridColumns", Config::GetInstance().ExtrasGridColumns); + SetupStore("ExtrasGridRows", Config::GetInstance().ExtrasGridRows); SetupStore("DefaultViewMode", Config::GetInstance().DefaultViewMode); SetupStore("UseMpv", Config::GetInstance().UseMpv); SetupStore("ScrollByPage", Config::GetInstance().ScrollByPage); @@ -118,6 +118,8 @@ class cMyMenuSetupPage:public cMenuSetupPage int DetailGridRows; int ListGridColumns; int ListGridRows; + int ExtrasGridColumns; + int ExtrasGridRows; int DefaultViewMode; int UseMpv; int ScrollByPage; @@ -103,7 +103,8 @@ OBJS += plexSdOsd.o \ browserGrid.o \ viewHeader.o \ detailView.o \ - pictureCache.o + pictureCache.o \ + displayReplaySD.o endif SRCS = $(wildcard $(OBJS:.o=.c)) $(PLUGIN).cpp diff --git a/detailView.cpp b/detailView.cpp index 6f9880a..8479a46 100644 --- a/detailView.cpp +++ b/detailView.cpp @@ -14,7 +14,7 @@ cDetailView::cDetailView(std::shared_ptr<skindesignerapi::cOsdView> detailView, m_pGrid = NULL; SetViewGrid(std::shared_ptr<skindesignerapi::cViewGrid>(detailView->GetViewGrid((int)eViewDetailViewGrids::extras))); - SetGridDimensions(Config::GetInstance().ExtrasGridColumns, Config::GetInstance().ExtrasGridRows); + SetGridDimensions(Config::GetInstance().ExtrasGridRows, Config::GetInstance().ExtrasGridColumns); } void cDetailView::Flush() diff --git a/displayReplaySD.cpp b/displayReplaySD.cpp new file mode 100644 index 0000000..11c99e8 --- /dev/null +++ b/displayReplaySD.cpp @@ -0,0 +1,10 @@ +#include "displayReplaySD.h" + +cDisplayReplaySD::cDisplayReplaySD(plexclient::Video* video) +{ +} + +cDisplayReplaySD::~cDisplayReplaySD() +{ +} + diff --git a/displayReplaySD.h b/displayReplaySD.h new file mode 100644 index 0000000..f38be4b --- /dev/null +++ b/displayReplaySD.h @@ -0,0 +1,18 @@ +#ifndef CDISPLAYREPLAYSD_H +#define CDISPLAYREPLAYSD_H + +#include "PVideo.h" +#include <memory> +#include "tokendefinitions.h" +#include <libskindesignerapi/osdelements.h> +#include <libskindesignerapi/skindesignerosdbase.h> + +class cDisplayReplaySD +{ +public: + cDisplayReplaySD(plexclient::Video* video); + ~cDisplayReplaySD(); + +}; + +#endif // CDISPLAYREPLAYSD_H @@ -70,7 +70,7 @@ bool cMyPlugin::Start(void) m_pPlugStruct = new skindesignerapi::cPluginStructure(); m_pPlugStruct->name = "plex"; m_pPlugStruct->libskindesignerAPIVersion = LIBSKINDESIGNERAPIVERSION; - + m_pPlugStruct->RegisterRootView("root.xml"); skindesignerapi::cTokenContainer *tkBackground = new skindesignerapi::cTokenContainer(); cPlexSdOsd::DefineTokens(eViewElementsRoot::background, tkBackground); @@ -136,6 +136,12 @@ bool cMyPlugin::Start(void) cPlexSdOsd::DefineGridTokens(tkDetailExtraGrid); m_pPlugStruct->RegisterViewGrid((int)eViews::detailView, (int)eViewDetailViewGrids::extras, "extragrid", tkDetailExtraGrid); + + m_pPlugStructReplay = new skindesignerapi::cPluginStructure(); + m_pPlugStructReplay->name = "plexreplay"; + m_pPlugStructReplay->libskindesignerAPIVersion = LIBSKINDESIGNERAPIVERSION; + m_pPlugStructReplay->RegisterRootView("root.xml"); + if (!skindesignerapi::SkindesignerAPI::RegisterPlugin(m_pPlugStruct)) { esyslog("[plex]: skindesigner not available"); bSkindesigner = false; @@ -47,6 +47,7 @@ class cMyPlugin:public cPlugin private: #ifdef SKINDESIGNER skindesignerapi::cPluginStructure *m_pPlugStruct; + skindesignerapi::cPluginStructure *m_pPlugStructReplay; cPlexSdOsd *m_pTestOsd; static bool bSkindesigner; #endif diff --git a/po/de_DE.po b/po/de_DE.po index c48775b..e273dac 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-plex 0.1.0\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2016-03-09 21:22+0100\n" +"POT-Creation-Date: 2016-03-17 20:29+0100\n" "PO-Revision-Date: 2016-03-09 21:24+0200\n" "Last-Translator: Chris <zerov83@gmail.com>\n" "Language-Team: chriszero\n" @@ -78,6 +78,12 @@ msgstr "Spalten im Listen Modus" msgid "List Grid Rows" msgstr "Reihen im Listen Modus" +msgid "Extras Grid Columns" +msgstr "" + +msgid "Extras Grid Rows" +msgstr "" + msgid "Current UUID" msgstr "Aktuelle UUID" |