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

#include <mythdialogbox.h>

Collaboration diagram for MythMenu:
Collaboration graph
[legend]

Public Member Functions

 MythMenu (const QString &text, QObject *retobject, const QString &resultid)
 
 MythMenu (const QString &title, const QString &text, QObject *retobject, const QString &resultid)
 
 ~MythMenu (void)
 
void AddItem (const QString &title, QVariant data=0, MythMenu *subMenu=nullptr, bool selected=false, bool checked=false)
 
void AddItem (const QString &title, const char *slot, MythMenu *subMenu=nullptr, bool selected=false, bool checked=false)
 
void AddItem (const QString &title, const MythUIButtonCallback &slot, MythMenu *subMenu=nullptr, bool selected=false, bool checked=false)
 
void SetSelectedByTitle (const QString &title)
 
void SetSelectedByData (const QVariant &data)
 
void SetParent (MythMenu *parent)
 
bool IsEmpty ()
 

Private Member Functions

void Init (void)
 
void AddItem (MythMenuItem *, bool selected, MythMenu *subMenu)
 

Private Attributes

MythMenum_parentMenu {nullptr}
 
QString m_title
 
QString m_text
 
QString m_resultid
 
QObject * m_retObject {nullptr}
 
QList< MythMenuItem * > m_menuItems
 
int m_selectedItem {0}
 

Friends

class MythDialogBox
 

Detailed Description

Definition at line 82 of file mythdialogbox.h.

Constructor & Destructor Documentation

◆ MythMenu() [1/2]

MythMenu::MythMenu ( const QString &  text,
QObject *  retobject,
const QString &  resultid 
)

Definition at line 31 of file mythdialogbox.cpp.

◆ MythMenu() [2/2]

MythMenu::MythMenu ( const QString &  title,
const QString &  text,
QObject *  retobject,
const QString &  resultid 
)

Definition at line 37 of file mythdialogbox.cpp.

◆ ~MythMenu()

MythMenu::~MythMenu ( void  )

Definition at line 43 of file mythdialogbox.cpp.

Member Function Documentation

◆ AddItem() [1/4]

void MythMenu::AddItem ( const QString &  title,
QVariant  data = 0,
MythMenu subMenu = nullptr,
bool  selected = false,
bool  checked = false 
)

◆ AddItem() [2/4]

void MythMenu::AddItem ( const QString &  title,
const char *  slot,
MythMenu subMenu = nullptr,
bool  selected = false,
bool  checked = false 
)

Definition at line 54 of file mythdialogbox.cpp.

◆ AddItem() [3/4]

void MythMenu::AddItem ( const QString &  title,
const MythUIButtonCallback slot,
MythMenu subMenu = nullptr,
bool  selected = false,
bool  checked = false 
)

Definition at line 66 of file mythdialogbox.cpp.

◆ SetSelectedByTitle()

void MythMenu::SetSelectedByTitle ( const QString &  title)

Definition at line 84 of file mythdialogbox.cpp.

◆ SetSelectedByData()

void MythMenu::SetSelectedByData ( const QVariant &  data)

Definition at line 101 of file mythdialogbox.cpp.

◆ SetParent()

void MythMenu::SetParent ( MythMenu parent)
inline

Definition at line 102 of file mythdialogbox.h.

Referenced by AddItem().

◆ IsEmpty()

bool MythMenu::IsEmpty ( void  )
inline

Definition at line 104 of file mythdialogbox.h.

◆ Init()

void MythMenu::Init ( void  )
inlineprivate

Definition at line 107 of file mythdialogbox.h.

Referenced by MythMenu().

◆ AddItem() [4/4]

void MythMenu::AddItem ( MythMenuItem item,
bool  selected,
MythMenu subMenu 
)
private

Definition at line 73 of file mythdialogbox.cpp.

Friends And Related Function Documentation

◆ MythDialogBox

friend class MythDialogBox
friend

Definition at line 84 of file mythdialogbox.h.

Member Data Documentation

◆ m_parentMenu

MythMenu* MythMenu::m_parentMenu {nullptr}
private

Definition at line 110 of file mythdialogbox.h.

Referenced by MythDialogBox::keyPressEvent().

◆ m_title

QString MythMenu::m_title
private

Definition at line 111 of file mythdialogbox.h.

Referenced by MythDialogBox::updateMenu().

◆ m_text

QString MythMenu::m_text
private

Definition at line 112 of file mythdialogbox.h.

Referenced by MythDialogBox::updateMenu().

◆ m_resultid

QString MythMenu::m_resultid
private

Definition at line 113 of file mythdialogbox.h.

Referenced by MythDialogBox::SendEvent().

◆ m_retObject

QObject* MythMenu::m_retObject {nullptr}
private

Definition at line 114 of file mythdialogbox.h.

Referenced by MythDialogBox::Select(), and MythDialogBox::SendEvent().

◆ m_menuItems

QList<MythMenuItem*> MythMenu::m_menuItems
private

◆ m_selectedItem

int MythMenu::m_selectedItem {0}
private

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