|
MythTV master
|
#include <libmythtv/mythtvmenu.h>
Public Member Functions | |
| MythTVMenu ()=default | |
| ~MythTVMenu () | |
| bool | LoadFromFile (MenuTypeId id, const QString &Filename, const QString &Menuname, const char *TranslationContext, const QString &KeyBindingContext, int IncludeLevel=0) |
| bool | LoadFromString (MenuTypeId id, const QString &Text, const QString &Menuname, const char *TranslationContext, const QString &KeyBindingContext, int IncludeLevel=0) |
| bool | IsLoaded () const |
| QDomElement | GetRoot () const |
| QString | Translate (const QString &Text) const |
| bool | Show (const QDomNode &Node, const QDomNode &Selected, MythTVMenuItemDisplayer &Displayer, MythOSDDialogData *Menu, bool Visible=true) const |
| QString | GetName () const |
| const char * | GetTranslationContext () const |
| const QString & | GetKeyBindingContext () const |
| QDomNode | GetNodeFromPath (const QString &path) const |
Static Public Member Functions | |
| static bool | MatchesGroup (const QString &Name, const QString &Prefix, MenuCategory Category, QString &OutPrefix) |
| static QString | GetPathFromNode (QDomNode Node) |
Private Member Functions | |
| void | ProcessIncludes (QDomElement &Root, int IncludeLevel) |
Private Attributes | |
| MenuTypeId | m_id { kMenuIdUnknown } |
| QDomDocument * | m_document { nullptr } |
| const char * | m_translationContext { "" } |
| QString | m_menuName |
| QString | m_keyBindingContext |
Friends | |
| class | TV |
Definition at line 83 of file mythtvmenu.h.
|
default |
| MythTVMenu::~MythTVMenu | ( | ) |
Definition at line 88 of file mythtvmenu.cpp.
| const QString & MythTVMenu::GetKeyBindingContext | ( | ) | const |
Definition at line 113 of file mythtvmenu.cpp.
Referenced by TV::MenuItemDisplayCutlist(), and TV::MenuItemDisplayPlayback().
| QString MythTVMenu::GetName | ( | void | ) | const |
Definition at line 93 of file mythtvmenu.cpp.
Referenced by TV::PlaybackMenuShow().
| QDomNode MythTVMenu::GetNodeFromPath | ( | const QString & | path | ) | const |
Definition at line 149 of file mythtvmenu.cpp.
|
static |
Definition at line 131 of file mythtvmenu.cpp.
Referenced by TV::MenuItemDisplayCutlist(), TV::MenuItemDisplayPlayback(), and TV::PlaybackMenuShow().
| QDomElement MythTVMenu::GetRoot | ( | ) | const |
Definition at line 103 of file mythtvmenu.cpp.
Referenced by GetNodeFromPath(), LoadFromFile(), LoadFromString(), TV::ShowOSDCutpoint(), and TV::ShowOSDMenu().
| const char * MythTVMenu::GetTranslationContext | ( | ) | const |
Definition at line 108 of file mythtvmenu.cpp.
| bool MythTVMenu::IsLoaded | ( | ) | const |
Definition at line 98 of file mythtvmenu.cpp.
Referenced by TV::ShowOSDCutpoint(), and TV::ShowOSDMenu().
| bool MythTVMenu::LoadFromFile | ( | MenuTypeId | id, |
| const QString & | Filename, | ||
| const QString & | Menuname, | ||
| const char * | TranslationContext, | ||
| const QString & | KeyBindingContext, | ||
| int | IncludeLevel = 0 |
||
| ) |
Definition at line 189 of file mythtvmenu.cpp.
Referenced by TV::ShowOSDCutpoint(), and TV::ShowOSDMenu().
| bool MythTVMenu::LoadFromString | ( | MenuTypeId | id, |
| const QString & | Text, | ||
| const QString & | Menuname, | ||
| const char * | TranslationContext, | ||
| const QString & | KeyBindingContext, | ||
| int | IncludeLevel = 0 |
||
| ) |
Definition at line 230 of file mythtvmenu.cpp.
|
static |
Definition at line 123 of file mythtvmenu.cpp.
Referenced by TV::MenuItemDisplayPlayback().
|
private |
Definition at line 255 of file mythtvmenu.cpp.
Referenced by LoadFromFile(), LoadFromString(), and ProcessIncludes().
| bool MythTVMenu::Show | ( | const QDomNode & | Node, |
| const QDomNode & | Selected, | ||
| MythTVMenuItemDisplayer & | Displayer, | ||
| MythOSDDialogData * | Menu, | ||
| bool | Visible = true |
||
| ) | const |
Definition at line 294 of file mythtvmenu.cpp.
Referenced by TV::MenuItemDisplayCutlist(), TV::MenuItemDisplayPlayback(), and TV::PlaybackMenuShow().
| QString MythTVMenu::Translate | ( | const QString & | Text | ) | const |
Definition at line 118 of file mythtvmenu.cpp.
Referenced by LoadFromFile(), LoadFromString(), TV::PlaybackMenuShow(), and Show().
|
friend |
Definition at line 107 of file mythtvmenu.h.
|
private |
Definition at line 113 of file mythtvmenu.h.
Referenced by GetRoot(), IsLoaded(), LoadFromFile(), LoadFromString(), ProcessIncludes(), and ~MythTVMenu().
|
private |
Definition at line 112 of file mythtvmenu.h.
Referenced by LoadFromFile(), LoadFromString(), TV::MenuItemDisplayCutlist(), TV::MenuItemDisplayPlayback(), TV::PlaybackMenuShow(), and ProcessIncludes().
|
private |
Definition at line 116 of file mythtvmenu.h.
Referenced by GetKeyBindingContext(), LoadFromFile(), LoadFromString(), and ProcessIncludes().
|
private |
Definition at line 115 of file mythtvmenu.h.
Referenced by GetName(), LoadFromFile(), and LoadFromString().
|
private |
Definition at line 114 of file mythtvmenu.h.
Referenced by GetTranslationContext(), LoadFromFile(), LoadFromString(), ProcessIncludes(), and Translate().