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

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)

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 ()
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.
void AddChild (MythUIType *child)
 Add a child UIType.
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType.
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType which accepts focus found at the given coordinates.
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets.
void DeleteChild (const QString &name)
 Delete a named child of this UIType.
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType.
void DeleteAllChildren (void)
 Delete all child widgets.
bool NeedsRedraw (void) const
void ResetNeedsRedraw (void)
void SetRedraw (void)
void SetChildNeedsRedraw (MythUIType *child)
bool CanTakeFocus (void) const
 Return if this widget can accept input focus.
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus.
void SetFocusOrder (int)
bool IsEnabled (void) const
void SetEnabled (bool enable)
bool MoveToTop (void)
bool MoveChildToTop (MythUIType *child)
void ActivateAnimations (MythUIAnimation::Trigger trigger)
QList< MythUIAnimation * > * GetAnimations (void)
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation.
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRegion=QRect())
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality.
virtual void SetPosition (const MythPoint &pos)
virtual MythPoint GetPosition (void) const
virtual void SetSize (const QSize &size)
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled.
virtual QSize GetMinSize (void) const
virtual void SetArea (const MythRect &rect)
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling.
virtual void VanishSibling (void)
virtual void SetMinAreaParent (MythRect actual_area, MythRect full_area, MythUIType *child)
 Adjust the size of sibling objects within the button.
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size.
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area.
virtual MythRect GetFullArea (void) const
virtual void RecalculateArea (bool recurse=true)
void ExpandArea (const MythRect &rect)
virtual QRegion GetDirtyArea (void) const
bool IsVisible (bool recurse=false) const
void SetVisible (bool visible)
void MoveTo (QPoint destXY, QPoint speedXY)
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
void SetAlpha (int newalpha)
int GetAlpha (void) const
virtual 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)
void SetDependIsDefault (bool isDefault)
void SetReverseDependence (bool reverse)
void SetDependsMap (QMap< QString, QString > dependsMap)
QMap< QString, QString > GetDependsMap () const

Protected Member Functions

virtual ~MythUIType ()
virtual void customEvent (QEvent *)
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRegion)
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation.
void HandleMovementPulse ()
 Handle one frame of a movement animation.
int CalcAlpha (int alphamod)
int NormX (const int width)
int NormY (const int height)
void ConnectDependants (bool recurse=false)
virtual 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
QMap< QString, QString > m_dependsMap
bool m_Visible
bool m_HasFocus
bool m_CanHaveFocus
bool m_Enabled
bool m_EnableInitiator
bool m_Initiator
bool m_Vanish
bool m_Vanished
bool m_IsDependDefault
bool m_ReverseDepend
int m_focusOrder
MythRect m_Area
MythRect m_MinArea
MythPoint m_MinSize
QRegion m_DirtyRegion
bool m_NeedsRedraw
UIEffects m_Effects
int m_AlphaChangeMode
int m_AlphaChange
int m_AlphaMin
int m_AlphaMax
bool m_Moving
QPoint m_XYDestination
QPoint m_XYSpeed
FontMapm_Fonts
MythUITypem_Parent
MythPainterm_Painter
QList< MythUIAnimation * > m_animations
QString m_helptext
QString m_xmlLocation
bool m_deferload
QColor m_BorderColor

Friends

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

Constructor & Destructor Documentation

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

Definition at line 28 of file mythuitype.cpp.

MythUIType::~MythUIType ( )
protectedvirtual

Definition at line 71 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 MythUIButtonList, MythUIImage, MythUIStateType, MythUITextEdit, MythUIBusyDialog, MythUIText, MythUIButton, MythUIButtonTree, TeletextScreen, MythUIVideo, MythUIScrollBar, MythUIProgressBar, and MythUIGroup.

Definition at line 81 of file mythuitype.cpp.

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

void MythUIType::AddChild ( MythUIType child)

Add a child UIType.

Definition at line 97 of file mythuitype.cpp.

Referenced by MythUIType().

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

Get a named child of this UIType.

Parameters
Nameof child
Returns
Pointer to child if found, or NULL

Definition at line 144 of file mythuitype.cpp.

Referenced by MythUIScrollBar::CalculatePosition(), MythUIProgressBar::CalculatePosition(), CheckedSet(), ConnectDependants(), MythUIStateType::CopyFrom(), MythUIButtonTree::CopyFrom(), MythThemedMenuState::CopyFrom(), CopyFrom(), MythUIButtonList::CopyFrom(), XMLParseBase::CopyWindowFromBase(), RatingSettings::Create(), IdleScreen::Create(), PlayerSettings::Create(), TvPlayWindow::Create(), MetadataSettings::Create(), CustomPriority::Create(), KeyGrabPopupBox::Create(), StatusBox::Create(), GrabberSettings::Create(), ScreenWizard::Create(), AudioSetupWizard::Create(), GeneralSetupWizard::Create(), BookmarkEditor::Create(), ManualSchedule::Create(), ChannelRecPriority::Create(), NetSearch::Create(), VideoSetupWizard::Create(), ThemeChooser::Create(), ImportIconsWizard::Create(), ViewScheduled::Create(), MythUIBusyDialog::Create(), RawSettingsEditor::Create(), BrowserConfig::Create(), TrackInfoPopup::Create(), MythThemedMenuState::Create(), BackendSelection::Create(), MythControls::Create(), MythUIProgressDialog::Create(), ProgramRecPriority::Create(), BookmarkManager::Create(), ScreenSetup::Create(), MythUIFileBrowser::Create(), Ripper::Create(), GuideGrid::Create(), SourceSetup::Create(), PlaybackBox::Create(), LocationDialog::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(), ZMPlayer::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), SubtitleFormat::Load(), XMLParseBase::ParseUIType(), WeatherScreen::prepareScreen(), MythScreenType::SetFocusWidget(), ZMEvents::setGridLayout(), MythUICheckBox::SetInitialStates(), MythUIButton::SetInitialStates(), MythUITextEdit::SetInitialStates(), ZMLivePlayer::setMonitorLayout(), OSD::SetRegions(), EditMetadataCommon::setSaveMetadataOnly(), MythUIButton::SetState(), MythUIButton::SetText(), OSD::SetText(), MythUIButtonListItem::SetToRealButton(), OSD::SetValues(), PlaybackBox::updateGroupInfo(), PlaybackBox::updateIcons(), ChannelRecPriority::updateInfo(), ViewScheduled::updateInfo(), GuideGrid::updateInfo(), ChannelRecPriority::updateList(), ProgramRecPriority::UpdateList(), EditMetadataCommon::updateMetadata(), ThemeChooser::updateProgressBar(), IdleScreen::UpdateScreen(), 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
pQPoint coordinates
recursiveWhether to perform a recursive search
Returns
The widget at these coordinates

Definition at line 232 of file mythuitype.cpp.

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

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

Return a list of all child widgets.

Definition at line 205 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 183 of file mythuitype.cpp.

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

Definition at line 289 of file mythuitype.cpp.

void MythUIType::ResetNeedsRedraw ( void  )

Definition at line 294 of file mythuitype.cpp.

void MythUIType::SetRedraw ( void  )
void MythUIType::SetChildNeedsRedraw ( MythUIType child)

Definition at line 320 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 345 of file mythuitype.cpp.

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

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

Definition at line 1285 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 1290 of file mythuitype.cpp.

Referenced by MoveToTop().

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

Definition at line 107 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 MythUIWebBrowser, MythUIImage, SubtitleScreen, MythUIText, MythUIBusyDialog, MythUITextEdit, MythUIClock, MythUIVideo, and TeletextScreen.

Definition at line 451 of file mythuitype.cpp.

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

Definition at line 478 of file mythuitype.cpp.

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

Reimplemented in MythUIText.

Definition at line 530 of file mythuitype.cpp.

MythPoint MythUIType::GetPosition ( void  ) const
virtual

Definition at line 551 of file mythuitype.cpp.

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

Reimplemented in MythUIImage.

Definition at line 556 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 577 of file mythuitype.cpp.

Referenced by ParseElement().

QSize MythUIType::GetMinSize ( void  ) const
virtual

Definition at line 589 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 616 of file mythuitype.cpp.

void MythUIType::VanishSibling ( void  )
virtual

Definition at line 671 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 694 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 804 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

Reimplemented in MythUIStateType.

Definition at line 1267 of file mythuitype.cpp.

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

void MythUIType::ExpandArea ( const MythRect rect)

Definition at line 853 of file mythuitype.cpp.

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

QRegion MythUIType::GetDirtyArea ( void  ) const
virtual

Definition at line 882 of file mythuitype.cpp.

Referenced by SetChildNeedsRedraw().

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

Definition at line 1044 of file mythuitype.cpp.

Referenced by MythUIButtonList::CalculateButtonPositions(), MythUIProgressBar::CalculatePosition(), Ripper::compilationChanged(), MythUIStateType::CopyFrom(), PlayerSettings::Create(), TvPlayWindow::Create(), MetadataSettings::Create(), WelcomeDialog::Create(), NetSearch::Create(), ZMPlayer::Create(), MythConfirmationDialog::Create(), MythTimeInputDialog::Create(), MusicCommon::customEvent(), 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(), NetSearch::loadData(), RSSEditor::loadData(), NetTree::loadData(), MythUITextEdit::Pulse(), VideoDialog::refreshData(), MythUIStateType::Reset(), Ripper::ScanFinished(), ZMEvents::setGridLayout(), OSD::SetText(), MythUIButtonListItem::SetToRealButton(), MythUIButtonTree::SetTreeState(), OSD::SetValues(), Player::setWidgets(), Show(), NetSearch::slotDownloadFinished(), PlayerSettings::toggleAlt(), MetadataSettings::toggleTrailers(), UpdateDependState(), ProgLister::UpdateDisplay(), PlaybackBox::updateIcons(), ChannelRecPriority::updateInfo(), ChannelRecPriority::updateList(), ProgramRecPriority::UpdateList(), MHIContext::UpdateOSD(), TvPlayWindow::UpdateProgress(), PlaybackBox::updateRecList(), FileAssocDialog::UpdateScreen(), WelcomeDialog::updateScreen(), WelcomeDialog::updateStatusMessage(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), and BookmarkManager::UpdateURLList().

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

Definition at line 898 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
bool MythUIType::keyPressEvent ( QKeyEvent *  )
virtual

Key event handler.

Parameters
eventKeypress event

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

Definition at line 977 of file mythuitype.cpp.

Referenced by MythScreenType::keyPressEvent(), and MythThemedMenu::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
eventMouse event

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

Definition at line 993 of file mythuitype.cpp.

Referenced by MythScreenType::gestureEvent().

void MythUIType::mediaEvent ( MythMediaEvent )
virtual

Media/Device status event handler, received from MythMediaMonitor.

Parameters
eventMedia event

Reimplemented in MythThemedMenu.

Definition at line 1002 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 155 of file mythuitype.h.

Referenced by MythScreenType::SetFocusWidget().

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

Definition at line 157 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

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

Definition at line 1319 of file mythuitype.cpp.

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

void MythUIType::SetDeferLoad ( bool  defer)
inline

Definition at line 162 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 1335 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 1348 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 944 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

void MythUIType::SetZoom ( float  zoom)

Reimplemented in MythUIWebBrowser, and MythUIWebBrowser.

Definition at line 949 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

void MythUIType::SetHorizontalZoom ( float  zoom)

Definition at line 955 of file mythuitype.cpp.

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

void MythUIType::SetVerticalZoom ( float  zoom)

Definition at line 961 of file mythuitype.cpp.

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

void MythUIType::SetAngle ( float  angle)

Definition at line 967 of file mythuitype.cpp.

Referenced by MythUIAnimation::updateCurrentValue().

void MythUIType::SetDependIsDefault ( bool  isDefault)

Definition at line 1061 of file mythuitype.cpp.

void MythUIType::SetReverseDependence ( bool  reverse)

Definition at line 1372 of file mythuitype.cpp.

Referenced by ConnectDependants().

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

Definition at line 1367 of file mythuitype.cpp.

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

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

Definition at line 178 of file mythuitype.h.

Referenced by XMLParseBase::ParseUIType().

void MythUIType::customEvent ( QEvent *  )
protectedvirtual
void MythUIType::LoseFocus ( void  )
slot

Definition at line 1007 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

bool MythUIType::TakeFocus ( void  )
slot

Definition at line 1017 of file mythuitype.cpp.

Referenced by MythScreenType::SetFocusWidget().

void MythUIType::Activate ( void  )
slot

Definition at line 1028 of file mythuitype.cpp.

void MythUIType::Hide ( void  )
slot
void MythUIType::Show ( void  )
slot
void MythUIType::Refresh ( void  )
slot
void MythUIType::UpdateDependState ( bool  isDefault)
slot

Definition at line 1037 of file mythuitype.cpp.

Referenced by ConnectDependants().

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::DependChanged ( bool  isDefault)
signal
void MythUIType::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRegion 
)
protectedvirtual
void MythUIType::AddFocusableChildrenToList ( QMap< int, MythUIType * > &  focusList)
protected

Definition at line 1087 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 410 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 363 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 1103 of file mythuitype.cpp.

Referenced by MythUIButtonList::ParseElement().

void MythUIType::ConnectDependants ( bool  recurse = false)
protected
bool MythUIType::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
)
protectedvirtual
void MythUIType::CopyFrom ( MythUIType base)
protectedvirtual
void MythUIType::CreateCopy ( MythUIType parent)
protectedvirtual
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, MythUIStateType, MythUIButton, MythUIGuideGrid, MythUICheckBox, MythUIScrollBar, MythUIProgressBar, and MythUIEditBar.

Definition at line 1248 of file mythuitype.cpp.

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

Friends And Related Function Documentation

friend class XMLParseBase
friend

Definition at line 276 of file mythuitype.h.

Member Data Documentation

QList<MythUIType *> MythUIType::m_ChildrenList
protected
QMap<QString, QString> MythUIType::m_dependsMap
protected

Definition at line 229 of file mythuitype.h.

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

bool MythUIType::m_Visible
protected

Definition at line 231 of file mythuitype.h.

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

bool MythUIType::m_HasFocus
protected
bool MythUIType::m_CanHaveFocus
protected
bool MythUIType::m_Enabled
protected
bool MythUIType::m_EnableInitiator
protected
bool MythUIType::m_Initiator
protected
bool MythUIType::m_Vanish
protected
bool MythUIType::m_Vanished
protected
bool MythUIType::m_IsDependDefault
protected

Definition at line 239 of file mythuitype.h.

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

bool MythUIType::m_ReverseDepend
protected

Definition at line 240 of file mythuitype.h.

Referenced by CopyFrom(), MythUIType(), SetReverseDependence(), and UpdateDependState().

int MythUIType::m_focusOrder
protected

Definition at line 242 of file mythuitype.h.

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

MythRect MythUIType::m_Area
protected
MythRect MythUIType::m_MinArea
protected
MythPoint MythUIType::m_MinSize
protected
QRegion MythUIType::m_DirtyRegion
protected
bool MythUIType::m_NeedsRedraw
protected
UIEffects MythUIType::m_Effects
protected
int MythUIType::m_AlphaChangeMode
protected

Definition at line 254 of file mythuitype.h.

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

int MythUIType::m_AlphaChange
protected

Definition at line 255 of file mythuitype.h.

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

int MythUIType::m_AlphaMin
protected

Definition at line 256 of file mythuitype.h.

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

int MythUIType::m_AlphaMax
protected

Definition at line 257 of file mythuitype.h.

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

bool MythUIType::m_Moving
protected

Definition at line 259 of file mythuitype.h.

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

QPoint MythUIType::m_XYDestination
protected

Definition at line 260 of file mythuitype.h.

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

QPoint MythUIType::m_XYSpeed
protected

Definition at line 261 of file mythuitype.h.

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

FontMap* MythUIType::m_Fonts
protected

Definition at line 263 of file mythuitype.h.

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

MythUIType* MythUIType::m_Parent
protected
MythPainter* MythUIType::m_Painter
protected

Definition at line 266 of file mythuitype.h.

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

QList<MythUIAnimation*> MythUIType::m_animations
protected

Definition at line 268 of file mythuitype.h.

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

QString MythUIType::m_helptext
protected

Definition at line 269 of file mythuitype.h.

Referenced by ParseElement().

QString MythUIType::m_xmlLocation
protected

Definition at line 270 of file mythuitype.h.

Referenced by CopyFrom().

bool MythUIType::m_deferload
protected
QColor MythUIType::m_BorderColor
protected

Definition at line 274 of file mythuitype.h.

Referenced by Draw(), and MythUIType().


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