summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2004-12-28 02:03:00 +0000
committerlordjaxom <lordjaxom>2004-12-28 02:03:00 +0000
commitf5f6a0feabe56d37c7228aebbec83f93d03c6bc9 (patch)
treeb8ce755aae8c3975400852504ca5388c3753fd46 /xml
parent839a89afdf54d0f6cc319af7d5d38be62ff424a9 (diff)
downloadvdr-plugin-text2skin-f5f6a0feabe56d37c7228aebbec83f93d03c6bc9.tar.gz
vdr-plugin-text2skin-f5f6a0feabe56d37c7228aebbec83f93d03c6bc9.tar.bz2
- first try to enable marquees and blinks in menu items
Diffstat (limited to 'xml')
-rw-r--r--xml/object.c13
-rw-r--r--xml/object.h10
2 files changed, 12 insertions, 11 deletions
diff --git a/xml/object.c b/xml/object.c
index 1b8ac04..a9fb044 100644
--- a/xml/object.c
+++ b/xml/object.c
@@ -1,5 +1,5 @@
/*
- * $Id: object.c,v 1.3 2004/12/28 01:24:35 lordjaxom Exp $
+ * $Id: object.c,v 1.4 2004/12/28 02:03:00 lordjaxom Exp $
*/
#include "xml/object.h"
@@ -111,7 +111,16 @@ bool cxObject::ParseFontFace(const std::string &Text)
mFontSize = size;
return true;
}
-
+
+void cxObject::SetListIndex(uint Index, int Tab)
+{
+ mIndex = mDisplay->Objects() + (Index * cSkinDisplayMenu::MaxTabs + Tab);
+ mText.SetListIndex(Index, Tab);
+ mPath.SetListIndex(Index, Tab);
+ if (mCondition != NULL)
+ mCondition->SetListIndex(Index, Tab);
+}
+
const std::string &cxObject::TypeName(void) const
{
return ObjectNames[mType];
diff --git a/xml/object.h b/xml/object.h
index b7bd46c..678048b 100644
--- a/xml/object.h
+++ b/xml/object.h
@@ -1,5 +1,5 @@
/*
- * $Id: object.h,v 1.2 2004/12/28 01:24:35 lordjaxom Exp $
+ * $Id: object.h,v 1.3 2004/12/28 02:03:00 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_XML_OBJECT_H
@@ -129,14 +129,6 @@ public:
const cxObject *GetObject(uint Index) const;
};
-inline void cxObject::SetListIndex(uint Index, int Tab)
-{
- mText.SetListIndex(Index, Tab);
- mPath.SetListIndex(Index, Tab);
- if (mCondition != NULL)
- mCondition->SetListIndex(Index, Tab);
-}
-
class cxObjects: public std::vector<cxObject*> {
public:
cxObjects(void);