Basic menu dialog, message and a list of options. More...
#include <mythdialogbox.h>
Public Slots | |
| void | Select (MythUIButtonListItem *item) |
Signals | |
| void | Selected () |
| void | Closed (QString, int) |
Public Member Functions | |
| MythDialogBox (const QString &text, MythScreenStack *parent, const char *name, bool fullscreen=false, bool osd=false) | |
| MythDialogBox (const QString &title, const QString &text, MythScreenStack *parent, const char *name, bool fullscreen=false, bool osd=false) | |
| MythDialogBox (MythMenu *menu, MythScreenStack *parent, const char *name, bool fullscreen=false, bool osd=false) | |
| ~MythDialogBox (void) | |
| virtual bool | Create (void) |
| void | SetMenuItems (MythMenu *menu) |
| void | SetReturnEvent (QObject *retobject, const QString &resultid) |
| void | SetBackAction (const QString &text, QVariant data) |
| void | SetExitAction (const QString &text, QVariant data) |
| void | SetText (const QString &text) |
| void | AddButton (const QString &title, QVariant data=0, bool newMenu=false, bool setCurrent=false) |
| void | AddButton (const QString &title, const char *slot, bool newMenu=false, bool setCurrent=false) |
| virtual bool | keyPressEvent (QKeyEvent *event) |
| Key event handler. | |
| virtual bool | gestureEvent (MythGestureEvent *event) |
| Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. | |
Protected Member Functions | |
| void | SendEvent (int res, QString text="", QVariant data=0) |
| void | updateMenu (void) |
Protected Attributes | |
| MythUIText * | m_titlearea |
| MythUIText * | m_textarea |
| MythUIButtonList * | m_buttonList |
| QObject * | m_retObject |
| QString | m_id |
| bool | m_useSlots |
| bool | m_fullscreen |
| bool | m_osdDialog |
| QString | m_title |
| QString | m_text |
| QString | m_backtext |
| QVariant | m_backdata |
| QString | m_exittext |
| QVariant | m_exitdata |
| MythMenu * | m_menu |
| MythMenu * | m_currentMenu |
Basic menu dialog, message and a list of options.
Sends out a DialogCompletionEvent event and the Selected() signal containing the result when the user selects the Ok button.
Definition at line 109 of file mythdialogbox.h.
| MythDialogBox::MythDialogBox | ( | const QString & | text, | |
| MythScreenStack * | parent, | |||
| const char * | name, | |||
| bool | fullscreen = false, |
|||
| bool | osd = false | |||
| ) |
Definition at line 89 of file mythdialogbox.cpp.
| MythDialogBox::MythDialogBox | ( | const QString & | title, | |
| const QString & | text, | |||
| MythScreenStack * | parent, | |||
| const char * | name, | |||
| bool | fullscreen = false, |
|||
| bool | osd = false | |||
| ) |
Definition at line 112 of file mythdialogbox.cpp.
| MythDialogBox::MythDialogBox | ( | MythMenu * | menu, | |
| MythScreenStack * | parent, | |||
| const char * | name, | |||
| bool | fullscreen = false, |
|||
| bool | osd = false | |||
| ) |
Definition at line 137 of file mythdialogbox.cpp.
| MythDialogBox::~MythDialogBox | ( | void | ) |
Definition at line 160 of file mythdialogbox.cpp.
| bool MythDialogBox::Create | ( | void | ) | [virtual] |
Reimplemented from MythScreenType.
Definition at line 169 of file mythdialogbox.cpp.
Referenced by MythThemedMenu::aboutScreen(), MythControls::ActionButtonPressed(), StartPrompter::backendRunningPrompt(), MythControls::ChangeView(), GuideGrid::ChannelGroupMenu(), ChannelEditor::channelIconImport(), GameHandler::clearAllGameData(), StatusBox::clicked(), VideoDialog::DisplayMenu(), PlaybackBox::DisplayPopupMenu(), ScreenSetup::doListSelect(), ScreenWizard::doMenu(), ExitPrompter::handleExit(), GameUI::itemClicked(), MythBrowser::keyPressEvent(), BookmarkManager::keyPressEvent(), ChannelEditor::menu(), GameHandler::promptForRemoval(), Ripper::ShowConflictMenu(), MythWebView::showDownloadMenu(), MusicCommon::showExitMenu(), ZMEvents::showMenu(), WelcomeDialog::showMenu(), VisualizerView::ShowMenu(), ViewScheduled::ShowMenu(), VideoSelector::showMenu(), ThumbFinder::showMenu(), SearchView::ShowMenu(), ScheduleEditor::showMenu(), RecordingSelector::showMenu(), ProgramRecPriority::showMenu(), ProgLister::ShowMenu(), ProgFinder::ShowMenu(), ProgDetails::showMenu(), NetTree::showMenu(), NetSearch::showMenu(), MythThemedMenu::ShowMenu(), MythNews::ShowMenu(), MythControls::ShowMenu(), MythBurn::showMenu(), MusicCommon::ShowMenu(), LogViewer::showMenu(), ImportMusicDialog::showMenu(), GuideGrid::ShowMenu(), GameUI::showMenu(), ExportNative::showMenu(), EditAlbumartDialog::showMenu(), EditMetadataDialog::showMenu(), ChannelRecPriority::ShowMenu(), ScheduleCommon::ShowNotRecordingDialog(), ProgLister::ShowOldRecordedMenu(), MusicCommon::showPlaylistOptionsMenu(), ThemeChooser::showPopupMenu(), ScheduleCommon::ShowRecordingDialog(), GuideGrid::ShowRecordingMenu(), EditMetadataCommon::showSaveMenu(), ScheduleEditor::ShowSchedInfo(), ProgramRecPriority::showSortMenu(), ViewScheduleDiff::showStatus(), ScheduleEditor::showTemplateMenu(), EditAlbumartDialog::showTypeMenu(), ScreenSetup::showUnitsPopup(), BurnMenu::start(), CustomEdit::storeClicked(), and VideoDialog::VideoMenu().
| void MythDialogBox::SetMenuItems | ( | MythMenu * | menu | ) |
Definition at line 208 of file mythdialogbox.cpp.
| void MythDialogBox::SetReturnEvent | ( | QObject * | retobject, | |
| const QString & | resultid | |||
| ) |
Definition at line 289 of file mythdialogbox.cpp.
Referenced by MythThemedMenu::aboutScreen(), MythControls::ActionButtonPressed(), StartPrompter::backendRunningPrompt(), MythControls::ChangeView(), GuideGrid::ChannelGroupMenu(), ChannelEditor::channelIconImport(), GameHandler::clearAllGameData(), StatusBox::clicked(), OSD::DialogShow(), ScreenSetup::doListSelect(), ScreenWizard::doMenu(), ExitPrompter::handleExit(), GameUI::itemClicked(), MythBrowser::keyPressEvent(), BookmarkManager::keyPressEvent(), ChannelEditor::menu(), GameHandler::promptForRemoval(), Ripper::ShowConflictMenu(), MythWebView::showDownloadMenu(), MusicCommon::showExitMenu(), ZMEvents::showMenu(), WelcomeDialog::showMenu(), ViewScheduled::ShowMenu(), VideoSelector::showMenu(), ThumbFinder::showMenu(), ScheduleEditor::showMenu(), RecordingSelector::showMenu(), ProgramRecPriority::showMenu(), ProgFinder::ShowMenu(), ProgDetails::showMenu(), NetSearch::showMenu(), MythThemedMenu::ShowMenu(), MythNews::ShowMenu(), MythControls::ShowMenu(), MythBurn::showMenu(), LogViewer::showMenu(), ImportMusicDialog::showMenu(), GuideGrid::ShowMenu(), GameUI::showMenu(), ExportNative::showMenu(), EditAlbumartDialog::showMenu(), EditMetadataDialog::showMenu(), ChannelRecPriority::ShowMenu(), ScheduleCommon::ShowNotRecordingDialog(), ThemeChooser::showPopupMenu(), ScheduleCommon::ShowRecordingDialog(), GuideGrid::ShowRecordingMenu(), EditMetadataCommon::showSaveMenu(), ScheduleEditor::ShowSchedInfo(), ProgramRecPriority::showSortMenu(), ScheduleEditor::showTemplateMenu(), EditAlbumartDialog::showTypeMenu(), ScreenSetup::showUnitsPopup(), BurnMenu::start(), and CustomEdit::storeClicked().
| void MythDialogBox::SetBackAction | ( | const QString & | text, | |
| QVariant | data | |||
| ) |
Definition at line 296 of file mythdialogbox.cpp.
Referenced by OSD::DialogBack().
| void MythDialogBox::SetExitAction | ( | const QString & | text, | |
| QVariant | data | |||
| ) |
Definition at line 302 of file mythdialogbox.cpp.
Referenced by OSD::DialogBack().
| void MythDialogBox::SetText | ( | const QString & | text | ) |
Definition at line 308 of file mythdialogbox.cpp.
Referenced by OSD::CheckExpiry(), and OSD::DialogSetText().
| void MythDialogBox::AddButton | ( | const QString & | title, | |
| QVariant | data = 0, |
|||
| bool | newMenu = false, |
|||
| bool | setCurrent = false | |||
| ) |
Definition at line 314 of file mythdialogbox.cpp.
Referenced by MythThemedMenu::aboutScreen(), MythControls::ActionButtonPressed(), StartPrompter::backendRunningPrompt(), MythControls::ChangeView(), GuideGrid::ChannelGroupMenu(), ChannelEditor::channelIconImport(), GameHandler::clearAllGameData(), StatusBox::clicked(), OSD::DialogAddButton(), ScreenSetup::doListSelect(), ScreenWizard::doMenu(), ExitPrompter::handleExit(), GameUI::itemClicked(), MythBrowser::keyPressEvent(), BookmarkManager::keyPressEvent(), ChannelEditor::menu(), GameHandler::promptForRemoval(), Ripper::ShowConflictMenu(), MythWebView::showDownloadMenu(), MusicCommon::showExitMenu(), ZMEvents::showMenu(), WelcomeDialog::showMenu(), ViewScheduled::ShowMenu(), VideoSelector::showMenu(), ThumbFinder::showMenu(), ScheduleEditor::showMenu(), RecordingSelector::showMenu(), ProgramRecPriority::showMenu(), ProgFinder::ShowMenu(), ProgDetails::showMenu(), NetSearch::showMenu(), MythThemedMenu::ShowMenu(), MythNews::ShowMenu(), MythControls::ShowMenu(), MythBurn::showMenu(), LogViewer::showMenu(), ImportMusicDialog::showMenu(), GuideGrid::ShowMenu(), GameUI::showMenu(), ExportNative::showMenu(), EditAlbumartDialog::showMenu(), EditMetadataDialog::showMenu(), ChannelRecPriority::ShowMenu(), ScheduleCommon::ShowNotRecordingDialog(), ThemeChooser::showPopupMenu(), ScheduleCommon::ShowRecordingDialog(), GuideGrid::ShowRecordingMenu(), EditMetadataCommon::showSaveMenu(), ScheduleEditor::ShowSchedInfo(), ProgramRecPriority::showSortMenu(), ViewScheduleDiff::showStatus(), ScheduleEditor::showTemplateMenu(), EditAlbumartDialog::showTypeMenu(), ScreenSetup::showUnitsPopup(), BurnMenu::start(), and CustomEdit::storeClicked().
| void MythDialogBox::AddButton | ( | const QString & | title, | |
| const char * | slot, | |||
| bool | newMenu = false, |
|||
| bool | setCurrent = false | |||
| ) |
Definition at line 325 of file mythdialogbox.cpp.
| bool MythDialogBox::keyPressEvent | ( | QKeyEvent * | ) | [virtual] |
Key event handler.
| event | Keypress event |
Reimplemented from MythScreenType.
Definition at line 340 of file mythdialogbox.cpp.
| bool MythDialogBox::gestureEvent | ( | MythGestureEvent * | ) | [virtual] |
Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
Should not be used directly.
| event | Mouse event |
Reimplemented from MythScreenType.
Definition at line 397 of file mythdialogbox.cpp.
| void MythDialogBox::Select | ( | MythUIButtonListItem * | item | ) | [slot] |
Definition at line 245 of file mythdialogbox.cpp.
Referenced by Create(), and keyPressEvent().
| void MythDialogBox::Selected | ( | ) | [signal] |
Referenced by Select().
| void MythDialogBox::Closed | ( | QString | , | |
| int | ||||
| ) | [signal] |
Referenced by SendEvent().
| void MythDialogBox::SendEvent | ( | int | res, | |
| QString | text = "", |
|||
| QVariant | data = 0 | |||
| ) | [protected] |
Definition at line 421 of file mythdialogbox.cpp.
Referenced by gestureEvent(), keyPressEvent(), and Select().
| void MythDialogBox::updateMenu | ( | void | ) | [protected] |
Definition at line 215 of file mythdialogbox.cpp.
Referenced by Create(), keyPressEvent(), Select(), and SetMenuItems().
MythUIText* MythDialogBox::m_titlearea [protected] |
Definition at line 152 of file mythdialogbox.h.
Referenced by Create(), MythDialogBox(), and updateMenu().
MythUIText* MythDialogBox::m_textarea [protected] |
Definition at line 153 of file mythdialogbox.h.
Referenced by Create(), MythDialogBox(), SetText(), and updateMenu().
MythUIButtonList* MythDialogBox::m_buttonList [protected] |
Definition at line 154 of file mythdialogbox.h.
Referenced by AddButton(), Create(), keyPressEvent(), MythDialogBox(), Select(), and updateMenu().
QObject* MythDialogBox::m_retObject [protected] |
Definition at line 155 of file mythdialogbox.h.
Referenced by MythDialogBox(), Select(), SendEvent(), and SetReturnEvent().
QString MythDialogBox::m_id [protected] |
Definition at line 156 of file mythdialogbox.h.
Referenced by MythDialogBox(), SendEvent(), and SetReturnEvent().
bool MythDialogBox::m_useSlots [protected] |
Definition at line 157 of file mythdialogbox.h.
Referenced by AddButton(), MythDialogBox(), and Select().
bool MythDialogBox::m_fullscreen [protected] |
Definition at line 159 of file mythdialogbox.h.
Referenced by Create(), and MythDialogBox().
bool MythDialogBox::m_osdDialog [protected] |
Definition at line 160 of file mythdialogbox.h.
Referenced by Create(), and MythDialogBox().
QString MythDialogBox::m_title [protected] |
Definition at line 161 of file mythdialogbox.h.
Referenced by Create(), and MythDialogBox().
QString MythDialogBox::m_text [protected] |
Definition at line 162 of file mythdialogbox.h.
Referenced by Create(), and MythDialogBox().
QString MythDialogBox::m_backtext [protected] |
Definition at line 164 of file mythdialogbox.h.
Referenced by keyPressEvent(), MythDialogBox(), and SetBackAction().
QVariant MythDialogBox::m_backdata [protected] |
Definition at line 165 of file mythdialogbox.h.
Referenced by keyPressEvent(), MythDialogBox(), and SetBackAction().
QString MythDialogBox::m_exittext [protected] |
Definition at line 166 of file mythdialogbox.h.
Referenced by keyPressEvent(), MythDialogBox(), and SetExitAction().
QVariant MythDialogBox::m_exitdata [protected] |
Definition at line 167 of file mythdialogbox.h.
Referenced by keyPressEvent(), MythDialogBox(), and SetExitAction().
MythMenu* MythDialogBox::m_menu [protected] |
Definition at line 169 of file mythdialogbox.h.
Referenced by Create(), MythDialogBox(), SetMenuItems(), and ~MythDialogBox().
MythMenu* MythDialogBox::m_currentMenu [protected] |
Definition at line 170 of file mythdialogbox.h.
Referenced by keyPressEvent(), MythDialogBox(), Select(), SendEvent(), SetMenuItems(), and updateMenu().
1.6.3