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 <libmythui/mythmainwindow.h>

Inheritance diagram for MythMainWindow:
[legend]
Collaboration diagram for MythMainWindow:
[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 }
 
bool m_forceFullScreen { false }
 

Detailed Description

Definition at line 28 of file mythmainwindow.h.

Constructor & Destructor Documentation

◆ MythMainWindow()

MythMainWindow::MythMainWindow ( bool  UseDB = true)
explicitprotected

Definition at line 131 of file mythmainwindow.cpp.

Referenced by getMainWindow().

◆ ~MythMainWindow()

MythMainWindow::~MythMainWindow ( )
overrideprotected

Definition at line 209 of file mythmainwindow.cpp.

Member Function Documentation

◆ AddScreenStack()

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

Definition at line 296 of file mythmainwindow.cpp.

Referenced by MythScreenStack::MythScreenStack().

◆ AllowInput()

void MythMainWindow::AllowInput ( bool  Allow)

◆ Animate

void MythMainWindow::Animate ( void  )
protectedslot

Definition at line 337 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ BindJump()

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

Definition at line 1375 of file mythmainwindow.cpp.

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

◆ BindKey()

void MythMainWindow::BindKey ( const QString &  Context,
const QString &  Action,
const QString &  Key 
)

Definition at line 1215 of file mythmainwindow.cpp.

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

◆ ClearAllJumps()

void MythMainWindow::ClearAllJumps ( )

Definition at line 1453 of file mythmainwindow.cpp.

Referenced by ReloadJumpPoints().

◆ ClearJump()

void MythMainWindow::ClearJump ( const QString &  Destination)

Definition at line 1355 of file mythmainwindow.cpp.

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

◆ ClearKey()

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

Definition at line 1191 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction().

◆ ClearKeyContext()

void MythMainWindow::ClearKeyContext ( const QString &  Context)

Definition at line 1208 of file mythmainwindow.cpp.

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

◆ closeEvent()

void MythMainWindow::closeEvent ( QCloseEvent *  Event)
overrideprotected

Definition at line 476 of file mythmainwindow.cpp.

◆ customEvent()

void MythMainWindow::customEvent ( QEvent *  Event)
overrideprotected

Definition at line 1898 of file mythmainwindow.cpp.

◆ DelayedAction

void MythMainWindow::DelayedAction ( )
privateslot

Definition at line 778 of file mythmainwindow.cpp.

Referenced by Init().

◆ DestinationExists()

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

Definition at line 1474 of file mythmainwindow.cpp.

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

◆ destroyMainWindow()

void MythMainWindow::destroyMainWindow ( void  )
static

Definition at line 96 of file mythmainwindow.cpp.

Referenced by DestroyMythMainWindow().

◆ 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 2129 of file mythmainwindow.cpp.

Referenced by main().

◆ DisableScreensaver()

void MythMainWindow::DisableScreensaver ( )
static

◆ DoRemoteScreenShot

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

Definition at line 518 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ Draw()

void MythMainWindow::Draw ( MythPainter Painter = nullptr)

Definition at line 435 of file mythmainwindow.cpp.

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

◆ drawScreen()

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

◆ EnterStandby()

void MythMainWindow::EnterStandby ( bool  Manual = true)

Definition at line 2201 of file mythmainwindow.cpp.

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

◆ EnumerateDestinations()

QStringList MythMainWindow::EnumerateDestinations ( ) const

Definition at line 1479 of file mythmainwindow.cpp.

Referenced by main().

◆ event()

bool MythMainWindow::event ( QEvent *  Event)
overrideprotected

Definition at line 612 of file mythmainwindow.cpp.

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

◆ eventFilter()

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

Definition at line 1648 of file mythmainwindow.cpp.

◆ ExitStandby()

void MythMainWindow::ExitStandby ( bool  Manual = true)

Definition at line 2236 of file mythmainwindow.cpp.

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

◆ ExitToMainMenu()

void MythMainWindow::ExitToMainMenu ( void  )
protected

Definition at line 1048 of file mythmainwindow.cpp.

Referenced by customEvent().

◆ GetActionText()

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

Definition at line 1343 of file mythmainwindow.cpp.

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

◆ GetCurrentNotificationCenter()

MythNotificationCenter * MythMainWindow::GetCurrentNotificationCenter ( void  )

◆ GetDisplay()

MythDisplay * MythMainWindow::GetDisplay ( void  )

◆ GetKey()

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

◆ GetMainStack()

MythScreenStack * MythMainWindow::GetMainStack ( )

Definition at line 317 of file mythmainwindow.cpp.

Referenced by MythThemedMenu::aboutScreen(), CardInput::channelScanner(), PlaylistEditorView::customEvent(), StreamView::customEvent(), customEvent(), ChannelEditor::customEvent(), VideoDialog::DoItemDetailShow(), ScreenSetup::doLocationDialog(), ProgramRecPriority::edit(), ChannelEditor::edit(), ScheduleCommon::EditCustom(), MythBurn::editDetails(), LyricsView::editLyrics(), ScheduleCommon::EditScheduled(), StreamView::editStream(), MythBurn::editThumbnails(), MusicCommon::editTrackInfo(), MythContext::Impl::EndTempWindow(), ExitToMainMenu(), GameCallback(), MythUILocation::GetCurrentLocation(), SchemaUpgradeWizard::GuiPrompt(), MythBurn::handleAddFile(), ExportNative::handleAddRecording(), MythBurn::handleAddRecording(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), SelectDestination::handleFind(), handleGalleryMedia(), handleMedia(), SelectDestination::handleNextPage(), DVDThemeSelector::handleNextPage(), TV::Init(), MythContext::Impl::Init(), internal_play_media(), IsTopScreenInitialized(), MythThemedMenu::keyPressEvent(), PlaylistEditorView::keyPressEvent(), main(), ScheduleCommon::MakeOverride(), ChannelScannerGUI::MonitorProgress(), MusicCallback(), mythplugin_config(), mythplugin_run(), ProgramRecPriority::newTemplate(), ArchiveFileSelector::nextPressed(), anonymous_namespace{mythfrontend.cpp}::RunSettingsCompletion::OnPasswordResultReady(), ZMEvents::playPressed(), MythNotificationScreenStack::PopScreen(), MythScreenStack::PopScreen(), AudioTest::prepareTest(), NetworkControl::processTheme(), LanguageSelection::prompt(), BackendSelection::Prompt(), MythContext::Impl::PromptForDatabaseParams(), CustomEdit::recordClicked(), ManualSchedule::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(), ProgLister::RunProgramList(), 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(), BookmarkManager::ShowEditDialog(), MythNews::ShowEditDialog(), Ripper::showEditMetadataDialog(), ImportMusicDialog::showEditMetadataDialog(), MythNews::ShowFeedManager(), ScheduleEditor::ShowFilters(), MythContext::Impl::ShowGuiStartup(), ImportMusicDialog::showImportCoverArtDialog(), GameUI::showInfo(), showLogViewer(), MythThemedMenu::ShowMenu(), PlaybackBox::showMetadataEditor(), ScheduleEditor::ShowMetadataOptions(), ProgLister::ShowOldRecordedMenu(), ScheduleEditor::ShowPostProc(), ScheduleEditor::ShowPreview(), ScheduleCommon::ShowPrevious(), SmartPlaylistEditor::showResultsClicked(), ScheduleEditor::ShowSchedOpt(), GalleryThumbView::ShowSettings(), WelcomeDialog::ShowSettings(), showStatus(), ScheduleEditor::ShowStoreOpt(), ScheduleCommon::ShowUpcoming(), ScheduleEditor::showUpcomingByRule(), ScheduleCommon::ShowUpcomingScheduled(), MythBrowser::slotAddBookmark(), BookmarkManager::slotBookmarkClicked(), RSSEditor::SlotEditSite(), RSSEditor::SlotNewSite(), AudioSetupWizard::slotNext(), GeneralSetupWizard::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().

◆ 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 80 of file mythmainwindow.cpp.

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

◆ GetPainter()

MythPainter * MythMainWindow::GetPainter ( void  )

◆ GetPaintWindow()

QWidget * MythMainWindow::GetPaintWindow ( void  )

◆ GetRenderDevice()

MythRender * MythMainWindow::GetRenderDevice ( )

◆ GetStack()

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

Definition at line 322 of file mythmainwindow.cpp.

Referenced by MythControls::ActionButtonPressed(), SmartPlaylistEditor::addCriteria(), MythBurn::changeProfile(), MythControls::ChangeView(), GuideGrid::ChannelGroupMenu(), ChannelEditor::channelIconImport(), MythThemedMenu::checkPinCode(), Ripper::chooseBackend(), ImportMusicDialog::chooseBackend(), GameHandler::clearAllGameData(), GUIStartup::Close(), StandardSettingDialog::Close(), MythControls::Close(), ExitPrompter::Confirm(), GalleryThumbView::Copy(), ImportMusicDialog::copyFile(), CardInput::CreateNewInputGroup(), PlayGroupEditor::CreateNewPlayBackGroup(), GameHandler::CreateProgress(), ProgFinder::customEvent(), MusicCommon::customEvent(), MusicPlayer::customEvent(), SmartPlaylistEditor::customEvent(), ProgramRecPriority::customEvent(), ChannelEditor::del(), ZMEvents::deleteAll(), ChannelEditor::deleteChannels(), MythControls::DeleteKey(), GuideGrid::deleteRule(), ViewScheduled::deleteRule(), PlaybackBox::displayRecGroup(), ParentalLevelChangeCheckerPrivate::DoCheck(), EditAlbumartDialog::doCopyImageToTag(), 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(), anonymous_namespace{romedit.cpp}::FindImagePopup(), anonymous_namespace{editvideometadata.cpp}::FindImagePopup(), MetadataOptions::FindImagePopup(), SourceManager::findScripts(), anonymous_namespace{editvideometadata.cpp}::FindVideoFilePopup(), GameUI::GameUI(), GeneralSetupWizard::GeneralSetupWizard(), MythUILocation::GetCurrentLocation(), MythControls::GrabKey(), ExitPrompter::HandleExit(), handleMedia(), ImportIconsWizard::ImportIconsWizard(), RecordingSelector::Init(), BookmarkManager::keyPressEvent(), MythBrowser::keyPressEvent(), MythUITextEdit::keyPressEvent(), MusicData::loadMusic(), ImportMusicDialog::locationPressed(), TransportListEditor::Menu(), ChannelEditor::menu(), GallerySlideView::MenuMain(), MetadataOptions::MetadataOptions(), GalleryThumbView::Move(), NetEditorBase::NetEditorBase(), EditMetadataDialog::NewCategoryPopup(), PlaybackSettings::NewPlaybackProfileSlot(), GamePlayersList::NewPlayerDialog(), MusicPlayer::nextAuto(), FileAssocDialog::OnNewExtensionPressed(), MythWebEngineView::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(), Ripper::searchAlbum(), EditMetadataDialog::searchAlbum(), Ripper::searchArtist(), EditMetadataDialog::searchArtist(), EditMetadataDialog::searchCompilationArtist(), Ripper::searchGenre(), EditMetadataDialog::searchGenre(), VideoDialog::searchStart(), GameUI::searchStart(), RSSEditPopup::SelectImagePopup(), PlaybackBox::setRecGroup(), ShowBusyPopup(), SmartPlaylistEditor::showCategoryMenu(), ProgLister::ShowChooseViewMenu(), GallerySettings::ShowConfirmDialog(), Ripper::ShowConflictMenu(), SmartPlaylistEditor::showCriteriaMenu(), StorageGroupEditor::ShowDeleteDialog(), StorageGroupDirSetting::ShowDeleteDialog(), PlaybackProfileItemConfig::ShowDeleteDialog(), ProgLister::ShowDeleteRuleMenu(), MythWebEngineView::showDownloadMenu(), MythUISpinBox::ShowEntryDialog(), MusicCommon::showExitMenu(), StorageGroupEditor::ShowFileBrowser(), PrevRecordedList::ShowItemMenu(), GuideGrid::ShowJumpToTime(), ImportNative::showList(), ChannelImporter::ShowManualChannelPopup(), ZMLivePlayer::ShowMenu(), EditMetadataDialog::showMenu(), EditAlbumartDialog::showMenu(), ProgramRecPriority::showMenu(), ScheduleEditor::showMenu(), ExportNative::ShowMenu(), LogViewer::ShowMenu(), MythBurn::ShowMenu(), RecordingSelector::ShowMenu(), ThumbFinder::ShowMenu(), VideoSelector::ShowMenu(), Ripper::ShowMenu(), ImportMusicDialog::ShowMenu(), LyricsView::ShowMenu(), MusicCommon::ShowMenu(), PlaylistEditorView::ShowMenu(), SearchView::ShowMenu(), StreamView::ShowMenu(), VisualizerView::ShowMenu(), MythNews::ShowMenu(), ZMEvents::ShowMenu(), StandardSettingDialog::ShowMenu(), ChannelRecPriority::ShowMenu(), GuideGrid::ShowMenu(), MythControls::ShowMenu(), PrevRecordedList::ShowMenu(), ProgFinder::ShowMenu(), ProgLister::ShowMenu(), ViewScheduled::ShowMenu(), WelcomeDialog::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 330 of file mythmainwindow.cpp.

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

◆ GetStackCount()

int MythMainWindow::GetStackCount ( )

Definition at line 312 of file mythmainwindow.cpp.

Referenced by MythUIWebBrowser::Init().

◆ GetTarget()

QObject * MythMainWindow::GetTarget ( QKeyEvent &  Key)

◆ GrabWindow()

void MythMainWindow::GrabWindow ( QImage &  Image)
static

Definition at line 489 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ 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 1525 of file mythmainwindow.cpp.

Referenced by MythScreenType::keyPressEvent().

◆ HideMouseTimeout

void MythMainWindow::HideMouseTimeout ( )
slot

Definition at line 2121 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ HidePainterWindow()

void MythMainWindow::HidePainterWindow ( void  )

Definition at line 281 of file mythmainwindow.cpp.

Referenced by SetDrawEnabled().

◆ IdleTimeout

void MythMainWindow::IdleTimeout ( )
slot

Definition at line 2181 of file mythmainwindow.cpp.

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

◆ Init()

void MythMainWindow::Init ( bool  MayReInit = true)

◆ InitKeys()

void MythMainWindow::InitKeys ( )
protected

Definition at line 792 of file mythmainwindow.cpp.

Referenced by MythMainWindow(), and ReloadKeys().

◆ IsExitingToMain()

bool MythMainWindow::IsExitingToMain ( ) const

◆ IsScreensaverAsleep()

bool MythMainWindow::IsScreensaverAsleep ( )
static

Definition at line 594 of file mythmainwindow.cpp.

Referenced by MythInputDeviceHandler::customEvent().

◆ IsTopScreenInitialized()

bool MythMainWindow::IsTopScreenInitialized ( )
static

◆ JumpTo()

void MythMainWindow::JumpTo ( const QString &  Destination,
bool  Pop = true 
)

◆ KeyLongPressFilter()

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

Definition at line 1550 of file mythmainwindow.cpp.

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

◆ LoadQtConfig()

void MythMainWindow::LoadQtConfig ( )
staticprotected

Definition at line 633 of file mythmainwindow.cpp.

Referenced by Init().

◆ MouseTimeout

void MythMainWindow::MouseTimeout ( )
slot

Definition at line 1535 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ MoveResize()

void MythMainWindow::MoveResize ( QRect &  Geometry)

◆ OnApplicationStateChange

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

Definition at line 2263 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ paintEngine()

QPaintEngine * MythMainWindow::paintEngine ( ) const
override

Definition at line 471 of file mythmainwindow.cpp.

Referenced by MythPainterWindowOpenGL::paintEngine().

◆ PauseIdleTimer()

void MythMainWindow::PauseIdleTimer ( bool  Pause)

◆ PopDrawDisabled()

uint MythMainWindow::PopDrawDisabled ( )

◆ PopScreenStack()

void MythMainWindow::PopScreenStack ( )

Definition at line 303 of file mythmainwindow.cpp.

Referenced by Weather::~Weather().

◆ PushDrawDisabled()

uint MythMainWindow::PushDrawDisabled ( )

◆ RegisterJump()

void MythMainWindow::RegisterJump ( const QString &  Destination,
const QString &  Description,
const QString &  Key,
void(*)(void)  Callback,
bool  Exittomain = true,
QString  LocalAction = "" 
)

Definition at line 1416 of file mythmainwindow.cpp.

Referenced by REG_JUMP(), REG_JUMPEX(), and REG_JUMPLOC().

◆ RegisterKey()

void MythMainWindow::RegisterKey ( const QString &  Context,
const QString &  Action,
const QString &  Description,
const QString &  Key 
)

Definition at line 1253 of file mythmainwindow.cpp.

Referenced by InitKeys(), and REG_KEY().

◆ RegisterMediaPlugin()

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

Definition at line 1484 of file mythmainwindow.cpp.

Referenced by REG_MEDIAPLAYER().

◆ ReloadKeys()

void MythMainWindow::ReloadKeys ( )

Definition at line 957 of file mythmainwindow.cpp.

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

◆ RemoteScreenShot()

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

Definition at line 529 of file mythmainwindow.cpp.

Referenced by MythFEXML::GetScreenShot().

◆ ResetIdleTimer()

void MythMainWindow::ResetIdleTimer ( )

Reset the idle timeout timer.

Note
This should only be called from the main thread.

Definition at line 2141 of file mythmainwindow.cpp.

Referenced by eventFilter().

◆ ResetScreensaver()

void MythMainWindow::ResetScreensaver ( )
static

◆ RestartInputHandlers()

void MythMainWindow::RestartInputHandlers ( )

Definition at line 2105 of file mythmainwindow.cpp.

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

◆ RestoreScreensaver()

void MythMainWindow::RestoreScreensaver ( )
static

◆ SaveScreenShot()

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

Definition at line 536 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ ScreenShot()

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

◆ SetDrawEnabled

void MythMainWindow::SetDrawEnabled ( bool  Enable)
protectedslot

Definition at line 1008 of file mythmainwindow.cpp.

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

◆ SetEffectsEnabled()

void MythMainWindow::SetEffectsEnabled ( bool  Enable)

Definition at line 1032 of file mythmainwindow.cpp.

Referenced by main(), and reloadTheme().

◆ Show()

void MythMainWindow::Show ( )

◆ ShowMouseCursor()

void MythMainWindow::ShowMouseCursor ( bool  Show)
protected

Definition at line 2110 of file mythmainwindow.cpp.

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

◆ ShowPainterWindow()

void MythMainWindow::ShowPainterWindow ( void  )

Definition at line 272 of file mythmainwindow.cpp.

Referenced by Init(), and SetDrawEnabled().

◆ SignalDisableScreensaver

void MythMainWindow::SignalDisableScreensaver ( )
signal

◆ SignalRemoteScreenShot

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

Referenced by MythMainWindow(), and RemoteScreenShot().

◆ SignalResetScreensaver

void MythMainWindow::SignalResetScreensaver ( )
signal

Referenced by MythMainWindow(), and ResetScreensaver().

◆ SignalRestoreScreensaver

void MythMainWindow::SignalRestoreScreensaver ( )
signal

◆ SignalSetDrawEnabled

void MythMainWindow::SignalSetDrawEnabled ( bool  Enable)
signal

Referenced by MythMainWindow(), and SetDrawEnabled().

◆ SignalWindowReady

void MythMainWindow::SignalWindowReady ( )
signal

◆ 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 1115 of file mythmainwindow.cpp.

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

Friends And Related Function Documentation

◆ MythPainterWindowOpenGL

friend class MythPainterWindowOpenGL
friend

Definition at line 32 of file mythmainwindow.h.

◆ MythPainterWindowQt

friend class MythPainterWindowQt
friend

Definition at line 34 of file mythmainwindow.h.

◆ MythPainterWindowVulkan

friend class MythPainterWindowVulkan
friend

Definition at line 33 of file mythmainwindow.h.

Member Data Documentation

◆ m_deviceHandler

MythInputDeviceHandler* MythMainWindow::m_deviceHandler { nullptr }
private

◆ m_display

MythDisplay* MythMainWindow::m_display { nullptr }
private

Definition at line 156 of file mythmainwindow.h.

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

◆ m_idleTime

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

◆ m_idleTimer

QTimer MythMainWindow::m_idleTimer
private

◆ m_painter

MythPainter* MythMainWindow::m_painter { nullptr }
private

Definition at line 160 of file mythmainwindow.h.

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

◆ m_painterWin

MythPainterWindow* MythMainWindow::m_painterWin { nullptr }
private

◆ m_priv

MythMainWindowPrivate* MythMainWindow::m_priv { nullptr }
private

◆ m_refreshTimer

QTimer MythMainWindow::m_refreshTimer
private

Definition at line 158 of file mythmainwindow.h.

Referenced by MythMainWindow().

◆ m_repaintRegion

QRegion MythMainWindow::m_repaintRegion
private

Definition at line 157 of file mythmainwindow.h.

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

◆ m_screensaver

MythScreenSaverControl* MythMainWindow::m_screensaver { nullptr }
private

Definition at line 163 of file mythmainwindow.h.

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

◆ m_themeBase

MythThemeBase* MythMainWindow::m_themeBase { nullptr }
private

Definition at line 159 of file mythmainwindow.h.

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


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