summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2009-08-02 11:38:24 +0000
committerphintuka <phintuka>2009-08-02 11:38:24 +0000
commit8773d6be9b6cb7c2d3d95dd01a14635ba6c1d526 (patch)
treed189d68e04d93857c906a1b6aee0566ed7fb080d
parent5e5c7ac783ca78c621921f7bbde1e1a55e411e51 (diff)
downloadxineliboutput-8773d6be9b6cb7c2d3d95dd01a14635ba6c1d526.tar.gz
xineliboutput-8773d6be9b6cb7c2d3d95dd01a14635ba6c1d526.tar.bz2
Added symbol 'B' to indicate BluRay disc images
-rw-r--r--menuitems.c10
-rw-r--r--menuitems.h11
2 files changed, 13 insertions, 8 deletions
diff --git a/menuitems.c b/menuitems.c
index 609c6a6b..fb0cc994 100644
--- a/menuitems.c
+++ b/menuitems.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.c,v 1.14 2009-05-29 15:05:19 phintuka Exp $
+ * $Id: menuitems.c,v 1.15 2009-08-02 11:38:24 phintuka Exp $
*
*/
@@ -141,6 +141,7 @@ cFileListItem::cFileListItem(const char *name, bool isDir)
m_Name = name;
m_IsDir = isDir;
m_IsDvd = false;
+ m_IsBluRay = false;
m_HasResume = false;
m_SubFile = NULL;
m_ShowFlags = false;
@@ -150,11 +151,12 @@ cFileListItem::cFileListItem(const char *name, bool isDir)
cFileListItem::cFileListItem(const char *name, bool IsDir,
bool HasResume, const char *subfile,
- bool IsDvd)
+ bool IsDvd, bool IsBluRay)
{
m_Name = name;
m_IsDir = IsDir;
m_IsDvd = IsDvd;
+ m_IsBluRay = IsBluRay;
m_HasResume = HasResume;
m_SubFile = subfile;
m_ShowFlags = true;
@@ -170,10 +172,12 @@ void cFileListItem::Set(void)
if(m_IsDir) {
if(m_IsDvd)
txt = cString::sprintf("\tD\t[%s] ", *m_Name); // text2skin requires space at end of string to display item correctly ...
+ else if (m_IsBluRay)
+ txt = cString::sprintf("\tB\t[%s] ", *m_Name);
else
txt = cString::sprintf("\t\t[%s] ", *m_Name); // text2skin requires space at end of string to display item correctly ...
} else {
- txt = cString::sprintf("%c\t%c\t%s", m_HasResume ? ' ' : '*', *m_SubFile ? 'S' : m_IsDvd ? 'D' : ' ', *m_Name);
+ txt = cString::sprintf("%c\t%c\t%s", m_HasResume ? ' ' : '*', *m_SubFile ? 'S' : m_IsDvd ? 'D' : m_IsBluRay ? 'B' : ' ', *m_Name);
if(NULL != (pt = strrchr(txt,'.')))
txt.Truncate(pt - txt);
}
diff --git a/menuitems.h b/menuitems.h
index cb158881..b67992b5 100644
--- a/menuitems.h
+++ b/menuitems.h
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: menuitems.h,v 1.7 2007-06-21 10:00:29 phintuka Exp $
+ * $Id: menuitems.h,v 1.8 2009-08-02 11:38:24 phintuka Exp $
*
*/
@@ -81,21 +81,22 @@ class cFileListItem : public cOsdItem
cString m_Name;
cString m_SubFile;
bool m_IsDir, m_HasResume, m_ShowFlags, m_Up;
- bool m_IsDvd;
+ bool m_IsDvd, m_IsBluRay;
protected:
virtual void Set(void);
public:
- cFileListItem(const char *name, bool isDir,
- bool HasResume, const char *subfile,
- bool IsDvd = false);
+ cFileListItem(const char *name, bool isDir,
+ bool HasResume, const char *subfile,
+ bool IsDvd = false, bool IsBluRay = false);
cFileListItem(const char *name, bool isDir);
const char *Name(void) { return m_Name; }
const char *SubFile(void) { return m_SubFile; }
bool IsDir(void) { return m_IsDir; }
bool IsDvd(void) { return m_IsDvd; }
+ bool IsBluRay(void) { return m_IsBluRay; }
virtual bool operator< (const cListObject &ListObject);
virtual int Compare(const cListObject &ListObject) const;