MythTV  0.27pre
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
Public Slots | Signals | Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
MythScreenType Class Reference

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

#include <mythscreentype.h>

Inherits MythUIType.

Inherited by AudioSetupWizard, BackendSelection, BDOverlayScreen, BookmarkEditor, BookmarkManager, BrowserConfig, CastDialog, ChangeView, ChannelEditor, ChannelEditor, ChannelRecPriority, CriteriaRowEditor, CustomEdit, CustomPriority, DVDThemeSelector, EditMetadataCommon, EditMetadataDialog, EditMetadataDialog, EditPowerSearchPopup, EditRomInfoDialog, EditStreamMetadata, ExportNative, FileAssocDialog, FileSelector, FunctionDialog, GalleryFilterDialog, GameDetailsPopup, GameUI, GeneralSettings, GeneralSetupWizard, GrabberSettings, GroupSelector, HelpPopup, IdleScreen, ImageSearchResultsDialog, ImportCoverArtDialog, ImportIconsWizard, ImportMusicDialog, ImportNative, ImportSettings, InteractiveScreen, ItemDetailPopup, KeyGrabPopupBox, LanguageSelection, LocationDialog, LogViewer, ManualSchedule, MetadataResultsDialog, MetadataSettings, MusicCommon, MythBrowser, MythBurn, MythConfirmationDialog, MythControls, MythDialogBox, MythFlashPlayer, MythMusicVolumeDialog, MythNews, MythNewsConfig, MythNewsEditor, MythOSDWindow, MythTextInputDialog, MythThemedMenuState, MythTimeInputDialog, MythUIBusyDialog, MythUIFileBrowser, MythUIProgressDialog, MythUISearchDialog, MythUIVirtualKeyboard, NetSearch, NetTree, PasswordChange, PhrasePopup, PlayerSettings, PlayerSettings, PlotDialog, PowerSearchPopup, ProfileDialog, ProgDetails, RatingSettings, RawSettingsEditor, RecMetadataEdit, RecordingSelector, Ripper, RipStatus, RSSEditor, RSSEditPopup, SchedEditChild, ScheduleCommon, ScreenSetup, ScreenWizard, SearchButtonListDialog, SearchEditor, SearchStream, SelectDestination, SmartPLDateDialog, SmartPLOrderByDialog, SmartPLResultViewer, SourceSetup, StatusBox, SubtitleScreen, TeletextScreen, ThemeChooser, ThumbFinder, TrackInfoDialog, TrackInfoPopup, TreeEditor, TvPlayWindow, VideoDialog, VideoFilterDialog, VideoSelector, VideoSetupWizard, ViewScheduleDiff, VisualizationSettings, Weather, WeatherScreen, WelcomeDialog, ZMConsole, ZMEvents, ZMLivePlayer, and ZMPlayer.

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)

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)
virtual bool keyPressEvent (QKeyEvent *)
 Key event handler.
virtual bool gestureEvent (MythGestureEvent *)
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
virtual void ShowMenu (void)
void doInit (void)
void LoadInForeground (void)
bool IsInitialized (void) const
 Has Init() been called on this screen?
bool IsFullscreen (void) const
void SetFullscreen (bool full)
MythUITypeGetFocusWidget (void) const
bool SetFocusWidget (MythUIType *widget=NULL)
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)
void SetTextFromMap (InfoMap &infoMap)
void ResetMap (InfoMap &infoMap)
virtual MythPainterGetPainter (void)
- 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.
void AddChild (MythUIType *child)
 Add a child UIType.
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType.
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType which accepts focus found at the given coordinates.
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets.
void DeleteChild (const QString &name)
 Delete a named child of this UIType.
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType.
void DeleteAllChildren (void)
 Delete all child widgets.
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.
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus.
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.
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRegion=QRect())
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality.
virtual void SetPosition (const MythPoint &pos)
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.
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.
virtual void VanishSibling (void)
virtual void SetMinAreaParent (MythRect actual_area, MythRect full_area, MythUIType *child)
 Adjust the size of sibling objects within the button.
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size.
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area.
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
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 *)
 Media/Device status event handler, received from MythMediaMonitor.
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
bool IsDeferredLoading (bool recurse=false) const
void SetDeferLoad (bool defer)
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded.
bool ContainsPoint (const QPoint &point) const
 Check if the given point falls within this widgets area.
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 (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)
virtual void CopyFrom (MythUIType *base)
 Copy this widgets state from another.
virtual void CreateCopy (MythUIType *parent)
 Copy the state of this widget to the one given, it must be of the same type.
virtual bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings)
 Parse the xml definition of this widget setting the state of the object accordingly.
virtual void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning)
virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load()
void LoadInBackground (QString message="")
void ReloadInBackground (void)
void OpenBusyPopup (QString message="")
void CloseBusyPopup (void)
void SetBusyPopupMessage (const QString &message)
void ResetBusyPopup (void)
- Protected Member Functions inherited from MythUIType
virtual ~MythUIType ()
virtual void customEvent (QEvent *)
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRegion)
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation.
void HandleMovementPulse ()
 Handle one frame of a movement animation.
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.

Protected Attributes

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

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 41 of file mythscreentype.h.

Constructor & Destructor Documentation

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

Definition at line 56 of file mythscreentype.cpp.

MythScreenType::~MythScreenType ( )
virtual

Definition at line 99 of file mythscreentype.cpp.

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

Definition at line 78 of file mythscreentype.cpp.

Member Function Documentation

bool MythScreenType::Create ( void  )
virtual

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

Definition at line 300 of file mythscreentype.cpp.

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

bool MythScreenType::keyPressEvent ( QKeyEvent *  )
virtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythUIType.

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

Definition at line 491 of file mythscreentype.cpp.

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

bool MythScreenType::gestureEvent ( MythGestureEvent )
virtual

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 MythDialogBox, and TvPlayWindow.

Definition at line 528 of file mythscreentype.cpp.

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

void MythScreenType::ShowMenu ( void  )
virtual

Reimplemented in MythThemedMenu, ProgFinder, MusicCommon, ViewScheduled, StreamView, SearchView, and VisualizerView.

Definition at line 427 of file mythscreentype.cpp.

Referenced by gestureEvent(), and keyPressEvent().

void MythScreenType::doInit ( void  )

Definition at line 399 of file mythscreentype.cpp.

Referenced by MythScreenStack::doInit().

void MythScreenType::LoadInForeground ( void  )

Definition at line 335 of file mythscreentype.cpp.

Referenced by MythScreenStack::doInit().

bool MythScreenType::IsInitialized ( void  ) const
bool MythScreenType::IsFullscreen ( void  ) const
void MythScreenType::SetFullscreen ( bool  full)

Definition at line 117 of file mythscreentype.cpp.

Referenced by MythScreenStack::PopScreen().

MythUIType * MythScreenType::GetFocusWidget ( void  ) const

Definition at line 122 of file mythscreentype.cpp.

Referenced by MythUIVirtualKeyboard::charClicked(), MusicCommon::createMainMenu(), PlaybackBox::createPlaylistMenu(), ProgFinder::customEdit(), SearchView::customEvent(), ProgFinder::customEvent(), MythControls::customEvent(), ProgFinder::details(), ScreenSetup::doListSelect(), ProgFinder::edit(), CriteriaRowEditor::editDate(), MythControls::GetCurrentAction(), MythControls::GetCurrentButton(), MythControls::GetCurrentContext(), MythControls::GetCurrentKey(), ProgFinder::getInfo(), PlaybackBox::HandlePreviewEvent(), MiniPlayer::keyPressEvent(), ImportSettings::keyPressEvent(), PlayerSettings::keyPressEvent(), ProgDetails::keyPressEvent(), CustomEdit::keyPressEvent(), MetadataSettings::keyPressEvent(), KeyGrabPopupBox::keyPressEvent(), VisualizerView::keyPressEvent(), MythNewsConfig::keyPressEvent(), PlaylistView::keyPressEvent(), LogViewer::keyPressEvent(), SearchView::keyPressEvent(), StatusBox::keyPressEvent(), GrabberSettings::keyPressEvent(), ScreenWizard::keyPressEvent(), StreamView::keyPressEvent(), MythBrowser::keyPressEvent(), BookmarkEditor::keyPressEvent(), AudioSetupWizard::keyPressEvent(), GeneralSetupWizard::keyPressEvent(), EditMetadataDialog::keyPressEvent(), Weather::keyPressEvent(), SearchEditor::keyPressEvent(), MythNewsEditor::keyPressEvent(), SelectDestination::keyPressEvent(), EditMetadataCommon::keyPressEvent(), DVDThemeSelector::keyPressEvent(), WelcomeDialog::keyPressEvent(), ChannelRecPriority::keyPressEvent(), MythNews::keyPressEvent(), ProgFinder::keyPressEvent(), NetSearch::keyPressEvent(), TreeEditor::keyPressEvent(), VideoSetupWizard::keyPressEvent(), GameUI::keyPressEvent(), RSSEditPopup::keyPressEvent(), WeatherScreen::keyPressEvent(), ThemeChooser::keyPressEvent(), ViewScheduled::keyPressEvent(), ZMEvents::keyPressEvent(), RecordingSelector::keyPressEvent(), ExportNative::keyPressEvent(), BrowserConfig::keyPressEvent(), ZMPlayer::keyPressEvent(), ThumbFinder::keyPressEvent(), ProgLister::keyPressEvent(), VideoSelector::keyPressEvent(), FileSelector::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), NetTree::keyPressEvent(), ImportMusicDialog::keyPressEvent(), VideoDialog::keyPressEvent(), MusicCommon::keyPressEvent(), MythBurn::keyPressEvent(), ZMConsole::keyPressEvent(), ProgramRecPriority::keyPressEvent(), BookmarkManager::keyPressEvent(), ZMLivePlayer::keyPressEvent(), ScreenSetup::keyPressEvent(), ChannelEditor::keyPressEvent(), ImportNative::keyPressEvent(), RSSEditor::keyPressEvent(), MythThemedMenu::keyPressEvent(), Ripper::keyPressEvent(), PlaybackBox::keyPressEvent(), ScheduleEditor::keyPressEvent(), MythDialogBox::keyPressEvent(), EditAlbumartDialog::keyPressEvent(), ImportCoverArtDialog::keyPressEvent(), MythConfirmationDialog::keyPressEvent(), RipStatus::keyPressEvent(), SmartPLResultViewer::keyPressEvent(), SchedEditChild::keyPressEvent(), SearchButtonListDialog::keyPressEvent(), MythControls::RefreshKeyInformation(), MusicCommon::searchButtonList(), ProgFinder::select(), CriteriaRowEditor::setDate(), StatusBox::setHelpText(), CriteriaRowEditor::setValue(), PlaybackBox::ShowGroupPopup(), ProgFinder::showGuide(), SearchView::ShowMenu(), ProgFinder::ShowMenu(), NetSearch::showMenu(), PlaybackBox::ShowMenu(), BrowserConfig::slotFocusChanged(), NetSearch::slotItemChanged(), ViewScheduled::SwitchList(), PlaybackBox::SwitchList(), MythBrowser::switchTab(), PlaybackBox::togglePlayListItem(), ProgFinder::upcoming(), ScreenSetup::updateHelpText(), ProgFinder::updateInfo(), MythNews::updateInfoView(), PlaybackBox::UpdateUIListItem(), and CriteriaRowEditor::valueButtonClicked().

bool MythScreenType::SetFocusWidget ( MythUIType widget = NULL)

Definition at line 127 of file mythscreentype.cpp.

Referenced by SmartPLOrderByDialog::addPressed(), SmartPLOrderByDialog::ascendingPressed(), BuildFocusList(), MythControls::ChangeButtonFocus(), BackendSelection::ConnectBackend(), VisualizationSettings::Create(), MythFlashPlayer::Create(), GameDetailsPopup::Create(), ImportSettings::Create(), ProgDetails::Create(), GeneralSettings::Create(), KeyGrabPopupBox::Create(), MythNewsConfig::Create(), LogViewer::Create(), ProfileDialog::Create(), SearchView::Create(), MythBrowser::Create(), PhrasePopup::Create(), BookmarkEditor::Create(), WelcomeDialog::Create(), SelectDestination::Create(), DVDThemeSelector::Create(), MythNewsEditor::Create(), MythNews::Create(), FunctionDialog::Create(), RecordingSelector::Create(), ExportNative::Create(), ZMPlayer::Create(), BrowserConfig::Create(), GalleryFilterDialog::Create(), ThumbFinder::Create(), FileSelector::Create(), VideoSelector::Create(), NetTree::Create(), ArchiveFileSelector::Create(), VideoDialog::Create(), MythBurn::Create(), ZMConsole::Create(), PowerSearchPopup::Create(), BookmarkManager::Create(), ScreenSetup::Create(), ChannelEditor::Create(), ImportNative::Create(), RSSEditor::Create(), EditPowerSearchPopup::Create(), SourceSetup::Create(), LocationDialog::Create(), MythConfirmationDialog::Create(), ItemDetailPopup::Create(), ProgFinder::customEvent(), MythControls::customEvent(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), SmartPLOrderByDialog::deletePressed(), SmartPLOrderByDialog::descendingPressed(), LocationDialog::doSearch(), ImportIconsWizard::enableControls(), gestureEvent(), ThumbFinder::getThumbImages(), ThemeChooser::Init(), PlaybackBox::Init(), MythBrowser::keyPressEvent(), ZMEvents::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), CustomPriority::loadData(), ImportIconsWizard::menuSelection(), SmartPLOrderByDialog::moveDownPressed(), SmartPLOrderByDialog::moveUpPressed(), NextPrevWidgetFocus(), PhrasePopup::phraseClicked(), ProgFinder::select(), ZMEvents::setGridLayout(), MythBrowser::slotTabLosingFocus(), ViewScheduled::SwitchList(), PlaybackBox::SwitchList(), and MythBrowser::switchTab().

bool MythScreenType::NextPrevWidgetFocus ( bool  up_or_down)
virtual
void MythScreenType::BuildFocusList ( void  )

Definition at line 240 of file mythscreentype.cpp.

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

MythScreenStack * MythScreenType::GetScreenStack ( void  ) const
void MythScreenType::aboutToHide ( void  )
virtual

Reimplemented in GuideGrid.

Definition at line 256 of file mythscreentype.cpp.

Referenced by MythScreenStack::AddScreen(), and MythScreenStack::PopScreen().

void MythScreenType::aboutToShow ( void  )
virtual

Reimplemented in GuideGrid, and MythThemedMenu.

Definition at line 272 of file mythscreentype.cpp.

Referenced by MythScreenStack::AddScreen().

bool MythScreenType::IsDeleting ( void  ) const

Definition at line 290 of file mythscreentype.cpp.

Referenced by MythScreenStack::PopScreen().

void MythScreenType::SetDeleting ( bool  deleting)

Definition at line 295 of file mythscreentype.cpp.

Referenced by MythScreenStack::PopScreen().

bool MythScreenType::IsLoading ( void  )
inline

Definition at line 78 of file mythscreentype.h.

Referenced by MythScreenStack::ScheduleInitIfNeeded().

bool MythScreenType::IsLoaded ( void  )
inline

Definition at line 79 of file mythscreentype.h.

Referenced by MythScreenStack::doInit().

void MythScreenType::SetTextFromMap ( InfoMap infoMap)
void MythScreenType::ResetMap ( InfoMap infoMap)
MythPainter * MythScreenType::GetPainter ( void  )
virtual

Reimplemented from MythUIType.

Definition at line 630 of file mythscreentype.cpp.

void MythScreenType::Close ( void  )
virtualslot

Reimplemented in BackendSelection.

Definition at line 420 of file mythscreentype.cpp.

Referenced by GroupSelector::AcceptItem(), SchemaUpgradeWizard::BusyPopup(), EditMetadataDialog::cancelPressed(), RecordingSelector::cancelPressed(), ThumbFinder::cancelPressed(), VideoSelector::cancelPressed(), FileSelector::cancelPressed(), ArchiveFileSelector::cancelPressed(), ImportNative::cancelPressed(), MythUIFileBrowser::cancelPressed(), FileScanner::cleanDB(), EditMetadataCommon::cleanupAndClose(), CloseBusyPopup(), MythWebView::closeBusyPopup(), WelcomeDialog::closeDialog(), VisualizationSettings::Create(), RatingSettings::Create(), GameDetailsPopup::Create(), CastDialog::Create(), ImportSettings::Create(), GeneralSettings::Create(), PlayerSettings::Create(), MetadataSettings::Create(), CustomEdit::Create(), CustomPriority::Create(), KeyGrabPopupBox::Create(), GrabberSettings::Create(), LogViewer::Create(), MythBrowser::Create(), GeneralSetupWizard::Create(), ManualSchedule::Create(), MythNewsEditor::Create(), PlotDialog::Create(), RSSEditPopup::Create(), RawSettingsEditor::Create(), BrowserConfig::Create(), TrackInfoPopup::Create(), EditStreamMetadata::Create(), CriteriaRowEditor::Create(), ImportCoverArtDialog::Create(), SearchInputDialog::Create(), MythMusicVolumeDialog::Create(), MythTextInputDialog::Create(), SmartPLOrderByDialog::Create(), MythUISearchDialog::Create(), SmartPLDateDialog::Create(), EditMetadataDialog::customEvent(), VideoSetupWizard::customEvent(), GameUI::customEvent(), MusicCommon::customEvent(), NetSearch::customEvent(), VideoDialog::customEvent(), NetTree::customEvent(), RipStatus::customEvent(), MetadataOptions::customEvent(), CustomPriority::deleteClicked(), ImportMusicDialog::doExit(), VideoScanner::doScan(), GameScanner::doScan(), LocationDialog::doSearch(), NetTree::doTreeRefresh(), PowerSearchPopup::editClicked(), BookmarkEditor::Exit(), SourceManager::findScripts(), ImportNative::finishedPressed(), MythDialogBox::gestureEvent(), MythNews::getHttpFile(), PlaybackBox::groupSelectorClosed(), DVDThemeSelector::handleCancel(), SelectDestination::handleCancel(), ExportNative::handleCancel(), MythBurn::handleCancel(), EditMetadataDialog::handleDownloadedImages(), ExportNative::handleNextPage(), DVDThemeSelector::handlePrevPage(), SelectDestination::handlePrevPage(), ExportNative::handlePrevPage(), MythBurn::handlePrevPage(), MythContextPrivate::HideConnectionFailurePopup(), RecordingSelector::Init(), ImportIconsWizard::initialLoad(), CustomPriority::installClicked(), LocationDialog::itemClicked(), MiniPlayer::keyPressEvent(), Weather::keyPressEvent(), WelcomeDialog::keyPressEvent(), MythNews::keyPressEvent(), TrackInfoPopup::keyPressEvent(), keyPressEvent(), MusicCommon::keyPressEvent(), ProgramRecPriority::keyPressEvent(), MythDialogBox::keyPressEvent(), TrackInfoDialog::keyPressEvent(), loadMusic(), PhrasePopup::okClicked(), EditPowerSearchPopup::okClicked(), MythTimeInputDialog::okClicked(), EditMetadataDialog::okPressed(), RecordingSelector::OKPressed(), VideoSelector::OKPressed(), FileSelector::OKPressed(), MythUIFileBrowser::OKPressed(), SmartPLOrderByDialog::okPressed(), SmartPLDateDialog::okPressed(), EditMetadataDialog::OnArtworkSearchDone(), MetadataOptions::OnArtworkSearchDone(), GeneralSetupWizard::OnDeletePromptReturn(), ItemDetailPopup::OnDone(), FileAssocDialog::OnDonePressed(), GameUI::OnGameSearchDone(), GeneralSetupWizard::OnSubmitPromptReturn(), VideoDialog::OnVideoImageSetDone(), VideoDialog::OnVideoSearchDone(), RSSEditPopup::parseAndSave(), SearchEditor::parsedData(), TreeEditor::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(), GalleryFilterDialog::saveAndExit(), VideoFilterDialog::saveAndExit(), ChangeView::SaveChanges(), RecMetadataEdit::SaveChanges(), EditStreamMetadata::saveClicked(), CriteriaRowEditor::saveClicked(), ScreenSetup::saveData(), SourceSetup::saveData(), ThumbFinder::savePressed(), FileScanner::ScanArtwork(), FileScanner::ScanMusic(), CustomEdit::scheduleCreated(), ManualSchedule::scheduleCreated(), FileScanner::SearchDir(), NetSearch::searchFinished(), NetSearch::searchTimeout(), KeyGrabPopupBox::SendResult(), ImageSearchResultsDialog::sendResult(), MetadataResultsDialog::sendResult(), MythConfirmationDialog::sendResult(), MythTextInputDialog::sendResult(), PasswordChange::SendResult(), ZMEvents::setGridLayout(), FunctionDialog::setMonitorFunction(), Weather::SetupScreens(), EditMetadataCommon::showSaveMenu(), VideoSetupWizard::slotNext(), AudioSetupWizard::slotPrevious(), VideoSetupWizard::slotPrevious(), VisualizationSettings::slotSave(), RatingSettings::slotSave(), ImportSettings::slotSave(), GeneralSettings::slotSave(), MetadataSettings::slotSave(), PlayerSettings::slotSave(), GrabberSettings::slotSave(), BrowserConfig::slotSave(), RSSEditPopup::slotSave(), MythUISearchDialog::slotSendResult(), ImportMusicDialog::startScan(), SearchStream::streamClicked(), EditMetadataDialog::switchToAlbumArt(), EditAlbumartDialog::switchToMetadata(), MusicCommon::switchView(), MiniPlayer::timerTimeout(), MythBurn::updateArchiveList(), GameHandler::UpdateGameDB(), GameHandler::VerifyGameDB(), and TV::~TV().

void MythScreenType::Exiting ( )
signal
void MythScreenType::CopyFrom ( MythUIType base)
protectedvirtual

Copy this widgets state from another.

Reimplemented from MythUIType.

Reimplemented in MythThemedMenuState.

Definition at line 600 of file mythscreentype.cpp.

Referenced by XMLParseBase::CopyWindowFromBase().

void MythScreenType::CreateCopy ( MythUIType parent)
protectedvirtual

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 625 of file mythscreentype.cpp.

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

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

Reimplemented from MythUIType.

Definition at line 562 of file mythscreentype.cpp.

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 PlaybackBox, GuideGrid, ViewScheduled, RawSettingsEditor, ThemeChooser, LanguageSelection, and IdleScreen.

Definition at line 315 of file mythscreentype.cpp.

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

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 ImportIconsWizard, PlaybackBox, GuideGrid, ViewScheduled, ProgFinder, RawSettingsEditor, ThemeChooser, StatusBox, IdleScreen, and ProgDetails.

Definition at line 415 of file mythscreentype.cpp.

Referenced by doInit().

void MythScreenType::LoadInBackground ( QString  message = "")
protected
void MythScreenType::ReloadInBackground ( void  )
protected
void MythScreenType::OpenBusyPopup ( QString  message = "")
protected
void MythScreenType::CloseBusyPopup ( void  )
protected
void MythScreenType::SetBusyPopupMessage ( const QString &  message)
protected

Definition at line 379 of file mythscreentype.cpp.

Referenced by ThemeChooser::Load().

void MythScreenType::ResetBusyPopup ( void  )
protected

Definition at line 385 of file mythscreentype.cpp.

Referenced by ThemeChooser::Load().

Friends And Related Function Documentation

friend class ScreenLoadTask
friend

Definition at line 45 of file mythscreentype.h.

Referenced by LoadInBackground().

friend class XMLParseBase
friend

Definition at line 132 of file mythscreentype.h.

Member Data Documentation

bool MythScreenType::m_FullScreen
protected
bool MythScreenType::m_IsDeleting
protected

Definition at line 114 of file mythscreentype.h.

Referenced by CopyFrom(), IsDeleting(), MythScreenType(), and SetDeleting().

QSemaphore MythScreenType::m_LoadLock
protected
volatile bool MythScreenType::m_IsLoading
protected
volatile bool MythScreenType::m_IsLoaded
protected
bool MythScreenType::m_IsInitialized
protected

Definition at line 119 of file mythscreentype.h.

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

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

Definition at line 125 of file mythscreentype.h.

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

MythScreenStack* MythScreenType::m_ScreenStack
protected
MythUIBusyDialog* MythScreenType::m_BusyPopup
protected
QRegion MythScreenType::m_SavedMask
protected

Definition at line 130 of file mythscreentype.h.

Referenced by aboutToHide(), and aboutToShow().


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