mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
fixed epgpics in detailedepgview
This commit is contained in:
parent
7c6167a79e
commit
86d3df4223
2
config.c
2
config.c
@ -92,7 +92,7 @@ void cDesignerConfig::ReadSkinFolder(cString &skinFolder, vector<string> *contai
|
||||
while (dirEntry = readdir(folder)) {
|
||||
string dirEntryName = dirEntry->d_name;
|
||||
int dirEntryType = dirEntry->d_type;
|
||||
if (!dirEntryName.compare(".") || !dirEntryName.compare("..") || !dirEntryName.compare("skinrepositories") || dirEntryType != DT_DIR)
|
||||
if (!dirEntryName.compare(".") || !dirEntryName.compare("..") || !dirEntryName.compare("skinrepositories") || (dirEntryType != DT_DIR && dirEntryType != DT_LNK))
|
||||
continue;
|
||||
container->push_back(dirEntryName);
|
||||
}
|
||||
|
@ -1234,9 +1234,9 @@ enum class eDmDetailedEpgIT {
|
||||
channelnumber,
|
||||
channellogoexists,
|
||||
hasreruns,
|
||||
epgpic1avaialble,
|
||||
epgpic2avaialble,
|
||||
epgpic3avaialble,
|
||||
epgpic1available,
|
||||
epgpic2available,
|
||||
epgpic3available,
|
||||
count
|
||||
};
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,114 +1,115 @@
|
||||
#ifndef __VIEWDETAIL_H
|
||||
#define __VIEWDETAIL_H
|
||||
|
||||
#include "../services/epgsearch.h"
|
||||
#include "../extensions/scrapmanager.h"
|
||||
#include "viewelement.h"
|
||||
/******************************************************************
|
||||
* cViewDetail
|
||||
******************************************************************/
|
||||
class cViewDetail : public cViewElement, public cScrapManager {
|
||||
protected:
|
||||
int plugId;
|
||||
int plugMenuId;
|
||||
cArea *activeTab;
|
||||
int activeTabIndex;
|
||||
int numTabs;
|
||||
void SetActiveTab(void);
|
||||
public:
|
||||
cViewDetail(void);
|
||||
virtual ~cViewDetail(void);
|
||||
void SetPlugId(int id) { plugId = id; };
|
||||
void SetPlugMenuId(int id) { plugMenuId = id; };
|
||||
int GetWidth(void);
|
||||
void ResetTabs(void);
|
||||
void Clear(void);
|
||||
void Close(void);
|
||||
void Render(void);
|
||||
void Scrollbar(int &barheight, int &offset, bool &end);
|
||||
bool ScrollUp(bool page = false);
|
||||
bool ScrollDown(bool page = false);
|
||||
int GetTabs(vector<const char*> &tabs);
|
||||
int NumTabs(void) { return numTabs; };
|
||||
int ActiveTab(void) { return activeTabIndex; };
|
||||
void NextTab(void);
|
||||
void PrevTab(void);
|
||||
void SetTransparency(int transparency, bool forceDetached = false);
|
||||
};
|
||||
/******************************************************************
|
||||
* cViewDetailEpg
|
||||
******************************************************************/
|
||||
class cViewDetailEpg : public cViewDetail {
|
||||
protected:
|
||||
const cEvent *event;
|
||||
int rerunsIndex;
|
||||
int actorsIndex;
|
||||
cList<Epgsearch_searchresults_v1_0::cServiceSearchResult> *LoadReruns(void);
|
||||
int NumReruns(cList<Epgsearch_searchresults_v1_0::cServiceSearchResult> *reruns);
|
||||
void SetReruns(cList<Epgsearch_searchresults_v1_0::cServiceSearchResult> *reruns);
|
||||
public:
|
||||
cViewDetailEpg(void);
|
||||
virtual ~cViewDetailEpg(void);
|
||||
void SetTokenContainer(void);
|
||||
void SetEvent(const cEvent *event) { this->event = event; };
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
/******************************************************************
|
||||
* cViewDetailRec
|
||||
******************************************************************/
|
||||
class cViewDetailRec : public cViewDetail {
|
||||
protected:
|
||||
const cRecording *recording;
|
||||
int actorsIndex;
|
||||
void SetRecInfos(void);
|
||||
int ReadSizeVdr(const char *strPath);
|
||||
string StripXmlTag(string &Line, const char *Tag);
|
||||
void SetRecordingImages(const char *recPath);
|
||||
public:
|
||||
cViewDetailRec(void);
|
||||
virtual ~cViewDetailRec(void);
|
||||
void SetTokenContainer(void);
|
||||
void SetRecording(const cRecording *recording) { this->recording = recording; };
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
/******************************************************************
|
||||
* cViewDetailText
|
||||
******************************************************************/
|
||||
class cViewDetailText : public cViewDetail {
|
||||
protected:
|
||||
const char *text;
|
||||
public:
|
||||
cViewDetailText(void);
|
||||
virtual ~cViewDetailText(void);
|
||||
void SetTokenContainer(void);
|
||||
void SetText(const char *text) { this->text = text; };
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
|
||||
/******************************************************************
|
||||
* cViewDetailPlugin
|
||||
******************************************************************/
|
||||
class cViewDetailPlugin : public cViewDetail {
|
||||
protected:
|
||||
public:
|
||||
cViewDetailPlugin(void);
|
||||
virtual ~cViewDetailPlugin(void);
|
||||
void SetTokenContainer(void);
|
||||
void Set(skindesignerapi::cTokenContainer *tk);
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
|
||||
/******************************************************************
|
||||
* cViewDetailAdvancedPlugin
|
||||
******************************************************************/
|
||||
class cViewDetailAdvancedPlugin : public cViewDetail {
|
||||
protected:
|
||||
int plugViewId;
|
||||
public:
|
||||
cViewDetailAdvancedPlugin(int viewId, int plugId);
|
||||
virtual ~cViewDetailAdvancedPlugin(void);
|
||||
void SetTokenContainer(void);
|
||||
void Set(skindesignerapi::cTokenContainer *tk);
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
#ifndef __VIEWDETAIL_H
|
||||
#define __VIEWDETAIL_H
|
||||
|
||||
#include "../services/epgsearch.h"
|
||||
#include "../extensions/scrapmanager.h"
|
||||
#include "viewelement.h"
|
||||
/******************************************************************
|
||||
* cViewDetail
|
||||
******************************************************************/
|
||||
class cViewDetail : public cViewElement, public cScrapManager {
|
||||
protected:
|
||||
int plugId;
|
||||
int plugMenuId;
|
||||
cArea *activeTab;
|
||||
int activeTabIndex;
|
||||
int numTabs;
|
||||
void SetActiveTab(void);
|
||||
public:
|
||||
cViewDetail(void);
|
||||
virtual ~cViewDetail(void);
|
||||
void SetPlugId(int id) { plugId = id; };
|
||||
void SetPlugMenuId(int id) { plugMenuId = id; };
|
||||
int GetWidth(void);
|
||||
void ResetTabs(void);
|
||||
void Clear(void);
|
||||
void Close(void);
|
||||
void Render(void);
|
||||
void Scrollbar(int &barheight, int &offset, bool &end);
|
||||
bool ScrollUp(bool page = false);
|
||||
bool ScrollDown(bool page = false);
|
||||
int GetTabs(vector<const char*> &tabs);
|
||||
int NumTabs(void) { return numTabs; };
|
||||
int ActiveTab(void) { return activeTabIndex; };
|
||||
void NextTab(void);
|
||||
void PrevTab(void);
|
||||
void SetTransparency(int transparency, bool forceDetached = false);
|
||||
};
|
||||
/******************************************************************
|
||||
* cViewDetailEpg
|
||||
******************************************************************/
|
||||
class cViewDetailEpg : public cViewDetail {
|
||||
protected:
|
||||
const cEvent *event;
|
||||
int rerunsIndex;
|
||||
int actorsIndex;
|
||||
cList<Epgsearch_searchresults_v1_0::cServiceSearchResult> *LoadReruns(void);
|
||||
int NumReruns(cList<Epgsearch_searchresults_v1_0::cServiceSearchResult> *reruns);
|
||||
void SetReruns(cList<Epgsearch_searchresults_v1_0::cServiceSearchResult> *reruns);
|
||||
void SetEpgPictures(int eventId);
|
||||
public:
|
||||
cViewDetailEpg(void);
|
||||
virtual ~cViewDetailEpg(void);
|
||||
void SetTokenContainer(void);
|
||||
void SetEvent(const cEvent *event) { this->event = event; };
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
/******************************************************************
|
||||
* cViewDetailRec
|
||||
******************************************************************/
|
||||
class cViewDetailRec : public cViewDetail {
|
||||
protected:
|
||||
const cRecording *recording;
|
||||
int actorsIndex;
|
||||
void SetRecInfos(void);
|
||||
int ReadSizeVdr(const char *strPath);
|
||||
string StripXmlTag(string &Line, const char *Tag);
|
||||
void SetRecordingImages(const char *recPath);
|
||||
public:
|
||||
cViewDetailRec(void);
|
||||
virtual ~cViewDetailRec(void);
|
||||
void SetTokenContainer(void);
|
||||
void SetRecording(const cRecording *recording) { this->recording = recording; };
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
/******************************************************************
|
||||
* cViewDetailText
|
||||
******************************************************************/
|
||||
class cViewDetailText : public cViewDetail {
|
||||
protected:
|
||||
const char *text;
|
||||
public:
|
||||
cViewDetailText(void);
|
||||
virtual ~cViewDetailText(void);
|
||||
void SetTokenContainer(void);
|
||||
void SetText(const char *text) { this->text = text; };
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
|
||||
/******************************************************************
|
||||
* cViewDetailPlugin
|
||||
******************************************************************/
|
||||
class cViewDetailPlugin : public cViewDetail {
|
||||
protected:
|
||||
public:
|
||||
cViewDetailPlugin(void);
|
||||
virtual ~cViewDetailPlugin(void);
|
||||
void SetTokenContainer(void);
|
||||
void Set(skindesignerapi::cTokenContainer *tk);
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
|
||||
/******************************************************************
|
||||
* cViewDetailAdvancedPlugin
|
||||
******************************************************************/
|
||||
class cViewDetailAdvancedPlugin : public cViewDetail {
|
||||
protected:
|
||||
int plugViewId;
|
||||
public:
|
||||
cViewDetailAdvancedPlugin(int viewId, int plugId);
|
||||
virtual ~cViewDetailAdvancedPlugin(void);
|
||||
void SetTokenContainer(void);
|
||||
void Set(skindesignerapi::cTokenContainer *tk);
|
||||
bool Parse(bool forced = false);
|
||||
};
|
||||
#endif //__VIEWDETAIL_H
|
Loading…
Reference in New Issue
Block a user