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 | 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="", 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 |
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 } |
MythPainterWindow * | m_painterWin { nullptr } |
MythInputDeviceHandler * | m_deviceHandler { nullptr } |
MythScreenSaverControl * | m_screensaver { nullptr } |
QTimer | m_idleTimer |
std::chrono::minutes | m_idleTime { 0min } |
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 } |
bool | m_forceFullScreen { false } |
Definition at line 28 of file mythmainwindow.h.
Definition at line 131 of file mythmainwindow.cpp.
Referenced by getMainWindow().
|
overrideprotected |
Definition at line 210 of file mythmainwindow.cpp.
Definition at line 641 of file mythmainwindow.cpp.
Referenced by main(), reloadTheme(), resetTheme(), and MythContextPrivate::TempMainWindow().
void MythMainWindow::Show | ( | ) |
Definition at line 961 of file mythmainwindow.cpp.
Referenced by DelayedAction(), TV::DoEditSchedule(), Init(), MythVideoOutputGPU::ResizeForVideo(), ShowMouseCursor(), and TV::~TV().
void MythMainWindow::MoveResize | ( | QRect & | Geometry | ) |
Definition at line 972 of file mythmainwindow.cpp.
Referenced by DelayedAction(), TV::DoEditSchedule(), TV::Embed(), TV::HandleStateChange(), Init(), MythVideoOutputGPU::ResizeForVideo(), and TV::~TV().
void MythMainWindow::AddScreenStack | ( | MythScreenStack * | Stack, |
bool | Main = false |
||
) |
Definition at line 297 of file mythmainwindow.cpp.
Referenced by MythScreenStack::MythScreenStack().
void MythMainWindow::PopScreenStack | ( | ) |
Definition at line 304 of file mythmainwindow.cpp.
Referenced by Weather::~Weather().
int MythMainWindow::GetStackCount | ( | ) |
Definition at line 313 of file mythmainwindow.cpp.
Referenced by MythUIWebBrowser::Init().
MythScreenStack * MythMainWindow::GetMainStack | ( | ) |
Definition at line 318 of file mythmainwindow.cpp.
Referenced by MythThemedMenu::aboutScreen(), CardInput::channelScanner(), ChannelEditor::customEvent(), StreamView::customEvent(), PlaylistEditorView::customEvent(), customEvent(), VideoDialog::DoItemDetailShow(), ScreenSetup::doLocationDialog(), ChannelEditor::edit(), ProgramRecPriority::edit(), ScheduleCommon::EditCustom(), MythBurn::editDetails(), LyricsView::editLyrics(), ScheduleCommon::EditScheduled(), StreamView::editStream(), MythBurn::editThumbnails(), MusicCommon::editTrackInfo(), MythContextPrivate::EndTempWindow(), ExitToMainMenu(), GameCallback(), MythUILocation::GetCurrentLocation(), SchemaUpgradeWizard::GuiPrompt(), MythBurn::handleAddFile(), ExportNative::handleAddRecording(), MythBurn::handleAddRecording(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), SelectDestination::handleFind(), handleGalleryMedia(), handleMedia(), DVDThemeSelector::handleNextPage(), SelectDestination::handleNextPage(), MythContextPrivate::Init(), TV::Init(), internal_play_media(), IsTopScreenInitialized(), PlaylistEditorView::keyPressEvent(), MythThemedMenu::keyPressEvent(), main(), ScheduleCommon::MakeOverride(), ChannelScannerGUI::MonitorProgress(), MusicCallback(), mythplugin_config(), mythplugin_run(), ProgramRecPriority::newTemplate(), ArchiveFileSelector::nextPressed(), ZMEvents::playPressed(), MythScreenStack::PopScreen(), MythNotificationScreenStack::PopScreen(), AudioTest::prepareTest(), NetworkControl::processTheme(), LanguageSelection::prompt(), BackendSelection::Prompt(), MythContextPrivate::PromptForDatabaseParams(), ManualSchedule::recordClicked(), CustomEdit::recordClicked(), PhrasePopup::recordClicked(), PowerSearchPopup::recordClicked(), ChannelEditor::restoreData(), XMLTV_generic_config::RunConfig(), runCreateArchive(), runCreateDVD(), RunGallery(), RunGames(), runImportVideo(), runMenu(), RunMenu(), RunNetTree(), RunNetVision(), RunNews(), PlaybackBox::RunPlaybackBox(), RunProgramFinder(), GuideGrid::RunProgramGuide(), runRipCD(), NetTree::RunRSSEditor(), ScheduleEditor::RunScheduleEditor(), NetSearch::RunSearchEditor(), NetTree::RunTreeEditor(), RunVideoScreen(), ViewScheduled::RunViewScheduled(), RunWeather(), runZMConsole(), runZMEventView(), runZMLiveView(), runZMMiniPlayer(), ChannelEditor::scan(), EditStreamMetadata::searchClicked(), MediaMonitor::selectDrivePopup(), setDebugShowBorders(), setDebugShowNames(), SetupMenuCallback(), Weather::setupPage(), Weather::SetupScreens(), ScheduleCommon::ShowChannelSearch(), ScheduleCommon::ShowDetails(), MythNews::ShowEditDialog(), BookmarkManager::ShowEditDialog(), ImportMusicDialog::showEditMetadataDialog(), Ripper::showEditMetadataDialog(), MythNews::ShowFeedManager(), ScheduleEditor::ShowFilters(), MythContextPrivate::ShowGuiStartup(), ImportMusicDialog::showImportCoverArtDialog(), GameUI::showInfo(), showLogViewer(), MythThemedMenu::ShowMenu(), PlaybackBox::showMetadataEditor(), ScheduleEditor::ShowMetadataOptions(), ProgLister::ShowOldRecordedMenu(), ScheduleEditor::ShowPostProc(), ScheduleEditor::ShowPreview(), ScheduleCommon::ShowPrevious(), SmartPlaylistEditor::showResultsClicked(), ScheduleEditor::ShowSchedOpt(), WelcomeDialog::ShowSettings(), GalleryThumbView::ShowSettings(), showStatus(), ScheduleEditor::ShowStoreOpt(), ScheduleCommon::ShowUpcoming(), ScheduleEditor::showUpcomingByRule(), ScheduleCommon::ShowUpcomingScheduled(), MythBrowser::slotAddBookmark(), BookmarkManager::slotBookmarkClicked(), RSSEditor::SlotEditSite(), RSSEditor::SlotNewSite(), GeneralSetupWizard::slotNext(), AudioSetupWizard::slotNext(), BookmarkManager::slotSettings(), BookmarkManager::slotShowMarked(), standbyScreen(), startAppearWiz(), startChannelRecPriorities(), startCustomEdit(), startCustomPriority(), startDatabaseTree(), startImport(), startKeysSetup(), startManaged(), startManageRecordingRules(), startManualSchedule(), startPlayback(), startPlaybackWithGroup(), startPrevious(), startPreviousOld(), Ripper::startRipper(), startRipper(), startSearchCategory(), startSearchChannel(), startSearchKeyword(), startSearchMovie(), startSearchNew(), startSearchPeople(), startSearchPower(), startSearchStored(), startSearchTime(), startSearchTitle(), GalleryThumbView::StartSlideshow(), startStreamPlayback(), CustomEdit::storeClicked(), EditMetadataDialog::switchToAlbumArt(), EditAlbumartDialog::switchToMetadata(), MusicCommon::switchView(), SysEventHandleAction(), CustomEdit::testClicked(), CustomPriority::testSchedule(), ChannelEditor::transportEditor(), TVMenuCallback(), ChannelRecPriority::upcoming(), MythDialogBox::updateMenu(), and WeatherCallback().
MythScreenStack * MythMainWindow::GetStack | ( | const QString & | Stackname | ) |
Definition at line 323 of file mythmainwindow.cpp.
Referenced by MythControls::ActionButtonPressed(), SmartPlaylistEditor::addCriteria(), MythBurn::changeProfile(), MythControls::ChangeView(), GuideGrid::ChannelGroupMenu(), ChannelEditor::channelIconImport(), MythThemedMenu::checkPinCode(), ImportMusicDialog::chooseBackend(), Ripper::chooseBackend(), GameHandler::clearAllGameData(), GUIStartup::Close(), MythControls::Close(), StandardSettingDialog::Close(), ExitPrompter::Confirm(), GalleryThumbView::Copy(), ImportMusicDialog::copyFile(), CardInput::CreateNewInputGroup(), PlayGroupEditor::CreateNewPlayBackGroup(), GameHandler::CreateProgress(), ProgFinder::customEvent(), MusicCommon::customEvent(), ProgramRecPriority::customEvent(), SmartPlaylistEditor::customEvent(), MusicPlayer::customEvent(), ChannelEditor::del(), ZMEvents::deleteAll(), ChannelEditor::deleteChannels(), MythControls::DeleteKey(), ViewScheduled::deleteRule(), GuideGrid::deleteRule(), PlaybackBox::displayRecGroup(), ParentalLevelChangeCheckerPrivate::DoCheck(), EditAlbumartDialog::doCopyImageToTag(), MythWebView::doDownloadRequested(), ScreenWizard::doExit(), ScreenSetup::doListSelect(), ScreenWizard::doMenu(), VideoScanner::doScan(), GameScanner::doScan(), LocationDialog::doSearch(), MythUITextEditSetting::edit(), MythUIFileBrowserSetting::edit(), MythUIComboBoxSetting::edit(), MythUISpinBoxSetting::edit(), PowerSearchPopup::editClicked(), SmartPlaylistEditor::editCriteria(), CriteriaRowEditor::editDate(), EditMetadataDialog::EditMetadataDialog(), ScheduleCommon::EditRecording(), ExitPrompterPrivate::ExitPrompterPrivate(), MetadataOptions::FindImagePopup(), SourceManager::findScripts(), GameUI::GameUI(), GeneralSetupWizard::GeneralSetupWizard(), MythUILocation::GetCurrentLocation(), MythControls::GrabKey(), ExitPrompter::HandleExit(), handleMedia(), ImportIconsWizard::ImportIconsWizard(), RecordingSelector::Init(), MythBrowser::keyPressEvent(), MythUITextEdit::keyPressEvent(), BookmarkManager::keyPressEvent(), MusicData::loadMusic(), ImportMusicDialog::locationPressed(), ChannelEditor::menu(), TransportListEditor::Menu(), GallerySlideView::MenuMain(), MetadataOptions::MetadataOptions(), GalleryThumbView::Move(), NetEditorBase::NetEditorBase(), EditMetadataDialog::NewCategoryPopup(), PlaybackSettings::NewPlaybackProfileSlot(), GamePlayersList::NewPlayerDialog(), MusicPlayer::nextAuto(), FileAssocDialog::OnNewExtensionPressed(), MythWebView::openBusyPopup(), MythScreenType::OpenBusyPopup(), SmartPlaylistEditor::orderByClicked(), PlaybackBox::PlaybackBox(), GameHandler::processGames(), NetworkControl::processTheme(), BackendSelection::PromptForPassword(), StoreOptMixin::PromptForRecGroup(), GameHandler::promptForRemoval(), ChannelImporter::QueryUserDelete(), ChannelImporter::QueryUserInsert(), ChannelImporter::QueryUserUpdate(), RecMetadataEdit::RecMetadataEdit(), MusicData::reloadMusic(), ProgramRecPriority::remove(), MythControls::ResolveConflict(), MythUIComboBoxSetting::resultEdit(), runHomepage(), RunVideoScreen(), AlbumArtImages::scanForImages(), EditMetadataDialog::searchAlbum(), Ripper::searchAlbum(), EditMetadataDialog::searchArtist(), Ripper::searchArtist(), EditMetadataDialog::searchCompilationArtist(), EditMetadataDialog::searchGenre(), Ripper::searchGenre(), GameUI::searchStart(), VideoDialog::searchStart(), RSSEditPopup::SelectImagePopup(), PlaybackBox::setRecGroup(), ShowBusyPopup(), SmartPlaylistEditor::showCategoryMenu(), ProgLister::ShowChooseViewMenu(), GallerySettings::ShowConfirmDialog(), Ripper::ShowConflictMenu(), SmartPlaylistEditor::showCriteriaMenu(), StorageGroupEditor::ShowDeleteDialog(), StorageGroupDirSetting::ShowDeleteDialog(), PlaybackProfileItemConfig::ShowDeleteDialog(), ProgLister::ShowDeleteRuleMenu(), MythWebView::showDownloadMenu(), MythUISpinBox::ShowEntryDialog(), MusicCommon::showExitMenu(), StorageGroupEditor::ShowFileBrowser(), PrevRecordedList::ShowItemMenu(), GuideGrid::ShowJumpToTime(), ImportNative::showList(), ChannelImporter::ShowManualChannelPopup(), VisualizerView::ShowMenu(), LyricsView::ShowMenu(), SearchView::ShowMenu(), StreamView::ShowMenu(), WelcomeDialog::ShowMenu(), ViewScheduled::ShowMenu(), MythNews::ShowMenu(), PrevRecordedList::ShowMenu(), ChannelRecPriority::ShowMenu(), LogViewer::ShowMenu(), RecordingSelector::ShowMenu(), ThumbFinder::ShowMenu(), ExportNative::ShowMenu(), VideoSelector::ShowMenu(), ProgFinder::ShowMenu(), ZMEvents::ShowMenu(), MusicCommon::ShowMenu(), ZMLivePlayer::ShowMenu(), MythBurn::ShowMenu(), PlaylistEditorView::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 331 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 1111 of file mythmainwindow.cpp.
Referenced by KeyLongPressFilter(), MythChannelOverlay::keyPressEvent(), MythFlashPlayer::keyPressEvent(), ChannelEditor::keyPressEvent(), MythNavigationOverlay::keyPressEvent(), ZMMiniPlayer::keyPressEvent(), MiniPlayer::keyPressEvent(), StorageGroupEditor::keyPressEvent(), MythUIButtonTree::keyPressEvent(), VisualizerView::keyPressEvent(), SearchView::keyPressEvent(), LyricsView::keyPressEvent(), ProgDetails::keyPressEvent(), CustomEdit::keyPressEvent(), StreamView::keyPressEvent(), MythUICheckBox::keyPressEvent(), MythBrowser::keyPressEvent(), WelcomeDialog::keyPressEvent(), ScreenWizard::keyPressEvent(), Weather::keyPressEvent(), BookmarkEditor::keyPressEvent(), NetSearch::keyPressEvent(), ChannelRecPriority::keyPressEvent(), MythNews::keyPressEvent(), MythNewsConfig::keyPressEvent(), NetEditorBase::keyPressEvent(), SelectDestination::keyPressEvent(), MythUIButton::keyPressEvent(), EditMetadataCommon::keyPressEvent(), ProgFinder::keyPressEvent(), LogViewer::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), MythNewsEditor::keyPressEvent(), MythUISpinBox::keyPressEvent(), GameUI::keyPressEvent(), GalleryThumbView::keyPressEvent(), ThemeChooser::keyPressEvent(), PrevRecordedList::keyPressEvent(), GallerySlideView::keyPressEvent(), ViewScheduled::keyPressEvent(), ZMEvents::keyPressEvent(), RecordingSelector::keyPressEvent(), ZMPlayer::keyPressEvent(), ExportNative::keyPressEvent(), MythUITextEdit::keyPressEvent(), MythUIBusyDialog::keyPressEvent(), StatusBox::keyPressEvent(), TrackInfoPopup::keyPressEvent(), ThumbFinder::keyPressEvent(), VideoSelector::keyPressEvent(), RSSEditPopup::keyPressEvent(), NetTree::keyPressEvent(), ProgLister::keyPressEvent(), FileSelector::keyPressEvent(), TransportSetting::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), VideoDialog::keyPressEvent(), MythScreenType::keyPressEvent(), MusicCommon::keyPressEvent(), StorageGroupDirSetting::keyPressEvent(), ZMConsole::keyPressEvent(), MythBurn::keyPressEvent(), MythUIProgressDialog::keyPressEvent(), EditLyricsDialog::keyPressEvent(), ZMLivePlayer::keyPressEvent(), ImportMusicDialog::keyPressEvent(), BookmarkManager::keyPressEvent(), ProgramRecPriority::keyPressEvent(), ScreenSetup::keyPressEvent(), PlaylistEditorView::keyPressEvent(), MythThemedMenu::keyPressEvent(), SmartPlaylistEditor::keyPressEvent(), ImportNative::keyPressEvent(), MythWebView::keyPressEvent(), RSSEditor::keyPressEvent(), Ripper::keyPressEvent(), GuideGrid::keyPressEvent(), PlaybackBox::keyPressEvent(), MythUIWebBrowser::keyPressEvent(), EditAlbumartDialog::keyPressEvent(), MythNotificationScreen::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), MythUIButtonList::keyPressEvent(), MythMusicVolumeDialog::keyPressEvent(), SmartPLResultViewer::keyPressEvent(), RipStatus::keyPressEvent(), MythDialogBox::keyPressEvent(), TrackInfoDialog::keyPressEvent(), MythConfirmationDialog::keyPressEvent(), SearchButtonListDialog::keyPressEvent(), StandardSettingDialog::keyPressEvent(), ItemDetailPopup::keyPressEvent(), TV::TranslateGesture(), and TV::TranslateKeyPressOrGesture().
bool MythMainWindow::KeyLongPressFilter | ( | QEvent ** | Event, |
QScopedPointer< QEvent > & | NewEvent | ||
) |
Definition at line 1546 of file mythmainwindow.cpp.
Referenced by eventFilter(), and TV::eventFilter().
void MythMainWindow::ReloadKeys | ( | ) |
Definition at line 953 of file mythmainwindow.cpp.
Referenced by main(), ReloadKeys(), and resetAllKeys().
void MythMainWindow::ClearKey | ( | const QString & | Context, |
const QString & | Action | ||
) |
Definition at line 1187 of file mythmainwindow.cpp.
Referenced by KeyBindings::CommitAction().
void MythMainWindow::ClearKeyContext | ( | const QString & | Context | ) |
Definition at line 1204 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 1211 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 1249 of file mythmainwindow.cpp.
Referenced by InitKeys(), and REG_KEY().
|
static |
Definition at line 1318 of file mythmainwindow.cpp.
Referenced by GET_KEY(), TV::InitKeys(), MythUIVirtualKeyboard::loadEventKeyDefinitions(), and MythUIButtonList::ParseElement().
QObject * MythMainWindow::GetTarget | ( | QKeyEvent & | Key | ) |
Definition at line 2081 of file mythmainwindow.cpp.
Referenced by MythInputDeviceHandler::customEvent(), customEvent(), and eventFilter().
QString MythMainWindow::GetActionText | ( | const QString & | Context, |
const QString & | Action | ||
) | const |
Definition at line 1339 of file mythmainwindow.cpp.
Referenced by TV::MenuItemDisplayCutlist(), and TV::MenuItemDisplayPlayback().
void MythMainWindow::ClearJump | ( | const QString & | Destination | ) |
Definition at line 1351 of file mythmainwindow.cpp.
Referenced by ClearAllJumps(), and KeyBindings::CommitJumppoint().
void MythMainWindow::BindJump | ( | const QString & | Destination, |
const QString & | Key | ||
) |
Definition at line 1371 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 1412 of file mythmainwindow.cpp.
Referenced by REG_JUMP(), REG_JUMPEX(), and REG_JUMPLOC().
void MythMainWindow::ClearAllJumps | ( | ) |
Definition at line 1449 of file mythmainwindow.cpp.
Referenced by ReloadJumpPoints().
void MythMainWindow::RegisterMediaPlugin | ( | const QString & | Name, |
const QString & | Desc, | ||
MediaPlayCallback | Func | ||
) |
Definition at line 1480 of file mythmainwindow.cpp.
Referenced by REG_MEDIAPLAYER().
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 |
||
) |
Definition at line 1496 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 1521 of file mythmainwindow.cpp.
Referenced by MythScreenType::keyPressEvent().
Definition at line 1457 of file mythmainwindow.cpp.
Referenced by AppearanceSettings::applyChange(), ThemeChooser::customEvent(), MythControls::customEvent(), ExitStandby(), MythThemedMenu::handleAction(), handleGalleryMedia(), handleSIGUSR1(), IdleTimeout(), main(), Frontend::PlayRecording(), MythFrontendService::PlayRecording(), NetworkControl::processJump(), NetworkControl::processPlay(), NetworkControl::processTheme(), ThemeChooser::saveAndReload(), startAppearWiz(), and TranslateKeyPress().
bool MythMainWindow::DestinationExists | ( | const QString & | Destination | ) | const |
Definition at line 1470 of file mythmainwindow.cpp.
Referenced by main(), and MythThemedMenu::parseThemeButton().
QStringList MythMainWindow::EnumerateDestinations | ( | ) | const |
Definition at line 1475 of file mythmainwindow.cpp.
Referenced by main().
bool MythMainWindow::IsExitingToMain | ( | ) | const |
Definition at line 1039 of file mythmainwindow.cpp.
Referenced by TV::ActiveHandleAction(), MythScreenType::inputMethodEvent(), 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 80 of file mythmainwindow.cpp.
Referenced by GetMythMainWindow(), GetMythPainter(), MythRenderOpenGL::GetOpenGLRender(), MythDisplayOSX::GetVideoModes(), MythRenderVulkan::GetVulkanRender(), MythDisplayOSX::SwitchToVideoMode(), MythContextPrivate::TempMainWindow(), MythDisplayWindows::UpdateCurrentMode(), and MythDisplayOSX::UpdateCurrentMode().
|
static |
Definition at line 96 of file mythmainwindow.cpp.
Referenced by DestroyMythMainWindow().
MythDisplay * MythMainWindow::GetDisplay | ( | ) |
Definition at line 253 of file mythmainwindow.cpp.
Referenced by AppearanceSettings::AppearanceSettings(), StatusBox::doDisplayStatus(), TV::DoEditSchedule(), HostRefreshRateComboBoxSetting::GetRefreshRates(), GrabWindow(), GuiVidModeResolution(), TV::Init(), MythPainterGPU::MythPainterGPU(), MythCECAdapter::Open(), TVVidModeResolution(), and TV::~TV().
MythPainter * MythMainWindow::GetPainter | ( | ) |
Definition at line 258 of file mythmainwindow.cpp.
Referenced by ZMClient::getEventFrame(), ThumbFinder::getFrameImage(), GetMythPainter(), setDebugShowBorders(), setDebugShowNames(), Player::updateFrame(), and ThumbFinder::updatePositionBar().
QWidget * MythMainWindow::GetPaintWindow | ( | ) |
Definition at line 268 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 292 of file mythmainwindow.cpp.
Referenced by StatusBox::doRenderStatus(), MythRenderOpenGL::GetOpenGLRender(), MythRenderVulkan::GetVulkanRender(), and MythVideoProfile::InitStatics().
MythNotificationCenter * MythMainWindow::GetCurrentNotificationCenter | ( | ) |
Definition at line 263 of file mythmainwindow.cpp.
Referenced by OSD::Draw(), GetNotificationCenter(), OSD::HideAll(), and OSD::IsOSDVisible().
void MythMainWindow::ShowPainterWindow | ( | ) |
Definition at line 273 of file mythmainwindow.cpp.
Referenced by Init(), and SetDrawEnabled().
void MythMainWindow::HidePainterWindow | ( | ) |
Definition at line 282 of file mythmainwindow.cpp.
Referenced by SetDrawEnabled().
|
static |
Definition at line 490 of file mythmainwindow.cpp.
Referenced by ScreenShot().
|
static |
Definition at line 537 of file mythmainwindow.cpp.
Referenced by ScreenShot().
|
static |
Definition at line 565 of file mythmainwindow.cpp.
Referenced by TV::ActiveHandleAction(), customEvent(), TV::customEvent(), and MythScreenType::keyPressEvent().
|
static |
Definition at line 577 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 583 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 589 of file mythmainwindow.cpp.
Referenced by MythInputDeviceHandler::customEvent(), MythCECAdapter::HandleKeyPress(), MythCECAdapter::HandleSource(), NetworkControl::processKey(), Frontend::SendAction(), Frontend::SendKey(), and MythFrontendService::SendKey().
|
static |
Definition at line 595 of file mythmainwindow.cpp.
Referenced by MythInputDeviceHandler::customEvent().
|
static |
Definition at line 606 of file mythmainwindow.cpp.
Referenced by Frontend::PlayRecording(), MythFrontendService::PlayRecording(), and NetworkControl::processPlay().
void MythMainWindow::RemoteScreenShot | ( | QString | Filename, |
int | Width, | ||
int | Height | ||
) |
Definition at line 530 of file mythmainwindow.cpp.
Referenced by MythFEXML::GetScreenShot().
void MythMainWindow::AllowInput | ( | bool | Allow | ) |
Definition at line 1526 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 2101 of file mythmainwindow.cpp.
Referenced by handleSIGUSR2(), and MonitorThread::run().
uint MythMainWindow::PushDrawDisabled | ( | ) |
Definition at line 983 of file mythmainwindow.cpp.
Referenced by customEvent(), TV::Embed(), TV::HandleStateChange(), and OnApplicationStateChange().
uint MythMainWindow::PopDrawDisabled | ( | ) |
Definition at line 992 of file mythmainwindow.cpp.
Referenced by customEvent(), TV::DoEditSchedule(), OnApplicationStateChange(), and TV::~TV().
void MythMainWindow::SetEffectsEnabled | ( | bool | Enable | ) |
Definition at line 1028 of file mythmainwindow.cpp.
Referenced by main(), and reloadTheme().
void MythMainWindow::Draw | ( | MythPainter * | Painter = nullptr | ) |
Definition at line 436 of file mythmainwindow.cpp.
Referenced by drawScreen(), and MythVideoOutputGPU::RenderFrame().
void MythMainWindow::ResetIdleTimer | ( | ) |
Reset the idle timeout timer.
Definition at line 2136 of file mythmainwindow.cpp.
Referenced by eventFilter().
void MythMainWindow::PauseIdleTimer | ( | bool | Pause | ) |
Pause the idle timeout timer.
Definition at line 2153 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 2125 of file mythmainwindow.cpp.
Referenced by main().
Definition at line 2196 of file mythmainwindow.cpp.
Referenced by IdleScreen::IdleScreen(), and IdleTimeout().
Definition at line 2231 of file mythmainwindow.cpp.
Referenced by ResetIdleTimer(), and IdleScreen::~IdleScreen().
|
override |
Definition at line 472 of file mythmainwindow.cpp.
Referenced by MythPainterWindowOpenGL::paintEngine().
|
slot |
Definition at line 1531 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
slot |
Definition at line 2117 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
slot |
Definition at line 2176 of file mythmainwindow.cpp.
Referenced by ExitPrompter::DoStandby(), and MythMainWindow().
|
protectedslot |
Definition at line 338 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
protectedslot |
Definition at line 519 of file mythmainwindow.cpp.
Referenced by MythMainWindow().
|
protectedslot |
Definition at line 1004 of file mythmainwindow.cpp.
Referenced by MythMainWindow(), PopDrawDisabled(), and PushDrawDisabled().
|
protectedslot |
Definition at line 2258 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 634 of file mythmainwindow.cpp.
Referenced by Init().
|
protected |
Definition at line 792 of file mythmainwindow.cpp.
Referenced by MythMainWindow(), and ReloadKeys().
|
overrideprotected |
Definition at line 1644 of file mythmainwindow.cpp.
|
overrideprotected |
Definition at line 1894 of file mythmainwindow.cpp.
|
overrideprotected |
Definition at line 477 of file mythmainwindow.cpp.
|
protected |
Definition at line 376 of file mythmainwindow.cpp.
Referenced by MythPainterWindowQt::paintEvent(), MythPainterWindowVulkan::paintEvent(), and MythPainterWindowOpenGL::paintEvent().
|
overrideprotected |
Definition at line 613 of file mythmainwindow.cpp.
Referenced by customEvent(), eventFilter(), and MouseTimeout().
|
protected |
Definition at line 1044 of file mythmainwindow.cpp.
Referenced by customEvent().
|
protected |
Definition at line 2106 of file mythmainwindow.cpp.
Referenced by eventFilter(), HideMouseTimeout(), and Init().
|
privateslot |
Definition at line 778 of file mythmainwindow.cpp.
Referenced by Init().
|
friend |
Definition at line 32 of file mythmainwindow.h.
|
friend |
Definition at line 33 of file mythmainwindow.h.
|
friend |
Definition at line 34 of file mythmainwindow.h.
|
private |
Definition at line 155 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 156 of file mythmainwindow.h.
Referenced by GetDisplay(), Init(), MythMainWindow(), and ~MythMainWindow().
|
private |
Definition at line 157 of file mythmainwindow.h.
Referenced by Animate(), Draw(), and drawScreen().
|
private |
Definition at line 158 of file mythmainwindow.h.
Referenced by MythMainWindow().
|
private |
Definition at line 159 of file mythmainwindow.h.
Referenced by Init(), and ~MythMainWindow().
|
private |
Definition at line 160 of file mythmainwindow.h.
Referenced by Draw(), drawScreen(), GetPainter(), Init(), and ~MythMainWindow().
|
private |
Definition at line 161 of file mythmainwindow.h.
Referenced by Animate(), Draw(), drawScreen(), GetPaintWindow(), GetRenderDevice(), HidePainterWindow(), Init(), MoveResize(), ShowPainterWindow(), and ~MythMainWindow().
|
private |
Definition at line 162 of file mythmainwindow.h.
Referenced by customEvent(), event(), HandleTVAction(), MythMainWindow(), RestartInputHandlers(), and ~MythMainWindow().
|
private |
Definition at line 163 of file mythmainwindow.h.
Referenced by IsScreensaverAsleep(), MythMainWindow(), and ~MythMainWindow().
|
private |
Definition at line 164 of file mythmainwindow.h.
Referenced by customEvent(), DisableIdleTimer(), MythMainWindow(), PauseIdleTimer(), and ResetIdleTimer().
|
private |
Definition at line 165 of file mythmainwindow.h.
Referenced by customEvent(), IdleTimeout(), MythMainWindow(), PauseIdleTimer(), and ResetIdleTimer().