|
MythTV
0.26-pre
|
Dialog asking for user confirmation. More...
#include <mythdialogbox.h>
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 | |
| MythUIText * | m_messageText |
| QString | m_message |
| bool | m_showCancel |
| QObject * | m_retObject |
| QString | m_id |
| QVariant | m_resultData |
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.
| MythConfirmationDialog::MythConfirmationDialog | ( | MythScreenStack * | parent, |
| const QString & | message, | ||
| bool | showCancel = true |
||
| ) |
Definition at line 447 of file mythdialogbox.cpp.
| bool MythConfirmationDialog::Create | ( | void | ) | [virtual] |
Reimplemented from MythScreenType.
Definition at line 460 of file mythdialogbox.cpp.
Referenced by ImportIconsWizard::askSubmit(), GuideGrid::ChannelGroupMenu(), CustomEdit::checkSyntax(), StatusBox::clicked(), MythControls::Close(), VideoDialog::createOkDialog(), BackendConnectionManager::customEvent(), MetadataOptions::customEvent(), ChannelEditor::del(), ZMEvents::deleteAll(), ChannelEditor::deleteChannels(), MythControls::DeleteKey(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), StatusBox::keyPressEvent(), ExitPrompter::masterPromptExit(), VideoDialog::OnRemoveVideo(), VideoDialog::PromptToScan(), ProgramRecPriority::remove(), VideoDialog::RemoveVideo(), MythControls::ResolveConflict(), NetSearch::searchTimeout(), ProgLister::ShowDeleteRuleMenu(), ShowOkPopup(), showWarningDialog(), GeneralSetupWizard::slotDelete(), BookmarkManager::slotDeleteCurrent(), BookmarkManager::slotDeleteMarked(), RSSEditor::slotDeleteSite(), NetSearch::slotDeleteVideo(), NetTree::slotDeleteVideo(), GeneralSetupWizard::slotSubmit(), and TV::StartTV().
| void MythConfirmationDialog::SetReturnEvent | ( | QObject * | retobject, |
| const QString & | resultid | ||
| ) |
Definition at line 533 of file mythdialogbox.cpp.
Referenced by ImportIconsWizard::askSubmit(), CustomEdit::checkSyntax(), StatusBox::clicked(), MythControls::Close(), ChannelEditor::del(), ChannelEditor::deleteChannels(), MythControls::DeleteKey(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), OSD::DialogShow(), StatusBox::keyPressEvent(), RipStatus::keyPressEvent(), ExitPrompter::masterPromptExit(), VideoDialog::PromptToScan(), ProgramRecPriority::remove(), MythControls::ResolveConflict(), and ProgLister::ShowDeleteRuleMenu().
| void MythConfirmationDialog::SetData | ( | QVariant | data | ) | [inline] |
Definition at line 192 of file mythdialogbox.h.
Referenced by StatusBox::clicked(), ChannelEditor::del(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), OSD::DialogShow(), ProgramRecPriority::remove(), MythControls::ResolveConflict(), and ProgLister::ShowDeleteRuleMenu().
| 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.
| event | Keypress event |
Reimplemented from MythScreenType.
Definition at line 500 of file mythdialogbox.cpp.
| void MythConfirmationDialog::haveResult | ( | bool | ) | [signal] |
Referenced by sendResult().
| void MythConfirmationDialog::sendResult | ( | bool | ok | ) | [private] |
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().
MythUIText* MythConfirmationDialog::m_messageText [private] |
Definition at line 202 of file mythdialogbox.h.
Referenced by Create(), MythConfirmationDialog(), and SetMessage().
QString MythConfirmationDialog::m_message [private] |
Definition at line 203 of file mythdialogbox.h.
Referenced by Create(), MythConfirmationDialog(), and SetMessage().
bool MythConfirmationDialog::m_showCancel [private] |
Definition at line 204 of file mythdialogbox.h.
Referenced by Create(), and MythConfirmationDialog().
QObject* MythConfirmationDialog::m_retObject [private] |
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().
QVariant MythConfirmationDialog::m_resultData [private] |
Definition at line 207 of file mythdialogbox.h.
Referenced by sendResult().
1.7.6.1