MythUIType Class Reference
[MythUI Widget and theme handling]

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

#include <mythuitype.h>

Inheritance diagram for MythUIType:
XMLParseBase MythScreenType MythUIButton MythUIButtonList MythUIButtonTree MythUICheckBox MythUIEditBar MythUIGroup MythUIGuideGrid MythUIImage MythUIProgressBar MythUIShape MythUISimpleText MythUIStateType MythUIText MythUITextEdit MythUIVideo MythUIWebBrowser

List of all members.

Public Slots

void LoseFocus ()
bool TakeFocus ()
void Activate ()
void Hide (void)
void Show (void)
void Refresh (void)

Signals

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 ()

Public Member Functions

 MythUIType (QObject *parent, const QString &name)
virtual ~MythUIType ()
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())
virtual void SetPosition (int x, int y)
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 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 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.
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)

Protected Member Functions

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)
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 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 void Finalize (void)
 Perform any post-xml parsing initialisation tasks.

Protected Attributes

QList< MythUIType * > m_ChildrenList
bool m_Visible
bool m_HasFocus
bool m_CanHaveFocus
bool m_Enabled
bool m_EnableInitiator
bool m_Initiator
bool m_Vanish
bool m_Vanished
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 XMLParseBase

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 64 of file mythuitype.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file mythuitype.cpp.

MythUIType::~MythUIType (  )  [virtual]

Definition at line 70 of file mythuitype.cpp.


Member Function Documentation

void MythUIType::Reset ( void   )  [virtual]

Reset the widget to it's original state, should not reset changes made by the theme.

Reimplemented in TeletextScreen, MythUIBusyDialog, MythUIButton, MythUIButtonList, MythUIButtonTree, MythUIGroup, MythUIImage, MythUIProgressBar, MythUIStateType, MythUIText, MythUITextEdit, and MythUIVideo.

Definition at line 80 of file mythuitype.cpp.

Referenced by OSD::DialogShow(), and Reset().

void MythUIType::AddChild ( MythUIType child  ) 

Add a child UIType.

Definition at line 96 of file mythuitype.cpp.

Referenced by MythUIType().

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

Get a named child of this UIType.

Parameters:
Name of child
Returns:
Pointer to child if found, or NULL

Definition at line 143 of file mythuitype.cpp.

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

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

Return the first MythUIType which accepts focus found at the given coordinates.

Parameters:
p QPoint coordinates
recursive Whether to perform a recursive search
Returns:
The widget at these coordinates

Definition at line 231 of file mythuitype.cpp.

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

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

Return a list of all child widgets.

Definition at line 204 of file mythuitype.cpp.

Referenced by DoResetMap(), DoSetTextFromMap(), ZMEvents::setGridLayout(), and MythUIVirtualKeyboard::updateKeys().

void MythUIType::DeleteChild ( const QString &  name  ) 
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 NULL if successful.

Definition at line 182 of file mythuitype.cpp.

void MythUIType::DeleteAllChildren ( void   ) 
bool MythUIType::NeedsRedraw ( void   )  const

Definition at line 285 of file mythuitype.cpp.

void MythUIType::ResetNeedsRedraw ( void   ) 

Definition at line 290 of file mythuitype.cpp.

void MythUIType::SetRedraw ( void   ) 

Definition at line 300 of file mythuitype.cpp.

Referenced by MythUIProgressBar::CalculatePosition(), MythUIStateType::Clear(), SubtitleScreen::ClearDisplayedSubtitles(), TeletextScreen::ClearScreen(), GuideGrid::cursorDown(), GuideGrid::cursorLeft(), GuideGrid::cursorRight(), GuideGrid::cursorUp(), MythUIImage::customEvent(), BDOverlayScreen::DisplayBDOverlay(), SubtitleScreen::DisplayCC608Subtitles(), SubtitleScreen::DisplayDVDButton(), SubtitleScreen::DisplayTextSubtitles(), ExpandArea(), SubtitleScreen::ExpireSubtitles(), ThumbFinder::getThumbImages(), HandleAlphaPulse(), HandleMovementPulse(), MythUIImage::Load(), MoveChildToTop(), MythUITextEdit::MoveCursor(), GuideGrid::moveLeftRight(), GuideGrid::moveUpDown(), MythScreenStack::PopScreen(), MythUIText::Pulse(), MythUIImage::Pulse(), Refresh(), SubtitleScreen::RenderAssTrack(), MythUIText::Reset(), SetAlpha(), SetAngle(), SetArea(), MythUIText::SetCanvasPosition(), MythUIShape::SetCropRect(), MythUIImage::SetCropRect(), MythUIText::SetCutDown(), setDebugShowBorders(), setDebugShowNames(), MythUIText::SetFontProperties(), MythUIText::SetFontState(), SetHorizontalZoom(), MythUIImage::SetImage(), MythUIImage::SetImages(), MythUIText::SetJustification(), SetMinSize(), MythUIText::SetMultiLine(), SetPosition(), MythUIGuideGrid::SetProgPast(), SetSize(), MythUIText::SetText(), SetVerticalZoom(), SetVisible(), MythUIText::ShiftCanvas(), MythUIText::StopCycling(), MythUIButtonList::Update(), MythUIVideo::UpdateFrame(), and ThumbFinder::updateThumb().

void MythUIType::SetChildNeedsRedraw ( MythUIType child  ) 

Definition at line 316 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw(), and SetRedraw().

bool MythUIType::CanTakeFocus ( void   )  const

Return if this widget can accept input focus.

Definition at line 341 of file mythuitype.cpp.

Referenced by GetChildAt(), and MythScreenType::SetFocusWidget().

void MythUIType::SetCanTakeFocus ( bool  set = true  ) 
void MythUIType::SetFocusOrder ( int  order  ) 

Definition at line 1259 of file mythuitype.cpp.

Referenced by ParseElement().

bool MythUIType::IsEnabled ( void   )  const [inline]
void MythUIType::SetEnabled ( bool  enable  ) 
bool MythUIType::MoveToTop ( void   ) 
bool MythUIType::MoveChildToTop ( MythUIType child  ) 

Definition at line 1264 of file mythuitype.cpp.

Referenced by MoveToTop().

void MythUIType::ActivateAnimations ( MythUIAnimation::Trigger  trigger  ) 
QList<MythUIAnimation*>* MythUIType::GetAnimations ( void   )  [inline]

Definition at line 103 of file mythuitype.h.

Referenced by MythUIAnimation::ParseSection().

void MythUIType::Pulse ( void   )  [virtual]

Pulse is called 70 times a second to trigger a single frame of an animation.

This changes the alpha value of the widget

Reimplemented in SubtitleScreen, TeletextScreen, MythUIBusyDialog, MythUIClock, MythUIImage, MythUIText, MythUITextEdit, MythUIVideo, and MythUIWebBrowser.

Definition at line 446 of file mythuitype.cpp.

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

Definition at line 473 of file mythuitype.cpp.

void MythUIType::SetPosition ( int  x,
int  y 
) [virtual]
void MythUIType::SetPosition ( const MythPoint pos  )  [virtual]

Reimplemented in MythUIText.

Definition at line 522 of file mythuitype.cpp.

MythPoint MythUIType::GetPosition ( void   )  const [virtual]

Definition at line 543 of file mythuitype.cpp.

void MythUIType::SetSize ( const QSize &  size  )  [virtual]

Reimplemented in MythUIImage.

Definition at line 548 of file mythuitype.cpp.

Referenced by ExpandArea().

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

Referenced by ParseElement().

QSize MythUIType::GetMinSize ( void   )  const [virtual]

Definition at line 581 of file mythuitype.cpp.

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

void MythUIType::SetArea ( const MythRect rect  )  [virtual]
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 608 of file mythuitype.cpp.

void MythUIType::VanishSibling ( void   )  [virtual]

Definition at line 663 of file mythuitype.cpp.

void MythUIType::SetMinAreaParent ( MythRect  actual_area,
MythRect  full_area,
MythUIType child 
) [virtual]

Adjust the size of sibling objects within the button.

Definition at line 686 of file mythuitype.cpp.

Referenced by SetMinArea(), and SetMinAreaParent().

void MythUIType::SetMinArea ( const MythRect rect  )  [virtual]

Set the minimum area based on the given size.

Definition at line 796 of file mythuitype.cpp.

Referenced by CopyFrom(), MythUIImage::customEvent(), MythUIText::FillCutMessage(), MythUIImage::Load(), MythUIImage::Reset(), and MythUIImage::SetImages().

MythRect MythUIType::GetArea ( void   )  const [virtual]
MythRect MythUIType::GetFullArea ( void   )  const [virtual]
void MythUIType::RecalculateArea ( bool  recurse = true  )  [virtual]

Definition at line 1241 of file mythuitype.cpp.

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

void MythUIType::ExpandArea ( const MythRect rect  ) 

Definition at line 845 of file mythuitype.cpp.

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

QRegion MythUIType::GetDirtyArea ( void   )  const [virtual]

Definition at line 874 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw().

bool MythUIType::IsVisible ( bool  recurse = false  )  const
void MythUIType::SetVisible ( bool  visible  ) 

Definition at line 1029 of file mythuitype.cpp.

Referenced by MythUIProgressBar::CalculatePosition(), Ripper::compilationChanged(), MythUIStateType::CopyFrom(), ZMPlayer::Create(), WelcomeDialog::Create(), PlayerSettings::Create(), MetadataSettings::Create(), TvPlayWindow::Create(), NetSearch::Create(), MythConfirmationDialog::Create(), OSD::DialogShow(), SubtitleScreen::DisableForcedSubtitles(), MythUIEditBar::Display(), MythUIStateType::DisplayState(), MythUIButtonList::DistributeButtons(), SubtitleScreen::EnableSubtitles(), OSD::EnableTeletext(), ViewScheduled::FillList(), ImportMusicDialog::fillWidgets(), ZMPlayer::getEventInfo(), MythUIEditBar::GetNew(), Hide(), ZMLivePlayer::hideAll(), MythUIButtonTree::Init(), MythUIButtonList::Init(), ZMPlayer::keyPressEvent(), RSSEditor::loadData(), NetTree::loadData(), NetSearch::loadData(), MythUITextEdit::Pulse(), VideoDialog::refreshData(), MythUIStateType::Reset(), Ripper::ScanFinished(), ScreenWizard::setContext(), ZMEvents::setGridLayout(), MythUIButtonList::SetPosition(), OSD::SetText(), MythUIButtonListItem::SetToRealButton(), MythUIButtonTree::SetTreeState(), OSD::SetValues(), Player::setWidgets(), Show(), NetSearch::slotDownloadFinished(), PlayerSettings::toggleAlt(), MetadataSettings::toggleTrailers(), ProgLister::UpdateDisplay(), PlaybackBox::updateIcons(), ChannelRecPriority::updateInfo(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), MHIContext::UpdateOSD(), TvPlayWindow::UpdateProgress(), PlaybackBox::updateRecList(), WelcomeDialog::updateScreen(), FileAssocDialog::UpdateScreen(), WelcomeDialog::updateStatusMessage(), MusicCommon::updateUIPlaylist(), and BookmarkManager::UpdateURLList().

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

Definition at line 890 of file mythuitype.cpp.

void MythUIType::AdjustAlpha ( int  mode,
int  alphachange,
int  minalpha = 0,
int  maxalpha = 255 
)
void MythUIType::SetAlpha ( int  newalpha  ) 
int MythUIType::GetAlpha ( void   )  const

Definition at line 931 of file mythuitype.cpp.

Referenced by MythScreenStack::CheckNewFadeTransition().

bool MythUIType::keyPressEvent ( QKeyEvent *   )  [virtual]

Key event handler.

Parameters:
event Keypress event

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

Definition at line 969 of file mythuitype.cpp.

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

bool MythUIType::gestureEvent ( MythGestureEvent  )  [virtual]

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

Should not be used directly.

Parameters:
event Mouse event

Reimplemented in MythDialogBox, MythScreenType, MythUIButton, MythUIButtonList, MythUICheckBox, and MythUITextEdit.

Definition at line 985 of file mythuitype.cpp.

Referenced by MythScreenType::gestureEvent().

void MythUIType::mediaEvent ( MythMediaEvent  )  [virtual]

Media/Device status event handler, received from MythMediaMonitor.

Parameters:
event Media event

Reimplemented in MythThemedMenu.

Definition at line 994 of file mythuitype.cpp.

Referenced by MythMainWindow::customEvent().

MythFontProperties * MythUIType::GetFont ( const QString &  text  )  const
bool MythUIType::AddFont ( const QString &  text,
MythFontProperties fontProp 
)
void MythUIType::SetHelpText ( const QString &  text  )  [inline]
QString MythUIType::GetHelpText ( void   )  const [inline]

Definition at line 149 of file mythuitype.h.

Referenced by MythScreenType::SetFocusWidget().

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

Definition at line 151 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

QString MythUIType::GetXMLLocation ( void   )  const [inline]
bool MythUIType::IsDeferredLoading ( bool  recurse = false  )  const

Definition at line 1293 of file mythuitype.cpp.

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

void MythUIType::SetDeferLoad ( bool  defer  )  [inline]

Definition at line 156 of file mythuitype.h.

Referenced by ParseElement().

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

Referenced by MythUIStateType::DisplayState().

bool MythUIType::ContainsPoint ( const QPoint &  point  )  const

Check if the given point falls within this widgets area.

Largely used For correctly handling mouse clicks

Definition at line 1322 of file mythuitype.cpp.

Referenced by MythMainWindow::eventFilter().

MythPainter * MythUIType::GetPainter ( void   )  [virtual]
void MythUIType::SetPainter ( MythPainter painter  )  [inline]
void MythUIType::SetCentre ( UIEffects::Centre  centre  ) 

Definition at line 936 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

void MythUIType::SetZoom ( float  zoom  ) 

Reimplemented in MythUIWebBrowser.

Definition at line 941 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

void MythUIType::SetHorizontalZoom ( float  zoom  ) 

Definition at line 947 of file mythuitype.cpp.

Referenced by SetZoom(), and MythUIAnimation::updateCurrentValue().

void MythUIType::SetVerticalZoom ( float  zoom  ) 

Definition at line 953 of file mythuitype.cpp.

Referenced by SetZoom(), and MythUIAnimation::updateCurrentValue().

void MythUIType::SetAngle ( float  angle  ) 

Definition at line 959 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

void MythUIType::customEvent ( QEvent *   )  [protected, virtual]
void MythUIType::LoseFocus ( void   )  [slot]

Definition at line 999 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

bool MythUIType::TakeFocus ( void   )  [slot]

Definition at line 1009 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

void MythUIType::Activate ( void   )  [slot]

Definition at line 1020 of file mythuitype.cpp.

void MythUIType::Hide ( void   )  [slot]
void MythUIType::Show ( void   )  [slot]
void MythUIType::Refresh ( void   )  [slot]
void MythUIType::RequestUpdate (  )  [signal]
void MythUIType::RequestUpdate ( const QRect &   )  [signal]
void MythUIType::RequestRegionUpdate ( const QRect &   )  [signal]
void MythUIType::TakingFocus (  )  [signal]
void MythUIType::LosingFocus (  )  [signal]
void MythUIType::Showing (  )  [signal]

Referenced by SetVisible().

void MythUIType::Hiding (  )  [signal]

Referenced by SetVisible().

void MythUIType::Enabling (  )  [signal]
void MythUIType::Disabling (  )  [signal]
void MythUIType::FinishedMoving (  )  [signal]

Referenced by HandleMovementPulse().

void MythUIType::FinishedFading (  )  [signal]
void MythUIType::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRegion 
) [protected, virtual]
void MythUIType::AddFocusableChildrenToList ( QMap< int, MythUIType * > &  focusList  )  [protected]

Definition at line 1064 of file mythuitype.cpp.

Referenced by MythScreenType::BuildFocusList().

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

Referenced by Pulse().

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

Referenced by Pulse().

int MythUIType::CalcAlpha ( int  alphamod  )  [protected]
int MythUIType::NormX ( const int  width  )  [protected]
int MythUIType::NormY ( const int  height  )  [protected]

Definition at line 1080 of file mythuitype.cpp.

Referenced by MythUIButtonList::ParseElement().

bool MythUIType::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
) [protected, virtual]
void MythUIType::CopyFrom ( MythUIType base  )  [protected, virtual]
void MythUIType::CreateCopy ( MythUIType parent  )  [protected, virtual]
void MythUIType::Finalize ( void   )  [protected, virtual]

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, MythUIProgressBar, MythUIStateType, MythUIText, MythUITextEdit, and MythUIWebBrowser.

Definition at line 1222 of file mythuitype.cpp.

Referenced by XMLParseBase::ParseUIType().


Friends And Related Function Documentation

friend class XMLParseBase [friend]

Reimplemented in MythScreenType.

Definition at line 258 of file mythuitype.h.


Member Data Documentation

QList<MythUIType *> MythUIType::m_ChildrenList [protected]

Definition at line 215 of file mythuitype.h.

Referenced by CopyFrom(), Draw(), IsVisible(), MythUIType(), Pulse(), and SetVisible().

int MythUIType::m_focusOrder [protected]

Definition at line 224 of file mythuitype.h.

Referenced by AddFocusableChildrenToList(), CopyFrom(), MythUIType(), and SetFocusOrder().

QRegion MythUIType::m_DirtyRegion [protected]

Definition at line 236 of file mythuitype.h.

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

int MythUIType::m_AlphaChange [protected]

Definition at line 237 of file mythuitype.h.

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

int MythUIType::m_AlphaMin [protected]

Definition at line 238 of file mythuitype.h.

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

int MythUIType::m_AlphaMax [protected]

Definition at line 239 of file mythuitype.h.

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

Definition at line 241 of file mythuitype.h.

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

QPoint MythUIType::m_XYDestination [protected]

Definition at line 242 of file mythuitype.h.

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

QPoint MythUIType::m_XYSpeed [protected]

Definition at line 243 of file mythuitype.h.

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

Definition at line 245 of file mythuitype.h.

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

Definition at line 248 of file mythuitype.h.

Referenced by GetPainter(), MythScreenType::GetPainter(), and MythUIType().

Definition at line 250 of file mythuitype.h.

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

QString MythUIType::m_helptext [protected]

Definition at line 251 of file mythuitype.h.

Referenced by ParseElement().

QString MythUIType::m_xmlLocation [protected]

Definition at line 252 of file mythuitype.h.

Referenced by CopyFrom().

QColor MythUIType::m_BorderColor [protected]

Definition at line 256 of file mythuitype.h.

Referenced by Draw(), and MythUIType().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Fri Feb 10 06:42:13 2012 for MythTV by  doxygen 1.6.3