MythUIButton Class Reference

#include <mythuibutton.h>

Inheritance diagram for MythUIButton:

MythUIType XMLParseBase

List of all members.


Detailed Description

Definition at line 19 of file mythuibutton.h.


Public Types

enum  StateType {
  None = 0, Normal, Disabled, Active,
  Selected, SelectedInactive
}

Public Slots

void Select ()
void Deselect ()

Signals

void buttonPressed ()

Public Member Functions

 MythUIButton (MythUIType *parent, const char *name, bool doInit=true)
 ~MythUIButton ()
void SetBackgroundImage (StateType state, MythImage *image)
void SetCheckImage (MythUIStateType::StateType state, MythImage *image)
void SetTextRect (const QRect &textRect)
void SetFont (StateType state, MythFontProperties &prop)
void SetButtonImage (MythImage *image)
void SetRightArrowImage (MythImage *image)
void SetPaddingMargin (int margin)
void SetText (const QString &msg, int textFlags=-1)
QString GetText () const
void SelectState (StateType newState)
void SetCheckState (MythUIStateType::StateType state)
void EnableCheck (bool enable)
void EnableRightArrow (bool enable)
void SetupPlacement (void)

Protected Member Functions

virtual bool ParseElement (QDomElement &element)
virtual void CopyFrom (MythUIType *base)
virtual void CreateCopy (MythUIType *parent)
virtual bool keyPressEvent (QKeyEvent *)
void Init (void)
MythImageLoadImage (QDomElement element)

Protected Attributes

MythUIStateTypem_BackgroundImage
MythUITextm_Text
MythUIStateTypem_CheckImage
MythUIImagem_ButtonImage
MythUIImagem_ArrowImage
QMap< int, MythFontPropertiesm_FontProps
StateType m_State
QRect m_TextRect
int m_PaddingMargin
int m_textFlags

Member Enumeration Documentation

Enumerator:
None 
Normal 
Disabled 
Active 
Selected 
SelectedInactive 

Definition at line 23 of file mythuibutton.h.


Constructor & Destructor Documentation

MythUIButton::MythUIButton ( MythUIType parent,
const char *  name,
bool  doInit = true 
)

Definition at line 7 of file mythuibutton.cpp.

Referenced by CreateCopy().

MythUIButton::~MythUIButton (  ) 

Definition at line 23 of file mythuibutton.cpp.


Member Function Documentation

void MythUIButton::SetBackgroundImage ( StateType  state,
MythImage image 
)

Definition at line 180 of file mythuibutton.cpp.

Referenced by MythListButton::Init(), and ParseElement().

void MythUIButton::SetCheckImage ( MythUIStateType::StateType  state,
MythImage image 
)

Definition at line 192 of file mythuibutton.cpp.

Referenced by MythListButton::Init(), and ParseElement().

void MythUIButton::SetTextRect ( const QRect &  textRect  ) 

Definition at line 171 of file mythuibutton.cpp.

Referenced by SetupPlacement().

void MythUIButton::SetFont ( StateType  state,
MythFontProperties prop 
)

Definition at line 198 of file mythuibutton.cpp.

Referenced by MythListButton::Init(), and ParseElement().

void MythUIButton::SetButtonImage ( MythImage image  ) 

Definition at line 204 of file mythuibutton.cpp.

Referenced by MythListButtonItem::SetToRealButton().

void MythUIButton::SetRightArrowImage ( MythImage image  ) 

Definition at line 216 of file mythuibutton.cpp.

Referenced by MythListButton::Init(), and ParseElement().

void MythUIButton::SetPaddingMargin ( int  margin  ) 

Definition at line 228 of file mythuibutton.cpp.

Referenced by MythListButton::Init(), and ParseElement().

void MythUIButton::SetText ( const QString &  msg,
int  textFlags = -1 
)

Definition at line 233 of file mythuibutton.cpp.

Referenced by MythListButtonItem::SetToRealButton().

QString MythUIButton::GetText ( void   )  const [inline]

Definition at line 38 of file mythuibutton.h.

void MythUIButton::SelectState ( StateType  newState  ) 

void MythUIButton::SetCheckState ( MythUIStateType::StateType  state  ) 

Definition at line 261 of file mythuibutton.cpp.

Referenced by MythListButtonItem::SetToRealButton().

void MythUIButton::EnableCheck ( bool  enable  ) 

Definition at line 266 of file mythuibutton.cpp.

Referenced by MythListButtonItem::SetToRealButton().

void MythUIButton::EnableRightArrow ( bool  enable  ) 

Definition at line 272 of file mythuibutton.cpp.

Referenced by ParseElement(), and MythListButtonItem::SetToRealButton().

void MythUIButton::SetupPlacement ( void   ) 

void MythUIButton::Select (  )  [inline, slot]

Definition at line 48 of file mythuibutton.h.

Referenced by MythUIButton().

void MythUIButton::Deselect (  )  [inline, slot]

Definition at line 49 of file mythuibutton.h.

Referenced by MythUIButton().

void MythUIButton::buttonPressed (  )  [signal]

Referenced by keyPressEvent().

bool MythUIButton::ParseElement ( QDomElement &  element  )  [protected, virtual]

Reimplemented from MythUIType.

Definition at line 41 of file mythuibutton.cpp.

void MythUIButton::CopyFrom ( MythUIType base  )  [protected, virtual]

Reimplemented from MythUIType.

Definition at line 324 of file mythuibutton.cpp.

Referenced by CreateCopy().

void MythUIButton::CreateCopy ( MythUIType parent  )  [protected, virtual]

Reimplemented from MythUIType.

Definition at line 360 of file mythuibutton.cpp.

bool MythUIButton::keyPressEvent ( QKeyEvent *  e  )  [protected, virtual]

Reimplemented from MythUIType.

Definition at line 366 of file mythuibutton.cpp.

void MythUIButton::Init ( void   )  [protected]

Definition at line 27 of file mythuibutton.cpp.

Referenced by MythUIButton().

MythImage * MythUIButton::LoadImage ( QDomElement  element  )  [protected]

Definition at line 149 of file mythuibutton.cpp.

Referenced by ParseElement().


Member Data Documentation

Definition at line 64 of file mythuibutton.h.

Referenced by CopyFrom(), Init(), SelectState(), and SetBackgroundImage().

Definition at line 66 of file mythuibutton.h.

Referenced by CopyFrom(), EnableCheck(), Init(), SetCheckImage(), SetCheckState(), and SetupPlacement().

Definition at line 67 of file mythuibutton.h.

Referenced by CopyFrom(), Init(), SetButtonImage(), and SetupPlacement().

Definition at line 68 of file mythuibutton.h.

Referenced by CopyFrom(), EnableRightArrow(), Init(), SetRightArrowImage(), and SetupPlacement().

Definition at line 70 of file mythuibutton.h.

Referenced by CopyFrom(), SelectState(), and SetFont().

Definition at line 72 of file mythuibutton.h.

Referenced by CopyFrom(), MythUIButton(), and SelectState().

QRect MythUIButton::m_TextRect [protected]

Definition at line 74 of file mythuibutton.h.

Referenced by CopyFrom(), and SetTextRect().

Definition at line 75 of file mythuibutton.h.

Referenced by CopyFrom(), MythUIButton(), SetPaddingMargin(), and SetupPlacement().

int MythUIButton::m_textFlags [protected]

Definition at line 76 of file mythuibutton.h.

Referenced by CopyFrom(), ParseElement(), and SetText().


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

Generated on Sat Dec 18 05:16:08 2010 for MythTV by  doxygen 1.5.5