MythUIStateType Class Reference

#include <mythuistatetype.h>

Inheritance diagram for MythUIStateType:

MythUIType XMLParseBase

List of all members.


Detailed Description

Definition at line 13 of file mythuistatetype.h.


Public Types

enum  StateType { None = 0, Off, Half, Full }

Public Member Functions

 MythUIStateType (MythUIType *parent, const char *name)
 ~MythUIStateType ()
void SetShowEmpty (bool showempty)
bool AddImage (const QString &name, MythImage *image)
bool AddImage (StateType type, MythImage *image)
bool AddObject (const QString &name, MythUIType *object)
bool AddObject (StateType type, MythUIType *object)
bool DisplayState (const QString &name)
bool DisplayState (StateType type)
void ClearImages ()

Protected Member Functions

void ClearMaps ()
virtual bool ParseElement (QDomElement &element)
virtual void CopyFrom (MythUIType *base)
virtual void CreateCopy (MythUIType *parent)
virtual void Finalize (void)

Protected Attributes

QMap< QString, MythUIType * > m_ObjectsByName
QMap< int, MythUIType * > m_ObjectsByState
MythUITypem_CurrentState
bool m_ShowEmpty

Member Enumeration Documentation

Enumerator:
None 
Off 
Half 
Full 

Definition at line 16 of file mythuistatetype.h.


Constructor & Destructor Documentation

MythUIStateType::MythUIStateType ( MythUIType parent,
const char *  name 
)

Definition at line 8 of file mythuistatetype.cpp.

Referenced by CreateCopy().

MythUIStateType::~MythUIStateType (  ) 

Definition at line 15 of file mythuistatetype.cpp.


Member Function Documentation

void MythUIStateType::SetShowEmpty ( bool  showempty  )  [inline]

Definition at line 21 of file mythuistatetype.h.

Referenced by MythThemedMenuPrivate::SetupUITypes().

bool MythUIStateType::AddImage ( const QString &  name,
MythImage image 
)

bool MythUIStateType::AddImage ( StateType  type,
MythImage image 
)

Definition at line 47 of file mythuistatetype.cpp.

bool MythUIStateType::AddObject ( const QString &  name,
MythUIType object 
)

bool MythUIStateType::AddObject ( StateType  type,
MythUIType object 
)

Definition at line 58 of file mythuistatetype.cpp.

bool MythUIStateType::DisplayState ( const QString &  name  ) 

bool MythUIStateType::DisplayState ( StateType  type  ) 

Definition at line 97 of file mythuistatetype.cpp.

void MythUIStateType::ClearImages (  ) 

Definition at line 141 of file mythuistatetype.cpp.

void MythUIStateType::ClearMaps (  )  [protected]

Definition at line 121 of file mythuistatetype.cpp.

Referenced by ClearImages(), and CopyFrom().

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

Reimplemented from MythUIType.

Definition at line 147 of file mythuistatetype.cpp.

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

Reimplemented from MythUIType.

Definition at line 191 of file mythuistatetype.cpp.

Referenced by CreateCopy().

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

Reimplemented from MythUIType.

Definition at line 229 of file mythuistatetype.cpp.

void MythUIStateType::Finalize ( void   )  [protected, virtual]

Reimplemented from MythUIType.

Definition at line 235 of file mythuistatetype.cpp.


Member Data Documentation

QMap<QString, MythUIType *> MythUIStateType::m_ObjectsByName [protected]

Definition at line 42 of file mythuistatetype.h.

Referenced by AddImage(), AddObject(), ClearMaps(), CopyFrom(), DisplayState(), and ParseElement().

Definition at line 43 of file mythuistatetype.h.

Referenced by AddImage(), AddObject(), ClearMaps(), CopyFrom(), DisplayState(), and ParseElement().

Definition at line 45 of file mythuistatetype.h.

Referenced by ClearMaps(), DisplayState(), and MythUIStateType().

Definition at line 47 of file mythuistatetype.h.

Referenced by CopyFrom(), DisplayState(), MythUIStateType(), ParseElement(), and SetShowEmpty().


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