#include <mythuitype.h>

Children are drawn/processed in order added
Definition at line 22 of file mythuitype.h.
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 | FinishedMoving () |
| void | FinishedFading () |
Public Member Functions | |
| MythUIType (QObject *parent, const char *name) | |
| virtual | ~MythUIType () |
| void | AddChild (MythUIType *child) |
| MythUIType * | GetChild (const char *name, const char *inherits=0) |
| virtual MythUIType * | GetChildAt (const QPoint &p) |
| Return the first MythUIType which accepts focus found at the given coordinates. | |
| QValueVector< MythUIType * > * | GetAllChildren (void) |
| void | DeleteAllChildren (void) |
| bool | NeedsRedraw (void) |
| void | SetRedraw () |
| void | SetChildNeedsRedraw (MythUIType *child) |
| bool | CanTakeFocus (void) |
| void | SetCanTakeFocus (bool set=true) |
| virtual void | Pulse (void) |
| 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 QPoint &pos) |
| virtual void | SetArea (const QRect &rect) |
| virtual QRect | GetArea (void) const |
| virtual QRegion | GetDirtyArea (void) const |
| QString | cutDown (const QString &data, QFont *font, bool multiline=false, int overload_width=-1, int overload_height=-1) |
| bool | IsVisible (void) |
| 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) |
| virtual bool | keyPressEvent (QKeyEvent *) |
| virtual void | gestureEvent (MythUIType *origtype, MythGestureEvent *ge) |
| MythFontProperties * | GetFont (const QString &text) |
| bool | AddFont (const QString &text, MythFontProperties *fontProp) |
Protected Member Functions | |
| virtual void | customEvent (QCustomEvent *) |
| virtual void | DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRegion) |
| void | AddFocusableChildrenToList (QPtrList< MythUIType > &focusList) |
| void | HandleAlphaPulse () |
| void | HandleMovementPulse () |
| int | CalcAlpha (int alphamod) |
| QFont | CreateQFont (const QString &face, int pointSize=12, int weight=QFont::Normal, bool italic=FALSE) |
| QRect | NormRect (const QRect &rect) |
| QPoint | NormPoint (const QPoint &point) |
| int | NormX (const int width) |
| int | NormY (const int height) |
| virtual bool | ParseElement (QDomElement &element) |
| virtual void | CopyFrom (MythUIType *base) |
| virtual void | CreateCopy (MythUIType *parent) |
| virtual void | Finalize (void) |
Protected Attributes | |
| QValueVector< MythUIType * > | m_ChildrenList |
| bool | m_Visible |
| bool | m_HasFocus |
| bool | m_CanHaveFocus |
| QRect | m_Area |
| QRegion | m_DirtyRegion |
| bool | m_NeedsRedraw |
| int | m_Alpha |
| int | m_AlphaChangeMode |
| int | m_AlphaChange |
| int | m_AlphaMin |
| int | m_AlphaMax |
| bool | m_Moving |
| QPoint | m_XYDestination |
| QPoint | m_XYSpeed |
| FontMap * | m_Fonts |
| MythUIType * | m_Parent |
Friends | |
| class | XMLParseBase |
| MythUIType::MythUIType | ( | QObject * | parent, | |
| const char * | name | |||
| ) |
Definition at line 14 of file mythuitype.cpp.
| MythUIType::~MythUIType | ( | ) | [virtual] |
Definition at line 41 of file mythuitype.cpp.
| void MythUIType::AddChild | ( | MythUIType * | child | ) |
| MythUIType * MythUIType::GetChild | ( | const char * | name, | |
| const char * | inherits = 0 | |||
| ) |
Definition at line 56 of file mythuitype.cpp.
Referenced by MythUIStateType::CopyFrom(), MythUIButton::CopyFrom(), MythListButton::CopyFrom(), XMLParseBase::CopyWindowFromBase(), MythDialogBox::Create(), MythControls::Create(), MythAppearance::Create(), MythListButton::ParseElement(), and XMLParseBase::ParseUIType().
| MythUIType * MythUIType::GetChildAt | ( | const QPoint & | p | ) | [virtual] |
Return the first MythUIType which accepts focus found at the given coordinates.
| p | QPoint coordinates |
Reimplemented in MythListButton.
Definition at line 87 of file mythuitype.cpp.
Referenced by MythMainWindow::eventFilter(), GetChildAt(), and MythListButton::GetChildAt().
| QValueVector< MythUIType * > * MythUIType::GetAllChildren | ( | void | ) |
Definition at line 64 of file mythuitype.cpp.
| void MythUIType::DeleteAllChildren | ( | void | ) |
| bool MythUIType::NeedsRedraw | ( | void | ) |
| void MythUIType::SetRedraw | ( | void | ) |
Definition at line 118 of file mythuitype.cpp.
Referenced by MythUIStateType::ClearImages(), HandleAlphaPulse(), HandleMovementPulse(), Hide(), MythUIImage::Load(), MythScreenStack::PopScreen(), MythUIText::Pulse(), MythUIImage::Pulse(), MythUIClock::Pulse(), Refresh(), MythUIButton::SelectState(), SetAlpha(), SetArea(), MythUIText::SetCutDown(), MythUIText::SetFontProperties(), MythUIText::SetJustification(), SetPosition(), MythUIText::SetText(), MythUIButton::SetText(), SetVisible(), Show(), and MythUIText::StopCycling().
| void MythUIType::SetChildNeedsRedraw | ( | MythUIType * | child | ) |
Definition at line 134 of file mythuitype.cpp.
Referenced by SetChildNeedsRedraw(), and SetRedraw().
| bool MythUIType::CanTakeFocus | ( | void | ) |
Definition at line 153 of file mythuitype.cpp.
Referenced by GetChildAt(), and MythScreenType::SetFocusWidget().
| void MythUIType::SetCanTakeFocus | ( | bool | set = true |
) |
Definition at line 158 of file mythuitype.cpp.
Referenced by MythThemedMenuPrivate::addButton(), MythListButton::Const(), MythControls::Create(), MythUIButton::MythUIButton(), and MythThemedMenuPrivate::SetupUITypes().
| void MythUIType::Pulse | ( | void | ) | [virtual] |
Reimplemented in MythUIClock, MythUIImage, and MythUIText.
Definition at line 235 of file mythuitype.cpp.
Referenced by MythUIText::Pulse(), and MythUIImage::Pulse().
| void MythUIType::Draw | ( | MythPainter * | p, | |
| int | xoffset, | |||
| int | yoffset, | |||
| int | alphaMod = 255, |
|||
| QRect | clipRegion = QRect() | |||
| ) |
Definition at line 254 of file mythuitype.cpp.
| void MythUIType::SetPosition | ( | int | x, | |
| int | y | |||
| ) | [virtual] |
Definition at line 279 of file mythuitype.cpp.
Referenced by MythThemedMenuPrivate::addButton(), MythThemeBase::Init(), MythListButton::Init(), ParseElement(), MythListButton::PlaceArrows(), MythThemedMenuPrivate::positionButtons(), MythThemeBase::Reload(), MythThemedMenuPrivate::SetupBackground(), MythUIButton::SetupPlacement(), MythThemedMenuPrivate::SetupUITypes(), and MythAppearance::updateScreen().
| void MythUIType::SetPosition | ( | const QPoint & | pos | ) | [virtual] |
Definition at line 284 of file mythuitype.cpp.
| void MythUIType::SetArea | ( | const QRect & | rect | ) | [virtual] |
Reimplemented in MythUIText.
Definition at line 295 of file mythuitype.cpp.
Referenced by MythThemedMenuPrivate::addButton(), MythUIText::SetArea(), MythThemedMenuPrivate::SetupUITypes(), and MythUIText::UseAlternateArea().
| QRect MythUIType::GetArea | ( | void | ) | const [virtual] |
Definition at line 306 of file mythuitype.cpp.
Referenced by MythUIStateType::AddObject(), MythListButton::CalculateContentsRect(), MythAppearance::Create(), MythListButton::GetButtonPosition(), GetChildAt(), MythListButton::GetChildAt(), MythListButton::Init(), MythListButton::PlaceArrows(), and MythUIButton::SetupPlacement().
| QRegion MythUIType::GetDirtyArea | ( | void | ) | const [virtual] |
Definition at line 311 of file mythuitype.cpp.
Referenced by MythMainWindow::drawTimeout(), and SetChildNeedsRedraw().
| QString MythUIType::cutDown | ( | const QString & | data, | |
| QFont * | font, | |||
| bool | multiline = false, |
|||
| int | overload_width = -1, |
|||
| int | overload_height = -1 | |||
| ) |
| bool MythUIType::IsVisible | ( | void | ) |
Definition at line 368 of file mythuitype.cpp.
Referenced by MythUIStateType::CopyFrom(), GetChildAt(), and MythUIButton::SetupPlacement().
| void MythUIType::SetVisible | ( | bool | visible | ) |
Definition at line 461 of file mythuitype.cpp.
Referenced by MythThemedMenuPrivate::addButton(), MythThemedMenuPrivate::checkScrollArrows(), MythUIStateType::CopyFrom(), MythUIButton::CopyFrom(), MythUIStateType::DisplayState(), MythUIButton::EnableCheck(), MythUIButton::EnableRightArrow(), MythUIButton::Init(), MythListButton::Init(), MythThemedMenuPrivate::positionButtons(), MythUIButton::SetButtonImage(), MythAppearance::setContext(), MythListButton::SetPositionArrowStates(), MythUIButton::SetRightArrowImage(), and MythThemedMenuPrivate::SetupUITypes().
| void MythUIType::MoveTo | ( | QPoint | destXY, | |
| QPoint | speedXY | |||
| ) |
Definition at line 373 of file mythuitype.cpp.
| void MythUIType::AdjustAlpha | ( | int | mode, | |
| int | alphachange, | |||
| int | minalpha = 0, |
|||
| int | maxalpha = 255 | |||
| ) |
Definition at line 387 of file mythuitype.cpp.
Referenced by MythScreenStack::DoNewFadeTransition(), and MythScreenStack::PopScreen().
| void MythUIType::SetAlpha | ( | int | newalpha | ) |
Definition at line 404 of file mythuitype.cpp.
Referenced by MythScreenStack::DoNewFadeTransition(), and MythScreenStack::PopScreen().
| int MythUIType::GetAlpha | ( | void | ) |
Definition at line 410 of file mythuitype.cpp.
Referenced by MythScreenStack::CheckNewFadeTransition().
| bool MythUIType::keyPressEvent | ( | QKeyEvent * | ) | [virtual] |
Reimplemented in MythDialogBox, MythListButton, MythThemedMenu, MythUIButton, MythAppearance, and MythControls.
Definition at line 415 of file mythuitype.cpp.
Referenced by MythMainWindow::eventFilter(), and MythThemedMenu::keyPressEvent().
| void MythUIType::gestureEvent | ( | MythUIType * | origtype, | |
| MythGestureEvent * | ge | |||
| ) | [virtual] |
Reimplemented in MythListButton, and MythThemedMenu.
Definition at line 425 of file mythuitype.cpp.
Referenced by MythMainWindow::customEvent(), MythMainWindow::eventFilter(), gestureEvent(), and MythThemedMenu::gestureEvent().
| MythFontProperties * MythUIType::GetFont | ( | const QString & | text | ) |
Definition at line 576 of file mythuitype.cpp.
Referenced by GetFont(), MythUIText::ParseElement(), MythUIButton::ParseElement(), and MythListButton::ParseElement().
| bool MythUIType::AddFont | ( | const QString & | text, | |
| MythFontProperties * | fontProp | |||
| ) |
Definition at line 585 of file mythuitype.cpp.
Referenced by XMLParseBase::doLoad(), XMLParseBase::ParseChildren(), and XMLParseBase::ParseUIType().
| void MythUIType::customEvent | ( | QCustomEvent * | ) | [protected, virtual] |
| void MythUIType::LoseFocus | ( | void | ) | [slot] |
| bool MythUIType::TakeFocus | ( | void | ) | [slot] |
| void MythUIType::Activate | ( | void | ) | [slot] |
Definition at line 452 of file mythuitype.cpp.
| void MythUIType::Hide | ( | void | ) | [slot] |
Definition at line 470 of file mythuitype.cpp.
| void MythUIType::Show | ( | void | ) | [slot] |
Definition at line 477 of file mythuitype.cpp.
| 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] |
Referenced by MythListButton::Const(), MythControls::Create(), MythUIButton::MythUIButton(), and TakeFocus().
| void MythUIType::LosingFocus | ( | ) | [signal] |
Referenced by MythListButton::Const(), LoseFocus(), and MythUIButton::MythUIButton().
| void MythUIType::Showing | ( | ) | [signal] |
Referenced by Show().
| void MythUIType::Hiding | ( | ) | [signal] |
Referenced by Hide().
| 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] |
Reimplemented in MythUIImage, and MythUIText.
Definition at line 250 of file mythuitype.cpp.
Referenced by Draw().
| void MythUIType::AddFocusableChildrenToList | ( | QPtrList< MythUIType > & | focusList | ) | [protected] |
| void MythUIType::HandleAlphaPulse | ( | void | ) | [protected] |
| void MythUIType::HandleMovementPulse | ( | void | ) | [protected] |
| int MythUIType::CalcAlpha | ( | int | alphamod | ) | [protected] |
Definition at line 245 of file mythuitype.cpp.
Referenced by Draw(), MythUIText::DrawSelf(), and MythUIImage::DrawSelf().
| QFont MythUIType::CreateQFont | ( | const QString & | face, | |
| int | pointSize = 12, |
|||
| int | weight = QFont::Normal, |
|||
| bool | italic = FALSE | |||
| ) | [protected] |
Definition at line 494 of file mythuitype.cpp.
| QRect MythUIType::NormRect | ( | const QRect & | rect | ) | [protected] |
Definition at line 500 of file mythuitype.cpp.
| QPoint MythUIType::NormPoint | ( | const QPoint & | point | ) | [protected] |
Definition at line 505 of file mythuitype.cpp.
| int MythUIType::NormX | ( | const int | width | ) | [protected] |
Definition at line 510 of file mythuitype.cpp.
Referenced by MythUIButton::ParseElement(), MythListButton::ParseElement(), and MythListButton::SetSpacing().
| int MythUIType::NormY | ( | const int | height | ) | [protected] |
Definition at line 515 of file mythuitype.cpp.
Referenced by MythListButton::ParseElement(), and MythListButton::SetSpacing().
| bool MythUIType::ParseElement | ( | QDomElement & | element | ) | [protected, virtual] |
Reimplemented in MythListButton, MythScreenType, MythUIButton, MythUIClock, MythUIImage, MythUIStateType, and MythUIText.
Definition at line 550 of file mythuitype.cpp.
Referenced by MythUIText::ParseElement(), MythUIStateType::ParseElement(), MythUIImage::ParseElement(), MythUIButton::ParseElement(), MythListButton::ParseElement(), and XMLParseBase::ParseUIType().
| void MythUIType::CopyFrom | ( | MythUIType * | base | ) | [protected, virtual] |
Reimplemented in MythListButton, MythScreenType, MythUIButton, MythUIClock, MythUIImage, MythUIStateType, and MythUIText.
Definition at line 520 of file mythuitype.cpp.
Referenced by MythUIText::CopyFrom(), MythUIStateType::CopyFrom(), MythUIImage::CopyFrom(), MythUIButton::CopyFrom(), MythScreenType::CopyFrom(), MythListButton::CopyFrom(), and XMLParseBase::ParseUIType().
| void MythUIType::CreateCopy | ( | MythUIType * | parent | ) | [protected, virtual] |
Reimplemented in MythListButton, MythScreenType, MythUIButton, MythUIClock, MythUIImage, MythUIStateType, and MythUIText.
Definition at line 544 of file mythuitype.cpp.
| void MythUIType::Finalize | ( | void | ) | [protected, virtual] |
Reimplemented in MythListButton, MythUIImage, MythUIStateType, and MythUIText.
Definition at line 572 of file mythuitype.cpp.
Referenced by MythUIImage::Finalize(), MythListButton::Finalize(), and XMLParseBase::ParseUIType().
friend class XMLParseBase [friend] |
QValueVector<MythUIType *> MythUIType::m_ChildrenList [protected] |
Definition at line 124 of file mythuitype.h.
Referenced by AddChild(), AddFocusableChildrenToList(), CopyFrom(), DeleteAllChildren(), Draw(), GetAllChildren(), GetChildAt(), MythListButton::GetChildAt(), and Pulse().
bool MythUIType::m_Visible [protected] |
Definition at line 126 of file mythuitype.h.
Referenced by CopyFrom(), Draw(), Hide(), IsVisible(), MythUIType(), SetVisible(), and Show().
bool MythUIType::m_HasFocus [protected] |
Definition at line 127 of file mythuitype.h.
Referenced by LoseFocus(), MythUIType(), and TakeFocus().
bool MythUIType::m_CanHaveFocus [protected] |
Definition at line 128 of file mythuitype.h.
Referenced by AddFocusableChildrenToList(), CanTakeFocus(), CopyFrom(), LoseFocus(), MythUIType(), SetCanTakeFocus(), and TakeFocus().
QRect MythUIType::m_Area [protected] |
Definition at line 130 of file mythuitype.h.
Referenced by MythUIStateType::AddObject(), CopyFrom(), cutDown(), Draw(), MythUIText::DrawSelf(), MythUIImage::DrawSelf(), GetArea(), HandleMovementPulse(), MythUIImage::Load(), MoveTo(), MythListButton::MythListButton(), MythScreenType::MythScreenType(), MythUIText::MythUIText(), MythUIType(), MythUIText::ParseElement(), MythScreenType::ParseElement(), MythListButton::ParseElement(), MythListButton::PlaceArrows(), SetArea(), MythUIButton::SetBackgroundImage(), SetChildNeedsRedraw(), MythUIImage::SetImage(), MythUIImage::SetImages(), SetPosition(), SetRedraw(), and MythUIButton::SetupPlacement().
QRegion MythUIType::m_DirtyRegion [protected] |
Definition at line 132 of file mythuitype.h.
Referenced by Draw(), GetDirtyArea(), HandleMovementPulse(), MythUIType(), SetArea(), SetChildNeedsRedraw(), SetPosition(), and SetRedraw().
bool MythUIType::m_NeedsRedraw [protected] |
Definition at line 133 of file mythuitype.h.
Referenced by Draw(), MythUIType(), NeedsRedraw(), SetChildNeedsRedraw(), and SetRedraw().
int MythUIType::m_Alpha [protected] |
Definition at line 135 of file mythuitype.h.
Referenced by AdjustAlpha(), CalcAlpha(), CopyFrom(), GetAlpha(), HandleAlphaPulse(), MythUIType(), ParseElement(), and SetAlpha().
int MythUIType::m_AlphaChangeMode [protected] |
Definition at line 136 of file mythuitype.h.
Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), MythUIType(), and ParseElement().
int MythUIType::m_AlphaChange [protected] |
Definition at line 137 of file mythuitype.h.
Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), MythUIType(), and ParseElement().
int MythUIType::m_AlphaMin [protected] |
Definition at line 138 of file mythuitype.h.
Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), MythUIType(), and ParseElement().
int MythUIType::m_AlphaMax [protected] |
Definition at line 139 of file mythuitype.h.
Referenced by AdjustAlpha(), CopyFrom(), HandleAlphaPulse(), MythUIType(), and ParseElement().
bool MythUIType::m_Moving [protected] |
Definition at line 141 of file mythuitype.h.
Referenced by CopyFrom(), HandleMovementPulse(), MoveTo(), and MythUIType().
QPoint MythUIType::m_XYDestination [protected] |
Definition at line 142 of file mythuitype.h.
Referenced by CopyFrom(), HandleMovementPulse(), MoveTo(), and MythUIType().
QPoint MythUIType::m_XYSpeed [protected] |
Definition at line 143 of file mythuitype.h.
Referenced by CopyFrom(), HandleMovementPulse(), MoveTo(), and MythUIType().
FontMap* MythUIType::m_Fonts [protected] |
Definition at line 145 of file mythuitype.h.
Referenced by AddFont(), GetFont(), MythUIType(), and ~MythUIType().
MythUIType* MythUIType::m_Parent [protected] |
Definition at line 147 of file mythuitype.h.
Referenced by gestureEvent(), GetFont(), MythUIType(), SetChildNeedsRedraw(), and SetRedraw().
1.5.5