MythTV  master
Classes | Typedefs | Functions
mythdialogbox.h File Reference
#include <QDir>
#include <QEvent>
#include <QString>
#include <QStringList>
#include "mythscreentype.h"
#include "mythuitextedit.h"
#include "mythmainwindow.h"
#include "mythlogging.h"
#include <functional>
Include dependency graph for mythdialogbox.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DialogCompletionEvent
 Event dispatched from MythUI modal dialogs to a listening class containing a result of some form. More...
 
class  MythMenuItem
 
class  MythMenu
 
class  MythDialogBox
 Basic menu dialog, message and a list of options. More...
 
class  MythConfirmationDialog
 Dialog asking for user confirmation. More...
 
class  MythTextInputDialog
 Dialog prompting the user to enter a text string. More...
 
class  MythSpinBoxDialog
 Dialog prompting the user to enter a number using a spin box. More...
 
class  MythUISearchDialog
 Provide a dialog to quickly find an entry in a list. More...
 
class  MythTimeInputDialog
 

Typedefs

using MythUIButtonCallback = std::function< void(void)>
 

Functions

MUI_PUBLIC MythConfirmationDialogShowOkPopup (const QString &message, QObject *parent=nullptr, const char *slot=nullptr, bool showCancel=false)
 Non-blocking version of MythPopupBox::showOkPopup() More...
 
template<typename Func >
MUI_PUBLIC MythConfirmationDialogShowOkPopup (const QString &message, QObject *parent, Func slot, bool showCancel=false)
 
bool MUI_PUBLIC WaitFor (MythConfirmationDialog *dialog)
 Blocks until confirmation dialog exits. More...
 

Typedef Documentation

◆ MythUIButtonCallback

using MythUIButtonCallback = std::function<void(void)>

Definition at line 60 of file mythdialogbox.h.

Function Documentation

◆ ShowOkPopup() [1/2]

MUI_PUBLIC MythConfirmationDialog* ShowOkPopup ( const QString &  message,
QObject *  parent = nullptr,
const char *  slot = nullptr,
bool  showCancel = false 
)

Non-blocking version of MythPopupBox::showOkPopup()

Definition at line 549 of file mythdialogbox.cpp.

Referenced by ImportMusicDialog::addAllNewPressed(), ImportMusicDialog::addPressed(), LogViewer::cancelClicked(), EditLyricsDialog::cancelPressed(), MetadataOptions::CanSetArtwork(), ChannelEditor::channelIconImport(), check_cardsource(), AudioConfigSettings::CheckConfiguration(), ThemeUpdateChecker::checkForUpdate(), checkMusicAvailable(), ZMClient::checkProtoVersion(), checkStorageGroup(), CustomPriority::checkSyntax(), MythContextPrivate::ChooseBackend(), BackendSelection::ConnectBackend(), GalleryThumbView::Copy(), ImportCoverArtDialog::copyPressed(), CardInput::CreateNewInputGroupSlot(), PlayGroupEditor::CreateNewPlayBackGroupSlot(), PlaybackSettings::CreateNewPlaybackProfileSlot(), VideoSetupWizard::customEvent(), GalleryThumbView::customEvent(), ThemeChooser::customEvent(), NetBase::customEvent(), PlaylistEditorView::customEvent(), MythWebView::customEvent(), MythMainWindow::customEvent(), RipStatus::customEvent(), TransportListEditor::Delete(), CaptureCardEditor::DeleteAllCaptureCardsOnHost(), SmartPlaylistEditor::deleteCriteria(), StandardSettingDialog::deleteEntry(), PlaybackBox::deleteSelected(), ScheduleCommon::EditScheduled(), exec_program_tv_cb(), ImportNative::finishedPressed(), VideoScanner::finishedScan(), PlaybackProfileItemConfig::framerateChanged(), get_cardtype(), getTempDirectory(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), ExportNative::handleNextPage(), MythBurn::handleNextPage(), PlaybackProfileItemConfig::heightChanged(), GalleryThumbView::HideItem(), GalleryThumbView::HideMarked(), GalleryThumbView::Import(), ChannelScannerGUI::InformUser(), ThemeChooser::Init(), MythContext::Init(), RecordingSelector::Init(), ZMLivePlayer::initMonitorLayout(), internal_play_media(), isLiveTVAvailable(), ImportMusicDialog::keyPressEvent(), PlaylistEditorView::keyPressEvent(), RipStatus::keyPressEvent(), ThemeChooser::LoadVersion(), GalleryThumbView::Move(), ArchiveFileSelector::nextPressed(), FileSelector::OKPressed(), GeneralSetupWizard::OnDeletePromptReturn(), GeneralSetupWizard::OnSubmitPromptReturn(), VideoSelector::parentalLevelChanged(), MythThemedMenu::parseMenu(), MusicPlayer::play(), ChannelImporter::Process(), MythContextPrivate::PromptForDatabaseParams(), SchemaUpgradeWizard::PromptForUpgrade(), EditAlbumartDialog::removeSelectedImageFromTag(), StreamView::removeStream(), ThemeChooser::removeTheme(), Ripper::RipComplete(), GuideGrid::RunProgramGuide(), ExportNative::runScript(), MythBurn::runScript(), XMLTV_generic_config::Save(), ThemeChooser::saveAndReload(), ScanWizard::Scan(), VideoDialog::scanFinished(), GalleryThumbView::SetCover(), CaptureCardEditor::ShowDeleteAllCaptureCardsDialog(), CaptureCardEditor::ShowDeleteAllCaptureCardsDialogOnHost(), VideoSourceEditor::ShowDeleteAllSourcesDialog(), PrevRecordedList::ShowDeleteOldEpisodeMenu(), ProgLister::ShowDeleteOldEpisodeMenu(), PrevRecordedList::ShowDeleteOldSeriesMenu(), ProgLister::ShowDeleteOldSeriesMenu(), VideoDialog::ShowHomepage(), TV::ShowNoRecorderDialog(), ScheduleEditor::showTemplateMenu(), MythContextPrivate::ShowVersionMismatchPopup(), NetBase::ShowWebVideo(), WelcomeDialog::shutdownNow(), GeneralSetupWizard::slotDelete(), GeneralSettings::slotDoResetDB(), GeneralSettings::slotResetDB(), GeneralSetupWizard::slotView(), MythNews::slotViewArticle(), startAppearWiz(), Ripper::startRipper(), startRipper(), GalleryThumbView::StartScan(), VideoDialog::SwitchLayout(), AudioSetupWizard::toggleSpeakers(), GallerySlideView::Transform(), GalleryThumbView::TransformItem(), GalleryThumbView::TransformMarked(), BackendSelection::TryDBfromURL(), and PlaybackProfileItemConfig::widthChanged().

◆ ShowOkPopup() [2/2]

template<typename Func >
MUI_PUBLIC MythConfirmationDialog* ShowOkPopup ( const QString &  message,
QObject *  parent,
Func  slot,
bool  showCancel = false 
)

Definition at line 438 of file mythdialogbox.h.

◆ WaitFor()

bool MUI_PUBLIC WaitFor ( MythConfirmationDialog dialog)

Blocks until confirmation dialog exits.

Definition at line 591 of file mythdialogbox.cpp.

Referenced by check_cardsource(), and SchemaUpgradeWizard::PromptForUpgrade().