summaryrefslogtreecommitdiff
path: root/xml
diff options
context:
space:
mode:
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);