MythTV
master
|
#include <mythmainwindow.h>
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 () |
![]() | |
void | UIScreenRectChanged (const QRect &Rect) |
Public Member Functions | |
void | Init (bool MayReInit=true) |
void | ReinitDone () |
void | Show () |
void | MoveResize (QRect &Geometry) |
void | AddScreenStack (MythScreenStack *Stack, bool Main=false) |
void | PopScreenStack () |
int | GetStackCount () |
MythScreenStack * | GetMainStack () |
MythScreenStack * | GetStack (const QString &Stackname) |
MythScreenStack * | GetStackAt (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="", 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 () const |
bool | IsExitingToMain () const |
MythDisplay * | GetDisplay () |
MythPainter * | GetPainter () |
QWidget * | GetPaintWindow () |
MythRender * | GetRenderDevice () |
MythNotificationCenter * | GetCurrentNotificationCenter () |
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 |
![]() | |
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 MythMainWindow * | getMainWindow (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 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) |
![]() | |
MythUIScreenBounds () | |
void | InitScreenBounds () |
Static Protected Member Functions | |
static void | LoadQtConfig () |
Private Slots | |
void | DelayedAction () |
Private Attributes | |
MythMainWindowPrivate * | m_priv { nullptr } |
MythDisplay * | m_display { nullptr } |
QRegion | m_repaintRegion |
QTimer | m_refreshTimer |
MythThemeBase * | m_themeBase { nullptr } |
MythPainter * | m_painter { nullptr } |
MythPainter * | m_oldPainter { nullptr } |
MythPainterWindow * | m_painterWin { nullptr } |
MythPainterWindow * | m_oldPainterWin { nullptr } |
MythInputDeviceHandler * | m_deviceHandler { nullptr } |
MythScreenSaverControl * | m_screensaver { nullptr } |
QTimer | m_idleTimer |
int | m_idleTime { 0 } |
Friends | |
class | MythPainterWindowOpenGL |
class | MythPainterWindowVulkan |
class | MythPainterWindowQt |
Additional Inherited Members | |
![]() | |
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 } |
Definition at line 34 of file mythmainwindow.h.
Definition at line 130 of file mythmainwindow.cpp.
Referenced by getMainWindow().
|
overrideprotected |
Definition at line 207 of file mythmainwindow.cpp.
Definition at line 637 of file mythmainwindow.cpp.
Referenced by main(), reloadTheme(), resetTheme(), and MythContextPrivate::TempMainWindow().
void MythMainWindow::ReinitDone | ( | ) |
Definition at line 956 of file mythmainwindow.cpp.
Referenced by main(), reloadTheme(), and resetTheme().
void MythMainWindow::Show | ( | ) |
Definition at line 963 of file mythmainwindow.cpp.
Referenced by DelayedAction(), TV::DoEditSchedule(), Init(), MythVideoOutputGPU::ResizeForVideo(), ShowMouseCursor(), and TV::~TV().
void MythMainWindow::MoveResize | ( | QRect & | Geometry | ) |
Definition at line 974 of file mythmainwindow.cpp.
Referenced by DelayedAction(), TV::DoEditSchedule(), TV::Embed(), TV::HandleStateChange(), Init(), ReinitDone(), MythVideoOutputGPU::ResizeForVideo(), and TV::~TV().
void MythMainWindow::AddScreenStack | ( | MythScreenStack * | Stack, |
bool | Main = false |
||
) |
Definition at line 293 of file mythmainwindow.cpp.
Referenced by MythScreenStack::MythScreenStack().
void MythMainWindow::PopScreenStack | ( | ) |
Definition at line 300 of file mythmainwindow.cpp.
Referenced by Weather::~Weather().
int MythMainWindow::GetStackCount | ( | ) |
Definition at line 309 of file mythmainwindow.cpp.
Referenced by MythUIWebBrowser::Init().
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(), 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(), 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(), 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().
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(), EditMetadataDialog::searchArtist(), EditMetadataDialog::searchCompilationArtist(), EditMetadataDialog::searchGenre(), GameUI::searchStart(), VideoDialog::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(), 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().
MythScreenStack * MythMainWindow::GetStackAt | ( | int | Position | ) |
Definition at line 327 of file mythmainwindow.cpp.
Referenced by MythUIWebBrowser::Init(), and MythUIWebBrowser::IsOnTopScreen().
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.
Context | The context in which to lookup the keypress for actions. |
Event | The keypress event to lookup. |
Actions | The QStringList that will contain the list of actions. |
AllowJumps | if true then jump points are allowed |
Definition at line 1113 of file mythmainwindow.cpp.
Referenced by KeyLongPressFilter(), MythChannelOverlay::keyPressEvent(), MythFlashPlayer::keyPressEvent(), ZMMiniPlayer::keyPressEvent(), MiniPlayer::keyPressEvent(), MythNavigationOverlay::keyPressEvent(), ChannelEditor::keyPressEvent(), StorageGroupEditor::keyPressEvent(), MythUIButtonTree::keyPressEvent(), VisualizerView::keyPressEvent(), ProgDetails::keyPressEvent(), MythNewsConfig::keyPressEvent(), SearchView::keyPressEvent(), LyricsView::keyPressEvent(), CustomEdit::keyPressEvent(), MythBrowser::keyPressEvent(), ScreenWizard::keyPressEvent(), MythUICheckBox::keyPressEvent(), LogViewer::keyPressEvent(), StreamView::keyPressEvent(), BookmarkEditor::keyPressEvent(), Weather::keyPressEvent(), NetSearch::keyPressEvent(), MythNews::keyPressEvent(), MythNewsEditor::keyPressEvent(), ChannelRecPriority::keyPressEvent(), EditMetadataCommon::keyPressEvent(), SelectDestination::keyPressEvent(), MythUIButton::keyPressEvent(), NetEditorBase::keyPressEvent(), WelcomeDialog::keyPressEvent(), ProgFinder::keyPressEvent(), GameUI::keyPressEvent(), MythUISpinBox::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), GalleryThumbView::keyPressEvent(), PrevRecordedList::keyPressEvent(), ViewScheduled::keyPressEvent(), ThemeChooser::keyPressEvent(), GallerySlideView::keyPressEvent(), MythUITextEdit::keyPressEvent(), ZMEvents::keyPressEvent(), RecordingSelector::keyPressEvent(), ZMPlayer::keyPressEvent(), ExportNative::keyPressEvent(), MythUIBusyDialog::keyPressEvent(), StatusBox::keyPressEvent(), TrackInfoPopup::keyPressEvent(), RSSEditPopup::keyPressEvent(), ThumbFinder::keyPressEvent(), VideoSelector::keyPressEvent(), ProgLister::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), NetTree::keyPressEvent(), FileSelector::keyPressEvent(), TransportSetting::keyPressEvent(), VideoDialog::keyPressEvent(), MythScreenType::keyPressEvent(), MusicCommon::keyPressEvent(), StorageGroupDirSetting::keyPressEvent(), ZMConsole::keyPressEvent(), MythBurn::keyPressEvent(), ProgramRecPriority::keyPressEvent(), ImportMusicDialog::keyPressEvent(), MythUIProgressDialog::keyPressEvent(), ZMLivePlayer::keyPressEvent(), EditLyricsDialog::keyPressEvent(), BookmarkManager::keyPressEvent(), ScreenSetup::keyPressEvent(), PlaylistEditorView::keyPressEvent(), MythThemedMenu::keyPressEvent(), SmartPlaylistEditor::keyPressEvent(), ImportNative::keyPressEvent(), RSSEditor::keyPressEvent(), MythWebView::keyPressEvent(), Ripper::keyPressEvent(), GuideGrid::keyPressEvent(), PlaybackBox::keyPressEvent(), MythUIWebBrowser::keyPressEvent(), EditAlbumartDialog::keyPressEvent(), MythNotificationScreen::keyPressEvent(), MythUIButtonList::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), MythMusicVolumeDialog::keyPressEvent(), SmartPLResultViewer::keyPressEvent(), MythDialogBox::keyPressEvent(), TrackInfoDialog::keyPressEvent(), MythConfirmationDialog::keyPressEvent(), SearchButtonListDialog::keyPressEvent(), StandardSettingDialog::keyPressEvent(), ItemDetailPopup::keyPressEvent(), TV::TranslateGesture(), and TV::TranslateKeyPressOrGesture().
bool MythMainWindow::KeyLongPressFilter | ( | QEvent ** | Event, |
QScopedPointer< QEvent > & | NewEvent | ||
) |
Definition at line 1530 of file mythmainwindow.cpp.
Referenced by eventFilter(), and TV::eventFilter().
void MythMainWindow::ReloadKeys | ( | ) |
Definition at line 948 of file mythmainwindow.cpp.
Referenced by main(), ReloadKeys(), and resetAllKeys().
void MythMainWindow::ClearKey | ( | const QString & | Context, |
const QString & | Action | ||
) |
Definition at line 1183 of file mythmainwindow.cpp.
Referenced by KeyBindings::CommitAction().
void MythMainWindow::ClearKeyContext | ( | const QString & | Context | ) |
Definition at line 1200 of file mythmainwindow.cpp.
Referenced by ReloadKeys(), TV::ReloadKeys(), and ReloadKeys().
void MythMainWindow::BindKey | ( | const QString & | Context, |
const QString & | Action, | ||
const QString & | Key | ||
) |
Definition at line 1207 of file mythmainwindow.cpp.
Referenced by KeyBindings::CommitAction(), and RegisterKey().
void MythMainWindow::RegisterKey | ( | const QString & | Context, |
const QString & | Action, | ||
const QString & | Description, | ||
const QString & | Key | ||
) |
Definition at line 1236 of file mythmainwindow.cpp.
Referenced by InitKeys().
|
static |
Definition at line 1305 of file mythmainwindow.cpp.
Referenced by TV::InitKeys(), MythUIVirtualKeyboard::loadEventKeyDefinitions(), and MythUIButtonList::ParseElement().
QObject * MythMainWindow::GetTarget | ( | QKeyEvent & | Key | ) |
Definition at line 2030 of file mythmainwindow.cpp.
Referenced by MythInputDeviceHandler::customEvent(), customEvent(), and eventFilter().
QString MythMainWindow::GetActionText | ( | const QString & | Context, |
const QString & | Action | ||
) | const |
Definition at line 1326 of file mythmainwindow.cpp.
Referenced by TV::MenuItemDisplayCutlist(), and TV::MenuItemDisplayPlayback().
void MythMainWindow::ClearJump | ( | const QString & | Destination | ) |
Definition at line 1338 of file mythmainwindow.cpp.
Referenced by ClearAllJumps(), and KeyBindings::CommitJumppoint().
void MythMainWindow::BindJump | ( | const QString & | Destination, |
const QString & | Key | ||
) |
Definition at line 1358 of file mythmainwindow.cpp.
Referenced by KeyBindings::CommitJumppoint(), and RegisterJump().
void MythMainWindow::RegisterJump | ( | const QString & | Destination, |
const QString & | Description, | ||
const QString & | Key, | ||
void(*)(void) | Callback, | ||
bool | Exittomain = true , |
||
QString | LocalAction = "" |
||
) |
Definition at line 1396 of file mythmainwindow.cpp.
void MythMainWindow::ClearAllJumps | ( | ) |
Definition at line 1433 of file mythmainwindow.cpp.
Referenced by ReloadJumpPoints().
void MythMainWindow::RegisterMediaPlugin | ( | const QString & | Name, |
const QString & | Desc, | ||
MediaPlayCallback | Func | ||
) |
Definition at line 1464 of file mythmainwindow.cpp.
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 |
||
) |
Definition at line 1480 of file mythmainwindow.cpp.
Referenced by MythWebView::customEvent(), customEvent(), NetBase::DoPlayVideo(), MythThemedMenu::handleAction(), VideoPlayHandleMedia::Play(), playDisc(), MythNews::playVideo(), GallerySlideView::PlayVideo(), VideoSetupWizard::playVideoTest(), runTestDVD(), EditMetadataCommon::searchForAlbumImages(), EditMetadataDialog::searchForArtistImages(), EditMetadataDialog::searchForGenreImages(), VideoDialog::ShowHomepage(), NetBase::ShowWebVideo(), GeneralSetupWizard::slotView(), MythNews::slotViewArticle(), and NetBase::StreamWebVideo().
void MythMainWindow::HandleTVAction | ( | const QString & | Action | ) |
Definition at line 1505 of file mythmainwindow.cpp.
Referenced by MythScreenType::keyPressEvent().
Definition at line 1441 of file mythmainwindow.cpp.
Referenced by AppearanceSettings::applyChange(), ThemeChooser::customEvent(), MythControls::customEvent(), ExitStandby(), MythThemedMenu::handleAction(), handleGalleryMedia(), handleSIGUSR1(), IdleTimeout(), main(), Frontend::PlayRecording(), NetworkControl::processJump(), NetworkControl::processPlay(), NetworkControl::processTheme(), ThemeChooser::saveAndReload(), startAppearWiz(), and TranslateKeyPress().
bool MythMainWindow::DestinationExists | ( | const QString & | Destination | ) | const |
Definition at line 1454 of file mythmainwindow.cpp.
Referenced by main(), and MythThemedMenu::parseThemeButton().
QStringList MythMainWindow::EnumerateDestinations | ( | ) | const |
Definition at line 1459 of file mythmainwindow.cpp.
Referenced by main().
bool MythMainWindow::IsExitingToMain | ( | ) | const |
Definition at line 1041 of file mythmainwindow.cpp.
Referenced by TV::ActiveHandleAction(), MythScreenStack::PopScreen(), and MythNotificationScreenStack::PopScreen().
|
static |
Return the existing main window, or create one.
UseDB | If this is a temporary window, which is used to bootstrap the database, passing false prevents any database access. |
Definition at line 79 of file mythmainwindow.cpp.
Referenced by GetMythMainWindow(), GetMythPainter(), MythRenderOpenGL::GetOpenGLRender(), MythDisplayOSX::GetVideoModes(), MythRenderVulkan::GetVulkanRender(), MythDisplayOSX::SwitchToVideoMode(), MythContextPrivate::TempMainWindow(), and MythDisplayOSX::UpdateCurrentMode().
|
static |
Definition at line 95 of file mythmainwindow.cpp.
Referenced by DestroyMythMainWindow().
MythDisplay * MythMainWindow::GetDisplay | ( | ) |
Definition at line 249 of file mythmainwindow.cpp.
Referenced by AppearanceSettings::AppearanceSettings(), TV::DoEditSchedule(), HostRefreshRateComboBoxSetting::GetRefreshRates(), GrabWindow(), GuiVidModeResolution(), TV::Init(), MythPainterGPU::MythPainterGPU(), MythCECAdapter::Open(), TVVidModeResolution(), and TV::~TV().
MythPainter * MythMainWindow::GetPainter | ( | ) |
Definition at line 254 of file mythmainwindow.cpp.
Referenced by ZMClient::getEventFrame(), ThumbFinder::getFrameImage(), GetMythPainter(), setDebugShowBorders(), setDebugShowNames(), Player::updateFrame(), and ThumbFinder::updatePositionBar().
QWidget * MythMainWindow::GetPaintWindow | ( | ) |
Definition at line 264 of file mythmainwindow.cpp.
Referenced by MythScreenType::aboutToHide(), MythScreenType::aboutToShow(), GuideGrid::EmbedTVWindow(), GuideGrid::HideTVWindow(), TV::Init(), and MythVideoOutputGPU::RenderFrame().
MythRender * MythMainWindow::GetRenderDevice | ( | ) |
Definition at line 288 of file mythmainwindow.cpp.
Referenced by StatusBox::doDisplayStatus(), MythRenderOpenGL::GetOpenGLRender(), MythRenderVulkan::GetVulkanRender(), and MythVideoProfile::InitStatics().
MythNotificationCenter * MythMainWindow::GetCurrentNotificationCenter | ( | ) |
Definition at line 259 of file mythmainwindow.cpp.
Referenced by OSD::Draw(), GetNotificationCenter(), OSD::HideAll(), and OSD::IsOSDVisible().
void MythMainWindow::ShowPainterWindow | ( | ) |
Definition at line 269 of file mythmainwindow.cpp.
Referenced by Init(), ReinitDone(), and SetDrawEnabled().
void MythMainWindow::HidePainterWindow | ( | ) |
Definition at line 278 of file mythmainwindow.cpp.
Referenced by SetDrawEnabled().
|
static |
Definition at line 486 of file mythmainwindow.cpp.
Referenced by ScreenShot().
|
static |
Definition at line 533 of file mythmainwindow.cpp.
Referenced by ScreenShot().
|
static |
Definition at line 561 of file mythmainwindow.cpp.
Referenced by TV::ActiveHandleAction(), customEvent(), TV::customEvent(), and MythScreenType::keyPressEvent().
|
static |
Definition at line 573 of file mythmainwindow.cpp.
Referenced by TV::DoTogglePauseFinish(), TV::HandleStateChange(), NetBase::RunCmdWithoutScreensaver(), MythDVDBuffer::SafeRead(), TV::SwitchInputs(), MythFlashPlayer::~MythFlashPlayer(), VisualBase::~VisualBase(), and ZMLivePlayer::~ZMLivePlayer().
|
static |
Definition at line 579 of file mythmainwindow.cpp.
Referenced by TV::ChangeChannel(), TV::DoPlay(), TV::DoTogglePauseFinish(), TV::HandleStateChange(), MythFlashPlayer::MythFlashPlayer(), NetBase::RunCmdWithoutScreensaver(), MythDVDBuffer::SafeRead(), VisualBase::VisualBase(), and ZMLivePlayer::ZMLivePlayer().
|
static |
Definition at line 585 of file mythmainwindow.cpp.
Referenced by MythInputDeviceHandler::customEvent(), MythCECAdapter::HandleKeyPress(), MythCECAdapter::HandleSource(), NetworkControl::processKey(), Frontend::SendAction(), and Frontend::SendKey().
|
static |
Definition at line 591 of file mythmainwindow.cpp.
Referenced by MythInputDeviceHandler::customEvent().
|
static |
Definition at line 602 of file mythmainwindow.cpp.
Referenced by Frontend::PlayRecording(), and NetworkControl::processPlay().
void MythMainWindow::RemoteScreenShot | ( | QString | Filename, |
int | Width, | ||
int | Height | ||
) |
Definition at line 526 of file mythmainwindow.cpp.
Referenced by MythFEXML::GetScreenShot().
void MythMainWindow::AllowInput | ( | bool | Allow | ) |
Definition at line 1510 of file mythmainwindow.cpp.
Referenced by NetBase::RunCmdWithoutScreensaver(), VideoDialog::ShowHomepage(), BookmarkManager::slotBookmarkClicked(), BookmarkManager::slotShowMarked(), GeneralSetupWizard::slotView(), and MythNews::slotViewArticle().
void MythMainWindow::RestartInputHandlers | ( | ) |
Definition at line 2050 of file mythmainwindow.cpp.
Referenced by handleSIGUSR2(), and MonitorThread::run().
uint MythMainWindow::PushDrawDisabled | ( | ) |
Definition at line 985 of file mythmainwindow.cpp.
Referenced by customEvent(), TV::Embed(), TV::HandleStateChange(), and OnApplicationStateChange().
uint MythMainWindow::PopDrawDisabled | ( | ) |
Definition at line 994 of file mythmainwindow.cpp.
Referenced by customEvent(), TV::DoEditSchedule(), OnApplicationStateChange(), and TV::~TV().
void MythMainWindow::SetEffectsEnabled | ( | bool | Enable | ) |
Definition at line 1030 of file mythmainwindow.cpp.
Referenced by main(), and reloadTheme().
void MythMainWindow::Draw | ( | MythPainter * | Painter = nullptr | ) |
Definition at line 432 of file mythmainwindow.cpp.
Referenced by drawScreen(), and MythVideoOutputGPU::RenderFrame().
void MythMainWindow::ResetIdleTimer | ( | ) |
Reset the idle timeout timer.
Definition at line 2085 of file mythmainwindow.cpp.
Referenced by eventFilter().
void MythMainWindow::PauseIdleTimer | ( | bool | Pause | ) |
Pause the idle timeout timer.
Definition at line 2102 of file mythmainwindow.cpp.
Referenced by customEvent(), EnterStandby(), ExitStandby(), MythBrowser::MythBrowser(), MythFlashPlayer::MythFlashPlayer(), MusicPlayer::pause(), VideoPlayerCommand::Play(), MusicPlayer::play(), playDisc(), NetBase::RunCmdWithoutScreensaver(), MusicPlayer::stop(), TV::TV(), ZMLivePlayer::ZMLivePlayer(), MythBrowser::~MythBrowser(), MythFlashPlayer::~MythFlashPlayer(), TV::~TV(), and ZMLivePlayer::~ZMLivePlayer().
Disable the idle timeout timer.
Definition at line 2074 of file mythmainwindow.cpp.
Referenced by main().
Definition at line 2145 of file mythmainwindow.cpp.
Referenced by IdleScreen::IdleScreen(), and IdleTimeout().
Definition at line 2180 of file mythmainwindow.cpp.
Referenced by ResetIdleTimer(), and IdleScreen::~IdleScreen().
|
override |
Definition at line 468 of file mythmainwindow.cpp.
Referenced by MythPainterWindowOpenGL::paintEngine().
|
slot |
Definition at line 1515 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
slot |
Definition at line 2066 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
slot |
Definition at line 2125 of file mythmainwindow.cpp.
Referenced by ExitPrompter::DoStandby(), and MythMainWindow().
|
protectedslot |
Definition at line 334 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
protectedslot |
Definition at line 515 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
protectedslot |
Definition at line 1006 of file mythmainwindow.cpp.
Referenced by MythMainWindow(), PopDrawDisabled(), and PushDrawDisabled().
|
protectedslot |
Definition at line 2207 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
signal |
Referenced by MythMainWindow(), and RemoteScreenShot().
|
signal |
Referenced by MythMainWindow(), and SetDrawEnabled().
|
signal |
Referenced by Init(), main(), MythDisplayDRM::MythDisplayDRM(), MythMainWindow(), and MythScreenSaverWayland::MythScreenSaverWayland().
|
signal |
Referenced by MythMainWindow(), and RestoreScreensaver().
|
signal |
Referenced by DisableScreensaver(), and MythMainWindow().
|
signal |
Referenced by MythMainWindow(), and ResetScreensaver().
|
staticprotected |
Definition at line 630 of file mythmainwindow.cpp.
Referenced by Init().
|
protected |
Definition at line 787 of file mythmainwindow.cpp.
Referenced by MythMainWindow(), and ReloadKeys().
|
overrideprotected |
Definition at line 1628 of file mythmainwindow.cpp.
|
overrideprotected |
Definition at line 1846 of file mythmainwindow.cpp.
|
overrideprotected |
Definition at line 473 of file mythmainwindow.cpp.
|
protected |
Definition at line 372 of file mythmainwindow.cpp.
Referenced by MythPainterWindowQt::paintEvent(), MythPainterWindowVulkan::paintEvent(), and MythPainterWindowOpenGL::paintEvent().
|
overrideprotected |
Definition at line 609 of file mythmainwindow.cpp.
Referenced by customEvent(), eventFilter(), and MouseTimeout().
|
protected |
Definition at line 1046 of file mythmainwindow.cpp.
Referenced by customEvent().
|
protected |
Definition at line 2055 of file mythmainwindow.cpp.
Referenced by eventFilter(), HideMouseTimeout(), and Init().
|
privateslot |
Definition at line 777 of file mythmainwindow.cpp.
Referenced by Init().
|
friend |
Definition at line 38 of file mythmainwindow.h.
|
friend |
Definition at line 39 of file mythmainwindow.h.
|
friend |
Definition at line 40 of file mythmainwindow.h.
|
private |
Definition at line 162 of file mythmainwindow.h.
Referenced by AddScreenStack(), AllowInput(), Animate(), BindJump(), BindKey(), ClearAllJumps(), ClearJump(), ClearKey(), ClearKeyContext(), closeEvent(), customEvent(), DestinationExists(), DisableIdleTimer(), Draw(), drawScreen(), EnterStandby(), EnumerateDestinations(), event(), eventFilter(), ExitStandby(), ExitToMainMenu(), GetActionText(), GetCurrentNotificationCenter(), GetMainStack(), GetStack(), GetStackAt(), GetStackCount(), GetTarget(), HandleMedia(), IdleTimeout(), Init(), IsExitingToMain(), JumpTo(), KeyLongPressFilter(), MouseTimeout(), MythMainWindow(), PauseIdleTimer(), PopDrawDisabled(), PopScreenStack(), PushDrawDisabled(), RegisterJump(), RegisterKey(), RegisterMediaPlugin(), ResetIdleTimer(), SetDrawEnabled(), SetEffectsEnabled(), Show(), ShowMouseCursor(), TranslateKeyPress(), and ~MythMainWindow().
|
private |
Definition at line 163 of file mythmainwindow.h.
Referenced by GetDisplay(), Init(), MythMainWindow(), and ~MythMainWindow().
|
private |
Definition at line 164 of file mythmainwindow.h.
Referenced by Animate(), Draw(), and drawScreen().
|
private |
Definition at line 165 of file mythmainwindow.h.
Referenced by MythMainWindow().
|
private |
Definition at line 166 of file mythmainwindow.h.
Referenced by Init(), and ~MythMainWindow().
|
private |
Definition at line 167 of file mythmainwindow.h.
Referenced by Draw(), drawScreen(), GetPainter(), Init(), and ~MythMainWindow().
|
private |
Definition at line 168 of file mythmainwindow.h.
Referenced by Init(), and ReinitDone().
|
private |
Definition at line 169 of file mythmainwindow.h.
Referenced by Animate(), Draw(), drawScreen(), GetPaintWindow(), GetRenderDevice(), HidePainterWindow(), Init(), MoveResize(), ShowPainterWindow(), and ~MythMainWindow().
|
private |
Definition at line 170 of file mythmainwindow.h.
Referenced by Init(), and ReinitDone().
|
private |
Definition at line 171 of file mythmainwindow.h.
Referenced by customEvent(), event(), HandleTVAction(), MythMainWindow(), RestartInputHandlers(), and ~MythMainWindow().
|
private |
Definition at line 172 of file mythmainwindow.h.
Referenced by IsScreensaverAsleep(), MythMainWindow(), and ~MythMainWindow().
|
private |
Definition at line 173 of file mythmainwindow.h.
Referenced by customEvent(), DisableIdleTimer(), MythMainWindow(), PauseIdleTimer(), and ResetIdleTimer().
|
private |
Definition at line 174 of file mythmainwindow.h.
Referenced by customEvent(), IdleTimeout(), MythMainWindow(), PauseIdleTimer(), and ResetIdleTimer().