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

The base class on which all widgets and screens are based. More...

#include <libmythui/mythuitype.h>

Inheritance diagram for MythUIType:
[legend]
Collaboration diagram for MythUIType:
[legend]

Public Slots

void LoseFocus (void)
 
bool TakeFocus (void)
 
void Activate (void)
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 

Signals

void RequestUpdate (void)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus (void)
 
void LosingFocus (void)
 
void VisibilityChanged (bool Visible)
 
void Showing (void)
 
void Hiding (void)
 
void Enabling (void)
 
void Disabling (void)
 
void FinishedMoving (void)
 
void FinishedFading (void)
 
void DependChanged (bool isDefault)
 

Public Member Functions

 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 (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...
 
QList< MythUIType * > GetAllDescendants (void)
 
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 order)
 
void SetFocusedName (const QString &widgetname)
 
QString GetFocusedName (void) const
 
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...
 
void SetPosition (QPoint point)
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (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 (QRect 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 bool keyPressEvent (QKeyEvent *event)
 Key event handler. More...
 
virtual bool inputMethodEvent (QInputMethodEvent *event)
 Input Method event handler. More...
 
virtual bool gestureEvent (MythGestureEvent *event)
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
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 (QPoint point) const
 Check if the given point falls within this widgets area. More...
 
virtual MythPainterGetPainter (void)
 
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

 ~MythUIType () override
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (FocusInfoType &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) const
 
void ConnectDependants (bool recurse=false)
 
virtual bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings)
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
virtual void CopyFrom (MythUIType *base)
 Copy this widgets state from another. More...
 
virtual void CreateCopy (MythUIType *parent)
 Copy the state of this widget to the one given, it must be of the same type. More...
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Static Protected Member Functions

static int NormX (int width)
 
static int NormY (int height)
 

Protected Attributes

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
 
QString m_focusedName
 
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 MythScreenType
 
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

The base class on which all widgets and screens are based.

N.B. Children are drawn/processed in order added

Definition at line 85 of file mythuitype.h.

Constructor & Destructor Documentation

◆ MythUIType()

MythUIType::MythUIType ( QObject *  parent,
const QString &  name 
)

Definition at line 44 of file mythuitype.cpp.

◆ ~MythUIType()

MythUIType::~MythUIType ( )
overrideprotected

Definition at line 63 of file mythuitype.cpp.

Member Function Documentation

◆ Activate

void MythUIType::Activate ( void  )
slot

Definition at line 1053 of file mythuitype.cpp.

◆ ActivateAnimations()

void MythUIType::ActivateAnimations ( MythUIAnimation::Trigger  trigger)

Definition at line 288 of file mythuitype.cpp.

Referenced by MythScreenType::aboutToHide(), and MythScreenType::aboutToShow().

◆ AddChild()

void MythUIType::AddChild ( MythUIType child)

Add a child UIType.

Definition at line 89 of file mythuitype.cpp.

Referenced by FormattedTextSubtitle::Draw(), MythUIType(), and Slide::Slide().

◆ AddFocusableChildrenToList()

void MythUIType::AddFocusableChildrenToList ( FocusInfoType focusList)
protected

Definition at line 1155 of file mythuitype.cpp.

Referenced by MythScreenType::BuildFocusList().

◆ AddFont()

bool MythUIType::AddFont ( const QString &  text,
MythFontProperties fontProp 
)

◆ AdjustAlpha()

void MythUIType::AdjustAlpha ( int  mode,
int  alphachange,
int  minalpha = 0,
int  maxalpha = 255 
)

◆ AdjustMinArea()

void MythUIType::AdjustMinArea ( int  delta_x,
int  delta_y,
int  delta_w,
int  delta_h 
)
virtual

Adjust the size of a sibling.

Definition at line 629 of file mythuitype.cpp.

◆ CalcAlpha()

int MythUIType::CalcAlpha ( int  alphamod) const
protected

◆ CanTakeFocus()

bool MythUIType::CanTakeFocus ( void  ) const

Return if this widget can accept input focus.

Definition at line 354 of file mythuitype.cpp.

Referenced by ProgInfoList::Display(), InfoList::Display(), GetChildAt(), InfoList::Toggle(), and ProgInfoList::Toggle().

◆ ConnectDependants()

void MythUIType::ConnectDependants ( bool  recurse = false)
protected

◆ ContainsPoint()

bool MythUIType::ContainsPoint ( QPoint  point) const

Check if the given point falls within this widgets area.

Largely used For correctly handling mouse clicks

Definition at line 1418 of file mythuitype.cpp.

Referenced by MythMainWindow::eventFilter().

◆ CopyFrom()

void MythUIType::CopyFrom ( MythUIType base)
protectedvirtual

◆ CreateCopy()

void MythUIType::CreateCopy ( MythUIType parent)
protectedvirtual

◆ customEvent()

void MythUIType::customEvent ( QEvent *  event)
overrideprotected

◆ DeleteAllChildren()

void MythUIType::DeleteAllChildren ( void  )

◆ DeleteChild() [1/2]

void MythUIType::DeleteChild ( const QString &  name)

◆ DeleteChild() [2/2]

void MythUIType::DeleteChild ( MythUIType child)

Delete the given UIType if it is a child of this UIType.

Will not delete the object if it is not a child. Pointer will be set to nullptr if successful.

Definition at line 177 of file mythuitype.cpp.

◆ DependChanged

void MythUIType::DependChanged ( bool  isDefault)
signal

◆ Disabling

void MythUIType::Disabling ( void  )
signal

◆ Draw()

void MythUIType::Draw ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod = 255,
QRect  clipRect = QRect() 
)

Definition at line 484 of file mythuitype.cpp.

◆ DrawSelf()

void MythUIType::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
)
protectedvirtual

◆ Enabling

void MythUIType::Enabling ( void  )
signal

◆ ExpandArea()

void MythUIType::ExpandArea ( QRect  rect)

Definition at line 869 of file mythuitype.cpp.

Referenced by MythUIStateType::AddObject(), SetArea(), and SetSize().

◆ Finalize()

void MythUIType::Finalize ( void  )
protectedvirtual

Perform any post-xml parsing initialisation tasks.

This is called after the widget has been created and it's state established by ParseElement() or CopyFrom(). A derived class should use this to perform any initialisation tasks which should occur after this point.

Reimplemented in MythUIButton, MythUIButtonList, MythUICheckBox, MythUIEditBar, MythUIGuideGrid, MythUIImage, MythUIProcedural, MythUIProgressBar, MythUIScrollBar, MythUIStateType, MythUIText, MythUITextEdit, and MythUIWebBrowser.

Definition at line 1318 of file mythuitype.cpp.

Referenced by MythUIButtonList::Finalize(), MythUIGuideGrid::Finalize(), MythUIImage::Finalize(), MythUIWebBrowser::Finalize(), XMLParseBase::ParseChildren(), and XMLParseBase::ParseUIType().

◆ FinishedFading

void MythUIType::FinishedFading ( void  )
signal

◆ FinishedMoving

void MythUIType::FinishedMoving ( void  )
signal

Referenced by HandleMovementPulse().

◆ gestureEvent()

bool MythUIType::gestureEvent ( MythGestureEvent event)
virtual

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

Should not be used directly.

Parameters
eventMouse event

Reimplemented in TvPlayWindow, MythDialogBox, MythScreenType, MythUIButton, MythUIButtonList, MythUIButtonTree, MythUICheckBox, MythUITextEdit, and GuideGrid.

Definition at line 1013 of file mythuitype.cpp.

Referenced by MythScreenType::gestureEvent().

◆ GetAllChildren()

QList< MythUIType * > * MythUIType::GetAllChildren ( void  )

◆ GetAllDescendants()

QList< MythUIType * > MythUIType::GetAllDescendants ( void  )

Definition at line 207 of file mythuitype.cpp.

◆ GetAlpha()

int MythUIType::GetAlpha ( void  ) const

Definition at line 951 of file mythuitype.cpp.

Referenced by MythScreenStack::CheckNewFadeTransition().

◆ GetAnimations()

QList< MythUIAnimation * > * MythUIType::GetAnimations ( void  )
inline

Definition at line 126 of file mythuitype.h.

Referenced by MythUIAnimation::ParseSection().

◆ GetArea()

MythRect MythUIType::GetArea ( void  ) const
virtual

◆ GetChild()

MythUIType * MythUIType::GetChild ( const QString &  name) const

Get a named child of this UIType.

Parameters
nameName of child
Returns
Pointer to child if found, or nullptr

Definition at line 138 of file mythuitype.cpp.

Referenced by MythUIProgressBar::CalculatePosition(), MythUIScrollBar::CalculatePosition(), CheckedSet(), ConnectDependants(), CopyFrom(), MythThemedMenuState::CopyFrom(), MythUIButtonList::CopyFrom(), MythUIButtonTree::CopyFrom(), MythUIStateType::CopyFrom(), XMLParseBase::CopyWindowFromBase(), CustomPriority::Create(), GalleryThumbView::Create(), BrowserConfig::Create(), BookmarkManager::Create(), Ripper::Create(), RipStatus::Create(), TrackInfoDialog::Create(), TrackInfoPopup::Create(), NetSearch::Create(), GlobalSetup::Create(), ScreenSetup::Create(), SourceSetup::Create(), LocationDialog::Create(), BackendSelection::Create(), TvPlayWindow::Create(), MythNotificationScreen::Create(), MythUIBusyDialog::Create(), MythUIProgressDialog::Create(), MythThemedMenuState::Create(), MythUIFileBrowser::Create(), RawSettingsEditor::Create(), ChannelRecPriority::Create(), GrabberSettings::Create(), GuideGrid::Create(), KeyGrabPopupBox::Create(), ManualSchedule::Create(), MythControls::Create(), PlaybackBox::Create(), GroupSelector::Create(), ChangeView::Create(), PasswordChange::Create(), RecMetadataEdit::Create(), HelpPopup::Create(), ProgramRecPriority::Create(), AudioSetupWizard::Create(), GeneralSetupWizard::Create(), VideoSetupWizard::Create(), StatusBox::Create(), ThemeChooser::Create(), MetadataSettings::Create(), PlayerSettings::Create(), ViewScheduled::Create(), ScreenWizard::Create(), ChannelEditor::Create(), ImportIconsWizard::Create(), MythUIEditBar::Display(), ViewScheduled::FillList(), MythUIEditBar::Finalize(), MythUIScrollBar::Finalize(), ZMLivePlayer::GetMythUIType(), ProgLister::HandleSelected(), MythUIButtonList::Init(), MythUIButtonTree::Init(), PlaybackBox::IsUsageUIVisible(), ThemeChooser::itemChanged(), MythUIVirtualKeyboard::keyPressEvent(), TrackInfoDialog::keyPressEvent(), XMLParseBase::ParseUIType(), WeatherScreen::prepareScreen(), NetworkControl::processTheme(), MythScreenType::SetFocusWidget(), OSD::SetGraph(), ZMEvents::setGridLayout(), MythUIButton::SetInitialStates(), MythUICheckBox::SetInitialStates(), MythUITextEdit::SetInitialStates(), ZMLivePlayer::setMonitorLayout(), OSD::SetRegions(), EditMetadataCommon::setSaveMetadataOnly(), OSD::SetText(), OSD::SetValues(), PlaybackBox::updateGroupInfo(), PlaybackBox::updateIcons(), ChannelRecPriority::updateInfo(), ViewScheduled::updateInfo(), GuideGrid::updateInfo(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), EditMetadataCommon::updateMetadata(), ThemeChooser::updateProgressBar(), IdleScreen::UpdateStatus(), PlaybackBox::UpdateUIListItem(), and PlaybackBox::UpdateUsageUI().

◆ GetChildAt()

MythUIType * MythUIType::GetChildAt ( QPoint  p,
bool  recursive = true,
bool  focusable = true 
) const

Return the first MythUIType at the given coordinates.

Parameters
pQPoint coordinates
recursiveWhether to perform a recursive search
focusableOnly consider widgets that are focusable.
Returns
The widget at these coordinates

Definition at line 241 of file mythuitype.cpp.

Referenced by MythScreenType::gestureEvent(), MythUIButtonList::gestureEvent(), MythUIButtonTree::gestureEvent(), GuideGrid::gestureEvent(), and GetChildAt().

◆ GetDependsMap()

QMap< QString, QString > MythUIType::GetDependsMap ( ) const
inline

Definition at line 204 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

◆ GetDirtyArea()

QRegion MythUIType::GetDirtyArea ( void  ) const
virtual

Definition at line 898 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw().

◆ GetFocusedName()

QString MythUIType::GetFocusedName ( void  ) const
inline

Definition at line 117 of file mythuitype.h.

◆ GetFont()

MythFontProperties * MythUIType::GetFont ( const QString &  text) const

◆ GetFullArea()

MythRect MythUIType::GetFullArea ( void  ) const
virtual

◆ GetHelpText()

QString MythUIType::GetHelpText ( void  ) const
inline

Definition at line 178 of file mythuitype.h.

Referenced by MythScreenType::SetFocusWidget().

◆ GetMinSize()

QSize MythUIType::GetMinSize ( void  ) const
virtual

Definition at line 602 of file mythuitype.cpp.

Referenced by AdjustMinArea(), SetMinArea(), and SetMinAreaParent().

◆ GetPainter()

MythPainter * MythUIType::GetPainter ( void  )
virtual

◆ GetPosition()

MythPoint MythUIType::GetPosition ( void  ) const
virtual

◆ GetXMLLocation()

QString MythUIType::GetXMLLocation ( void  ) const
inline

◆ GetXMLName()

QString MythUIType::GetXMLName ( void  ) const
inline

◆ HandleAlphaPulse()

void MythUIType::HandleAlphaPulse ( void  )
protected

Handle one frame of an alpha (transparency) change animation.

This changes the alpha value of the widget

Definition at line 419 of file mythuitype.cpp.

Referenced by Pulse().

◆ HandleMovementPulse()

void MythUIType::HandleMovementPulse ( void  )
protected

Handle one frame of a movement animation.

This changes the position of the widget within it's parent's area

Definition at line 372 of file mythuitype.cpp.

Referenced by Pulse().

◆ Hide

void MythUIType::Hide ( void  )
slot

◆ Hiding

void MythUIType::Hiding ( void  )
signal

◆ inputMethodEvent()

bool MythUIType::inputMethodEvent ( QInputMethodEvent *  event)
virtual

Input Method event handler.

Parameters
eventInput Method event

Reimplemented in MythDialogBox, MythScreenType, and MythUITextEdit.

Definition at line 998 of file mythuitype.cpp.

Referenced by MythDialogBox::inputMethodEvent(), and MythScreenType::inputMethodEvent().

◆ IsDeferredLoading()

bool MythUIType::IsDeferredLoading ( bool  recurse = false) const

Definition at line 1389 of file mythuitype.cpp.

Referenced by IsDeferredLoading(), and MythUIImage::ParseElement().

◆ IsEnabled()

bool MythUIType::IsEnabled ( void  ) const
inline

◆ IsVisible()

bool MythUIType::IsVisible ( bool  recurse = false) const

◆ keyPressEvent()

bool MythUIType::keyPressEvent ( QKeyEvent *  event)
virtual

Key event handler.

Parameters
eventKeypress event

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

Definition at line 989 of file mythuitype.cpp.

Referenced by MythFlashPlayer::keyPressEvent(), WeatherScreen::keyPressEvent(), and MythScreenType::keyPressEvent().

◆ LoadNow()

void MythUIType::LoadNow ( void  )
virtual

Cause images in this and child widgets to be loaded.

Used only in conjunction with delayed loading in some large statetypes to conserve memory.

Reimplemented in MythUIImage, and MythUIStateType.

Definition at line 1405 of file mythuitype.cpp.

Referenced by MythUIStateType::DisplayState(), MythUIImage::LoadNow(), and MythUIStateType::LoadNow().

◆ LoseFocus

void MythUIType::LoseFocus ( void  )
slot

Definition at line 1026 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

◆ LosingFocus

void MythUIType::LosingFocus ( void  )
signal

◆ mediaEvent()

void MythUIType::mediaEvent ( MythMediaEvent event)
virtual

Media/Device status event handler, received from MythMediaMonitor.

Parameters
eventMedia event

Reimplemented in MythThemedMenu, and GalleryThumbView.

Definition at line 1022 of file mythuitype.cpp.

◆ MoveChildToTop()

bool MythUIType::MoveChildToTop ( MythUIType child)

Definition at line 1360 of file mythuitype.cpp.

Referenced by MoveToTop().

◆ MoveTo()

void MythUIType::MoveTo ( QPoint  destXY,
QPoint  speedXY 
)

Definition at line 914 of file mythuitype.cpp.

◆ MoveToTop()

bool MythUIType::MoveToTop ( void  )

◆ NeedsRedraw()

bool MythUIType::NeedsRedraw ( void  ) const

Definition at line 298 of file mythuitype.cpp.

◆ NormX()

int MythUIType::NormX ( int  width)
staticprotected

◆ NormY()

int MythUIType::NormY ( int  height)
staticprotected

Definition at line 1169 of file mythuitype.cpp.

Referenced by MythUIButtonList::ParseElement().

◆ ParseElement()

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

◆ Pulse()

void MythUIType::Pulse ( void  )
virtual

◆ RecalculateArea()

void MythUIType::RecalculateArea ( bool  recurse = true)
virtual

Reimplemented in MythUIStateType.

Definition at line 1337 of file mythuitype.cpp.

Referenced by CopyFrom(), SetArea(), SetPosition(), and SetSize().

◆ Refresh

void MythUIType::Refresh ( void  )
slot

◆ RequestRegionUpdate

void MythUIType::RequestRegionUpdate ( const QRect &  )
signal

◆ RequestUpdate

void MythUIType::RequestUpdate ( void  )
signal

◆ Reset()

void MythUIType::Reset ( void  )
virtual

◆ ResetNeedsRedraw()

void MythUIType::ResetNeedsRedraw ( void  )

Definition at line 303 of file mythuitype.cpp.

◆ SetAlpha()

void MythUIType::SetAlpha ( int  newalpha)

◆ SetAngle()

void MythUIType::SetAngle ( float  angle)

◆ SetArea()

void MythUIType::SetArea ( const MythRect rect)
virtual

◆ SetCanTakeFocus()

void MythUIType::SetCanTakeFocus ( bool  set = true)

◆ SetCentre()

void MythUIType::SetCentre ( UIEffects::Centre  centre)

◆ SetChildNeedsRedraw()

void MythUIType::SetChildNeedsRedraw ( MythUIType child)

Definition at line 329 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw(), and SetRedraw().

◆ SetDeferLoad()

void MythUIType::SetDeferLoad ( bool  defer)
inline

Definition at line 188 of file mythuitype.h.

Referenced by ParseElement().

◆ SetDependIsDefault()

void MythUIType::SetDependIsDefault ( bool  isDefault)

Definition at line 1129 of file mythuitype.cpp.

◆ SetDependsMap()

void MythUIType::SetDependsMap ( QMap< QString, QString >  dependsMap)

Definition at line 1434 of file mythuitype.cpp.

Referenced by XMLParseBase::ParseChildren(), and XMLParseBase::ParseUIType().

◆ SetEnabled()

void MythUIType::SetEnabled ( bool  enable)

◆ SetFocusedName()

void MythUIType::SetFocusedName ( const QString &  widgetname)

Definition at line 1047 of file mythuitype.cpp.

◆ SetFocusOrder()

void MythUIType::SetFocusOrder ( int  order)

Definition at line 1355 of file mythuitype.cpp.

Referenced by ParseElement().

◆ SetHelpText()

void MythUIType::SetHelpText ( const QString &  text)
inline

◆ SetHorizontalZoom()

void MythUIType::SetHorizontalZoom ( float  zoom)

◆ SetMinArea()

void MythUIType::SetMinArea ( const MythRect rect)
virtual

◆ SetMinAreaParent()

void MythUIType::SetMinAreaParent ( MythRect  actual_area,
MythRect  allowed_area,
MythUIType child 
)
virtual

Adjust the size of sibling objects within the button.

Definition at line 707 of file mythuitype.cpp.

Referenced by SetMinArea(), and SetMinAreaParent().

◆ SetMinSize()

void MythUIType::SetMinSize ( const MythPoint minsize)
virtual

Set the minimum size of this widget, for widgets which can be rescaled.

Use MythPoint to represent size, so percentages can be used

Definition at line 590 of file mythuitype.cpp.

Referenced by ParseElement().

◆ SetPainter()

void MythUIType::SetPainter ( MythPainter painter)
inline

Definition at line 194 of file mythuitype.h.

Referenced by OSD::DialogShow().

◆ SetPosition() [1/3]

void MythUIType::SetPosition ( const MythPoint point)
virtual

Reimplemented in MythUIText.

Definition at line 543 of file mythuitype.cpp.

◆ SetPosition() [2/3]

void MythUIType::SetPosition ( int  x,
int  y 
)

◆ SetPosition() [3/3]

void MythUIType::SetPosition ( QPoint  point)

Definition at line 538 of file mythuitype.cpp.

◆ SetRedraw()

void MythUIType::SetRedraw ( void  )

◆ SetReverseDependence()

void MythUIType::SetReverseDependence ( MythUIType dependee,
bool  reverse 
)

Definition at line 1439 of file mythuitype.cpp.

Referenced by ConnectDependants().

◆ SetSize()

void MythUIType::SetSize ( QSize  size)
virtual

Reimplemented in MythUIImage.

Definition at line 569 of file mythuitype.cpp.

Referenced by ExpandArea(), and MythUIImage::SetSize().

◆ SetVerticalZoom()

void MythUIType::SetVerticalZoom ( float  zoom)

◆ SetVisible()

void MythUIType::SetVisible ( bool  visible)
virtual

Reimplemented in MythUIProgressBar.

Definition at line 1111 of file mythuitype.cpp.

Referenced by MythNavigationOverlay::AudioStateChanged(), MythUIButtonList::CalculateButtonPositions(), MythUIProgressBar::CalculatePosition(), Slide::Clear(), Ripper::compilationChanged(), MythUIStateType::CopyFrom(), ChannelScannerGUIScanPane::Create(), MythNavigationOverlay::Create(), MythTimeInputDialog::Create(), GalleryThumbView::Create(), InfoList::Create(), ProgInfoList::Create(), NetSearch::Create(), ZMPlayer::Create(), MythConfirmationDialog::Create(), MythNotificationScreen::Create(), MetadataSettings::Create(), PlayerSettings::Create(), WelcomeDialog::Create(), MusicCommon::customEvent(), OSD::DialogShow(), SubtitleScreen::DisableForcedSubtitles(), MythUIEditBar::Display(), MythUIStateType::DisplayState(), MythUIButtonList::DistributeButtons(), MythUIButtonListItem::DoButtonArrow(), MythUIButtonListItem::DoButtonCheck(), SubtitleScreen::EnableSubtitles(), MythCaptionsOverlay::EnableTeletext(), ViewScheduled::FillList(), ImportMusicDialog::fillWidgets(), Transition::Finished(), ZMPlayer::getEventInfo(), NCPrivate::GetNotificationScreens(), InfoList::Hide(), Hide(), ProgInfoList::Hide(), ZMLivePlayer::hideAll(), MythMediaOverlay::HideWindow(), MythUIButtonList::Init(), MythUIButtonTree::Init(), ZMPlayer::keyPressEvent(), GalleryThumbView::LoadData(), RSSEditor::LoadData(), NetSearch::LoadData(), NetTree::LoadData(), MythNavigationOverlay::More(), MythNavigationOverlay::PauseChanged(), MythUITextEdit::Pulse(), VideoDialog::refreshData(), MythUIStateType::Reset(), Ripper::ScanFinished(), GalleryThumbView::SelectZoomWidget(), OSD::SetText(), MythUIButtonTree::SetTreeState(), MythUIProgressBar::SetVisible(), Player::setWidgets(), Show(), Transition::Start(), InfoList::Toggle(), ProgInfoList::Toggle(), PlayerSettings::toggleAlt(), MetadataSettings::toggleTrailers(), UpdateDependState(), ProgLister::UpdateDisplay(), PlaybackBox::updateIcons(), ChannelRecPriority::updateInfo(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), MHIContext::UpdateOSD(), PlaybackBox::updateRecList(), GalleryThumbView::UpdateScanProgress(), FileAssocDialog::UpdateScreen(), IdleScreen::UpdateScreen(), WelcomeDialog::updateScreen(), WelcomeDialog::updateStatusMessage(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), and BookmarkManager::UpdateURLList().

◆ SetXMLLocation()

void MythUIType::SetXMLLocation ( const QString &  filename,
int  where 
)
inline

Definition at line 180 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

◆ SetXMLName()

void MythUIType::SetXMLName ( const QString &  name)
inline

Definition at line 184 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

◆ SetZoom()

void MythUIType::SetZoom ( float  zoom)

Definition at line 961 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

◆ Show

void MythUIType::Show ( void  )
slot

◆ Showing

void MythUIType::Showing ( void  )
signal

◆ TakeFocus

bool MythUIType::TakeFocus ( void  )
slot

Definition at line 1036 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

◆ TakingFocus

void MythUIType::TakingFocus ( void  )
signal

◆ UpdateDependState [1/2]

void MythUIType::UpdateDependState ( bool  isDefault)
slot

Definition at line 1104 of file mythuitype.cpp.

Referenced by ConnectDependants(), and UpdateDependState().

◆ UpdateDependState [2/2]

void MythUIType::UpdateDependState ( MythUIType dependee,
bool  isDefault 
)
slot

Definition at line 1062 of file mythuitype.cpp.

◆ VanishSibling()

void MythUIType::VanishSibling ( void  )
virtual

Definition at line 684 of file mythuitype.cpp.

◆ VisibilityChanged

void MythUIType::VisibilityChanged ( bool  Visible)
signal

Referenced by OSD::LoadWindows(), and SetVisible().

Friends And Related Function Documentation

◆ MythScreenType

friend class MythScreenType
friend

Definition at line 310 of file mythuitype.h.

◆ XMLParseBase

friend class XMLParseBase
friend

Definition at line 311 of file mythuitype.h.

Member Data Documentation

◆ m_alphaChange

int MythUIType::m_alphaChange {0}
protected

Definition at line 287 of file mythuitype.h.

Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), and ParseElement().

◆ m_alphaChangeMode

int MythUIType::m_alphaChangeMode {0}
protected

Definition at line 286 of file mythuitype.h.

Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), and ParseElement().

◆ m_alphaMax

int MythUIType::m_alphaMax {255}
protected

Definition at line 289 of file mythuitype.h.

Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), and ParseElement().

◆ m_alphaMin

int MythUIType::m_alphaMin {0}
protected

Definition at line 288 of file mythuitype.h.

Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), and ParseElement().

◆ m_animations

QList<MythUIAnimation*> MythUIType::m_animations
protected

Definition at line 300 of file mythuitype.h.

Referenced by ActivateAnimations(), CopyFrom(), Pulse(), and ~MythUIType().

◆ m_area

MythRect MythUIType::m_area {0,0,0,0}
protected

◆ m_borderColor

QColor MythUIType::m_borderColor {Qt::black}
protected

Definition at line 308 of file mythuitype.h.

Referenced by Draw(), and MythUIType().

◆ m_canHaveFocus

bool MythUIType::m_canHaveFocus {false}
protected

◆ m_childrenList

QList<MythUIType *> MythUIType::m_childrenList
protected

◆ m_deferload

bool MythUIType::m_deferload {false}
protected

◆ m_dependOperator

QList<int> MythUIType::m_dependOperator
protected

Definition at line 261 of file mythuitype.h.

Referenced by ConnectDependants(), and UpdateDependState().

◆ m_dependsMap

QMap<QString, QString> MythUIType::m_dependsMap
protected

Definition at line 256 of file mythuitype.h.

Referenced by ConnectDependants(), CopyFrom(), and SetDependsMap().

◆ m_dependsValue

QList< QPair<MythUIType *, bool> > MythUIType::m_dependsValue
protected

Definition at line 260 of file mythuitype.h.

Referenced by ConnectDependants(), and UpdateDependState().

◆ m_dirtyRegion

QRegion MythUIType::m_dirtyRegion {0,0,0,0}
protected

◆ m_effects

UIEffects MythUIType::m_effects
protected

◆ m_enabled

bool MythUIType::m_enabled {true}
protected

Definition at line 266 of file mythuitype.h.

Referenced by CopyFrom(), SetEnabled(), MythUIButton::SetLocked(), and MythUIButton::UnPush().

◆ m_enableInitiator

bool MythUIType::m_enableInitiator {false}
protected

◆ m_focusedName

QString MythUIType::m_focusedName
protected

Definition at line 274 of file mythuitype.h.

Referenced by SetFocusedName().

◆ m_focusOrder

int MythUIType::m_focusOrder {0}
protected

◆ m_fonts

FontMap* MythUIType::m_fonts {nullptr}
protected

Definition at line 295 of file mythuitype.h.

Referenced by AddFont(), GetFont(), MythUIType(), and ~MythUIType().

◆ m_hasFocus

bool MythUIType::m_hasFocus {false}
protected

◆ m_helptext

QString MythUIType::m_helptext
protected

Definition at line 301 of file mythuitype.h.

Referenced by ParseElement().

◆ m_initiator

bool MythUIType::m_initiator {false}
protected

◆ m_isDependDefault

bool MythUIType::m_isDependDefault {false}
protected

Definition at line 271 of file mythuitype.h.

Referenced by SetDependIsDefault(), SetVisible(), and UpdateDependState().

◆ m_minArea

MythRect MythUIType::m_minArea {0,0,0,0}
protected

◆ m_minSize

MythPoint MythUIType::m_minSize
protected

◆ m_moving

bool MythUIType::m_moving {false}
protected

Definition at line 291 of file mythuitype.h.

Referenced by CopyFrom(), HandleMovementPulse(), and MoveTo().

◆ m_needsRedraw

bool MythUIType::m_needsRedraw {false}
protected

Definition at line 282 of file mythuitype.h.

Referenced by NeedsRedraw(), ResetNeedsRedraw(), SetChildNeedsRedraw(), and SetRedraw().

◆ m_painter

MythPainter* MythUIType::m_painter {nullptr}
protected

◆ m_parent

MythUIType* MythUIType::m_parent {nullptr}
protected

◆ m_reverseDepend

QMap<MythUIType *, bool> MythUIType::m_reverseDepend
protected

Definition at line 272 of file mythuitype.h.

Referenced by SetReverseDependence(), and UpdateDependState().

◆ m_vanish

bool MythUIType::m_vanish {false}
protected

◆ m_vanished

bool MythUIType::m_vanished {false}
protected

◆ m_visible

bool MythUIType::m_visible {true}
protected

◆ m_xmlLocation

QString MythUIType::m_xmlLocation
protected

Definition at line 304 of file mythuitype.h.

Referenced by CopyFrom().

◆ m_xmlName

QString MythUIType::m_xmlName
protected

Definition at line 303 of file mythuitype.h.

Referenced by CopyFrom().

◆ m_xyDestination

QPoint MythUIType::m_xyDestination {0,0}
protected

Definition at line 292 of file mythuitype.h.

Referenced by CopyFrom(), HandleMovementPulse(), and MoveTo().

◆ m_xySpeed

QPoint MythUIType::m_xySpeed {0,0}
protected

Definition at line 293 of file mythuitype.h.

Referenced by CopyFrom(), HandleMovementPulse(), and MoveTo().


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