MythTV  master
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Slots | Friends | List of all members
MythMainWindow Class Reference

#include <mythmainwindow.h>

Inheritance diagram for MythMainWindow:
Inheritance graph
[legend]
Collaboration diagram for MythMainWindow:
Collaboration graph
[legend]

Public Types

enum  { drawRefresh = 70 }
 

Public Slots

void mouseTimeout ()
 
void HideMouseTimeout ()
 
void IdleTimeout ()
 

Signals

void signalRemoteScreenShot (QString filename, int x, int y)
 
void signalSetDrawEnabled (bool enable)
 

Public Member Functions

void Init (QString forcedpainter=QString(), bool mayReInit=true)
 
void ReinitDone (void)
 
void Show (void)
 
void AddScreenStack (MythScreenStack *stack, bool main=false)
 
void PopScreenStack ()
 
int GetStackCount (void)
 
MythScreenStackGetMainStack ()
 
MythScreenStackGetStack (const QString &stackname)
 
MythScreenStackGetStackAt (int pos)
 
bool TranslateKeyPress (const QString &context, QKeyEvent *e, QStringList &actions, bool allowJumps=true)
 Get a list of actions for a keypress in the given context. More...
 
bool keyLongPressFilter (QEvent **e, QScopedPointer< QEvent > &sNewEvent)
 
void ReloadKeys (void)
 
void ClearKey (const QString &context, const QString &action)
 
void ClearKeyContext (const QString &context)
 
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
 
QString GetActionText (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 ClearAllJumps ()
 
void RegisterMediaPlugin (const QString &name, const QString &desc, MediaPlayCallback fn)
 
bool HandleMedia (const QString &handler, const QString &mrl, const QString &plot="", const QString &title="", const QString &subtitle="", const QString &director="", int season=0, int episode=0, const QString &inetref="", int lenMins=120, const QString &year="1895", const QString &id="", bool useBookmarks=false)
 
void HandleTVPower (bool poweron)
 
void JumpTo (const QString &destination, bool pop=true)
 
bool DestinationExists (const QString &destination) const
 
QStringList EnumerateDestinations (void) const
 
bool IsExitingToMain (void) const
 
MythPainterGetCurrentPainter ()
 
QWidget * GetPaintWindow ()
 
MythRenderGetRenderDevice ()
 
MythNotificationCenterGetCurrentNotificationCenter ()
 
void ShowPainterWindow ()
 
void HidePainterWindow ()
 
void ResizePainterWindow (const QSize &size)
 
void GrabWindow (QImage &image)
 
bool SaveScreenShot (const QImage &image, QString filename="")
 
bool ScreenShot (int w=0, int h=0, QString filename="")
 
void RemoteScreenShot (QString filename, int x, int y)
 
void AllowInput (bool allow)
 
QRect GetUIScreenRect ()
 
void SetUIScreenRect (QRect &rect)
 
int GetDrawInterval () const
 
int NormalizeFontSize (int pointSize)
 
MythRect NormRect (const MythRect &rect)
 
QPoint NormPoint (const QPoint &point)
 
QSize NormSize (const QSize &size)
 
int NormX (const int x)
 
int NormY (const int y)
 
void SetScalingFactors (float wmult, float hmult)
 
void StartLIRC (void)
 
void attach (QWidget *child)
 
void detach (QWidget *child)
 
QWidget * currentWidget (void)
 
uint PushDrawDisabled (void)
 
uint PopDrawDisabled (void)
 
void SetEffectsEnabled (bool enable)
 
void draw (MythPainter *painter=nullptr)
 
void ResetIdleTimer (void)
 
void PauseIdleTimer (bool pause)
 
void DisableIdleTimer (bool disableIdle=true)
 
void EnterStandby (bool manual=true)
 
void ExitStandby (bool manual=true)
 
QPaintEngine * paintEngine () const override
 

Static Public Member Functions

static MythMainWindowgetMainWindow (const bool useDB=true)
 Return the existing main window, or create one. More...
 
static void destroyMainWindow ()
 

Protected Slots

void animate ()
 
void doRemoteScreenShot (QString filename, int x, int y)
 
void SetDrawEnabled (bool enable)
 

Protected Member Functions

 MythMainWindow (const bool useDB=true)
 
virtual ~MythMainWindow ()
 
void InitKeys (void)
 
bool eventFilter (QObject *o, QEvent *e) override
 
void customEvent (QEvent *ce) override
 
void closeEvent (QCloseEvent *e) override
 
void drawScreen ()
 
bool event (QEvent *e) override
 
void ExitToMainMenu ()
 
QObject * getTarget (QKeyEvent &key)
 
void LockInputDevices (bool locked)
 
void ShowMouseCursor (bool show)
 

Protected Attributes

MythMainWindowPrivated
 

Private Slots

void DelayedAction (void)
 

Friends

class MythPainterWindowGL
 
class MythPainterWindowQt
 
class MythPainterWindowVDPAU
 
class MythPainterWindowD3D9
 

Detailed Description

Definition at line 32 of file mythmainwindow.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
drawRefresh 

Definition at line 41 of file mythmainwindow.h.

Constructor & Destructor Documentation

◆ MythMainWindow()

MythMainWindow::MythMainWindow ( const bool  useDB = true)
explicitprotected

Definition at line 404 of file mythmainwindow.cpp.

◆ ~MythMainWindow()

MythMainWindow::~MythMainWindow ( )
protectedvirtual

Definition at line 523 of file mythmainwindow.cpp.

Member Function Documentation

◆ Init()

void MythMainWindow::Init ( QString  forcedpainter = QString(),
bool  mayReInit = true 
)

◆ ReinitDone()

void MythMainWindow::ReinitDone ( void  )

Definition at line 1343 of file mythmainwindow.cpp.

Referenced by main(), reloadTheme(), and resetTheme().

◆ Show()

void MythMainWindow::Show ( void  )

Definition at line 1363 of file mythmainwindow.cpp.

Referenced by DelayedAction(), Init(), and TV::~TV().

◆ AddScreenStack()

void MythMainWindow::AddScreenStack ( MythScreenStack stack,
bool  main = false 
)

Definition at line 633 of file mythmainwindow.cpp.

Referenced by MythScreenStack::MythScreenStack().

◆ PopScreenStack()

void MythMainWindow::PopScreenStack ( )

Definition at line 640 of file mythmainwindow.cpp.

Referenced by Weather::~Weather().

◆ GetStackCount()

int MythMainWindow::GetStackCount ( void  )

Definition at line 649 of file mythmainwindow.cpp.

Referenced by MythUIWebBrowser::Init().

◆ GetMainStack()

MythScreenStack * MythMainWindow::GetMainStack ( void  )

Definition at line 654 of file mythmainwindow.cpp.

Referenced by MythThemedMenu::aboutScreen(), CardInput::channelScanner(), ChannelEditor::customEvent(), StreamView::customEvent(), PlaylistEditorView::customEvent(), customEvent(), VideoDialog::DoItemDetailShow(), ScreenSetup::doLocationDialog(), ChannelEditor::edit(), ProgramRecPriority::edit(), ScheduleCommon::EditCustom(), MythBurn::editDetails(), LyricsView::editLyrics(), ScheduleCommon::EditScheduled(), StreamView::editStream(), MythBurn::editThumbnails(), MusicCommon::editTrackInfo(), MythContextPrivate::EndTempWindow(), ExitToMainMenu(), GameCallback(), MythUIHelper::GetCurrentLocation(), MythBurn::handleAddFile(), ExportNative::handleAddRecording(), MythBurn::handleAddRecording(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), SelectDestination::handleFind(), handleGalleryMedia(), handleMedia(), DVDThemeSelector::handleNextPage(), SelectDestination::handleNextPage(), IconView::HandleSettings(), MythContextPrivate::Init(), TV::Init(), internal_play_media(), MythUIHelper::IsTopScreenInitialized(), PlaylistEditorView::keyPressEvent(), MythThemedMenu::keyPressEvent(), main(), ScheduleCommon::MakeOverride(), ChannelScannerGUI::MonitorProgress(), MusicCallback(), mythplugin_config(), mythplugin_run(), ProgramRecPriority::newTemplate(), ArchiveFileSelector::nextPressed(), ZMEvents::playPressed(), MythScreenStack::PopScreen(), MythNotificationScreenStack::PopScreen(), VideoOutputOpenGL::PrepareFrame(), VideoOutputOMX::PrepareFrame(), AudioTest::prepareTest(), NetworkControl::processTheme(), LanguageSelection::prompt(), BackendSelection::Prompt(), MythContextPrivate::PromptForDatabaseParams(), PhrasePopup::recordClicked(), ManualSchedule::recordClicked(), CustomEdit::recordClicked(), PowerSearchPopup::recordClicked(), run(), XMLTV_generic_config::RunConfig(), runCreateArchive(), runCreateDVD(), RunGallery(), RunGames(), runImportVideo(), runMenu(), RunMenu(), RunNetTree(), RunNetVision(), RunNews(), PlaybackBox::RunPlaybackBox(), RunProgramFinder(), GuideGrid::RunProgramGuide(), runRipCD(), NetTree::RunRSSEditor(), ScheduleEditor::RunScheduleEditor(), NetSearch::RunSearchEditor(), NetTree::RunTreeEditor(), RunVideoScreen(), ViewScheduled::RunViewScheduled(), RunWeather(), runZMConsole(), runZMEventView(), runZMLiveView(), runZMMiniPlayer(), ChannelEditor::scan(), EditStreamMetadata::searchClicked(), setDebugShowBorders(), setDebugShowNames(), SetupMenuCallback(), Weather::setupPage(), Weather::SetupScreens(), ScheduleCommon::ShowChannelSearch(), ScheduleCommon::ShowDetails(), MythNews::ShowEditDialog(), BookmarkManager::ShowEditDialog(), ImportMusicDialog::showEditMetadataDialog(), Ripper::showEditMetadataDialog(), MythNews::ShowFeedManager(), ScheduleEditor::ShowFilters(), MythContextPrivate::ShowGuiStartup(), ImportMusicDialog::showImportCoverArtDialog(), GameUI::showInfo(), showLogViewer(), MythThemedMenu::ShowMenu(), PlaybackBox::showMetadataEditor(), ScheduleEditor::ShowMetadataOptions(), ProgLister::ShowOldRecordedMenu(), ScheduleEditor::ShowPostProc(), ScheduleEditor::ShowPreview(), ScheduleCommon::ShowPrevious(), SmartPlaylistEditor::showResultsClicked(), ScheduleEditor::ShowSchedOpt(), WelcomeDialog::ShowSettings(), GalleryThumbView::ShowSettings(), showStatus(), ScheduleEditor::ShowStoreOpt(), ScheduleCommon::ShowUpcoming(), ScheduleEditor::showUpcomingByRule(), ScheduleCommon::ShowUpcomingScheduled(), MythBrowser::slotAddBookmark(), BookmarkManager::slotBookmarkClicked(), RSSEditor::SlotEditSite(), RSSEditor::SlotNewSite(), GeneralSetupWizard::slotNext(), AudioSetupWizard::slotNext(), BookmarkManager::slotSettings(), BookmarkManager::slotShowMarked(), standbyScreen(), startAppearWiz(), startChannelRecPriorities(), startCustomEdit(), startCustomPriority(), startDatabaseTree(), startImport(), startKeysSetup(), startManaged(), startManageRecordingRules(), startManualSchedule(), startPlayback(), startPlaybackWithGroup(), startPrevious(), startPreviousOld(), Ripper::startRipper(), startRipper(), startSearchCategory(), startSearchChannel(), startSearchKeyword(), startSearchMovie(), startSearchNew(), startSearchPeople(), startSearchPower(), startSearchStored(), startSearchTime(), startSearchTitle(), GalleryThumbView::StartSlideshow(), startStreamPlayback(), CustomEdit::storeClicked(), EditMetadataDialog::switchToAlbumArt(), EditAlbumartDialog::switchToMetadata(), MusicCommon::switchView(), SysEventHandleAction(), CustomEdit::testClicked(), CustomPriority::testSchedule(), ChannelEditor::transportEditor(), TVMenuCallback(), ChannelRecPriority::upcoming(), MythDialogBox::updateMenu(), and WeatherCallback().

◆ GetStack()

MythScreenStack * MythMainWindow::GetStack ( const QString &  stackname)

Definition at line 659 of file mythmainwindow.cpp.

Referenced by MythControls::ActionButtonPressed(), SmartPlaylistEditor::addCriteria(), MythBurn::changeProfile(), MythControls::ChangeView(), GuideGrid::ChannelGroupMenu(), ChannelEditor::channelIconImport(), MythThemedMenu::checkPinCode(), ImportMusicDialog::chooseBackend(), Ripper::chooseBackend(), GameHandler::clearAllGameData(), GUIStartup::Close(), MythControls::Close(), StandardSettingDialog::Close(), GalleryThumbView::Copy(), ImportMusicDialog::copyFile(), CardInput::CreateNewInputGroup(), PlayGroupEditor::CreateNewPlayBackGroup(), GameHandler::CreateProgress(), ProgFinder::customEvent(), MusicCommon::customEvent(), ProgramRecPriority::customEvent(), SmartPlaylistEditor::customEvent(), MusicPlayer::customEvent(), ChannelEditor::del(), ZMEvents::deleteAll(), ChannelEditor::deleteChannels(), MythControls::DeleteKey(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), PlaybackBox::displayRecGroup(), ParentalLevelChangeCheckerPrivate::DoCheck(), EditAlbumartDialog::doCopyImageToTag(), MythWebView::doDownloadRequested(), ScreenWizard::doExit(), ScreenSetup::doListSelect(), ScreenWizard::doMenu(), VideoScanner::doScan(), GameScanner::doScan(), LocationDialog::doSearch(), MythUITextEditSetting::edit(), MythUIFileBrowserSetting::edit(), MythUIComboBoxSetting::edit(), MythUISpinBoxSetting::edit(), PowerSearchPopup::editClicked(), SmartPlaylistEditor::editCriteria(), CriteriaRowEditor::editDate(), EditMetadataDialog::EditMetadataDialog(), ScheduleCommon::EditRecording(), ExitPrompterPrivate::ExitPrompterPrivate(), MetadataOptions::FindImagePopup(), SourceManager::findScripts(), GameUI::GameUI(), GeneralSetupWizard::GeneralSetupWizard(), MythUIHelper::GetCurrentLocation(), MythControls::GrabKey(), ExitPrompter::handleExit(), IconView::HandleImport(), handleMedia(), IconView::IconView(), ImportIconsWizard::ImportIconsWizard(), RecordingSelector::Init(), MythBrowser::keyPressEvent(), MythUITextEdit::keyPressEvent(), BookmarkManager::keyPressEvent(), MusicData::loadMusic(), ImportMusicDialog::locationPressed(), ChannelEditor::menu(), TransportListEditor::Menu(), GallerySlideView::MenuMain(), MetadataOptions::MetadataOptions(), GalleryThumbView::Move(), NetEditorBase::NetEditorBase(), EditMetadataDialog::NewCategoryPopup(), PlaybackSettings::NewPlaybackProfileSlot(), GamePlayersList::NewPlayerDialog(), MusicPlayer::nextAuto(), EditMetadataDialog::OnArtworkSearchDone(), FileAssocDialog::OnNewExtensionPressed(), MythScreenType::OpenBusyPopup(), MythWebView::openBusyPopup(), SmartPlaylistEditor::orderByClicked(), PlaybackBox::PlaybackBox(), GameHandler::processGames(), NetworkControl::processTheme(), BackendSelection::PromptForPassword(), StoreOptMixin::PromptForRecGroup(), GameHandler::promptForRemoval(), ChannelImporter::QueryUserDelete(), ChannelImporter::QueryUserInsert(), ChannelImporter::QueryUserUpdate(), RecMetadataEdit::RecMetadataEdit(), MusicData::reloadMusic(), ProgramRecPriority::remove(), MythControls::ResolveConflict(), MythUIComboBoxSetting::resultEdit(), runHomepage(), RunVideoScreen(), AlbumArtImages::scanForImages(), EditMetadataDialog::searchAlbum(), Ripper::searchAlbum(), EditMetadataDialog::searchArtist(), Ripper::searchArtist(), EditMetadataDialog::searchCompilationArtist(), EditMetadataDialog::searchGenre(), Ripper::searchGenre(), GameUI::searchStart(), VideoDialog::searchStart(), RSSEditPopup::SelectImagePopup(), PlaybackBox::setRecGroup(), ShowBusyPopup(), SmartPlaylistEditor::showCategoryMenu(), ProgLister::ShowChooseViewMenu(), GallerySettings::ShowConfirmDialog(), Ripper::ShowConflictMenu(), SmartPlaylistEditor::showCriteriaMenu(), StorageGroupEditor::ShowDeleteDialog(), StorageGroupDirSetting::ShowDeleteDialog(), PlaybackProfileItemConfig::ShowDeleteDialog(), ProgLister::ShowDeleteRuleMenu(), MythWebView::showDownloadMenu(), MythUISpinBox::ShowEntryDialog(), MusicCommon::showExitMenu(), StorageGroupEditor::ShowFileBrowser(), PrevRecordedList::ShowItemMenu(), GuideGrid::ShowJumpToTime(), ImportNative::showList(), ChannelImporter::ShowManualChannelPopup(), VisualizerView::ShowMenu(), SearchView::ShowMenu(), LyricsView::ShowMenu(), StreamView::ShowMenu(), LogViewer::ShowMenu(), ViewScheduled::ShowMenu(), PrevRecordedList::ShowMenu(), WelcomeDialog::ShowMenu(), MythNews::ShowMenu(), ChannelRecPriority::ShowMenu(), RecordingSelector::ShowMenu(), ExportNative::ShowMenu(), ThumbFinder::ShowMenu(), VideoSelector::ShowMenu(), ProgFinder::ShowMenu(), ZMEvents::ShowMenu(), MusicCommon::ShowMenu(), ZMLivePlayer::showMenu(), MythBurn::ShowMenu(), PlaylistEditorView::ShowMenu(), ProgLister::ShowMenu(), ImportMusicDialog::ShowMenu(), ProgramRecPriority::showMenu(), EditMetadataDialog::showMenu(), Ripper::ShowMenu(), MythControls::ShowMenu(), ScheduleEditor::showMenu(), EditAlbumartDialog::showMenu(), GuideGrid::ShowMenu(), StandardSettingDialog::ShowMenu(), ZMClient::showMiniPlayer(), MusicPlayer::showMiniPlayer(), StorageGroupListEditor::ShowNewGroupDialog(), ChannelGroupsSetting::ShowNewGroupDialog(), ShowOkPopup(), PlaybackSettingsDialog::ShowPlaybackProfileMenu(), MusicCommon::showPlaylistOptionsMenu(), ThemeChooser::showPopupMenu(), GuideGrid::ShowRecordingMenu(), EditMetadataCommon::showSaveMenu(), ScheduleEditor::ShowSchedInfo(), MythUIButtonList::ShowSearchDialog(), ProgramRecPriority::showSortMenu(), ViewScheduleDiff::showStatus(), ScheduleEditor::showTemplateMenu(), MusicCommon::showTrackInfo(), SmartPLResultViewer::showTrackInfo(), VisualizerView::showTrackInfoPopup(), EditAlbumartDialog::showTypeMenu(), ScreenSetup::showUnitsPopup(), MusicCommon::showVolume(), showWarningDialog(), BookmarkManager::slotDeleteCurrent(), BookmarkManager::slotDeleteMarked(), RSSEditor::SlotDeleteSite(), MythBrowser::slotEnterURL(), BookmarkEditor::slotFindCategory(), BurnMenu::start(), EditAlbumartDialog::startCopyImageToTag(), StartPrompterPrivate::StartPrompterPrivate(), ImportMusicDialog::startScan(), TV::StartTV(), StatusBox::StatusBox(), MythBurn::updateArchiveList(), CriteriaRowEditor::valueButtonClicked(), and VideoSetupWizard::VideoSetupWizard().

◆ GetStackAt()

MythScreenStack * MythMainWindow::GetStackAt ( int  pos)

Definition at line 670 of file mythmainwindow.cpp.

Referenced by MythUIWebBrowser::Init(), and MythUIWebBrowser::IsOnTopScreen().

◆ TranslateKeyPress()

bool MythMainWindow::TranslateKeyPress ( const QString &  context,
QKeyEvent *  e,
QStringList &  actions,
bool  allowJumps = true 
)

Get a list of actions for a keypress in the given context.

Parameters
contextThe context in which to lookup the keypress for actions.
eThe keypress event to lookup.
actionsThe QStringList that will contain the list of actions.
allowJumpsif true then jump points are allowed
Returns
true if the key event has been handled (the keypress was a jumpoint) false if the caller should continue to handle keypress

Definition at line 1654 of file mythmainwindow.cpp.

Referenced by keyLongPressFilter(), MythFlashPlayer::keyPressEvent(), MiniPlayer::keyPressEvent(), ZMMiniPlayer::keyPressEvent(), ProgDetails::keyPressEvent(), MythUIButtonTree::keyPressEvent(), StorageGroupEditor::keyPressEvent(), VisualizerView::keyPressEvent(), MythNewsConfig::keyPressEvent(), CustomEdit::keyPressEvent(), SearchView::keyPressEvent(), StatusBox::keyPressEvent(), LogViewer::keyPressEvent(), LyricsView::keyPressEvent(), MythBrowser::keyPressEvent(), ScreenWizard::keyPressEvent(), MythUICheckBox::keyPressEvent(), StreamView::keyPressEvent(), NetSearch::keyPressEvent(), BookmarkEditor::keyPressEvent(), Weather::keyPressEvent(), MythNews::keyPressEvent(), MythNewsEditor::keyPressEvent(), ChannelRecPriority::keyPressEvent(), SelectDestination::keyPressEvent(), EditMetadataCommon::keyPressEvent(), NetEditorBase::keyPressEvent(), MythUIButton::keyPressEvent(), ProgFinder::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), WelcomeDialog::keyPressEvent(), MythUISpinBox::keyPressEvent(), GameUI::keyPressEvent(), RSSEditPopup::keyPressEvent(), PrevRecordedList::keyPressEvent(), GalleryThumbView::keyPressEvent(), MythUIBusyDialog::keyPressEvent(), ViewScheduled::keyPressEvent(), ThemeChooser::keyPressEvent(), ZMEvents::keyPressEvent(), RecordingSelector::keyPressEvent(), GallerySlideView::keyPressEvent(), ExportNative::keyPressEvent(), MythUITextEdit::keyPressEvent(), ZMPlayer::keyPressEvent(), TrackInfoPopup::keyPressEvent(), FileSelector::keyPressEvent(), VideoSelector::keyPressEvent(), ProgLister::keyPressEvent(), NetTree::keyPressEvent(), ThumbFinder::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), MythScreenType::keyPressEvent(), TransportSetting::keyPressEvent(), VideoDialog::keyPressEvent(), IconView::keyPressEvent(), MythBurn::keyPressEvent(), MythUIProgressDialog::keyPressEvent(), MusicCommon::keyPressEvent(), ProgramRecPriority::keyPressEvent(), MythComboBox::keyPressEvent(), ZMConsole::keyPressEvent(), ImportMusicDialog::keyPressEvent(), StorageGroupDirSetting::keyPressEvent(), EditLyricsDialog::keyPressEvent(), ZMLivePlayer::keyPressEvent(), PlaylistEditorView::keyPressEvent(), SingleView::keyPressEvent(), ScreenSetup::keyPressEvent(), BookmarkManager::keyPressEvent(), SmartPlaylistEditor::keyPressEvent(), ImportNative::keyPressEvent(), RSSEditor::keyPressEvent(), GLSingleView::keyPressEvent(), MythThemedMenu::keyPressEvent(), ChannelEditor::keyPressEvent(), MythWizard::keyPressEvent(), MythSpinBox::keyPressEvent(), MythWebView::keyPressEvent(), MythDialog::keyPressEvent(), Ripper::keyPressEvent(), MythSlider::keyPressEvent(), PlaybackBox::keyPressEvent(), GuideGrid::keyPressEvent(), MythUIWebBrowser::keyPressEvent(), MythLineEdit::keyPressEvent(), MythUIButtonList::keyPressEvent(), EditAlbumartDialog::keyPressEvent(), MythNotificationScreen::keyPressEvent(), MythDialogBox::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), MythPopupBox::keyPressEvent(), MythRemoteLineEdit::keyPressEvent(), RipStatus::keyPressEvent(), MythMusicVolumeDialog::keyPressEvent(), SmartPLResultViewer::keyPressEvent(), MythConfirmationDialog::keyPressEvent(), MythProgressDialog::keyPressEvent(), TrackInfoDialog::keyPressEvent(), OsdNavigation::keyPressEvent(), MythPushButton::keyPressEvent(), MythCheckBox::keyPressEvent(), MythRadioButton::keyPressEvent(), MythListBox::keyPressEvent(), SearchButtonListDialog::keyPressEvent(), StandardSettingDialog::keyPressEvent(), ItemDetailPopup::keyPressEvent(), TV::TranslateGesture(), and TV::TranslateKeyPressOrGesture().

◆ keyLongPressFilter()

bool MythMainWindow::keyLongPressFilter ( QEvent **  e,
QScopedPointer< QEvent > &  sNewEvent 
)

Definition at line 2100 of file mythmainwindow.cpp.

Referenced by eventFilter().

◆ ReloadKeys()

void MythMainWindow::ReloadKeys ( void  )

Definition at line 1335 of file mythmainwindow.cpp.

Referenced by main(), and resetAllKeys().

◆ ClearKey()

void MythMainWindow::ClearKey ( const QString &  context,
const QString &  action 
)

Definition at line 1726 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction().

◆ ClearKeyContext()

void MythMainWindow::ClearKeyContext ( const QString &  context)

Definition at line 1743 of file mythmainwindow.cpp.

Referenced by ReloadKeys(), TV::ReloadKeys(), and ReloadKeys().

◆ BindKey()

void MythMainWindow::BindKey ( const QString &  context,
const QString &  action,
const QString &  key 
)

Definition at line 1750 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction(), and RegisterKey().

◆ RegisterKey()

void MythMainWindow::RegisterKey ( const QString &  context,
const QString &  action,
const QString &  description,
const QString &  key 
)

Definition at line 1782 of file mythmainwindow.cpp.

Referenced by InitKeys().

◆ GetKey()

QString MythMainWindow::GetKey ( const QString &  context,
const QString &  action 
) const

◆ GetActionText()

QString MythMainWindow::GetActionText ( const QString &  context,
const QString &  action 
) const

Definition at line 1873 of file mythmainwindow.cpp.

◆ ClearJump()

void MythMainWindow::ClearJump ( const QString &  destination)

Definition at line 1885 of file mythmainwindow.cpp.

Referenced by ClearAllJumps(), and KeyBindings::CommitJumppoint().

◆ BindJump()

void MythMainWindow::BindJump ( const QString &  destination,
const QString &  key 
)

Definition at line 1906 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitJumppoint(), and RegisterJump().

◆ RegisterJump()

void MythMainWindow::RegisterJump ( const QString &  destination,
const QString &  description,
const QString &  key,
void(*)(void)  callback,
bool  exittomain = true,
QString  localAction = "" 
)

Definition at line 1945 of file mythmainwindow.cpp.

◆ ClearAllJumps()

void MythMainWindow::ClearAllJumps ( )

Definition at line 1990 of file mythmainwindow.cpp.

Referenced by ReloadJumpPoints().

◆ RegisterMediaPlugin()

void MythMainWindow::RegisterMediaPlugin ( const QString &  name,
const QString &  desc,
MediaPlayCallback  fn 
)

Definition at line 2021 of file mythmainwindow.cpp.

◆ HandleMedia()

bool MythMainWindow::HandleMedia ( const QString &  handler,
const QString &  mrl,
const QString &  plot = "",
const QString &  title = "",
const QString &  subtitle = "",
const QString &  director = "",
int  season = 0,
int  episode = 0,
const QString &  inetref = "",
int  lenMins = 120,
const QString &  year = "1895",
const QString &  id = "",
bool  useBookmarks = false 
)

◆ HandleTVPower()

void MythMainWindow::HandleTVPower ( bool  poweron)

Definition at line 2065 of file mythmainwindow.cpp.

Referenced by MythScreenType::keyPressEvent().

◆ JumpTo()

void MythMainWindow::JumpTo ( const QString &  destination,
bool  pop = true 
)

◆ DestinationExists()

bool MythMainWindow::DestinationExists ( const QString &  destination) const

Definition at line 2011 of file mythmainwindow.cpp.

Referenced by main(), and MythThemedMenu::parseThemeButton().

◆ EnumerateDestinations()

QStringList MythMainWindow::EnumerateDestinations ( void  ) const

Definition at line 2016 of file mythmainwindow.cpp.

Referenced by main().

◆ IsExitingToMain()

bool MythMainWindow::IsExitingToMain ( void  ) const

◆ getMainWindow()

MythMainWindow * MythMainWindow::getMainWindow ( const bool  useDB = true)
static

Return the existing main window, or create one.

Parameters
useDBIf this is a temporary window, which is used to bootstrap the database, passing false prevents any database access.
See also
MythContextPrivate::TempMainWindow()

Definition at line 283 of file mythmainwindow.cpp.

Referenced by VideoOutputOpenGLVAAPI::AllowVAAPIDisplay(), VideoOutputOpenGL::CreatePainter(), GetMythMainWindow(), GetMythPainter(), MythDisplay::GetWindowID(), VideoOutputOpenGL::SetupContext(), and MythContextPrivate::TempMainWindow().

◆ destroyMainWindow()

void MythMainWindow::destroyMainWindow ( void  )
static

Definition at line 299 of file mythmainwindow.cpp.

Referenced by DestroyMythMainWindow().

◆ GetCurrentPainter()

MythPainter * MythMainWindow::GetCurrentPainter ( void  )

◆ GetPaintWindow()

QWidget * MythMainWindow::GetPaintWindow ( void  )

◆ GetRenderDevice()

MythRender * MythMainWindow::GetRenderDevice ( )

◆ GetCurrentNotificationCenter()

MythNotificationCenter * MythMainWindow::GetCurrentNotificationCenter ( void  )

Definition at line 592 of file mythmainwindow.cpp.

Referenced by GetNotificationCenter().

◆ ShowPainterWindow()

void MythMainWindow::ShowPainterWindow ( void  )

Definition at line 602 of file mythmainwindow.cpp.

Referenced by Init(), ReinitDone(), SetDrawEnabled(), and TVMenuCallback().

◆ HidePainterWindow()

void MythMainWindow::HidePainterWindow ( void  )

Definition at line 610 of file mythmainwindow.cpp.

Referenced by SetDrawEnabled(), and TVMenuCallback().

◆ ResizePainterWindow()

void MythMainWindow::ResizePainterWindow ( const QSize &  size)

Definition at line 620 of file mythmainwindow.cpp.

Referenced by TV::HandleStateChange(), Init(), TV::Init(), and TV::~TV().

◆ GrabWindow()

void MythMainWindow::GrabWindow ( QImage &  image)

Definition at line 847 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ SaveScreenShot()

bool MythMainWindow::SaveScreenShot ( const QImage &  image,
QString  filename = "" 
)

Definition at line 883 of file mythmainwindow.cpp.

Referenced by MythRenderVDPAU::GetScreenShot(), and ScreenShot().

◆ ScreenShot()

bool MythMainWindow::ScreenShot ( int  w = 0,
int  h = 0,
QString  filename = "" 
)

◆ RemoteScreenShot()

void MythMainWindow::RemoteScreenShot ( QString  filename,
int  x,
int  y 
)

Definition at line 876 of file mythmainwindow.cpp.

Referenced by MythFEXML::GetScreenShot().

◆ AllowInput()

void MythMainWindow::AllowInput ( bool  allow)

◆ GetUIScreenRect()

QRect MythMainWindow::GetUIScreenRect ( void  )

◆ SetUIScreenRect()

void MythMainWindow::SetUIScreenRect ( QRect &  rect)

Definition at line 2886 of file mythmainwindow.cpp.

Referenced by OSD::OverrideUIScale(), and OSD::RevertUIScale().

◆ GetDrawInterval()

int MythMainWindow::GetDrawInterval ( ) const

Definition at line 2891 of file mythmainwindow.cpp.

Referenced by MythUIAnimation::IncrementCurrentTime().

◆ NormalizeFontSize()

int MythMainWindow::NormalizeFontSize ( int  pointSize)

Definition at line 2807 of file mythmainwindow.cpp.

◆ NormRect()

MythRect MythMainWindow::NormRect ( const MythRect rect)

Definition at line 2835 of file mythmainwindow.cpp.

◆ NormPoint()

QPoint MythMainWindow::NormPoint ( const QPoint &  point)

Definition at line 2847 of file mythmainwindow.cpp.

◆ NormSize()

QSize MythMainWindow::NormSize ( const QSize &  size)

Definition at line 2856 of file mythmainwindow.cpp.

Referenced by XMLParseBase::parseSize().

◆ NormX()

int MythMainWindow::NormX ( const int  x)

◆ NormY()

int MythMainWindow::NormY ( const int  y)

◆ SetScalingFactors()

void MythMainWindow::SetScalingFactors ( float  wmult,
float  hmult 
)

Definition at line 2875 of file mythmainwindow.cpp.

Referenced by OSD::OverrideUIScale(), and OSD::RevertUIScale().

◆ StartLIRC()

void MythMainWindow::StartLIRC ( void  )

Definition at line 2896 of file mythmainwindow.cpp.

Referenced by handleSIGUSR2(), MythMainWindow(), and MonitorThread::run().

◆ attach()

void MythMainWindow::attach ( QWidget *  child)

Definition at line 1387 of file mythmainwindow.cpp.

Referenced by MythDialog::MythDialog(), and GalleryUtil::PlayVideo().

◆ detach()

void MythMainWindow::detach ( QWidget *  child)

Definition at line 1439 of file mythmainwindow.cpp.

Referenced by GalleryUtil::PlayVideo(), and MythDialog::TeardownAll().

◆ currentWidget()

QWidget * MythMainWindow::currentWidget ( void  )

◆ PushDrawDisabled()

uint MythMainWindow::PushDrawDisabled ( void  )

Definition at line 1496 of file mythmainwindow.cpp.

Referenced by customEvent(), TV::customEvent(), and TV::HandleStateChange().

◆ PopDrawDisabled()

uint MythMainWindow::PopDrawDisabled ( void  )

Definition at line 1505 of file mythmainwindow.cpp.

Referenced by customEvent(), TV::DoEditSchedule(), and TV::~TV().

◆ SetEffectsEnabled()

void MythMainWindow::SetEffectsEnabled ( bool  enable)

Definition at line 1545 of file mythmainwindow.cpp.

Referenced by main(), and reloadTheme().

◆ draw()

void MythMainWindow::draw ( MythPainter painter = nullptr)

Definition at line 782 of file mythmainwindow.cpp.

Referenced by drawScreen(), and VideoOutputOpenGL::PrepareFrame().

◆ ResetIdleTimer()

void MythMainWindow::ResetIdleTimer ( void  )

Definition at line 2966 of file mythmainwindow.cpp.

Referenced by eventFilter().

◆ PauseIdleTimer()

void MythMainWindow::PauseIdleTimer ( bool  pause)

◆ DisableIdleTimer()

void MythMainWindow::DisableIdleTimer ( bool  disableIdle = true)

Definition at line 3094 of file mythmainwindow.cpp.

Referenced by main().

◆ EnterStandby()

void MythMainWindow::EnterStandby ( bool  manual = true)

Definition at line 3026 of file mythmainwindow.cpp.

Referenced by IdleScreen::IdleScreen(), and IdleTimeout().

◆ ExitStandby()

void MythMainWindow::ExitStandby ( bool  manual = true)

Definition at line 3064 of file mythmainwindow.cpp.

Referenced by ResetIdleTimer(), and IdleScreen::~IdleScreen().

◆ paintEngine()

QPaintEngine * MythMainWindow::paintEngine ( ) const
override

Definition at line 825 of file mythmainwindow.cpp.

◆ mouseTimeout

void MythMainWindow::mouseTimeout ( void  )
slot

Definition at line 2080 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ HideMouseTimeout

void MythMainWindow::HideMouseTimeout ( void  )
slot

Definition at line 2961 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ IdleTimeout

void MythMainWindow::IdleTimeout ( void  )
slot

Definition at line 3005 of file mythmainwindow.cpp.

Referenced by MythMainWindow(), and ExitPrompter::standby().

◆ animate

void MythMainWindow::animate ( void  )
protectedslot

Definition at line 678 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ doRemoteScreenShot

void MythMainWindow::doRemoteScreenShot ( QString  filename,
int  x,
int  y 
)
protectedslot

Definition at line 864 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ SetDrawEnabled

void MythMainWindow::SetDrawEnabled ( bool  enable)
protectedslot

Definition at line 1517 of file mythmainwindow.cpp.

Referenced by MythMainWindow(), PopDrawDisabled(), and PushDrawDisabled().

◆ signalRemoteScreenShot

void MythMainWindow::signalRemoteScreenShot ( QString  filename,
int  x,
int  y 
)
signal

Referenced by MythMainWindow(), and RemoteScreenShot().

◆ signalSetDrawEnabled

void MythMainWindow::signalSetDrawEnabled ( bool  enable)
signal

Referenced by MythMainWindow(), and SetDrawEnabled().

◆ InitKeys()

void MythMainWindow::InitKeys ( void  )
protected

Definition at line 1174 of file mythmainwindow.cpp.

Referenced by MythMainWindow(), and ReloadKeys().

◆ eventFilter()

bool MythMainWindow::eventFilter ( QObject *  o,
QEvent *  e 
)
overrideprotected

Definition at line 2202 of file mythmainwindow.cpp.

◆ customEvent()

void MythMainWindow::customEvent ( QEvent *  ce)
overrideprotected

Definition at line 2484 of file mythmainwindow.cpp.

◆ closeEvent()

void MythMainWindow::closeEvent ( QCloseEvent *  e)
overrideprotected

Definition at line 834 of file mythmainwindow.cpp.

◆ drawScreen()

void MythMainWindow::drawScreen ( void  )
protected

◆ event()

bool MythMainWindow::event ( QEvent *  e)
overrideprotected

Definition at line 925 of file mythmainwindow.cpp.

◆ ExitToMainMenu()

void MythMainWindow::ExitToMainMenu ( void  )
protected

Definition at line 1562 of file mythmainwindow.cpp.

Referenced by customEvent().

◆ getTarget()

QObject * MythMainWindow::getTarget ( QKeyEvent &  key)
protected

Definition at line 2778 of file mythmainwindow.cpp.

Referenced by customEvent(), eventFilter(), and ExitToMainMenu().

◆ LockInputDevices()

void MythMainWindow::LockInputDevices ( bool  locked)
protected

Definition at line 2931 of file mythmainwindow.cpp.

Referenced by customEvent().

◆ ShowMouseCursor()

void MythMainWindow::ShowMouseCursor ( bool  show)
protected

Definition at line 2947 of file mythmainwindow.cpp.

Referenced by eventFilter(), HideMouseTimeout(), and Init().

◆ DelayedAction

void MythMainWindow::DelayedAction ( void  )
privateslot

Definition at line 1168 of file mythmainwindow.cpp.

Referenced by Init().

Friends And Related Function Documentation

◆ MythPainterWindowGL

friend class MythPainterWindowGL
friend

Definition at line 35 of file mythmainwindow.h.

Referenced by Init().

◆ MythPainterWindowQt

friend class MythPainterWindowQt
friend

Definition at line 36 of file mythmainwindow.h.

Referenced by Init().

◆ MythPainterWindowVDPAU

friend class MythPainterWindowVDPAU
friend

Definition at line 37 of file mythmainwindow.h.

◆ MythPainterWindowD3D9

friend class MythPainterWindowD3D9
friend

Definition at line 38 of file mythmainwindow.h.

Referenced by Init().

Member Data Documentation

◆ d

MythMainWindowPrivate* MythMainWindow::d
protected

The documentation for this class was generated from the following files: