Ticket #5954: dynamic_menus_h.patch
File dynamic_menus_h.patch, 972 bytes (added by , 17 years ago) |
---|
-
libs/libmythui/myththemedmenu.h
57 57 void CopyFrom(MythUIType*); 58 58 }; 59 59 60 class QDomDocument; 61 60 62 /// \brief Themed menu class, used for main menus in %MythTV frontend 61 63 class MPUBLIC MythThemedMenu : public MythThemedMenuState 62 64 { … … 85 87 void buttonAction(MythUIButtonListItem* item); 86 88 87 89 private: 88 void Init(const QString &menufile); 90 MythThemedMenu(const QString command, MythScreenStack *parent, 91 MythThemedMenuState *state); 89 92 93 void Init(MythScreenStack *parent, MythThemedMenuState *state); 94 90 95 bool parseMenu(const QString &menuname); 96 bool parseMenu(const QDomDocument &doc, const QString &menuname); 91 97 void parseThemeButton(QDomElement &element); 92 98 93 99 void addButton(const QString &type, const QString &text,