#include <mythmainwindow.h>
Definition at line 55 of file mythmainwindow.h.
Public Slots | |
| void | drawTimeout () |
| void | mouseTimeout () |
Public Member Functions | |
| void | Init (void) |
| void | Show (void) |
| void | AddScreenStack (MythScreenStack *stack, bool main=false) |
| MythScreenStack * | GetMainStack () |
| bool | TranslateKeyPress (const QString &context, QKeyEvent *e, QStringList &actions, bool allowJumps=true) |
| void | ClearKey (const QString &context, const QString &action) |
| void | BindKey (const QString &context, const QString &action, const QString &key) |
| void | RegisterKey (const QString &context, const QString &action, const QString &description, const QString &key) |
| QString | GetKey (const QString &context, const QString &action) const |
| void | ClearJump (const QString &destination) |
| void | BindJump (const QString &destination, const QString &key) |
| void | RegisterJump (const QString &destination, const QString &description, const QString &key, void(*callback)(void), bool exittomain=true, QString localAction="") |
| void | RegisterMediaHandler (const QString &destination, const QString &description, const QString &key, void(*callback)(MythMediaDevice *mediadevice), int mediaType, const QString &extensions) |
| void | RegisterMediaPlugin (const QString &name, const QString &desc, MediaPlayCallback fn) |
| bool | HandleMedia (QString &handler, const QString &mrl, const QString &plot="", const QString &title="", const QString &director="", int lenMins=120, const QString &year="1895") |
| void | JumpTo (const QString &destination, bool pop=true) |
| bool | DestinationExists (const QString &destination) const |
| bool | IsExitingToMain (void) const |
| MythPainter * | GetCurrentPainter () |
| void | AllowInput (bool allow) |
| QRect | GetUIScreenRect () |
| int | NormalizeFontSize (int pointSize) |
| QFont | CreateQFont (const QString &face, int pointSize=12, int weight=QFont::Normal, bool italic=FALSE) |
| QRect | NormRect (const QRect &rect) |
| QPoint | NormPoint (const QPoint &point) |
| QSize | NormSize (const QSize &size) |
| int | NormX (const int x) |
| int | NormY (const int y) |
| void | attach (QWidget *child) |
| void | detach (QWidget *child) |
| QWidget * | currentWidget (void) |
Static Public Member Functions | |
| static MythMainWindow * | getMainWindow (const bool useDB=true) |
| Return the existing main window, or create one. | |
| static void | destroyMainWindow () |
Public Attributes | |
| int | fonTweak |
Protected Member Functions | |
| MythMainWindow (const bool useDB=true) | |
| virtual | ~MythMainWindow () |
| bool | eventFilter (QObject *o, QEvent *e) |
| void | customEvent (QCustomEvent *ce) |
| void | closeEvent (QCloseEvent *e) |
| void | paintEvent (QPaintEvent *e) |
| bool | event (QEvent *e) |
| void | ExitToMainMenu () |
| QObject * | getTarget (QKeyEvent &key) |
Protected Attributes | |
| MythMainWindowPrivate * | d |
| MythMainWindow::MythMainWindow | ( | const bool | useDB = true |
) | [protected] |
| MythMainWindow::~MythMainWindow | ( | ) | [protected, virtual] |
Definition at line 389 of file mythmainwindow.cpp.
| void MythMainWindow::Init | ( | void | ) |
Definition at line 532 of file mythmainwindow.cpp.
Referenced by main(), reloadTheme(), and MythContextPrivate::TempMainWindow().
| void MythMainWindow::Show | ( | void | ) |
| void MythMainWindow::AddScreenStack | ( | MythScreenStack * | stack, | |
| bool | main = false | |||
| ) |
Definition at line 405 of file mythmainwindow.cpp.
Referenced by MythScreenStack::MythScreenStack().
| MythScreenStack * MythMainWindow::GetMainStack | ( | void | ) |
Definition at line 412 of file mythmainwindow.cpp.
Referenced by MythControls::ChangeView(), customEvent(), MythControls::customEvent(), MythAppearance::doMenu(), ExitToMainMenu(), MythControls::keyPressEvent(), MythAppearance::keyPressEvent(), mythplugin_config(), mythplugin_run(), runFormatMenu(), runMenu(), RunMenu(), runSelectMenu(), SetupMenu(), and startAppearWiz().
| bool MythMainWindow::TranslateKeyPress | ( | const QString & | context, | |
| QKeyEvent * | e, | |||
| QStringList & | actions, | |||
| bool | allowJumps = true | |||
| ) |
Definition at line 752 of file mythmainwindow.cpp.
Referenced by NuppelVideoPlayer::DoKeypress(), TabView::eventFilter(), MythSpinBox::eventFilter(), MythNewsSpinBox::eventFilter(), MythFlixSpinBox::eventFilter(), InfoDialog::eventFilter(), SevereWeatherScreen::handleKey(), OSDListTreeType::HandleKeypress(), VisualizationsEditor::handleKeyPress(), ZMPlayer::keyPressEvent(), ZMLivePlayer::keyPressEvent(), ZMEvents::keyPressEvent(), ZMConsole::keyPressEvent(), WelcomeDialog::keyPressEvent(), WebcamSettingsBox::keyPressEvent(), LocationDialog::keyPressEvent(), SourceSetup::keyPressEvent(), ScreenSetup::keyPressEvent(), GlobalSetup::keyPressEvent(), Weather::keyPressEvent(), VirtualKeyboard::keyPressEvent(), ViewScheduled::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), VideoTree::keyPressEvent(), VideoSelector::keyPressEvent(), VideoSelected::keyPressEvent(), VideoManager::keyPressEvent(), VideoGallery::keyPressEvent(), VideoFilterDialog::keyPressEvent(), VideoBrowser::keyPressEvent(), UIKeyboardType::keyPressEvent(), TitleDialog::keyPressEvent(), ThumbFinder::keyPressEvent(), StatusBox::keyPressEvent(), RecOptDialog::keyPressEvent(), SmartPLDateDialog::keyPressEvent(), SmartPLOrderByDialog::keyPressEvent(), SmartPlaylistDialog::keyPressEvent(), SingleView::keyPressEvent(), RecordingSelector::keyPressEvent(), ProgramRecPriority::keyPressEvent(), ProgLister::keyPressEvent(), ProgFinder::keyPressEvent(), ProgDetails::keyPressEvent(), PreviousList::keyPressEvent(), PlaybackBoxMusic::keyPressEvent(), PlaybackBox::keyPressEvent(), PhoneUIBox::keyPressEvent(), MythMultiPasswordDialog::keyPressEvent(), MythWizard::keyPressEvent(), MythListBox::keyPressEvent(), MythListView::keyPressEvent(), MythPushButton::keyPressEvent(), MythTable::keyPressEvent(), MythRemoteLineEdit::keyPressEvent(), MythLineEdit::keyPressEvent(), MythSlider::keyPressEvent(), MythRadioButton::keyPressEvent(), MythCheckBox::keyPressEvent(), MythComboBox::keyPressEvent(), MythUIButton::keyPressEvent(), MythNewsConfig::keyPressEvent(), MythNews::keyPressEvent(), MythNewsBusyDialog::keyPressEvent(), MythListButton::keyPressEvent(), MythFlixQueue::keyPressEvent(), MythFlixConfig::keyPressEvent(), MythFlix::keyPressEvent(), MythScrollDialog::keyPressEvent(), MythImageFileDialog::keyPressEvent(), MythSearchDialog::keyPressEvent(), MythPasswordDialog::keyPressEvent(), MythProgressDialog::keyPressEvent(), MythPopupBox::keyPressEvent(), MythDialog::keyPressEvent(), MythControls::keyPressEvent(), ConfigurationDialogWidget::keyPressEvent(), MythburnWizard::keyPressEvent(), MythAppearance::keyPressEvent(), MoviesUI::keyPressEvent(), MiniPlayer::keyPressEvent(), LogViewer::keyPressEvent(), ImportNativeWizard::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), ImportMusicDialog::keyPressEvent(), IconView::keyPressEvent(), GuideGrid::keyPressEvent(), GLSingleView::keyPressEvent(), GameTree::keyPressEvent(), FileSelector::keyPressEvent(), FileAssocDialog::keyPressEvent(), ExportNativeWizard::keyPressEvent(), EditMetadataDialog::keyPressEvent(), DVDRipBox::keyPressEvent(), DirectoryFinder::keyPressEvent(), DatabaseBox::keyPressEvent(), ChannelRecPriority::keyPressEvent(), RipStatus::keyPressEvent(), Ripper::keyPressEvent(), MythThemedMenuPrivate::keyPressHandler(), and TV::ProcessKeypress().
| void MythMainWindow::ClearKey | ( | const QString & | context, | |
| const QString & | action | |||
| ) |
| void MythMainWindow::BindKey | ( | const QString & | context, | |
| const QString & | action, | |||
| const QString & | key | |||
| ) |
Definition at line 831 of file mythmainwindow.cpp.
Referenced by KeyBindings::CommitAction(), and RegisterKey().
| void MythMainWindow::RegisterKey | ( | const QString & | context, | |
| const QString & | action, | |||
| const QString & | description, | |||
| const QString & | key | |||
| ) |
| QString MythMainWindow::GetKey | ( | const QString & | context, | |
| const QString & | action | |||
| ) | const |
Definition at line 931 of file mythmainwindow.cpp.
| void MythMainWindow::ClearJump | ( | const QString & | destination | ) |
| void MythMainWindow::BindJump | ( | const QString & | destination, | |
| const QString & | key | |||
| ) |
Definition at line 973 of file mythmainwindow.cpp.
Referenced by KeyBindings::CommitJumppoint(), and RegisterJump().
| void MythMainWindow::RegisterJump | ( | const QString & | destination, | |
| const QString & | description, | |||
| const QString & | key, | |||
| void(*)(void) | callback, | |||
| bool | exittomain = true, |
|||
| QString | localAction = "" | |||
| ) |
Definition at line 1008 of file mythmainwindow.cpp.
| void MythMainWindow::RegisterMediaHandler | ( | const QString & | destination, | |
| const QString & | description, | |||
| const QString & | key, | |||
| void(*)(MythMediaDevice *mediadevice) | callback, | |||
| int | mediaType, | |||
| const QString & | extensions | |||
| ) |
| void MythMainWindow::RegisterMediaPlugin | ( | const QString & | name, | |
| const QString & | desc, | |||
| MediaPlayCallback | fn | |||
| ) |
Definition at line 1103 of file mythmainwindow.cpp.
| bool MythMainWindow::HandleMedia | ( | QString & | handler, | |
| const QString & | mrl, | |||
| const QString & | plot = "", |
|||
| const QString & | title = "", |
|||
| const QString & | director = "", |
|||
| int | lenMins = 120, |
|||
| const QString & | year = "1895" | |||
| ) |
Definition at line 1121 of file mythmainwindow.cpp.
Referenced by playDVD(), PlayVideo(), MythNews::playVideo(), and runTestDVD().
| void MythMainWindow::JumpTo | ( | const QString & | destination, | |
| bool | pop = true | |||
| ) |
Definition at line 1054 of file mythmainwindow.cpp.
Referenced by MythThemedMenuPrivate::handleAction(), VideoTree::jumpTo(), VideoDialog::jumpTo(), NetworkControl::processJump(), NetworkControl::processPlay(), signal_USR1_handler(), MythAppearance::slotResetSettings(), TVMenuCallback(), and MythAppearance::updateSettings().
| bool MythMainWindow::DestinationExists | ( | const QString & | destination | ) | const |
Definition at line 1066 of file mythmainwindow.cpp.
Referenced by MythThemedMenuPrivate::parseThemeButton().
| bool MythMainWindow::IsExitingToMain | ( | void | ) | const |
Definition at line 673 of file mythmainwindow.cpp.
Referenced by VideoGallery::goBack(), PlaybackBoxMusic::keyPressEvent(), IconView::keyPressEvent(), MythScreenStack::PopScreen(), and Ripper::reject().
| MythMainWindow * MythMainWindow::getMainWindow | ( | const bool | useDB = true |
) | [static] |
Return the existing main window, or create one.
| useDB | If this is a temporary window, which is used to bootstrap the database, passing false prevents any database access. |
Definition at line 232 of file mythmainwindow.cpp.
Referenced by GetMythMainWindow(), GetMythPainter(), and MythContextPrivate::TempMainWindow().
| void MythMainWindow::destroyMainWindow | ( | void | ) | [static] |
| MythPainter * MythMainWindow::GetCurrentPainter | ( | void | ) |
| void MythMainWindow::AllowInput | ( | bool | allow | ) |
Definition at line 1139 of file mythmainwindow.cpp.
Referenced by Bookmarks::slotBookmarksViewExecuted(), and MythNews::slotViewArticle().
| QRect MythMainWindow::GetUIScreenRect | ( | void | ) |
Definition at line 1641 of file mythmainwindow.cpp.
Referenced by MythThemeBase::Init(), MythAppearance::MythAppearance(), MythScreenType::MythScreenType(), XMLParseBase::parseSize(), and MythThemeBase::Reload().
| int MythMainWindow::NormalizeFontSize | ( | int | pointSize | ) |
Definition at line 1556 of file mythmainwindow.cpp.
Referenced by CreateQFont(), and XMLParse::parseFont().
| QFont MythMainWindow::CreateQFont | ( | const QString & | face, | |
| int | pointSize = 12, |
|||
| int | weight = QFont::Normal, |
|||
| bool | italic = FALSE | |||
| ) |
Definition at line 1588 of file mythmainwindow.cpp.
Referenced by MythUIType::CreateQFont(), and MythThemedMenuState::parseText().
| QRect MythMainWindow::NormRect | ( | const QRect & | rect | ) |
Definition at line 1601 of file mythmainwindow.cpp.
Referenced by MythUIType::NormRect(), and XMLParseBase::parseRect().
| QPoint MythMainWindow::NormPoint | ( | const QPoint & | point | ) |
Definition at line 1613 of file mythmainwindow.cpp.
Referenced by MythThemeBase::Init(), MythUIType::NormPoint(), XMLParseBase::parsePoint(), and MythThemeBase::Reload().
| QSize MythMainWindow::NormSize | ( | const QSize & | size | ) |
| int MythMainWindow::NormX | ( | const int | x | ) |
| int MythMainWindow::NormY | ( | const int | y | ) |
Definition at line 1636 of file mythmainwindow.cpp.
Referenced by MythUIType::NormY(), and MythThemedMenuState::parseOutline().
| void MythMainWindow::attach | ( | QWidget * | child | ) |
Definition at line 619 of file mythmainwindow.cpp.
Referenced by MythDialog::MythDialog(), and MythScrollDialog::MythScrollDialog().
| void MythMainWindow::detach | ( | QWidget * | child | ) |
Definition at line 641 of file mythmainwindow.cpp.
Referenced by TabView::eventFilter(), MythRemoteLineEdit::popupVirtualKeyboard(), MythLineEdit::popupVirtualKeyboard(), MythComboBox::popupVirtualKeyboard(), MythDialog::TeardownAll(), and MythScrollDialog::~MythScrollDialog().
| QWidget * MythMainWindow::currentWidget | ( | void | ) |
Definition at line 665 of file mythmainwindow.cpp.
Referenced by attach(), customEvent(), detach(), drawTimeout(), eventFilter(), ExitToMainMenu(), getTarget(), NuppelVideoPlayer::InitVideo(), playDVD(), playVCD(), VideoTree::playVideo(), VideoDialog::playVideo(), NetworkControl::processKey(), MainVisual::timeout(), and VideoSelected::updatePlayWait().
| void MythMainWindow::drawTimeout | ( | void | ) | [slot] |
| void MythMainWindow::mouseTimeout | ( | void | ) | [slot] |
| bool MythMainWindow::eventFilter | ( | QObject * | o, | |
| QEvent * | e | |||
| ) | [protected] |
Definition at line 1161 of file mythmainwindow.cpp.
| void MythMainWindow::customEvent | ( | QCustomEvent * | ce | ) | [protected] |
Definition at line 1301 of file mythmainwindow.cpp.
| void MythMainWindow::closeEvent | ( | QCloseEvent * | e | ) | [protected] |
Definition at line 496 of file mythmainwindow.cpp.
| void MythMainWindow::paintEvent | ( | QPaintEvent * | e | ) | [protected] |
Definition at line 502 of file mythmainwindow.cpp.
| bool MythMainWindow::event | ( | QEvent * | e | ) | [protected] |
Definition at line 510 of file mythmainwindow.cpp.
| void MythMainWindow::ExitToMainMenu | ( | void | ) | [protected] |
| QObject * MythMainWindow::getTarget | ( | QKeyEvent & | key | ) | [protected] |
Definition at line 1527 of file mythmainwindow.cpp.
Referenced by customEvent(), eventFilter(), and ExitToMainMenu().
MythMainWindowPrivate* MythMainWindow::d [protected] |
Definition at line 144 of file mythmainwindow.h.
Referenced by AddScreenStack(), AllowInput(), attach(), BindJump(), BindKey(), ClearJump(), ClearKey(), currentWidget(), customEvent(), DestinationExists(), detach(), drawTimeout(), eventFilter(), ExitToMainMenu(), GetCurrentPainter(), GetMainStack(), getTarget(), GetUIScreenRect(), HandleMedia(), Init(), IsExitingToMain(), JumpTo(), mouseTimeout(), MythMainWindow(), NormalizeFontSize(), NormPoint(), NormRect(), NormSize(), NormX(), NormY(), paintEvent(), RegisterJump(), RegisterKey(), RegisterMediaPlugin(), Show(), TranslateKeyPress(), and ~MythMainWindow().
1.5.5