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 wmult
 
float hmult
 
int screenwidth
 
int screenheight
 
int xbase
 
int ybase
 
MythMainWindowm_parent
 
DialogCode rescode
 
bool in_loop
 
QFont defaultBigFont
 
QFont defaultMediumFont
 
QFont 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 50 of file mythdialogs.h.

Constructor & Destructor Documentation

◆ MythDialog()

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

Definition at line 47 of file mythdialogs.cpp.

◆ ~MythDialog()

MythDialog::~MythDialog ( )
protected

Definition at line 83 of file mythdialogs.cpp.

Member Function Documentation

◆ result()

DialogCode MythDialog::result ( void  ) const
inline

Definition at line 63 of file mythdialogs.h.

Referenced by exec().

◆ Show()

void MythDialog::Show ( void  )
virtual

Reimplemented in MythWizard.

Definition at line 115 of file mythdialogs.cpp.

Referenced by exec(), MythWizard::Show(), and MythPopupBox::ShowPopupAtXY().

◆ hide()

void MythDialog::hide ( void  )

◆ setNoErase()

void MythDialog::setNoErase ( void  )

Definition at line 104 of file mythdialogs.cpp.

Referenced by SingleView::SingleView().

◆ onMediaEvent()

bool MythDialog::onMediaEvent ( MythMediaDevice mediadevice)
virtual

Definition at line 108 of file mythdialogs.cpp.

◆ setResult()

void MythDialog::setResult ( DialogCode  r)

Definition at line 120 of file mythdialogs.cpp.

Referenced by done(), and exec().

◆ deleteLater()

void MythDialog::deleteLater ( void  )
virtual

◆ CalcItemIndex()

int MythDialog::CalcItemIndex ( DialogCode  code)
static

◆ menuButtonPressed

void MythDialog::menuButtonPressed ( )
signal

Referenced by keyPressEvent().

◆ leaveModality

void MythDialog::leaveModality ( )
signal

Referenced by exec(), and hide().

◆ exec

DialogCode MythDialog::exec ( void  )
slot

◆ done

void MythDialog::done ( int  r)
virtualslot

◆ AcceptItem

void MythDialog::AcceptItem ( int  i)
virtualslot

Definition at line 140 of file mythdialogs.cpp.

Referenced by MythPopupBox::AcceptItem(), and DialogBox::buttonPressed().

◆ accept

void MythDialog::accept ( void  )
virtualslot

◆ reject

void MythDialog::reject ( void  )
virtualslot

◆ TeardownAll()

void MythDialog::TeardownAll ( void  )
protected

Definition at line 95 of file mythdialogs.cpp.

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

◆ keyPressEvent()

void MythDialog::keyPressEvent ( QKeyEvent *  e)
overrideprotected

Member Data Documentation

◆ Rejected

const DialogCode MythDialog::Rejected = kDialogCodeRejected
static

◆ Accepted

const DialogCode MythDialog::Accepted = kDialogCodeAccepted
static

Definition at line 60 of file mythdialogs.h.

Referenced by accept(), MythPopupBox::accept(), and MythPopupBox::showGetTextPopup().

◆ ListStart

const DialogCode MythDialog::ListStart = kDialogCodeListStart
static

Definition at line 61 of file mythdialogs.h.

◆ wmult

float MythDialog::wmult
protected

◆ hmult

float MythDialog::hmult
protected

◆ screenwidth

int MythDialog::screenwidth
protected

◆ screenheight

int MythDialog::screenheight
protected

◆ xbase

int MythDialog::xbase
protected

Definition at line 102 of file mythdialogs.h.

Referenced by MythDialog().

◆ ybase

int MythDialog::ybase
protected

Definition at line 102 of file mythdialogs.h.

Referenced by MythDialog().

◆ m_parent

MythMainWindow* MythDialog::m_parent
protected

◆ rescode

DialogCode MythDialog::rescode
protected

Definition at line 106 of file mythdialogs.h.

Referenced by MythPopupBox::AcceptItem(), and setResult().

◆ in_loop

bool MythDialog::in_loop
protected

Definition at line 108 of file mythdialogs.h.

Referenced by exec(), and hide().

◆ defaultBigFont

QFont MythDialog::defaultBigFont
protected

Definition at line 110 of file mythdialogs.h.

Referenced by MythPopupBox::addLabel(), and MythDialog().

◆ defaultMediumFont

QFont MythDialog::defaultMediumFont
protected

Definition at line 110 of file mythdialogs.h.

Referenced by MythPopupBox::addLabel(), and MythDialog().

◆ defaultSmallFont

QFont MythDialog::defaultSmallFont
protected

Definition at line 110 of file mythdialogs.h.

Referenced by MythPopupBox::addLabel(), and MythDialog().


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