MythTV  master
Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Static Protected Member Functions | Protected Attributes | 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 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)
 
void signalWindowReady (void)
 
void signalRestoreScreensaver ()
 
void signalDisableScreensaver ()
 
void signalResetScreensaver ()
 
- Signals inherited from MythUIScreenBounds
void UIScreenRectChanged (const QRect &Rect)
 

Public Member Functions

void Init (bool mayReInit=true)
 
void ReinitDone (void)
 
void Show (void)
 
void MoveResize (QRect &Geometry)
 
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)
 
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 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 HandleTVAction (const QString &Action)
 
void JumpTo (const QString &destination, bool pop=true)
 
bool DestinationExists (const QString &destination) const
 
QStringList EnumerateDestinations (void) const
 
bool IsExitingToMain (void) const
 
MythDisplayGetDisplay ()
 
MythPainterGetPainter ()
 
QWidget * GetPaintWindow ()
 
MythRenderGetRenderDevice ()
 
MythNotificationCenterGetCurrentNotificationCenter ()
 
void ShowPainterWindow ()
 
void HidePainterWindow ()
 
void RemoteScreenShot (QString filename, int x, int y)
 
void AllowInput (bool allow)
 
int GetDrawInterval () const
 
void RestartInputHandlers (void)
 
uint PushDrawDisabled (void)
 
uint PopDrawDisabled (void)
 
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 (const QRect &Rect)
 
QRect GetScreenRect ()
 
QSize NormSize (const 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 w=0, int h=0, QString filename="")
 
static void RestoreScreensaver ()
 
static void DisableScreensaver ()
 
static void ResetScreensaver ()
 
static bool IsScreensaverAsleep ()
 
static bool IsTopScreenInitialized (void)
 
- 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 x, int y)
 
void SetDrawEnabled (bool enable)
 
void onApplicationStateChange (Qt::ApplicationState state)
 

Protected Member Functions

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

Static Protected Member Functions

static void LoadQtConfig ()
 

Protected Attributes

MythMainWindowPrivated {nullptr}
 
- 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 }
 

Private Slots

void DelayedAction (void)
 

Private Attributes

MythDisplaym_display { nullptr }
 
QRegion m_repaintRegion
 
MythThemeBasem_themeBase { nullptr }
 
MythPainterm_painter { nullptr }
 
MythPainterm_oldPainter { nullptr }
 
MythPainterWindowm_painterWin { nullptr }
 
MythPainterWindowm_oldPainterWin { nullptr }
 
MythInputDeviceHandlerm_deviceHandler { nullptr }
 
MythScreenSaverControlm_screensaver { nullptr }
 
QTimer m_idleTimer
 
int m_idleTime { 0 }
 

Friends

class MythPainterWindowOpenGL
 
class MythPainterWindowVulkan
 
class MythPainterWindowQt
 

Detailed Description

Definition at line 34 of file mythmainwindow.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
drawRefresh 

Definition at line 43 of file mythmainwindow.h.

Constructor & Destructor Documentation

◆ MythMainWindow()

MythMainWindow::MythMainWindow ( bool  useDB = true)
explicitprotected

Definition at line 133 of file mythmainwindow.cpp.

Referenced by getMainWindow().

◆ ~MythMainWindow()

MythMainWindow::~MythMainWindow ( )
overrideprotected

Definition at line 214 of file mythmainwindow.cpp.

Member Function Documentation

◆ Init()

void MythMainWindow::Init ( bool  mayReInit = true)

◆ ReinitDone()

void MythMainWindow::ReinitDone ( void  )

Definition at line 976 of file mythmainwindow.cpp.

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

◆ Show()

void MythMainWindow::Show ( void  )

◆ MoveResize()

void MythMainWindow::MoveResize ( QRect &  Geometry)

◆ AddScreenStack()

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

Definition at line 300 of file mythmainwindow.cpp.

Referenced by MythScreenStack::MythScreenStack().

◆ PopScreenStack()

void MythMainWindow::PopScreenStack ( )

Definition at line 307 of file mythmainwindow.cpp.

Referenced by Weather::~Weather().

◆ GetStackCount()

int MythMainWindow::GetStackCount ( void  )

Definition at line 316 of file mythmainwindow.cpp.

Referenced by MythUIWebBrowser::Init().

◆ GetMainStack()

MythScreenStack * MythMainWindow::GetMainStack ( void  )

Definition at line 321 of file mythmainwindow.cpp.

Referenced by MythThemedMenu::aboutScreen(), CardInput::channelScanner(), customEvent(), PlaylistEditorView::customEvent(), StreamView::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(), MythContextPrivate::EndTempWindow(), ExitToMainMenu(), GameCallback(), MythUILocation::GetCurrentLocation(), MythBurn::handleAddFile(), ExportNative::handleAddRecording(), MythBurn::handleAddRecording(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), SelectDestination::handleFind(), handleGalleryMedia(), handleMedia(), SelectDestination::handleNextPage(), DVDThemeSelector::handleNextPage(), TV::Init(), MythContextPrivate::Init(), internal_play_media(), IsTopScreenInitialized(), MythThemedMenu::keyPressEvent(), PlaylistEditorView::keyPressEvent(), main(), ScheduleCommon::MakeOverride(), ChannelScannerGUI::MonitorProgress(), MusicCallback(), mythplugin_config(), mythplugin_run(), ProgramRecPriority::newTemplate(), ArchiveFileSelector::nextPressed(), ZMEvents::playPressed(), MythNotificationScreenStack::PopScreen(), MythScreenStack::PopScreen(), AudioTest::prepareTest(), NetworkControl::processTheme(), LanguageSelection::prompt(), BackendSelection::Prompt(), MythContextPrivate::PromptForDatabaseParams(), SchemaUpgradeWizard::PromptForUpgrade(), CustomEdit::recordClicked(), ManualSchedule::recordClicked(), PhrasePopup::recordClicked(), PowerSearchPopup::recordClicked(), 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(), BookmarkManager::ShowEditDialog(), MythNews::ShowEditDialog(), ImportMusicDialog::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(), 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(), 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 326 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(), 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(), 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(), 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(), EditMetadataDialog::searchArtist(), EditMetadataDialog::searchCompilationArtist(), EditMetadataDialog::searchGenre(), VideoDialog::searchStart(), GameUI::searchStart(), RSSEditPopup::SelectImagePopup(), PlaybackBox::setRecGroup(), ShowBusyPopup(), SmartPlaylistEditor::showCategoryMenu(), ProgLister::ShowChooseViewMenu(), GallerySettings::ShowConfirmDialog(), 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(), 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  pos)

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

Referenced by 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(), 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(), StandardSettingDialog::keyPressEvent(), StorageGroupEditor::keyPressEvent(), StorageGroupDirSetting::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(), MythWebView::keyPressEvent(), MythUIWebBrowser::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().

◆ keyLongPressFilter()

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

Definition at line 1575 of file mythmainwindow.cpp.

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

◆ ReloadKeys()

void MythMainWindow::ReloadKeys ( void  )

Definition at line 968 of file mythmainwindow.cpp.

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

◆ ClearKey()

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

Definition at line 1211 of file mythmainwindow.cpp.

Referenced by KeyBindings::CommitAction().

◆ ClearKeyContext()

void MythMainWindow::ClearKeyContext ( const QString &  context)

Definition at line 1228 of file mythmainwindow.cpp.

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

◆ BindKey()

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

Definition at line 1235 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 1267 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 1358 of file mythmainwindow.cpp.

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

◆ ClearJump()

void MythMainWindow::ClearJump ( const QString &  destination)

Definition at line 1370 of file mythmainwindow.cpp.

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

◆ BindJump()

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

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

◆ ClearAllJumps()

void MythMainWindow::ClearAllJumps ( )

Definition at line 1475 of file mythmainwindow.cpp.

Referenced by ReloadJumpPoints().

◆ RegisterMediaPlugin()

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

Definition at line 1506 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 
)

◆ HandleTVAction()

void MythMainWindow::HandleTVAction ( const QString &  Action)

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

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

◆ EnumerateDestinations()

QStringList MythMainWindow::EnumerateDestinations ( void  ) const

Definition at line 1501 of file mythmainwindow.cpp.

Referenced by main().

◆ IsExitingToMain()

bool MythMainWindow::IsExitingToMain ( void  ) 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 81 of file mythmainwindow.cpp.

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

◆ destroyMainWindow()

void MythMainWindow::destroyMainWindow ( void  )
static

Definition at line 97 of file mythmainwindow.cpp.

Referenced by DestroyMythMainWindow().

◆ GetDisplay()

MythDisplay * MythMainWindow::GetDisplay ( void  )

◆ GetPainter()

MythPainter * MythMainWindow::GetPainter ( void  )

◆ GetPaintWindow()

QWidget * MythMainWindow::GetPaintWindow ( void  )

◆ GetRenderDevice()

MythRender * MythMainWindow::GetRenderDevice ( )

◆ GetCurrentNotificationCenter()

MythNotificationCenter * MythMainWindow::GetCurrentNotificationCenter ( void  )

Definition at line 266 of file mythmainwindow.cpp.

Referenced by OSD::Draw(), GetNotificationCenter(), and OSD::HideAll().

◆ ShowPainterWindow()

void MythMainWindow::ShowPainterWindow ( void  )

Definition at line 276 of file mythmainwindow.cpp.

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

◆ HidePainterWindow()

void MythMainWindow::HidePainterWindow ( void  )

Definition at line 285 of file mythmainwindow.cpp.

Referenced by SetDrawEnabled().

◆ GrabWindow()

void MythMainWindow::GrabWindow ( QImage &  image)
static

Definition at line 500 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ SaveScreenShot()

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

Definition at line 547 of file mythmainwindow.cpp.

Referenced by ScreenShot().

◆ ScreenShot()

bool MythMainWindow::ScreenShot ( int  w = 0,
int  h = 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 607 of file mythmainwindow.cpp.

Referenced by MythInputDeviceHandler::customEvent().

◆ IsTopScreenInitialized()

bool MythMainWindow::IsTopScreenInitialized ( void  )
static

Definition at line 618 of file mythmainwindow.cpp.

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

◆ RemoteScreenShot()

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

Definition at line 540 of file mythmainwindow.cpp.

Referenced by MythFEXML::GetScreenShot().

◆ AllowInput()

void MythMainWindow::AllowInput ( bool  allow)

◆ GetDrawInterval()

int MythMainWindow::GetDrawInterval ( ) const

Definition at line 2137 of file mythmainwindow.cpp.

Referenced by MythUIAnimation::IncrementCurrentTime().

◆ RestartInputHandlers()

void MythMainWindow::RestartInputHandlers ( void  )

Definition at line 2142 of file mythmainwindow.cpp.

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

◆ PushDrawDisabled()

uint MythMainWindow::PushDrawDisabled ( void  )

◆ PopDrawDisabled()

uint MythMainWindow::PopDrawDisabled ( void  )

◆ SetEffectsEnabled()

void MythMainWindow::SetEffectsEnabled ( bool  enable)

Definition at line 1056 of file mythmainwindow.cpp.

Referenced by main(), and reloadTheme().

◆ Draw()

void MythMainWindow::Draw ( MythPainter Painter = nullptr)

Definition at line 446 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 2178 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 2167 of file mythmainwindow.cpp.

Referenced by main().

◆ EnterStandby()

void MythMainWindow::EnterStandby ( bool  manual = true)

Definition at line 2238 of file mythmainwindow.cpp.

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

◆ ExitStandby()

void MythMainWindow::ExitStandby ( bool  manual = true)

Definition at line 2276 of file mythmainwindow.cpp.

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

◆ paintEngine()

QPaintEngine * MythMainWindow::paintEngine ( ) const
override

Definition at line 482 of file mythmainwindow.cpp.

Referenced by MythPainterWindowOpenGL::paintEngine().

◆ mouseTimeout

void MythMainWindow::mouseTimeout ( void  )
slot

Definition at line 1559 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ HideMouseTimeout

void MythMainWindow::HideMouseTimeout ( )
slot

Definition at line 2159 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ IdleTimeout

void MythMainWindow::IdleTimeout ( )
slot

Definition at line 2218 of file mythmainwindow.cpp.

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

◆ animate

void MythMainWindow::animate ( void  )
protectedslot

Definition at line 344 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ doRemoteScreenShot

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

Definition at line 528 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ SetDrawEnabled

void MythMainWindow::SetDrawEnabled ( bool  enable)
protectedslot

Definition at line 1028 of file mythmainwindow.cpp.

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

◆ onApplicationStateChange

void MythMainWindow::onApplicationStateChange ( Qt::ApplicationState  state)
protectedslot

Definition at line 2306 of file mythmainwindow.cpp.

Referenced by MythMainWindow().

◆ 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().

◆ signalWindowReady

void MythMainWindow::signalWindowReady ( void  )
signal

Referenced by Init(), and MythMainWindow().

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

Referenced by Init().

◆ InitKeys()

void MythMainWindow::InitKeys ( void  )
protected

Definition at line 807 of file mythmainwindow.cpp.

Referenced by MythMainWindow(), and ReloadKeys().

◆ eventFilter()

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

Definition at line 1675 of file mythmainwindow.cpp.

◆ customEvent()

void MythMainWindow::customEvent ( QEvent *  ce)
overrideprotected

Definition at line 1911 of file mythmainwindow.cpp.

◆ closeEvent()

void MythMainWindow::closeEvent ( QCloseEvent *  e)
overrideprotected

Definition at line 487 of file mythmainwindow.cpp.

◆ drawScreen()

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

◆ event()

bool MythMainWindow::event ( QEvent *  e)
overrideprotected

Definition at line 625 of file mythmainwindow.cpp.

◆ ExitToMainMenu()

void MythMainWindow::ExitToMainMenu ( void  )
protected

Definition at line 1072 of file mythmainwindow.cpp.

Referenced by customEvent().

◆ ShowMouseCursor()

void MythMainWindow::ShowMouseCursor ( bool  show)
protected

Definition at line 2147 of file mythmainwindow.cpp.

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

◆ DelayedAction

void MythMainWindow::DelayedAction ( void  )
privateslot

Definition at line 797 of file mythmainwindow.cpp.

Referenced by Init().

Friends And Related Function Documentation

◆ MythPainterWindowOpenGL

friend class MythPainterWindowOpenGL
friend

Definition at line 38 of file mythmainwindow.h.

◆ MythPainterWindowVulkan

friend class MythPainterWindowVulkan
friend

Definition at line 39 of file mythmainwindow.h.

◆ MythPainterWindowQt

friend class MythPainterWindowQt
friend

Definition at line 40 of file mythmainwindow.h.

Member Data Documentation

◆ d

MythMainWindowPrivate* MythMainWindow::d {nullptr}
protected

◆ m_display

MythDisplay* MythMainWindow::m_display { nullptr }
private

Definition at line 173 of file mythmainwindow.h.

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

◆ m_repaintRegion

QRegion MythMainWindow::m_repaintRegion
private

Definition at line 174 of file mythmainwindow.h.

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

◆ m_themeBase

MythThemeBase* MythMainWindow::m_themeBase { nullptr }
private

Definition at line 176 of file mythmainwindow.h.

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

◆ m_painter

MythPainter* MythMainWindow::m_painter { nullptr }
private

Definition at line 177 of file mythmainwindow.h.

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

◆ m_oldPainter

MythPainter* MythMainWindow::m_oldPainter { nullptr }
private

Definition at line 178 of file mythmainwindow.h.

Referenced by Init(), and ReinitDone().

◆ m_painterWin

MythPainterWindow* MythMainWindow::m_painterWin { nullptr }
private

◆ m_oldPainterWin

MythPainterWindow* MythMainWindow::m_oldPainterWin { nullptr }
private

Definition at line 180 of file mythmainwindow.h.

Referenced by Init(), and ReinitDone().

◆ m_deviceHandler

MythInputDeviceHandler* MythMainWindow::m_deviceHandler { nullptr }
private

◆ m_screensaver

MythScreenSaverControl* MythMainWindow::m_screensaver { nullptr }
private

Definition at line 182 of file mythmainwindow.h.

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

◆ m_idleTimer

QTimer MythMainWindow::m_idleTimer
private

◆ m_idleTime

int MythMainWindow::m_idleTime { 0 }
private

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