MythTV  0.26-pre
Signals | Public Member Functions | Private Slots | Private Member Functions | Private Attributes
MythConfirmationDialog Class Reference

Dialog asking for user confirmation. More...

#include <mythdialogbox.h>

Inheritance diagram for MythConfirmationDialog:
MythScreenType MythUIType XMLParseBase

List of all members.

Signals

void haveResult (bool)

Public Member Functions

 MythConfirmationDialog (MythScreenStack *parent, const QString &message, bool showCancel=true)
bool Create (void)
void SetReturnEvent (QObject *retobject, const QString &resultid)
void SetData (QVariant data)
void SetMessage (const QString &message)
bool keyPressEvent (QKeyEvent *event)
 Key event handler.

Private Slots

void Confirm (void)
void Cancel ()

Private Member Functions

void sendResult (bool)

Private Attributes

MythUITextm_messageText
QString m_message
bool m_showCancel
QObject * m_retObject
QString m_id
QVariant m_resultData

Detailed Description

Dialog asking for user confirmation.

Ok and optional Cancel button.

Sends out a DialogCompletionEvent event and the haveResult() signal containing the result.

Definition at line 182 of file mythdialogbox.h.


Constructor & Destructor Documentation

MythConfirmationDialog::MythConfirmationDialog ( MythScreenStack parent,
const QString &  message,
bool  showCancel = true 
)

Definition at line 447 of file mythdialogbox.cpp.


Member Function Documentation

void MythConfirmationDialog::SetReturnEvent ( QObject *  retobject,
const QString &  resultid 
)
void MythConfirmationDialog::SetData ( QVariant  data) [inline]
void MythConfirmationDialog::SetMessage ( const QString &  message)

Definition at line 526 of file mythdialogbox.cpp.

Referenced by OSD::CheckExpiry().

bool MythConfirmationDialog::keyPressEvent ( QKeyEvent *  ) [virtual]

Key event handler.

Parameters:
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 500 of file mythdialogbox.cpp.

Referenced by sendResult().

Definition at line 550 of file mythdialogbox.cpp.

Referenced by Cancel(), Confirm(), and keyPressEvent().

void MythConfirmationDialog::Confirm ( void  ) [private, slot]

Definition at line 540 of file mythdialogbox.cpp.

Referenced by Create().

void MythConfirmationDialog::Cancel ( void  ) [private, slot]

Definition at line 545 of file mythdialogbox.cpp.

Referenced by Create().


Member Data Documentation

Definition at line 202 of file mythdialogbox.h.

Referenced by Create(), MythConfirmationDialog(), and SetMessage().

Definition at line 203 of file mythdialogbox.h.

Referenced by Create(), MythConfirmationDialog(), and SetMessage().

Definition at line 204 of file mythdialogbox.h.

Referenced by Create(), and MythConfirmationDialog().

Definition at line 205 of file mythdialogbox.h.

Referenced by MythConfirmationDialog(), sendResult(), and SetReturnEvent().

QString MythConfirmationDialog::m_id [private]

Definition at line 206 of file mythdialogbox.h.

Referenced by MythConfirmationDialog(), sendResult(), and SetReturnEvent().

Definition at line 207 of file mythdialogbox.h.

Referenced by sendResult().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends