/* * menuitems.h: New menu item types * * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * * $Id: menuitems.h,v 1.1 2006-06-03 09:50:54 phintuka Exp $ * */ #ifndef __XINELIB_MENUITEMS_H_ #define __XINELIB_MENUITEMS_H_ #include // --- cMenuEditTypedIntItem ------------------------------------------------- class cMenuEditTypedIntItem : public cMenuEditIntItem { protected: char *type; char *zeroText; virtual void Set(void); public: cMenuEditTypedIntItem(const char *Name, const char *Type, int *Value, int Min = 0, int Max = INT_MAX, const char *ZeroText = NULL); ~cMenuEditTypedIntItem(); }; // --- cMenuEditStraI18nItem ------------------------------------------------- class cMenuEditStraI18nItem : public cMenuEditIntItem { private: const char * const *strings; protected: virtual void Set(void); public: cMenuEditStraI18nItem(const char *Name, int *Value, int NumStrings, const char * const *Strings); }; // --- cFileListItem --------------------------------------------------------- class cFileListItem : public cOsdItem { private: char *m_Name; bool m_IsDir, m_HasResume, m_HasSubs, m_ShowFlags, m_Up; protected: virtual void Set(void); public: cFileListItem(const char *name, bool isDir, bool HasResume, bool HasSubs); cFileListItem(const char *name, bool isDir); ~cFileListItem(); const char *Name() { return m_Name; } bool IsDir() { return m_IsDir; } virtual bool operator< (const cListObject &ListObject); virtual int Compare(const cListObject &ListObject) const; }; #endif //__XINELIB_MENUITEMS_H_