From f5f6a0feabe56d37c7228aebbec83f93d03c6bc9 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Tue, 28 Dec 2004 02:03:00 +0000 Subject: - first try to enable marquees and blinks in menu items --- xml/object.c | 13 +++++++++++-- xml/object.h | 10 +--------- 2 files changed, 12 insertions(+), 11 deletions(-) (limited to 'xml') 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 { public: cxObjects(void); -- cgit v1.2.3