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 <mythuitype.h>

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

Public Slots

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 RequestUpdate ()
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void VisibilityChanged (bool Visible)
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
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)
 
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
 
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 43 of file mythuitype.cpp.

◆ ~MythUIType()

MythUIType::~MythUIType ( )
overrideprotected

Definition at line 62 of file mythuitype.cpp.

Member Function Documentation

◆ Reset()

void MythUIType::Reset ( void  )
virtual

◆ AddChild()

void MythUIType::AddChild ( MythUIType child)

Add a child UIType.

Definition at line 88 of file mythuitype.cpp.

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

◆ 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 133 of file mythuitype.cpp.

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

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

◆ GetAllChildren()

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

◆ GetAllDescendants()

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

Definition at line 202 of file mythuitype.cpp.

◆ 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 172 of file mythuitype.cpp.

◆ DeleteAllChildren()

void MythUIType::DeleteAllChildren ( void  )

◆ NeedsRedraw()

bool MythUIType::NeedsRedraw ( void  ) const

Definition at line 293 of file mythuitype.cpp.

◆ ResetNeedsRedraw()

void MythUIType::ResetNeedsRedraw ( void  )

Definition at line 298 of file mythuitype.cpp.

◆ SetRedraw()

void MythUIType::SetRedraw ( void  )

◆ SetChildNeedsRedraw()

void MythUIType::SetChildNeedsRedraw ( MythUIType child)

Definition at line 324 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw(), and SetRedraw().

◆ CanTakeFocus()

bool MythUIType::CanTakeFocus ( void  ) const

Return if this widget can accept input focus.

Definition at line 349 of file mythuitype.cpp.

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

◆ SetCanTakeFocus()

void MythUIType::SetCanTakeFocus ( bool  set = true)

◆ SetFocusOrder()

void MythUIType::SetFocusOrder ( int  order)

Definition at line 1353 of file mythuitype.cpp.

Referenced by ParseElement().

◆ IsEnabled()

bool MythUIType::IsEnabled ( void  ) const
inline

◆ SetEnabled()

void MythUIType::SetEnabled ( bool  enable)

◆ MoveToTop()

bool MythUIType::MoveToTop ( void  )

◆ MoveChildToTop()

bool MythUIType::MoveChildToTop ( MythUIType child)

Definition at line 1358 of file mythuitype.cpp.

Referenced by MoveToTop().

◆ ActivateAnimations()

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

Definition at line 283 of file mythuitype.cpp.

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

◆ GetAnimations()

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

Definition at line 124 of file mythuitype.h.

Referenced by MythUIAnimation::ParseSection().

◆ Pulse()

void MythUIType::Pulse ( void  )
virtual

◆ Draw()

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

Definition at line 483 of file mythuitype.cpp.

◆ SetPosition() [1/3]

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

◆ SetPosition() [2/3]

void MythUIType::SetPosition ( QPoint  point)

Definition at line 537 of file mythuitype.cpp.

◆ SetPosition() [3/3]

void MythUIType::SetPosition ( const MythPoint point)
virtual

Reimplemented in MythUIText.

Definition at line 542 of file mythuitype.cpp.

◆ GetPosition()

MythPoint MythUIType::GetPosition ( void  ) const
virtual

◆ SetSize()

void MythUIType::SetSize ( QSize  size)
virtual

Reimplemented in MythUIImage.

Definition at line 568 of file mythuitype.cpp.

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

◆ 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 589 of file mythuitype.cpp.

Referenced by ParseElement().

◆ GetMinSize()

QSize MythUIType::GetMinSize ( void  ) const
virtual

Definition at line 601 of file mythuitype.cpp.

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

◆ SetArea()

void MythUIType::SetArea ( const MythRect rect)
virtual

◆ 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 628 of file mythuitype.cpp.

◆ VanishSibling()

void MythUIType::VanishSibling ( void  )
virtual

Definition at line 683 of file mythuitype.cpp.

◆ 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 706 of file mythuitype.cpp.

Referenced by SetMinArea(), and SetMinAreaParent().

◆ SetMinArea()

void MythUIType::SetMinArea ( const MythRect rect)
virtual

◆ GetArea()

MythRect MythUIType::GetArea ( void  ) const
virtual

◆ GetFullArea()

MythRect MythUIType::GetFullArea ( void  ) const
virtual

◆ RecalculateArea()

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

Reimplemented in MythUIStateType.

Definition at line 1335 of file mythuitype.cpp.

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

◆ ExpandArea()

void MythUIType::ExpandArea ( QRect  rect)

Definition at line 868 of file mythuitype.cpp.

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

◆ GetDirtyArea()

QRegion MythUIType::GetDirtyArea ( void  ) const
virtual

Definition at line 897 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw().

◆ IsVisible()

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

◆ SetVisible()

void MythUIType::SetVisible ( bool  visible)
virtual

Reimplemented in MythUIProgressBar.

Definition at line 1108 of file mythuitype.cpp.

Referenced by MythNavigationOverlay::AudioStateChanged(), MythUIButtonList::CalculateButtonPositions(), MythUIProgressBar::CalculatePosition(), Slide::Clear(), Ripper::compilationChanged(), MythUIStateType::CopyFrom(), MythNavigationOverlay::Create(), PlayerSettings::Create(), MetadataSettings::Create(), WelcomeDialog::Create(), ProgInfoList::Create(), InfoList::Create(), NetSearch::Create(), GalleryThumbView::Create(), ZMPlayer::Create(), ChannelScannerGUIScanPane::Create(), MythNotificationScreen::Create(), MythConfirmationDialog::Create(), MythTimeInputDialog::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(), ProgInfoList::Hide(), InfoList::Hide(), Hide(), ZMLivePlayer::hideAll(), MythMediaOverlay::HideWindow(), MythUIButtonTree::Init(), MythUIButtonList::Init(), ZMPlayer::keyPressEvent(), GalleryThumbView::LoadData(), NetSearch::LoadData(), NetTree::LoadData(), RSSEditor::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(), ProgInfoList::Toggle(), InfoList::Toggle(), PlayerSettings::toggleAlt(), MetadataSettings::toggleTrailers(), UpdateDependState(), ProgLister::UpdateDisplay(), PlaybackBox::updateIcons(), ChannelRecPriority::updateInfo(), ChannelRecPriority::updateList(), ProgramRecPriority::UpdateList(), MHIContext::UpdateOSD(), PlaybackBox::updateRecList(), GalleryThumbView::UpdateScanProgress(), IdleScreen::UpdateScreen(), WelcomeDialog::updateScreen(), FileAssocDialog::UpdateScreen(), WelcomeDialog::updateStatusMessage(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), and BookmarkManager::UpdateURLList().

◆ MoveTo()

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

Definition at line 913 of file mythuitype.cpp.

◆ AdjustAlpha()

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

◆ SetAlpha()

void MythUIType::SetAlpha ( int  newalpha)

◆ GetAlpha()

int MythUIType::GetAlpha ( void  ) const

Definition at line 954 of file mythuitype.cpp.

Referenced by MythScreenStack::CheckNewFadeTransition().

◆ keyPressEvent()

bool MythUIType::keyPressEvent ( QKeyEvent *  event)
virtual

Key event handler.

Parameters
eventKeypress event

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

Definition at line 992 of file mythuitype.cpp.

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

◆ inputMethodEvent()

bool MythUIType::inputMethodEvent ( QInputMethodEvent *  event)
virtual

Input Method event handler.

Parameters
eventInput Method event

Reimplemented in MythDialogBox, MythScreenType, and MythUITextEdit.

Definition at line 1001 of file mythuitype.cpp.

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

◆ 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 MythDialogBox, MythUIButtonList, GuideGrid, MythScreenType, MythUITextEdit, MythUIButton, MythUICheckBox, MythUIButtonTree, and TvPlayWindow.

Definition at line 1016 of file mythuitype.cpp.

Referenced by MythScreenType::gestureEvent().

◆ 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 1025 of file mythuitype.cpp.

◆ GetFont()

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

◆ AddFont()

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

◆ SetHelpText()

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

◆ GetHelpText()

QString MythUIType::GetHelpText ( void  ) const
inline

Definition at line 176 of file mythuitype.h.

Referenced by MythScreenType::SetFocusWidget().

◆ SetXMLLocation()

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

Definition at line 178 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

◆ GetXMLLocation()

QString MythUIType::GetXMLLocation ( void  ) const
inline

◆ SetXMLName()

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

Definition at line 182 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

◆ GetXMLName()

QString MythUIType::GetXMLName ( void  ) const
inline

Definition at line 183 of file mythuitype.h.

Referenced by ETPrintWarning::Child(), and ETPrintError::Child().

◆ IsDeferredLoading()

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

Definition at line 1387 of file mythuitype.cpp.

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

◆ SetDeferLoad()

void MythUIType::SetDeferLoad ( bool  defer)
inline

Definition at line 186 of file mythuitype.h.

Referenced by ParseElement().

◆ 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 1403 of file mythuitype.cpp.

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

◆ 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 1416 of file mythuitype.cpp.

Referenced by MythMainWindow::eventFilter().

◆ GetPainter()

MythPainter * MythUIType::GetPainter ( void  )
virtual

◆ SetPainter()

void MythUIType::SetPainter ( MythPainter painter)
inline

Definition at line 192 of file mythuitype.h.

Referenced by OSD::DialogShow().

◆ SetCentre()

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

◆ SetZoom()

void MythUIType::SetZoom ( float  zoom)

Definition at line 964 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

◆ SetHorizontalZoom()

void MythUIType::SetHorizontalZoom ( float  zoom)

◆ SetVerticalZoom()

void MythUIType::SetVerticalZoom ( float  zoom)

◆ SetAngle()

void MythUIType::SetAngle ( float  angle)

◆ SetDependIsDefault()

void MythUIType::SetDependIsDefault ( bool  isDefault)

Definition at line 1126 of file mythuitype.cpp.

◆ SetReverseDependence()

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

Definition at line 1437 of file mythuitype.cpp.

Referenced by ConnectDependants().

◆ SetDependsMap()

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

Definition at line 1432 of file mythuitype.cpp.

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

◆ GetDependsMap()

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

Definition at line 202 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

◆ customEvent()

void MythUIType::customEvent ( QEvent *  event)
overrideprotected

◆ LoseFocus

void MythUIType::LoseFocus ( )
slot

Definition at line 1029 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

◆ TakeFocus

bool MythUIType::TakeFocus ( )
slot

Definition at line 1039 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

◆ Activate

void MythUIType::Activate ( )
slot

Definition at line 1050 of file mythuitype.cpp.

◆ Hide

void MythUIType::Hide ( void  )
slot

◆ Show

void MythUIType::Show ( void  )
slot

◆ Refresh

void MythUIType::Refresh ( void  )
slot

◆ UpdateDependState [1/2]

void MythUIType::UpdateDependState ( bool  isDefault)
slot

Definition at line 1101 of file mythuitype.cpp.

Referenced by ConnectDependants().

◆ UpdateDependState [2/2]

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

Definition at line 1059 of file mythuitype.cpp.

◆ RequestUpdate

void MythUIType::RequestUpdate ( )
signal

◆ RequestRegionUpdate

void MythUIType::RequestRegionUpdate ( const QRect &  )
signal

◆ TakingFocus

void MythUIType::TakingFocus ( )
signal

◆ LosingFocus

void MythUIType::LosingFocus ( )
signal

◆ VisibilityChanged

void MythUIType::VisibilityChanged ( bool  Visible)
signal

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

◆ Showing

void MythUIType::Showing ( )
signal

◆ Hiding

void MythUIType::Hiding ( )
signal

◆ Enabling

void MythUIType::Enabling ( )
signal

◆ Disabling

void MythUIType::Disabling ( )
signal

◆ FinishedMoving

void MythUIType::FinishedMoving ( )
signal

Referenced by HandleMovementPulse().

◆ FinishedFading

void MythUIType::FinishedFading ( )
signal

◆ DependChanged

void MythUIType::DependChanged ( bool  isDefault)
signal

◆ DrawSelf()

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

◆ AddFocusableChildrenToList()

void MythUIType::AddFocusableChildrenToList ( FocusInfoType focusList)
protected

Definition at line 1152 of file mythuitype.cpp.

Referenced by MythScreenType::BuildFocusList().

◆ HandleAlphaPulse()

void MythUIType::HandleAlphaPulse ( )
protected

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

This changes the alpha value of the widget

Definition at line 414 of file mythuitype.cpp.

Referenced by Pulse().

◆ HandleMovementPulse()

void MythUIType::HandleMovementPulse ( )
protected

Handle one frame of a movement animation.

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

Definition at line 367 of file mythuitype.cpp.

Referenced by Pulse().

◆ CalcAlpha()

int MythUIType::CalcAlpha ( int  alphamod) const
protected

◆ NormX()

int MythUIType::NormX ( int  width)
staticprotected

◆ NormY()

int MythUIType::NormY ( int  height)
staticprotected

Definition at line 1166 of file mythuitype.cpp.

Referenced by MythUIButtonList::ParseElement().

◆ ConnectDependants()

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

◆ ParseElement()

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

◆ CopyFrom()

void MythUIType::CopyFrom ( MythUIType base)
protectedvirtual

◆ CreateCopy()

void MythUIType::CreateCopy ( MythUIType parent)
protectedvirtual

◆ 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 MythUIButtonList, MythUIWebBrowser, MythUIImage, MythUITextEdit, MythUIText, MythUIGuideGrid, MythUIStateType, MythUIButton, MythUICheckBox, MythUIScrollBar, MythUIEditBar, MythUIProgressBar, and MythUIProcedural.

Definition at line 1316 of file mythuitype.cpp.

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

Friends And Related Function Documentation

◆ MythScreenType

friend class MythScreenType
friend

Definition at line 307 of file mythuitype.h.

◆ XMLParseBase

friend class XMLParseBase
friend

Definition at line 308 of file mythuitype.h.

Member Data Documentation

◆ m_childrenList

QList<MythUIType *> MythUIType::m_childrenList
protected

◆ m_dependsMap

QMap<QString, QString> MythUIType::m_dependsMap
protected

Definition at line 254 of file mythuitype.h.

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

◆ m_dependsValue

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

Definition at line 258 of file mythuitype.h.

Referenced by ConnectDependants(), and UpdateDependState().

◆ m_dependOperator

QList<int> MythUIType::m_dependOperator
protected

Definition at line 259 of file mythuitype.h.

Referenced by ConnectDependants(), and UpdateDependState().

◆ m_visible

bool MythUIType::m_visible {true}
protected

◆ m_hasFocus

bool MythUIType::m_hasFocus {false}
protected

◆ m_canHaveFocus

bool MythUIType::m_canHaveFocus {false}
protected

◆ m_enabled

bool MythUIType::m_enabled {true}
protected

Definition at line 264 of file mythuitype.h.

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

◆ m_enableInitiator

bool MythUIType::m_enableInitiator {false}
protected

◆ m_initiator

bool MythUIType::m_initiator {false}
protected

◆ m_vanish

bool MythUIType::m_vanish {false}
protected

◆ m_vanished

bool MythUIType::m_vanished {false}
protected

◆ m_isDependDefault

bool MythUIType::m_isDependDefault {false}
protected

Definition at line 269 of file mythuitype.h.

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

◆ m_reverseDepend

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

Definition at line 270 of file mythuitype.h.

Referenced by SetReverseDependence(), and UpdateDependState().

◆ m_focusOrder

int MythUIType::m_focusOrder {0}
protected

◆ m_area

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

◆ m_minArea

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

◆ m_minSize

MythPoint MythUIType::m_minSize
protected

◆ m_dirtyRegion

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

◆ m_needsRedraw

bool MythUIType::m_needsRedraw {false}
protected

Definition at line 279 of file mythuitype.h.

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

◆ m_effects

UIEffects MythUIType::m_effects
protected

◆ m_alphaChangeMode

int MythUIType::m_alphaChangeMode {0}
protected

Definition at line 283 of file mythuitype.h.

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

◆ m_alphaChange

int MythUIType::m_alphaChange {0}
protected

Definition at line 284 of file mythuitype.h.

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

◆ m_alphaMin

int MythUIType::m_alphaMin {0}
protected

Definition at line 285 of file mythuitype.h.

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

◆ m_alphaMax

int MythUIType::m_alphaMax {255}
protected

Definition at line 286 of file mythuitype.h.

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

◆ m_moving

bool MythUIType::m_moving {false}
protected

Definition at line 288 of file mythuitype.h.

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

◆ m_xyDestination

QPoint MythUIType::m_xyDestination {0,0}
protected

Definition at line 289 of file mythuitype.h.

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

◆ m_xySpeed

QPoint MythUIType::m_xySpeed {0,0}
protected

Definition at line 290 of file mythuitype.h.

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

◆ m_fonts

FontMap* MythUIType::m_fonts {nullptr}
protected

Definition at line 292 of file mythuitype.h.

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

◆ m_parent

MythUIType* MythUIType::m_parent {nullptr}
protected

◆ m_painter

MythPainter* MythUIType::m_painter {nullptr}
protected

◆ m_animations

QList<MythUIAnimation*> MythUIType::m_animations
protected

Definition at line 297 of file mythuitype.h.

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

◆ m_helptext

QString MythUIType::m_helptext
protected

Definition at line 298 of file mythuitype.h.

Referenced by ParseElement().

◆ m_xmlName

QString MythUIType::m_xmlName
protected

Definition at line 300 of file mythuitype.h.

Referenced by CopyFrom().

◆ m_xmlLocation

QString MythUIType::m_xmlLocation
protected

Definition at line 301 of file mythuitype.h.

Referenced by CopyFrom().

◆ m_deferload

bool MythUIType::m_deferload {false}
protected

◆ m_borderColor

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

Definition at line 305 of file mythuitype.h.

Referenced by Draw(), and MythUIType().


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