MythTV  master
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members

Screen in which all other widgets are contained and rendered. More...

#include <mythscreentype.h>

Inheritance diagram for MythScreenType:
Inheritance graph
[legend]
Collaboration diagram for MythScreenType:
Collaboration graph
[legend]

Public Slots

virtual void Close ()
 
- Public Slots inherited from MythUIType
void LoseFocus ()
 
bool TakeFocus ()
 
void Activate ()
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 

Signals

void Exiting ()
 
- Signals inherited from MythUIType
void RequestUpdate ()
 
void RequestUpdate (const QRect &)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 

Public Member Functions

 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
virtual ~MythScreenType ()
 
virtual bool Create (void)
 
bool keyPressEvent (QKeyEvent *) override
 Key event handler. More...
 
bool gestureEvent (MythGestureEvent *) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void ShowMenu (void)
 
void doInit (void)
 
void LoadInForeground (void)
 
bool IsInitialized (void) const
 Has Init() been called on this screen? More...
 
bool IsFullscreen (void) const
 
void SetFullscreen (bool full)
 
MythUITypeGetFocusWidget (void) const
 
bool SetFocusWidget (MythUIType *widget=nullptr)
 
virtual bool NextPrevWidgetFocus (bool up_or_down)
 
void BuildFocusList (void)
 
MythScreenStackGetScreenStack () const
 
virtual void aboutToHide (void)
 
virtual void aboutToShow (void)
 
bool IsDeleting (void) const
 
void SetDeleting (bool deleting)
 
bool IsLoading (void)
 
bool IsLoaded (void)
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
virtual ~MythUIComposite ()=default
 
virtual void SetTextFromMap (const InfoMap &infoMap)
 
virtual void ResetMap (const InfoMap &infoMap)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int)
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (const QSize &size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (const MythRect &rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (const QPoint &point) const
 Check if the given point falls within this widgets area. More...
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 

Protected Member Functions

 MythScreenType (MythUIType *parent, const QString &name, bool fullscreen=true)
 
void CopyFrom (MythUIType *base) override
 Copy this widgets state from another. More...
 
void CreateCopy (MythUIType *parent) override
 Copy the state of this widget to the one given, it must be of the same type. More...
 
bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings) override
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
virtual void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning) More...
 
virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load() More...
 
void LoadInBackground (QString message="")
 
void ReloadInBackground (void)
 
void OpenBusyPopup (const QString &message="")
 
void CloseBusyPopup (void)
 
void SetBusyPopupMessage (const QString &message)
 
void ResetBusyPopup (void)
 
- Protected Member Functions inherited from MythUIType
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod)
 
int NormX (const int width)
 
int NormY (const int height)
 
void ConnectDependants (bool recurse=false)
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Protected Attributes

bool m_FullScreen {false}
 
bool m_IsDeleting {false}
 
QSemaphore m_LoadLock {1}
 
volatile bool m_IsLoading {false}
 
volatile bool m_IsLoaded {false}
 
bool m_IsInitialized {false}
 
MythUITypem_CurrentFocusWidget {nullptr}
 
QMap< int, MythUIType * > m_FocusWidgetList
 
MythScreenStackm_ScreenStack {nullptr}
 
MythUIBusyDialogm_BusyPopup {nullptr}
 
QRegion m_SavedMask
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_ChildrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_Visible {true}
 
bool m_HasFocus {false}
 
bool m_CanHaveFocus {false}
 
bool m_Enabled {true}
 
bool m_EnableInitiator {false}
 
bool m_Initiator {false}
 
bool m_Vanish {false}
 
bool m_Vanished {false}
 
bool m_IsDependDefault {false}
 
QMap< MythUIType *, boolm_ReverseDepend
 
int m_focusOrder {0}
 
MythRect m_Area {0,0,0,0}
 
MythRect m_MinArea {0,0,0,0}
 
MythPoint m_MinSize
 
QRegion m_DirtyRegion {0,0,0,0}
 
bool m_NeedsRedraw {false}
 
UIEffects m_Effects
 
int m_AlphaChangeMode {0}
 
int m_AlphaChange {0}
 
int m_AlphaMin {0}
 
int m_AlphaMax {255}
 
bool m_Moving {false}
 
QPoint m_XYDestination {0,0}
 
QPoint m_XYSpeed {0,0}
 
FontMapm_Fonts {nullptr}
 
MythUITypem_Parent {nullptr}
 
MythPainterm_Painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_BorderColor {Qt::black}
 

Friends

class ScreenLoadTask
 
class XMLParseBase
 

Additional Inherited Members

- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

Detailed Description

Screen in which all other widgets are contained and rendered.

Definition at line 40 of file mythscreentype.h.

Constructor & Destructor Documentation

◆ MythScreenType() [1/2]

MythScreenType::MythScreenType ( MythScreenStack parent,
const QString &  name,
bool  fullscreen = true 
)

Definition at line 60 of file mythscreentype.cpp.

◆ ~MythScreenType()

MythScreenType::~MythScreenType ( )
virtual

Definition at line 89 of file mythscreentype.cpp.

◆ MythScreenType() [2/2]

MythScreenType::MythScreenType ( MythUIType parent,
const QString &  name,
bool  fullscreen = true 
)
protected

Definition at line 76 of file mythscreentype.cpp.

Member Function Documentation

◆ Create()

bool MythScreenType::Create ( void  )
virtual

Reimplemented in HelpPopup, ItemDetailPopup, RecMetadataEdit, PasswordChange, ChangeView, GroupSelector, StandardSettingDialog, MythTimeInputDialog, MetadataOptions, SearchButtonListDialog, MythUISearchDialog, PostProcEditor, StoreOptEditor, SchedFilterEditor, MythSpinBoxDialog, SmartPLDateDialog, SchedOptEditor, VideoFilterDialog, MythTextInputDialog, OsdNavigation, SmartPLOrderByDialog, TrackInfoDialog, SmartPLResultViewer, MythConfirmationDialog, RipStatus, MythMusicVolumeDialog, SubtitleScreen, ImportCoverArtDialog, MythNotificationScreen, CriteriaRowEditor, ScheduleEditor, SearchInputDialog, EditAlbumartDialog, MythDialogBox, LocationDialog, GuideGrid, PlaybackBox, MythOSDWindow, SourceSetup, SearchStream, EditPowerSearchPopup, Ripper, RSSEditor, ChannelEditor, ImportNative, MythUIFileBrowser, SmartPlaylistEditor, ScreenSetup, BookmarkManager, PowerSearchPopup, SpinBoxEntryDialog, EditMetadataDialog, PlaylistEditorView, ZMLivePlayer, EditLyricsDialog, ProgramRecPriority, EditStreamMetadata, ImportMusicDialog, ZMConsole, MythControls, MythUIProgressDialog, MythBurn, GUIStartup, VideoDialog, BackendSelection, ArchiveFileSelector, ChannelScannerGUIScanPane, FileSelector, MythUIVirtualKeyboard, ThumbFinder, NetTree, GlobalSetup, ProgLister, VideoSelector, TrackInfoPopup, BrowserConfig, RSSEditPopup, ExportNative, ZMPlayer, RecordingSelector, ZMEvents, FunctionDialog, MythUIBusyDialog, MythThemedMenuState, RawSettingsEditor, ViewScheduled, ImportIconsWizard, PrevRecordedList, ThemeChooser, ProgFinder, LanguageSelection, ViewScheduleDiff, WeatherScreen, PlotDialog, GameUI, MythTerminal, WelcomeDialog, EditMetadataDialog, EditMetadataDialog, NetEditorBase, ChannelRecPriority, GallerySlideView, GalleryThumbView, PhrasePopup, VideoSetupWizard, SelectDestination, DVDThemeSelector, MythNews, MythNewsEditor, ManualSchedule, BookmarkEditor, NetSearch, Weather, LogViewer, ProfileDialog, StreamView, ScreenWizard, CustomEdit, KeyGrabPopupBox, AudioSetupWizard, StatusBox, MythBrowser, LyricsView, SearchView, PlaylistView, MythNewsConfig, GrabberSettings, GeneralSetupWizard, VisualizerView, CustomPriority, ProgDetails, MetadataSettings, TvPlayWindow, FileAssocDialog, PlayerSettings, GeneralSettings, ImageSearchResultsDialog, MetadataResultsDialog, IdleScreen, TeletextScreen, CastDialog, ChannelEditor, GameDetailsPopup, EditRomInfoDialog, ImportSettings, MiniPlayer, ZMMiniPlayer, PlayerSettings, RatingSettings, VisualizationSettings, MythFlashPlayer, and InteractiveScreen.

Definition at line 284 of file mythscreentype.cpp.

Referenced by StreamView::customEvent(), OSD::DialogShow(), StreamView::editStream(), OSD::GetWindow(), main(), XMLTV_generic_config::RunConfig(), EditStreamMetadata::searchClicked(), ProgLister::ShowChooseViewMenu(), and BookmarkManager::slotBookmarkClicked().

◆ keyPressEvent()

bool MythScreenType::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythUIType.

Reimplemented in ItemDetailPopup, SearchButtonListDialog, SchedEditChild, TrackInfoDialog, SmartPLResultViewer, RipStatus, MythMusicVolumeDialog, ImportCoverArtDialog, ScheduleEditor, EditAlbumartDialog, GuideGrid, PlaybackBox, Ripper, RSSEditor, ImportNative, SmartPlaylistEditor, MythThemedMenu, ScreenSetup, BookmarkManager, EditMetadataDialog, PlaylistEditorView, ZMLivePlayer, EditLyricsDialog, ProgramRecPriority, ImportMusicDialog, ZMConsole, MythBurn, MusicCommon, VideoDialog, FileSelector, MythUIVirtualKeyboard, ThumbFinder, NetTree, ProgLister, VideoSelector, TrackInfoPopup, BrowserConfig, RSSEditPopup, ExportNative, ZMPlayer, RecordingSelector, ZMEvents, GallerySlideView, ThemeChooser, ViewScheduled, GalleryThumbView, PrevRecordedList, ProgFinder, ViewScheduleDiff, WeatherScreen, GameUI, WelcomeDialog, EditMetadataDialog, EditMetadataCommon, NetEditorBase, ChannelRecPriority, VideoSetupWizard, SelectDestination, DVDThemeSelector, MythNews, MythNewsEditor, BookmarkEditor, NetSearch, Weather, LogViewer, StreamView, ScreenWizard, CustomEdit, AudioSetupWizard, StatusBox, MythBrowser, LyricsView, SearchView, PlaylistView, MythNewsConfig, GrabberSettings, KeyGrabPopupBox, ProgDetails, GeneralSetupWizard, VisualizerView, MetadataSettings, PlayerSettings, IdleScreen, ChannelEditor, ImportSettings, MiniPlayer, ZMMiniPlayer, and MythFlashPlayer.

Definition at line 416 of file mythscreentype.cpp.

Referenced by OSD::DialogHandleKeypress(), MythMainWindow::eventFilter(), MythFlashPlayer::keyPressEvent(), ImportSettings::keyPressEvent(), IdleScreen::keyPressEvent(), PlayerSettings::keyPressEvent(), MetadataSettings::keyPressEvent(), GrabberSettings::keyPressEvent(), KeyGrabPopupBox::keyPressEvent(), ProgDetails::keyPressEvent(), GeneralSetupWizard::keyPressEvent(), MythNewsConfig::keyPressEvent(), StatusBox::keyPressEvent(), CustomEdit::keyPressEvent(), MythBrowser::keyPressEvent(), AudioSetupWizard::keyPressEvent(), ScreenWizard::keyPressEvent(), LogViewer::keyPressEvent(), Weather::keyPressEvent(), NetSearch::keyPressEvent(), BookmarkEditor::keyPressEvent(), VideoSetupWizard::keyPressEvent(), MythNews::keyPressEvent(), DVDThemeSelector::keyPressEvent(), MythNewsEditor::keyPressEvent(), ChannelRecPriority::keyPressEvent(), SelectDestination::keyPressEvent(), EditMetadataDialog::keyPressEvent(), EditMetadataCommon::keyPressEvent(), NetEditorBase::keyPressEvent(), WelcomeDialog::keyPressEvent(), GameUI::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), ProgFinder::keyPressEvent(), GalleryThumbView::keyPressEvent(), PrevRecordedList::keyPressEvent(), ThemeChooser::keyPressEvent(), ViewScheduled::keyPressEvent(), MythUIBusyDialog::keyPressEvent(), GallerySlideView::keyPressEvent(), ZMEvents::keyPressEvent(), RecordingSelector::keyPressEvent(), ZMPlayer::keyPressEvent(), ExportNative::keyPressEvent(), BrowserConfig::keyPressEvent(), RSSEditPopup::keyPressEvent(), TrackInfoPopup::keyPressEvent(), VideoSelector::keyPressEvent(), ProgLister::keyPressEvent(), ThumbFinder::keyPressEvent(), NetTree::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), FileSelector::keyPressEvent(), VideoDialog::keyPressEvent(), MusicCommon::keyPressEvent(), MythBurn::keyPressEvent(), MythUIProgressDialog::keyPressEvent(), ZMConsole::keyPressEvent(), ImportMusicDialog::keyPressEvent(), ProgramRecPriority::keyPressEvent(), EditLyricsDialog::keyPressEvent(), ZMLivePlayer::keyPressEvent(), BookmarkManager::keyPressEvent(), ScreenSetup::keyPressEvent(), MythThemedMenu::keyPressEvent(), SmartPlaylistEditor::keyPressEvent(), ImportNative::keyPressEvent(), ChannelEditor::keyPressEvent(), RSSEditor::keyPressEvent(), Ripper::keyPressEvent(), GuideGrid::keyPressEvent(), PlaybackBox::keyPressEvent(), ScheduleEditor::keyPressEvent(), MythNotificationScreen::keyPressEvent(), MythDialogBox::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), MythMusicVolumeDialog::keyPressEvent(), RipStatus::keyPressEvent(), SmartPLResultViewer::keyPressEvent(), MythConfirmationDialog::keyPressEvent(), TrackInfoDialog::keyPressEvent(), OsdNavigation::keyPressEvent(), SchedEditChild::keyPressEvent(), SearchButtonListDialog::keyPressEvent(), StandardSettingDialog::keyPressEvent(), and ItemDetailPopup::keyPressEvent().

◆ gestureEvent()

bool MythScreenType::gestureEvent ( MythGestureEvent event)
overridevirtual

Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.

Should not be used directly.

Parameters
eventMouse event

Reimplemented from MythUIType.

Reimplemented in GuideGrid.

Definition at line 460 of file mythscreentype.cpp.

Referenced by MythMainWindow::customEvent(), OSD::DialogHandleGesture(), MythMainWindow::eventFilter(), GuideGrid::gestureEvent(), and MythDialogBox::gestureEvent().

◆ ShowMenu()

void MythScreenType::ShowMenu ( void  )
virtual

◆ doInit()

void MythScreenType::doInit ( void  )

◆ LoadInForeground()

void MythScreenType::LoadInForeground ( void  )

Definition at line 319 of file mythscreentype.cpp.

Referenced by MythScreenStack::doInit().

◆ IsInitialized()

bool MythScreenType::IsInitialized ( void  ) const

◆ IsFullscreen()

bool MythScreenType::IsFullscreen ( void  ) const

◆ SetFullscreen()

void MythScreenType::SetFullscreen ( bool  full)

◆ GetFocusWidget()

MythUIType * MythScreenType::GetFocusWidget ( void  ) const

Definition at line 112 of file mythscreentype.cpp.

Referenced by MythUIVirtualKeyboard::charClicked(), PlaylistEditorView::createPlaylistMenu(), PlaybackBox::createPlaylistMenu(), PlaylistEditorView::createSmartPlaylistMenu(), MusicCommon::createSubMenu(), SearchView::customEvent(), ProgFinder::customEvent(), MythControls::customEvent(), PlaylistEditorView::customEvent(), ScreenSetup::doListSelect(), OsdNavigation::GeneralAction(), MythControls::GetCurrentAction(), MythControls::GetCurrentButton(), MythControls::GetCurrentContext(), MythControls::GetCurrentKey(), ProgFinder::GetCurrentProgram(), PlaybackBox::HandlePreviewEvent(), ZMMiniPlayer::keyPressEvent(), MiniPlayer::keyPressEvent(), ImportSettings::keyPressEvent(), KeyGrabPopupBox::keyPressEvent(), GeneralSetupWizard::keyPressEvent(), VisualizerView::keyPressEvent(), PlaylistView::keyPressEvent(), MythNewsConfig::keyPressEvent(), CustomEdit::keyPressEvent(), SearchView::keyPressEvent(), AudioSetupWizard::keyPressEvent(), LyricsView::keyPressEvent(), StatusBox::keyPressEvent(), MythBrowser::keyPressEvent(), ScreenWizard::keyPressEvent(), LogViewer::keyPressEvent(), StreamView::keyPressEvent(), BookmarkEditor::keyPressEvent(), NetSearch::keyPressEvent(), Weather::keyPressEvent(), MythNews::keyPressEvent(), MythNewsEditor::keyPressEvent(), ChannelRecPriority::keyPressEvent(), SelectDestination::keyPressEvent(), VideoSetupWizard::keyPressEvent(), DVDThemeSelector::keyPressEvent(), NetEditorBase::keyPressEvent(), EditMetadataDialog::keyPressEvent(), EditMetadataCommon::keyPressEvent(), WelcomeDialog::keyPressEvent(), GameUI::keyPressEvent(), WeatherScreen::keyPressEvent(), ProgFinder::keyPressEvent(), PrevRecordedList::keyPressEvent(), GalleryThumbView::keyPressEvent(), ThemeChooser::keyPressEvent(), ViewScheduled::keyPressEvent(), GallerySlideView::keyPressEvent(), RecordingSelector::keyPressEvent(), ZMEvents::keyPressEvent(), ZMPlayer::keyPressEvent(), ExportNative::keyPressEvent(), RSSEditPopup::keyPressEvent(), VideoSelector::keyPressEvent(), ProgLister::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), NetTree::keyPressEvent(), ThumbFinder::keyPressEvent(), FileSelector::keyPressEvent(), VideoDialog::keyPressEvent(), MusicCommon::keyPressEvent(), MythBurn::keyPressEvent(), ZMConsole::keyPressEvent(), ImportMusicDialog::keyPressEvent(), ProgramRecPriority::keyPressEvent(), EditLyricsDialog::keyPressEvent(), PlaylistEditorView::keyPressEvent(), ZMLivePlayer::keyPressEvent(), ScreenSetup::keyPressEvent(), MythThemedMenu::keyPressEvent(), ImportNative::keyPressEvent(), ChannelEditor::keyPressEvent(), RSSEditor::keyPressEvent(), Ripper::keyPressEvent(), PlaybackBox::keyPressEvent(), EditAlbumartDialog::keyPressEvent(), ScheduleEditor::keyPressEvent(), MythDialogBox::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), RipStatus::keyPressEvent(), MythConfirmationDialog::keyPressEvent(), OsdNavigation::keyPressEvent(), SchedEditChild::keyPressEvent(), SearchButtonListDialog::keyPressEvent(), MythControls::RefreshKeyInformation(), OSD::Reinit(), MusicCommon::searchButtonList(), ProgFinder::select(), StatusBox::setHelpText(), OsdNavigation::SetTextFromMap(), PlaybackBox::ShowGroupPopup(), ProgFinder::ShowGuide(), SearchView::ShowMenu(), ProgFinder::ShowMenu(), NetSearch::ShowMenu(), PlaylistEditorView::ShowMenu(), PlaybackBox::ShowMenu(), NetSearch::SlotItemChanged(), ViewScheduled::SwitchList(), PlaybackBox::SwitchList(), MythBrowser::switchTab(), PlaybackBox::togglePlayListItem(), ScreenSetup::updateHelpText(), ProgFinder::updateInfo(), MythNews::updateInfoView(), and PlaybackBox::UpdateUIListItem().

◆ SetFocusWidget()

bool MythScreenType::SetFocusWidget ( MythUIType widget = nullptr)

Definition at line 117 of file mythscreentype.cpp.

Referenced by BuildFocusList(), MythControls::ChangeButtonFocus(), BackendSelection::ConnectBackend(), MythFlashPlayer::Create(), VisualizationSettings::Create(), GameDetailsPopup::Create(), ImportSettings::Create(), GeneralSettings::Create(), MythNewsConfig::Create(), KeyGrabPopupBox::Create(), MythBrowser::Create(), SearchView::Create(), LogViewer::Create(), ProfileDialog::Create(), BookmarkEditor::Create(), PhrasePopup::Create(), GallerySlideView::Create(), SelectDestination::Create(), MythNews::Create(), DVDThemeSelector::Create(), MythNewsEditor::Create(), WelcomeDialog::Create(), FunctionDialog::Create(), RecordingSelector::Create(), ZMPlayer::Create(), ExportNative::Create(), VideoSelector::Create(), NetTree::Create(), ThumbFinder::Create(), FileSelector::Create(), ArchiveFileSelector::Create(), VideoDialog::Create(), MythBurn::Create(), ZMConsole::Create(), PowerSearchPopup::Create(), ScreenSetup::Create(), ImportNative::Create(), ChannelEditor::Create(), RSSEditor::Create(), EditPowerSearchPopup::Create(), SourceSetup::Create(), LocationDialog::Create(), MythConfirmationDialog::Create(), ItemDetailPopup::Create(), PrevRecordedList::customEvent(), ProgFinder::customEvent(), MythControls::customEvent(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), ProgInfoList::Display(), InfoList::Display(), LocationDialog::doSearch(), ImportIconsWizard::enableControls(), gestureEvent(), ThumbFinder::getThumbImages(), ThemeChooser::Init(), PlaybackBox::Init(), MythBrowser::keyPressEvent(), ZMEvents::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), CustomPriority::loadData(), ImportIconsWizard::menuSelection(), NextPrevWidgetFocus(), PhrasePopup::phraseClicked(), NetSearch::SearchFinished(), ProgFinder::select(), GalleryThumbView::SelectZoomWidget(), ZMEvents::setGridLayout(), OsdNavigation::SetTextFromMap(), GUIStartup::setTotal(), MythBrowser::slotTabLosingFocus(), ViewScheduled::SwitchList(), PlaybackBox::SwitchList(), and MythBrowser::switchTab().

◆ NextPrevWidgetFocus()

bool MythScreenType::NextPrevWidgetFocus ( bool  up_or_down)
virtual

◆ BuildFocusList()

void MythScreenType::BuildFocusList ( void  )

Definition at line 224 of file mythscreentype.cpp.

Referenced by Ripper::compilationChanged(), CopyFrom(), MythFlashPlayer::Create(), RatingSettings::Create(), VisualizationSettings::Create(), MiniPlayer::Create(), GameDetailsPopup::Create(), EditRomInfoDialog::Create(), ImportSettings::Create(), CastDialog::Create(), ImageSearchResultsDialog::Create(), MetadataResultsDialog::Create(), GeneralSettings::Create(), FileAssocDialog::Create(), CustomPriority::Create(), ProgDetails::Create(), GeneralSetupWizard::Create(), VisualizerView::Create(), PlaylistView::Create(), MythNewsConfig::Create(), MythBrowser::Create(), CustomEdit::Create(), SearchView::Create(), AudioSetupWizard::Create(), StatusBox::Create(), KeyGrabPopupBox::Create(), LyricsView::Create(), ProfileDialog::Create(), StreamView::Create(), LogViewer::Create(), ManualSchedule::Create(), BookmarkEditor::Create(), NetSearch::Create(), GalleryThumbView::Create(), PhrasePopup::Create(), MythNews::Create(), SelectDestination::Create(), MythNewsEditor::Create(), VideoSetupWizard::Create(), ChannelRecPriority::Create(), DVDThemeSelector::Create(), GallerySlideView::Create(), EditMetadataDialog::Create(), NetEditorBase::Create(), MythTerminal::Create(), WelcomeDialog::Create(), GameUI::Create(), PlotDialog::Create(), LanguageSelection::Create(), ProgFinder::Create(), PrevRecordedList::Create(), ThemeChooser::Create(), ViewScheduled::Create(), RawSettingsEditor::Create(), ImportIconsWizard::Create(), FunctionDialog::Create(), RecordingSelector::Create(), ZMEvents::Create(), ZMPlayer::Create(), ExportNative::Create(), RSSEditPopup::Create(), VideoSelector::Create(), ProgLister::Create(), MythUIVirtualKeyboard::Create(), GlobalSetup::Create(), ThumbFinder::Create(), NetTree::Create(), FileSelector::Create(), ChannelScannerGUIScanPane::Create(), ArchiveFileSelector::Create(), BackendSelection::Create(), VideoDialog::Create(), GUIStartup::Create(), MythBurn::Create(), MythControls::Create(), ZMConsole::Create(), ImportMusicDialog::Create(), ProgramRecPriority::Create(), EditStreamMetadata::Create(), EditLyricsDialog::Create(), PlaylistEditorView::Create(), SpinBoxEntryDialog::Create(), PowerSearchPopup::Create(), ScreenSetup::Create(), MythUIFileBrowser::Create(), ImportNative::Create(), ChannelEditor::Create(), RSSEditor::Create(), Ripper::Create(), EditPowerSearchPopup::Create(), SearchStream::Create(), SourceSetup::Create(), GuideGrid::Create(), PlaybackBox::Create(), LocationDialog::Create(), MythDialogBox::Create(), EditAlbumartDialog::Create(), SearchInputDialog::Create(), ScheduleEditor::Create(), ImportCoverArtDialog::Create(), RipStatus::Create(), MythConfirmationDialog::Create(), OsdNavigation::Create(), MythTextInputDialog::Create(), VideoFilterDialog::Create(), SchedOptEditor::Create(), MythSpinBoxDialog::Create(), SchedFilterEditor::Create(), StoreOptEditor::Create(), PostProcEditor::Create(), MythUISearchDialog::Create(), SearchButtonListDialog::Create(), MetadataOptions::Create(), MythTimeInputDialog::Create(), StandardSettingDialog::Create(), GroupSelector::Create(), ChangeView::Create(), PasswordChange::Create(), RecMetadataEdit::Create(), ItemDetailPopup::Create(), HelpPopup::Create(), Ripper::ScanFinished(), SelectDestination::setDestination(), ZMEvents::setGridLayout(), MythBrowser::switchTab(), and FileAssocDialog::UpdateScreen().

◆ GetScreenStack()

MythScreenStack * MythScreenType::GetScreenStack ( void  ) const

◆ aboutToHide()

void MythScreenType::aboutToHide ( void  )
virtual

◆ aboutToShow()

void MythScreenType::aboutToShow ( void  )
virtual

◆ IsDeleting()

bool MythScreenType::IsDeleting ( void  ) const

◆ SetDeleting()

void MythScreenType::SetDeleting ( bool  deleting)

◆ IsLoading()

bool MythScreenType::IsLoading ( void  )
inline

Definition at line 77 of file mythscreentype.h.

Referenced by MythScreenStack::ScheduleInitIfNeeded().

◆ IsLoaded()

bool MythScreenType::IsLoaded ( void  )
inline

Definition at line 78 of file mythscreentype.h.

Referenced by MythScreenStack::doInit().

◆ GetPainter()

MythPainter * MythScreenType::GetPainter ( void  )
overridevirtual

Reimplemented from MythUIType.

Definition at line 562 of file mythscreentype.cpp.

◆ Close

void MythScreenType::Close ( void  )
virtualslot

Reimplemented in MythControls, and BackendSelection.

Definition at line 404 of file mythscreentype.cpp.

Referenced by GroupSelector::AcceptItem(), EditMetadataDialog::cancelPressed(), RecordingSelector::cancelPressed(), VideoSelector::cancelPressed(), ThumbFinder::cancelPressed(), ArchiveFileSelector::cancelPressed(), FileSelector::cancelPressed(), EditLyricsDialog::cancelPressed(), MythUIFileBrowser::cancelPressed(), ImportNative::cancelPressed(), EditMetadataCommon::cleanupAndClose(), GallerySlideView::Close(), GalleryThumbView::Close(), LanguageSelection::Close(), MythControls::Close(), ImportIconsWizard::Close(), SchedEditChild::Close(), StandardSettingDialog::Close(), CloseBusyPopup(), MythWebView::closeBusyPopup(), WelcomeDialog::closeDialog(), BackendSelection::CloseWithDecision(), ImportMusicDialog::copyFile(), VisualizationSettings::Create(), RatingSettings::Create(), CastDialog::Create(), ImportSettings::Create(), GameDetailsPopup::Create(), GeneralSettings::Create(), CustomPriority::Create(), GeneralSetupWizard::Create(), MythBrowser::Create(), CustomEdit::Create(), KeyGrabPopupBox::Create(), LogViewer::Create(), ManualSchedule::Create(), MythNewsEditor::Create(), MythTerminal::Create(), PlotDialog::Create(), RawSettingsEditor::Create(), RSSEditPopup::Create(), TrackInfoPopup::Create(), ChannelScannerGUIScanPane::Create(), EditStreamMetadata::Create(), SpinBoxEntryDialog::Create(), SearchInputDialog::Create(), ImportCoverArtDialog::Create(), MythMusicVolumeDialog::Create(), MythTextInputDialog::Create(), MythSpinBoxDialog::Create(), MythUISearchDialog::Create(), VideoSetupWizard::customEvent(), EditMetadataDialog::customEvent(), NetBase::customEvent(), GameUI::customEvent(), MusicCommon::customEvent(), RipStatus::customEvent(), MetadataOptions::customEvent(), StandardSettingDialog::customEvent(), RecMetadataEdit::customEvent(), CustomPriority::deleteClicked(), EditAlbumartDialog::doCopyImageToTag(), ImportMusicDialog::doExit(), VideoScanner::doScan(), GameScanner::doScan(), LocationDialog::doSearch(), PowerSearchPopup::editClicked(), BookmarkEditor::Exit(), SourceManager::findScripts(), ImportNative::finishedPressed(), MythDialogBox::gestureEvent(), PlaybackBox::groupSelectorClosed(), DVDThemeSelector::handleCancel(), SelectDestination::handleCancel(), ExportNative::handleCancel(), MythBurn::handleCancel(), EditMetadataDialog::handleDownloadedImages(), handleMedia(), ExportNative::handleNextPage(), DVDThemeSelector::handlePrevPage(), SelectDestination::handlePrevPage(), ExportNative::handlePrevPage(), MythBurn::handlePrevPage(), GalleryThumbView::Import(), RecordingSelector::Init(), ImportIconsWizard::initialLoad(), CustomPriority::installClicked(), LocationDialog::itemClicked(), MiniPlayer::keyPressEvent(), ZMMiniPlayer::keyPressEvent(), Weather::keyPressEvent(), WelcomeDialog::keyPressEvent(), TrackInfoPopup::keyPressEvent(), keyPressEvent(), MusicCommon::keyPressEvent(), ProgramRecPriority::keyPressEvent(), MythDialogBox::keyPressEvent(), TrackInfoDialog::keyPressEvent(), MusicData::loadMusic(), PhrasePopup::okClicked(), SpinBoxEntryDialog::okClicked(), EditPowerSearchPopup::okClicked(), MythTimeInputDialog::okClicked(), EditMetadataDialog::okPressed(), RecordingSelector::OKPressed(), VideoSelector::OKPressed(), FileSelector::OKPressed(), EditLyricsDialog::okPressed(), MythUIFileBrowser::OKPressed(), EditMetadataDialog::OnArtworkSearchDone(), MetadataOptions::OnArtworkSearchDone(), GUIStartup::OnClosePromptReturn(), GeneralSetupWizard::OnDeletePromptReturn(), ItemDetailPopup::OnDone(), FileAssocDialog::OnDonePressed(), GameUI::OnGameSearchDone(), GeneralSetupWizard::OnSubmitPromptReturn(), RSSEditPopup::ParseAndSave(), NetEditorBase::ParsedData(), MythUIFileBrowser::PathClicked(), PowerSearchPopup::phraseClicked(), GameDetailsPopup::Play(), PlaybackBox::PlayX(), ArchiveFileSelector::prevPressed(), ImportNative::prevPressed(), GameHandler::processGames(), PowerSearchPopup::recordClicked(), MusicData::reloadMusic(), reloadTheme(), MythUIVirtualKeyboard::returnClicked(), MythBurn::runScript(), RunVideoScreen(), ProfileDialog::save(), RawSettingsEditor::Save(), MythNewsEditor::Save(), EditRomInfoDialog::SaveAndExit(), EditMetadataDialog::SaveAndExit(), VideoFilterDialog::saveAndExit(), ChangeView::SaveChanges(), RecMetadataEdit::SaveChanges(), EditStreamMetadata::saveClicked(), GlobalSetup::saveData(), ScreenSetup::saveData(), SourceSetup::saveData(), EditLyricsDialog::saveEdits(), ThumbFinder::savePressed(), AlbumArtImages::scanForImages(), ManualSchedule::scheduleCreated(), CustomEdit::scheduleCreated(), KeyGrabPopupBox::SendResult(), ImageSearchResultsDialog::sendResult(), MetadataResultsDialog::sendResult(), MythConfirmationDialog::sendResult(), MythTextInputDialog::sendResult(), MythSpinBoxDialog::sendResult(), PasswordChange::SendResult(), ZMEvents::setGridLayout(), FunctionDialog::setMonitorFunction(), Weather::SetupScreens(), EditMetadataCommon::showSaveMenu(), VideoSetupWizard::slotNext(), AudioSetupWizard::slotPrevious(), VideoSetupWizard::slotPrevious(), RatingSettings::slotSave(), VisualizationSettings::slotSave(), ImportSettings::slotSave(), GeneralSettings::slotSave(), RSSEditPopup::SlotSave(), MythUISearchDialog::slotSendResult(), ImportMusicDialog::startScan(), SearchStream::streamClicked(), EditMetadataDialog::switchToAlbumArt(), EditAlbumartDialog::switchToMetadata(), MusicCommon::switchView(), MiniPlayer::timerTimeout(), ZMMiniPlayer::timerTimeout(), MythBurn::updateArchiveList(), GameHandler::UpdateGameDB(), GameHandler::VerifyGameDB(), and VideoOutputOMX::~VideoOutputOMX().

◆ Exiting

void MythScreenType::Exiting ( )
signal

◆ CopyFrom()

void MythScreenType::CopyFrom ( MythUIType base)
overrideprotectedvirtual

Copy this widgets state from another.

Reimplemented from MythUIType.

Reimplemented in MythThemedMenuState.

Definition at line 532 of file mythscreentype.cpp.

Referenced by MythThemedMenuState::CopyFrom(), and XMLParseBase::CopyWindowFromBase().

◆ CreateCopy()

void MythScreenType::CreateCopy ( MythUIType parent)
overrideprotectedvirtual

Copy the state of this widget to the one given, it must be of the same type.

Do not use.

Reimplemented from MythUIType.

Definition at line 557 of file mythscreentype.cpp.

◆ ParseElement()

bool MythScreenType::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
)
overrideprotectedvirtual

Parse the xml definition of this widget setting the state of the object accordingly.

Reimplemented from MythUIType.

Definition at line 494 of file mythscreentype.cpp.

◆ Load()

void MythScreenType::Load ( void  )
protectedvirtual

Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning)

Warning
This method should only load data, it should NEVER perform UI routines or segfaults WILL result. This includes assinging data to any widgets, calling methods on a widget or anything else which triggers redraws. The safest and recommended approach is to avoid any interaction with a libmythui class or class member.

Reimplemented in StandardSettingDialog, MetadataOptions, PostProcEditor, StoreOptEditor, SchedFilterEditor, SchedOptEditor, ScheduleEditor, GuideGrid, PlaybackBox, SearchStream, ProgramRecPriority, ProgLister, BackendSelection, NetTree, PrevRecordedList, ViewScheduled, ViewScheduleDiff, RawSettingsEditor, ImportIconsWizard, ThemeChooser, NetSearch, LanguageSelection, IdleScreen, AudioSetupWizard, GrabberSettings, and AudioConfigScreen.

Definition at line 299 of file mythscreentype.cpp.

Referenced by IdleScreen::Load(), LoadInForeground(), ScreenLoadTask::run(), and WriteDefaults().

◆ Init()

void MythScreenType::Init ( void  )
protectedvirtual

Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load()

Warning
Do NOT confuse this with Load(), they serve very different purposes and most often both should be used when creating a new screen.

Reimplemented in StandardSettingDialog, MythNotificationScreen, ImportIconsWizard, GuideGrid, PlaybackBox, ProgramRecPriority, BackendSelection, ThumbFinder, RecordingSelector, PrevRecordedList, ProgFinder, ViewScheduled, LogViewer, ViewScheduleDiff, RawSettingsEditor, ThemeChooser, StatusBox, IdleScreen, AudioSetupWizard, MythTerminal, GrabberSettings, AudioConfigScreen, NetBase, and ProgDetails.

Definition at line 399 of file mythscreentype.cpp.

Referenced by doInit().

◆ LoadInBackground()

void MythScreenType::LoadInBackground ( QString  message = "")
protected

◆ ReloadInBackground()

void MythScreenType::ReloadInBackground ( void  )
protected

◆ OpenBusyPopup()

void MythScreenType::OpenBusyPopup ( const QString &  message = "")
protected

◆ CloseBusyPopup()

void MythScreenType::CloseBusyPopup ( void  )
protected

◆ SetBusyPopupMessage()

void MythScreenType::SetBusyPopupMessage ( const QString &  message)
protected

◆ ResetBusyPopup()

void MythScreenType::ResetBusyPopup ( void  )
protected

Definition at line 369 of file mythscreentype.cpp.

Referenced by ThemeChooser::Load().

Friends And Related Function Documentation

◆ ScreenLoadTask

friend class ScreenLoadTask
friend

Definition at line 44 of file mythscreentype.h.

Referenced by LoadInBackground().

◆ XMLParseBase

friend class XMLParseBase
friend

Definition at line 129 of file mythscreentype.h.

Member Data Documentation

◆ m_FullScreen

bool MythScreenType::m_FullScreen {false}
protected

◆ m_IsDeleting

bool MythScreenType::m_IsDeleting {false}
protected

◆ m_LoadLock

QSemaphore MythScreenType::m_LoadLock {1}
protected

◆ m_IsLoading

volatile bool MythScreenType::m_IsLoading {false}
protected

Definition at line 114 of file mythscreentype.h.

Referenced by LoadInBackground(), LoadInForeground(), and ScreenLoadTask::run().

◆ m_IsLoaded

volatile bool MythScreenType::m_IsLoaded {false}
protected

Definition at line 115 of file mythscreentype.h.

Referenced by LoadInBackground(), LoadInForeground(), and ScreenLoadTask::run().

◆ m_IsInitialized

bool MythScreenType::m_IsInitialized {false}
protected

Definition at line 116 of file mythscreentype.h.

Referenced by doInit(), IsInitialized(), and ReloadInBackground().

◆ m_CurrentFocusWidget

MythUIType* MythScreenType::m_CurrentFocusWidget {nullptr}
protected

◆ m_FocusWidgetList

QMap<int, MythUIType *> MythScreenType::m_FocusWidgetList
protected

Definition at line 122 of file mythscreentype.h.

Referenced by BuildFocusList(), NextPrevWidgetFocus(), and SetFocusWidget().

◆ m_ScreenStack

MythScreenStack* MythScreenType::m_ScreenStack {nullptr}
protected

◆ m_BusyPopup

MythUIBusyDialog* MythScreenType::m_BusyPopup {nullptr}
protected

◆ m_SavedMask

QRegion MythScreenType::m_SavedMask
protected

Definition at line 127 of file mythscreentype.h.

Referenced by aboutToHide(), and aboutToShow().


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