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 ()
 
 ~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
 
const char * m_translationContext
 
QString m_menuName
 
QString m_keyBindingContext
 

Detailed Description

Definition at line 222 of file tv_play.h.

Constructor & Destructor Documentation

◆ MenuBase()

MenuBase::MenuBase ( )
inline

Definition at line 225 of file tv_play.h.

◆ ~MenuBase()

MenuBase::~MenuBase ( )

Definition at line 11013 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 10881 of file tv_play.cpp.

◆ LoadFromString()

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

Definition at line 10890 of file tv_play.cpp.

◆ IsLoaded()

bool MenuBase::IsLoaded ( void  ) const
inline

Definition at line 235 of file tv_play.h.

◆ GetRoot()

QDomElement MenuBase::GetRoot ( void  ) const

Definition at line 11022 of file tv_play.cpp.

◆ Translate()

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

Definition at line 11027 of file tv_play.cpp.

◆ Show()

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

Definition at line 11032 of file tv_play.cpp.

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

◆ GetName()

QString MenuBase::GetName ( void  ) const
inline

Definition at line 241 of file tv_play.h.

◆ GetTranslationContext()

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

Definition at line 242 of file tv_play.h.

◆ GetKeyBindingContext()

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

Definition at line 245 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 10899 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 10944 of file tv_play.cpp.

◆ ProcessIncludes()

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

Definition at line 10970 of file tv_play.cpp.

Member Data Documentation

◆ m_document

QDomDocument* MenuBase::m_document
private

Definition at line 260 of file tv_play.h.

◆ m_translationContext

const char* MenuBase::m_translationContext
private

Definition at line 261 of file tv_play.h.

◆ m_menuName

QString MenuBase::m_menuName
private

Definition at line 262 of file tv_play.h.

◆ m_keyBindingContext

QString MenuBase::m_keyBindingContext
private

Definition at line 263 of file tv_play.h.


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