MythTV  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
MenuBase Class Reference

#include <tv_play.h>

Public Member Functions

 MenuBase ()=default
 
 ~MenuBase ()
 
bool LoadFromFile (const QString &filename, const QString &menuname, const char *translationContext, const QString &keyBindingContext)
 
bool LoadFromString (const QString &text, const QString &menuname, const char *translationContext, const QString &keyBindingContext)
 
bool IsLoaded (void) const
 
QDomElement GetRoot (void) const
 
QString Translate (const QString &text) const
 
bool Show (const QDomNode &node, const QDomNode &selected, MenuItemDisplayer &displayer, bool doDisplay=true) const
 
QString GetName (void) const
 
const char * GetTranslationContext (void) const
 
const QString & GetKeyBindingContext (void) const
 

Private Member Functions

bool LoadFileHelper (const QString &filename, const QString &menuname, const char *translationContext, const QString &keyBindingContext, int includeLevel)
 
bool LoadStringHelper (const QString &text, const QString &menuname, const char *translationContext, const QString &keyBindingContext, int includeLevel)
 
void ProcessIncludes (QDomElement &root, int includeLevel)
 

Private Attributes

QDomDocument * m_document {nullptr}
 
const char * m_translationContext {""}
 
QString m_menuName
 
QString m_keyBindingContext
 

Detailed Description

Definition at line 218 of file tv_play.h.

Constructor & Destructor Documentation

◆ MenuBase()

MenuBase::MenuBase ( )
default

◆ ~MenuBase()

MenuBase::~MenuBase ( )

Definition at line 10925 of file tv_play.cpp.

Member Function Documentation

◆ LoadFromFile()

bool MenuBase::LoadFromFile ( const QString &  filename,
const QString &  menuname,
const char *  translationContext,
const QString &  keyBindingContext 
)

Definition at line 10794 of file tv_play.cpp.

◆ LoadFromString()

bool MenuBase::LoadFromString ( const QString &  text,
const QString &  menuname,
const char *  translationContext,
const QString &  keyBindingContext 
)

Definition at line 10803 of file tv_play.cpp.

◆ IsLoaded()

bool MenuBase::IsLoaded ( void  ) const
inline

Definition at line 231 of file tv_play.h.

◆ GetRoot()

QDomElement MenuBase::GetRoot ( void  ) const

Definition at line 10934 of file tv_play.cpp.

◆ Translate()

QString MenuBase::Translate ( const QString &  text) const

Definition at line 10939 of file tv_play.cpp.

◆ Show()

bool MenuBase::Show ( const QDomNode &  node,
const QDomNode &  selected,
MenuItemDisplayer displayer,
bool  doDisplay = true 
) const

Definition at line 10944 of file tv_play.cpp.

Referenced by TV::MenuItemDisplayCutlist(), and TV::MenuItemDisplayPlayback().

◆ GetName()

QString MenuBase::GetName ( void  ) const
inline

Definition at line 237 of file tv_play.h.

◆ GetTranslationContext()

const char* MenuBase::GetTranslationContext ( void  ) const
inline

Definition at line 238 of file tv_play.h.

◆ GetKeyBindingContext()

const QString& MenuBase::GetKeyBindingContext ( void  ) const
inline

Definition at line 241 of file tv_play.h.

Referenced by TV::MenuItemDisplayCutlist(), and TV::MenuItemDisplayPlayback().

◆ LoadFileHelper()

bool MenuBase::LoadFileHelper ( const QString &  filename,
const QString &  menuname,
const char *  translationContext,
const QString &  keyBindingContext,
int  includeLevel 
)
private

Definition at line 10812 of file tv_play.cpp.

◆ LoadStringHelper()

bool MenuBase::LoadStringHelper ( const QString &  text,
const QString &  menuname,
const char *  translationContext,
const QString &  keyBindingContext,
int  includeLevel 
)
private

Definition at line 10856 of file tv_play.cpp.

◆ ProcessIncludes()

void MenuBase::ProcessIncludes ( QDomElement &  root,
int  includeLevel 
)
private

Definition at line 10882 of file tv_play.cpp.

Member Data Documentation

◆ m_document

QDomDocument* MenuBase::m_document {nullptr}
private

Definition at line 256 of file tv_play.h.

◆ m_translationContext

const char* MenuBase::m_translationContext {""}
private

Definition at line 257 of file tv_play.h.

◆ m_menuName

QString MenuBase::m_menuName
private

Definition at line 258 of file tv_play.h.

◆ m_keyBindingContext

QString MenuBase::m_keyBindingContext
private

Definition at line 259 of file tv_play.h.


The documentation for this class was generated from the following files: