MythTV  master
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
MythDialog Class Reference

Base dialog for most dialogs in MythTV using the old UI. More...

#include <mythdialogs.h>

Inheritance diagram for MythDialog:
Inheritance graph
[legend]
Collaboration diagram for MythDialog:
Collaboration graph
[legend]

Public Slots

DialogCode exec (void)
 
virtual void done (int)
 
virtual void AcceptItem (int)
 
virtual void accept ()
 
virtual void reject ()
 

Signals

void menuButtonPressed ()
 
void leaveModality ()
 

Public Member Functions

 MythDialog (MythMainWindow *parent, const char *name="MythDialog", bool setsize=true)
 
DialogCode result (void) const
 
virtual void Show (void)
 
void hide (void)
 
void setNoErase (void)
 
virtual bool onMediaEvent (MythMediaDevice *mediadevice)
 
void setResult (DialogCode r)
 
virtual void deleteLater (void)
 

Static Public Member Functions

static int CalcItemIndex (DialogCode code)
 

Static Public Attributes

static const DialogCode Rejected = kDialogCodeRejected
 
static const DialogCode Accepted = kDialogCodeAccepted
 
static const DialogCode ListStart = kDialogCodeListStart
 

Protected Member Functions

 ~MythDialog ()
 
void TeardownAll (void)
 
void keyPressEvent (QKeyEvent *e) override
 

Protected Attributes

float m_dlgwmult {0.0F}
 
float m_dlghmult {0.0F}
 
int m_screenwidth {0}
 
int m_screenheight {0}
 
int m_xbase {0}
 
int m_ybase {0}
 
MythMainWindowm_parent {nullptr}
 
DialogCode m_rescode {kDialogCodeAccepted}
 
bool m_in_loop {false}
 
QFont m_defaultBigFont
 
QFont m_defaultMediumFont
 
QFont m_defaultSmallFont
 

Detailed Description

Base dialog for most dialogs in MythTV using the old UI.

Deprecated:
Due for removal, use libmythui's MythScreenType instead

Definition at line 40 of file mythdialogs.h.

Constructor & Destructor Documentation

◆ MythDialog()

MythDialog::MythDialog ( MythMainWindow parent,
const char *  name = "MythDialog",
bool  setsize = true 
)

Definition at line 46 of file mythdialogs.cpp.

◆ ~MythDialog()

MythDialog::~MythDialog ( )
protected

Definition at line 80 of file mythdialogs.cpp.

Member Function Documentation

◆ result()

DialogCode MythDialog::result ( void  ) const
inline

Definition at line 53 of file mythdialogs.h.

Referenced by exec().

◆ Show()

void MythDialog::Show ( void  )
virtual

Definition at line 112 of file mythdialogs.cpp.

Referenced by exec().

◆ hide()

void MythDialog::hide ( void  )

Definition at line 190 of file mythdialogs.cpp.

Referenced by deleteLater(), and done().

◆ setNoErase()

void MythDialog::setNoErase ( void  )

Definition at line 101 of file mythdialogs.cpp.

Referenced by SingleView::SingleView().

◆ onMediaEvent()

bool MythDialog::onMediaEvent ( MythMediaDevice mediadevice)
virtual

Definition at line 105 of file mythdialogs.cpp.

◆ setResult()

void MythDialog::setResult ( DialogCode  r)

Definition at line 117 of file mythdialogs.cpp.

Referenced by done(), and exec().

◆ deleteLater()

void MythDialog::deleteLater ( void  )
virtual

Definition at line 85 of file mythdialogs.cpp.

◆ CalcItemIndex()

int MythDialog::CalcItemIndex ( DialogCode  code)
static

Definition at line 151 of file mythdialogs.cpp.

◆ menuButtonPressed

void MythDialog::menuButtonPressed ( )
signal

Referenced by keyPressEvent().

◆ leaveModality

void MythDialog::leaveModality ( )
signal

Referenced by exec(), and hide().

◆ exec

DialogCode MythDialog::exec ( void  )
slot

Definition at line 166 of file mythdialogs.cpp.

Referenced by IconView::HandleImageSelect().

◆ done

void MythDialog::done ( int  r)
virtualslot

Definition at line 130 of file mythdialogs.cpp.

Referenced by accept(), AcceptItem(), SingleView::EffectMeltdown(), and reject().

◆ AcceptItem

void MythDialog::AcceptItem ( int  i)
virtualslot

Definition at line 137 of file mythdialogs.cpp.

◆ accept

void MythDialog::accept ( )
virtualslot

Definition at line 156 of file mythdialogs.cpp.

Referenced by GLSDialog::closeEvent().

◆ reject

void MythDialog::reject ( )
virtualslot

◆ TeardownAll()

void MythDialog::TeardownAll ( void  )
protected

Definition at line 92 of file mythdialogs.cpp.

Referenced by deleteLater(), and ~MythDialog().

◆ keyPressEvent()

void MythDialog::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Definition at line 204 of file mythdialogs.cpp.

Referenced by SingleView::keyPressEvent().

Member Data Documentation

◆ Rejected

const DialogCode MythDialog::Rejected = kDialogCodeRejected
static

Definition at line 49 of file mythdialogs.h.

Referenced by reject().

◆ Accepted

const DialogCode MythDialog::Accepted = kDialogCodeAccepted
static

Definition at line 50 of file mythdialogs.h.

Referenced by accept().

◆ ListStart

const DialogCode MythDialog::ListStart = kDialogCodeListStart
static

Definition at line 51 of file mythdialogs.h.

◆ m_dlgwmult

float MythDialog::m_dlgwmult {0.0F}
protected

Definition at line 90 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_dlghmult

float MythDialog::m_dlghmult {0.0F}
protected

Definition at line 91 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_screenwidth

int MythDialog::m_screenwidth {0}
protected

◆ m_screenheight

int MythDialog::m_screenheight {0}
protected

◆ m_xbase

int MythDialog::m_xbase {0}
protected

Definition at line 94 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_ybase

int MythDialog::m_ybase {0}
protected

Definition at line 95 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_parent

MythMainWindow* MythDialog::m_parent {nullptr}
protected

Definition at line 97 of file mythdialogs.h.

Referenced by MythDialog(), and TeardownAll().

◆ m_rescode

DialogCode MythDialog::m_rescode {kDialogCodeAccepted}
protected

Definition at line 99 of file mythdialogs.h.

Referenced by setResult().

◆ m_in_loop

bool MythDialog::m_in_loop {false}
protected

Definition at line 101 of file mythdialogs.h.

Referenced by exec(), and hide().

◆ m_defaultBigFont

QFont MythDialog::m_defaultBigFont
protected

Definition at line 103 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_defaultMediumFont

QFont MythDialog::m_defaultMediumFont
protected

Definition at line 103 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_defaultSmallFont

QFont MythDialog::m_defaultSmallFont
protected

Definition at line 103 of file mythdialogs.h.

Referenced by MythDialog().


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