MythTV  master
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Private Slots | Private Attributes | 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 Slots

void MouseTimeout ()
 
void HideMouseTimeout ()
 
void IdleTimeout ()
 

Signals

void SignalRemoteScreenShot (QString Filename, int Width, int Height)
 
void SignalSetDrawEnabled (bool Enable)
 
void SignalWindowReady ()
 
void SignalRestoreScreensaver ()
 
void SignalDisableScreensaver ()
 
void SignalResetScreensaver ()
 
- Signals inherited from MythUIScreenBounds
void UIScreenRectChanged (const QRect &Rect)
 

Public Member Functions

void Init (bool MayReInit=true)
 
void Show ()
 
void MoveResize (QRect &Geometry)
 
void AddScreenStack (MythScreenStack *Stack, bool Main=false)
 
void PopScreenStack ()
 
int GetStackCount ()
 
MythScreenStackGetMainStack ()
 
MythScreenStackGetStack (const QString &Stackname)
 
MythScreenStackGetStackAt (int Position)
 
bool TranslateKeyPress (const QString &Context, QKeyEvent *Event, QStringList &Actions, bool AllowJumps=true)
 Get a list of actions for a keypress in the given context. More...
 
bool KeyLongPressFilter (QEvent **Event, QScopedPointer< QEvent > &NewEvent)
 
void ReloadKeys ()
 
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)
 
QObject * GetTarget (QKeyEvent &Key)
 
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 Func)
 
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="", std::chrono::minutes LenMins=2h, const QString &Year="1895", const QString &Id="", bool UseBookmarks=false)
 
void HandleTVAction (const QString &Action)
 
void JumpTo (const QString &Destination, bool Pop=true)
 
bool DestinationExists (const QString &Destination) const
 
QStringList EnumerateDestinations () const
 
bool IsExitingToMain () const
 
MythDisplayGetDisplay ()
 
MythPainterGetPainter ()
 
QWidget * GetPaintWindow ()
 
MythRenderGetRenderDevice ()
 
MythNotificationCenterGetCurrentNotificationCenter ()
 
void ShowPainterWindow ()
 
void HidePainterWindow ()
 
void RemoteScreenShot (QString Filename, int Width, int Height)
 
void AllowInput (bool Allow)
 
void RestartInputHandlers ()
 
uint PushDrawDisabled ()
 
uint PopDrawDisabled ()
 
void SetEffectsEnabled (bool Enable)
 
void Draw (MythPainter *Painter=nullptr)
 
void ResetIdleTimer ()
 Reset the idle timeout timer. More...
 
void PauseIdleTimer (bool Pause)
 Pause the idle timeout timer. More...
 
void DisableIdleTimer (bool DisableIdle=true)
 Disable the idle timeout timer. More...
 
void EnterStandby (bool Manual=true)
 
void ExitStandby (bool Manual=true)
 
QPaintEngine * paintEngine () const override
 
- Public Member Functions inherited from MythUIScreenBounds
void UpdateScreenSettings (MythDisplay *mDisplay)
 
QRect GetUIScreenRect ()
 
void SetUIScreenRect (QRect Rect)
 
QRect GetScreenRect ()
 
QSize NormSize (QSize Size) const
 
int NormX (int X) const
 
int NormY (int Y) const
 
void GetScalingFactors (float &Horizontal, float &Vertical) const
 
void SetScalingFactors (float Horizontal, float Vertical)
 
QSize GetThemeSize ()
 
int GetFontStretch () const
 
void SetFontStretch (int Stretch)
 

Static Public Member Functions

static QString GetKey (const QString &Context, const QString &Action)
 
static MythMainWindowgetMainWindow (bool UseDB=true)
 Return the existing main window, or create one. More...
 
static void destroyMainWindow ()
 
static void GrabWindow (QImage &Image)
 
static bool SaveScreenShot (const QImage &Image, QString Filename="")
 
static bool ScreenShot (int Width=0, int Height=0, QString Filename="")
 
static void RestoreScreensaver ()
 
static void DisableScreensaver ()
 
static void ResetScreensaver ()
 
static bool IsScreensaverAsleep ()
 
static bool IsTopScreenInitialized ()
 
- Static Public Member Functions inherited from MythUIScreenBounds
static bool GeometryIsOverridden ()
 
static void ParseGeometryOverride (const QString &Geometry)
 Parse an X11 style command line geometry string. More...
 
static QRect GetGeometryOverride ()
 
static bool WindowIsAlwaysFullscreen ()
 Return true if the current platform only supports fullscreen windows. More...
 

Protected Slots

void Animate ()
 
void DoRemoteScreenShot (const QString &Filename, int Width, int Height)
 
void SetDrawEnabled (bool Enable)
 
void OnApplicationStateChange (Qt::ApplicationState State)
 

Protected Member Functions

 MythMainWindow (bool UseDB=true)
 
 ~MythMainWindow () override
 
void InitKeys ()
 
bool eventFilter (QObject *Watched, QEvent *Event) override
 
void customEvent (QEvent *Event) override
 
void closeEvent (QCloseEvent *Event) override
 
void drawScreen (QPaintEvent *Event=nullptr)
 
bool event (QEvent *Event) override
 
void ExitToMainMenu ()
 
void ShowMouseCursor (bool Show)
 
- Protected Member Functions inherited from MythUIScreenBounds
 MythUIScreenBounds ()
 
void InitScreenBounds ()
 

Static Protected Member Functions

static void LoadQtConfig ()
 

Private Slots

void DelayedAction ()
 

Private Attributes

MythMainWindowPrivatem_priv { nullptr }
 
MythDisplaym_display { nullptr }
 
QRegion m_repaintRegion
 
QTimer m_refreshTimer
 
MythThemeBasem_themeBase { nullptr }
 
MythPainterm_painter { nullptr }
 
MythPainterWindowm_painterWin { nullptr }
 
MythInputDeviceHandlerm_deviceHandler { nullptr }
 
MythScreenSaverControlm_screensaver { nullptr }
 
QTimer m_idleTimer
 
std::chrono::minutes m_idleTime { 0min }
 

Friends

class MythPainterWindowOpenGL
 
class MythPainterWindowVulkan
 
class MythPainterWindowQt
 

Additional Inherited Members

- Protected Attributes inherited from MythUIScreenBounds
QSize m_themeSize { 1920, 1080 }
 
QRect m_uiScreenRect { 0, 0, 1920, 1080 }
 
QRect m_screenRect { 0, 0, 1920, 1080 }
 
float m_screenHorizScale { 1.0 }
 
float m_screenVertScale { 1.0 }
 
bool m_wantWindow { false }
 
bool m_wantFullScreen { true }
 
bool m_qtFullScreen { false }
 
bool m_alwaysOnTop { false }
 
int m_fontStretch { 100 }
 

Detailed Description

Definition at line 35 of file mythmainwindow.h.

Constructor & Destructor Documentation

◆ MythMainWindow()

MythMainWindow::MythMainWindow ( bool  UseDB = true)
explicitprotected

Definition at line 128 of file mythmainwindow.cpp.

Referenced by getMainWindow().

◆ ~MythMainWindow()

MythMainWindow::~MythMainWindow ( )
overrideprotected

Definition at line 207 of file mythmainwindow.cpp.

Member Function Documentation

◆ Init()

void MythMainWindow::Init ( bool  MayReInit = true)

◆ Show()

void MythMainWindow::Show ( )

◆ MoveResize()

void MythMainWindow::MoveResize ( QRect &  Geometry)

◆ AddScreenStack()

void MythMainWindow::AddScreenStack ( MythScreenStack Stack,
bool  Main = false 
)

Definition at line 293 of file mythmainwindow.cpp.

Referenced by MythScreenStack::MythScreenStack().

◆ PopScreenStack()

void MythMainWindow::PopScreenStack ( )

Definition at line 300 of file mythmainwindow.cpp.

Referenced by Weather::~Weather().

◆ GetStackCount()

int MythMainWindow::GetStackCount ( )

Definition at line 309 of file mythmainwindow.cpp.

Referenced by MythUIWebBrowser::Init().

◆ GetMainStack()

MythScreenStack * MythMainWindow::GetMainStack ( )

Definition at line 314 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(), MythUILocation::GetCurrentLocation(), SchemaUpgradeWizard::GuiPrompt(), MythBurn::handleAddFile(), ExportNative::handleAddRecording(), MythBurn::handleAddRecording(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), SelectDestination::handleFind(), handleGalleryMedia(), handleMedia(), DVDThemeSelector::handleNextPage(), SelectDestination::handleNextPage(), MythContextPrivate::Init(), TV::Init(), internal_play_media(), 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(), AudioTest::prepareTest(), NetworkControl::processTheme(), LanguageSelection::prompt(), BackendSelection::Prompt(), MythContextPrivate::PromptForDatabaseParams(), ManualSchedule::recordClicked(), CustomEdit::recordClicked(), PhrasePopup::recordClicked(), PowerSearchPopup::recordClicked(), ChannelEditor::restoreData(), 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(), MediaMonitor::selectDrivePopup(), 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 319 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(), ExitPrompter::Confirm(), 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(), MythUILocation::GetCurrentLocation(), MythControls::GrabKey(), ExitPrompter::HandleExit(), handleMedia(), 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(), FileAssocDialog::OnNewExtensionPressed(), MythWebView::openBusyPopup(), MythScreenType::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(), LyricsView::ShowMenu(), SearchView::ShowMenu(), StreamView::ShowMenu(), ViewScheduled::ShowMenu(), LogViewer::ShowMenu(), PrevRecordedList::ShowMenu(), WelcomeDialog::ShowMenu(), MythNews::ShowMenu(), ChannelRecPriority::ShowMenu(), RecordingSelector::ShowMenu(), ThumbFinder::ShowMenu(), ExportNative::ShowMenu(), VideoSelector::ShowMenu(), ProgFinder::ShowMenu(), ZMEvents::ShowMenu(), MusicCommon::ShowMenu(), ZMLivePlayer::ShowMenu(), PlaylistEditorView::ShowMenu(), MythBurn::ShowMenu(), ProgLister::ShowMenu(), ImportMusicDialog::ShowMenu(), EditMetadataDialog::showMenu(), ProgramRecPriority::showMenu(), Ripper::ShowMenu(), MythControls::ShowMenu(), EditAlbumartDialog::showMenu(), ScheduleEditor::showMenu(), GuideGrid::ShowMenu(), StandardSettingDialog::ShowMenu(), ZMClient::showMiniPlayer(), MusicPlayer::showMiniPlayer(), StorageGroupListEditor::ShowNewGroupDialog(), ChannelGroupsSetting::ShowNewGroupDialog(), RecordingProfileEditor::ShowNewProfileDialog(), ShowOkPopup(), PlaybackSettingsDialog::ShowPlaybackProfileMenu(), MusicCommon::showPlaylistOptionsMenu(), ThemeChooser::showPopupMenu(), GuideGrid::ShowRecordingMenu(), ChannelImporter::ShowResolveChannelPopup(), 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  Position)

Definition at line 327 of file mythmainwindow.cpp.

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

◆ TranslateKeyPress()

bool MythMainWindow::TranslateKeyPress ( const QString &  Context,
QKeyEvent *  Event,
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.
EventThe 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 1102 of file mythmainwindow.cpp.

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

◆ KeyLongPressFilter()

bool MythMainWindow::KeyLongPressFilter ( QEvent **  Event,
QScopedPointer< QEvent > &  NewEvent 
)

Definition at line 1535 of file mythmainwindow.cpp.

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

◆ ReloadKeys()

void MythMainWindow::ReloadKeys ( )

Definition at line 944 of file mythmainwindow.cpp.

Referenced by main(), ReloadKeys(), and resetAllKeys().

◆ ClearKey()

void MythMainWindow::ClearKey ( const QString &  Context,
const QString &  Action 
)

Definition at line 1176 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction().

◆ ClearKeyContext()

void MythMainWindow::ClearKeyContext ( const QString &  Context)

Definition at line 1193 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 1200 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 1238 of file mythmainwindow.cpp.

Referenced by InitKeys().

◆ GetKey()

QString MythMainWindow::GetKey ( const QString &  Context,
const QString &  Action 
)
static

◆ GetTarget()

QObject * MythMainWindow::GetTarget ( QKeyEvent &  Key)

◆ GetActionText()

QString MythMainWindow::GetActionText ( const QString &  Context,
const QString &  Action 
) const

Definition at line 1328 of file mythmainwindow.cpp.

Referenced by TV::MenuItemDisplayCutlist(), and TV::MenuItemDisplayPlayback().

◆ ClearJump()

void MythMainWindow::ClearJump ( const QString &  Destination)

Definition at line 1340 of file mythmainwindow.cpp.

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

◆ BindJump()

void MythMainWindow::BindJump ( const QString &  Destination,
const QString &  Key 
)

Definition at line 1360 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 1401 of file mythmainwindow.cpp.

◆ ClearAllJumps()

void MythMainWindow::ClearAllJumps ( )

Definition at line 1438 of file mythmainwindow.cpp.

Referenced by ReloadJumpPoints().

◆ RegisterMediaPlugin()

void MythMainWindow::RegisterMediaPlugin ( const QString &  Name,
const QString &  Desc,
MediaPlayCallback  Func 
)

Definition at line 1469 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 = "",
std::chrono::minutes  LenMins = 2h,
const QString &  Year = "1895",
const QString &  Id = "",
bool  UseBookmarks = false 
)

◆ HandleTVAction()

void MythMainWindow::HandleTVAction ( const QString &  Action)

Definition at line 1510 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 1459 of file mythmainwindow.cpp.

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

◆ EnumerateDestinations()

QStringList MythMainWindow::EnumerateDestinations ( ) const

Definition at line 1464 of file mythmainwindow.cpp.

Referenced by main().

◆ IsExitingToMain()

bool MythMainWindow::IsExitingToMain ( ) const

◆ getMainWindow()

MythMainWindow * MythMainWindow::getMainWindow ( 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 77 of file mythmainwindow.cpp.

Referenced by GetMythMainWindow(), GetMythPainter(), MythRenderOpenGL::GetOpenGLRender(), MythDisplayOSX::GetVideoModes(), MythRenderVulkan::GetVulkanRender(), MythDisplayOSX::SwitchToVideoMode(), MythContextPrivate::TempMainWindow(), MythDisplayWindows::UpdateCurrentMode(), and MythDisplayOSX::UpdateCurrentMode().

◆ destroyMainWindow()

void MythMainWindow::destroyMainWindow ( )
static

Definition at line 93 of file mythmainwindow.cpp.

Referenced by DestroyMythMainWindow().

◆ GetDisplay()

MythDisplay * MythMainWindow::GetDisplay ( )

◆ GetPainter()

MythPainter * MythMainWindow::GetPainter ( )

◆ GetPaintWindow()

QWidget * MythMainWindow::GetPaintWindow ( )

◆ GetRenderDevice()

MythRender * MythMainWindow::GetRenderDevice ( )

◆ GetCurrentNotificationCenter()

MythNotificationCenter * MythMainWindow::GetCurrentNotificationCenter ( )

◆ ShowPainterWindow()

void MythMainWindow::ShowPainterWindow ( )

Definition at line 269 of file mythmainwindow.cpp.

Referenced by Init(), and SetDrawEnabled().

◆ HidePainterWindow()

void MythMainWindow::HidePainterWindow ( )

Definition at line 278 of file mythmainwindow.cpp.

Referenced by SetDrawEnabled().

◆ GrabWindow()

void MythMainWindow::GrabWindow ( QImage &  Image)
static

Definition at line 486 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ SaveScreenShot()

bool MythMainWindow::SaveScreenShot ( const QImage &  Image,
QString  Filename = "" 
)
static

Definition at line 533 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ ScreenShot()

bool MythMainWindow::ScreenShot ( int  Width = 0,
int  Height = 0,
QString  Filename = "" 
)
static

◆ RestoreScreensaver()

void MythMainWindow::RestoreScreensaver ( )
static

◆ DisableScreensaver()

void MythMainWindow::DisableScreensaver ( )
static

◆ ResetScreensaver()

void MythMainWindow::ResetScreensaver ( )
static

◆ IsScreensaverAsleep()

bool MythMainWindow::IsScreensaverAsleep ( )
static

Definition at line 591 of file mythmainwindow.cpp.

Referenced by MythInputDeviceHandler::customEvent().

◆ IsTopScreenInitialized()

bool MythMainWindow::IsTopScreenInitialized ( )
static

Definition at line 602 of file mythmainwindow.cpp.

Referenced by Frontend::PlayRecording(), and NetworkControl::processPlay().

◆ RemoteScreenShot()

void MythMainWindow::RemoteScreenShot ( QString  Filename,
int  Width,
int  Height 
)

Definition at line 526 of file mythmainwindow.cpp.

Referenced by MythFEXML::GetScreenShot().

◆ AllowInput()

void MythMainWindow::AllowInput ( bool  Allow)

◆ RestartInputHandlers()

void MythMainWindow::RestartInputHandlers ( )

Definition at line 2061 of file mythmainwindow.cpp.

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

◆ PushDrawDisabled()

uint MythMainWindow::PushDrawDisabled ( )

◆ PopDrawDisabled()

uint MythMainWindow::PopDrawDisabled ( )

◆ SetEffectsEnabled()

void MythMainWindow::SetEffectsEnabled ( bool  Enable)

Definition at line 1019 of file mythmainwindow.cpp.

Referenced by main(), and reloadTheme().

◆ Draw()

void MythMainWindow::Draw ( MythPainter Painter = nullptr)

Definition at line 432 of file mythmainwindow.cpp.

Referenced by drawScreen(), and MythVideoOutputGPU::RenderFrame().

◆ ResetIdleTimer()

void MythMainWindow::ResetIdleTimer ( )

Reset the idle timeout timer.

Note
This should only be called from the main thread.

Definition at line 2096 of file mythmainwindow.cpp.

Referenced by eventFilter().

◆ PauseIdleTimer()

void MythMainWindow::PauseIdleTimer ( bool  Pause)

◆ DisableIdleTimer()

void MythMainWindow::DisableIdleTimer ( bool  DisableIdle = true)

Disable the idle timeout timer.

Note
This should only be called from the main thread.

Definition at line 2085 of file mythmainwindow.cpp.

Referenced by main().

◆ EnterStandby()

void MythMainWindow::EnterStandby ( bool  Manual = true)

Definition at line 2156 of file mythmainwindow.cpp.

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

◆ ExitStandby()

void MythMainWindow::ExitStandby ( bool  Manual = true)

Definition at line 2191 of file mythmainwindow.cpp.

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

◆ paintEngine()

QPaintEngine * MythMainWindow::paintEngine ( ) const
override

Definition at line 468 of file mythmainwindow.cpp.

Referenced by MythPainterWindowOpenGL::paintEngine().

◆ MouseTimeout

void MythMainWindow::MouseTimeout ( )
slot

Definition at line 1520 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ HideMouseTimeout

void MythMainWindow::HideMouseTimeout ( )
slot

Definition at line 2077 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ IdleTimeout

void MythMainWindow::IdleTimeout ( )
slot

Definition at line 2136 of file mythmainwindow.cpp.

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

◆ Animate

void MythMainWindow::Animate ( )
protectedslot

Definition at line 334 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ DoRemoteScreenShot

void MythMainWindow::DoRemoteScreenShot ( const QString &  Filename,
int  Width,
int  Height 
)
protectedslot

Definition at line 515 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ SetDrawEnabled

void MythMainWindow::SetDrawEnabled ( bool  Enable)
protectedslot

Definition at line 995 of file mythmainwindow.cpp.

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

◆ OnApplicationStateChange

void MythMainWindow::OnApplicationStateChange ( Qt::ApplicationState  State)
protectedslot

Definition at line 2218 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ SignalRemoteScreenShot

void MythMainWindow::SignalRemoteScreenShot ( QString  Filename,
int  Width,
int  Height 
)
signal

Referenced by MythMainWindow(), and RemoteScreenShot().

◆ SignalSetDrawEnabled

void MythMainWindow::SignalSetDrawEnabled ( bool  Enable)
signal

Referenced by MythMainWindow(), and SetDrawEnabled().

◆ SignalWindowReady

void MythMainWindow::SignalWindowReady ( )
signal

◆ SignalRestoreScreensaver

void MythMainWindow::SignalRestoreScreensaver ( )
signal

◆ SignalDisableScreensaver

void MythMainWindow::SignalDisableScreensaver ( )
signal

◆ SignalResetScreensaver

void MythMainWindow::SignalResetScreensaver ( )
signal

Referenced by MythMainWindow(), and ResetScreensaver().

◆ LoadQtConfig()

void MythMainWindow::LoadQtConfig ( )
staticprotected

Definition at line 630 of file mythmainwindow.cpp.

Referenced by Init().

◆ InitKeys()

void MythMainWindow::InitKeys ( )
protected

Definition at line 783 of file mythmainwindow.cpp.

Referenced by MythMainWindow(), and ReloadKeys().

◆ eventFilter()

bool MythMainWindow::eventFilter ( QObject *  Watched,
QEvent *  Event 
)
overrideprotected

Definition at line 1633 of file mythmainwindow.cpp.

◆ customEvent()

void MythMainWindow::customEvent ( QEvent *  Event)
overrideprotected

Definition at line 1854 of file mythmainwindow.cpp.

◆ closeEvent()

void MythMainWindow::closeEvent ( QCloseEvent *  Event)
overrideprotected

Definition at line 473 of file mythmainwindow.cpp.

◆ drawScreen()

void MythMainWindow::drawScreen ( QPaintEvent *  Event = nullptr)
protected

◆ event()

bool MythMainWindow::event ( QEvent *  Event)
overrideprotected

Definition at line 609 of file mythmainwindow.cpp.

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

◆ ExitToMainMenu()

void MythMainWindow::ExitToMainMenu ( )
protected

Definition at line 1035 of file mythmainwindow.cpp.

Referenced by customEvent().

◆ ShowMouseCursor()

void MythMainWindow::ShowMouseCursor ( bool  Show)
protected

Definition at line 2066 of file mythmainwindow.cpp.

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

◆ DelayedAction

void MythMainWindow::DelayedAction ( )
privateslot

Definition at line 773 of file mythmainwindow.cpp.

Referenced by Init().

Friends And Related Function Documentation

◆ MythPainterWindowOpenGL

friend class MythPainterWindowOpenGL
friend

Definition at line 39 of file mythmainwindow.h.

◆ MythPainterWindowVulkan

friend class MythPainterWindowVulkan
friend

Definition at line 40 of file mythmainwindow.h.

◆ MythPainterWindowQt

friend class MythPainterWindowQt
friend

Definition at line 41 of file mythmainwindow.h.

Member Data Documentation

◆ m_priv

MythMainWindowPrivate* MythMainWindow::m_priv { nullptr }
private

◆ m_display

MythDisplay* MythMainWindow::m_display { nullptr }
private

Definition at line 163 of file mythmainwindow.h.

Referenced by GetDisplay(), Init(), MythMainWindow(), and ~MythMainWindow().

◆ m_repaintRegion

QRegion MythMainWindow::m_repaintRegion
private

Definition at line 164 of file mythmainwindow.h.

Referenced by Animate(), Draw(), and drawScreen().

◆ m_refreshTimer

QTimer MythMainWindow::m_refreshTimer
private

Definition at line 165 of file mythmainwindow.h.

Referenced by MythMainWindow().

◆ m_themeBase

MythThemeBase* MythMainWindow::m_themeBase { nullptr }
private

Definition at line 166 of file mythmainwindow.h.

Referenced by Init(), and ~MythMainWindow().

◆ m_painter

MythPainter* MythMainWindow::m_painter { nullptr }
private

Definition at line 167 of file mythmainwindow.h.

Referenced by Draw(), drawScreen(), GetPainter(), Init(), and ~MythMainWindow().

◆ m_painterWin

MythPainterWindow* MythMainWindow::m_painterWin { nullptr }
private

◆ m_deviceHandler

MythInputDeviceHandler* MythMainWindow::m_deviceHandler { nullptr }
private

◆ m_screensaver

MythScreenSaverControl* MythMainWindow::m_screensaver { nullptr }
private

Definition at line 170 of file mythmainwindow.h.

Referenced by IsScreensaverAsleep(), MythMainWindow(), and ~MythMainWindow().

◆ m_idleTimer

QTimer MythMainWindow::m_idleTimer
private

◆ m_idleTime

std::chrono::minutes MythMainWindow::m_idleTime { 0min }
private

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