MythUIGuideGrid Class Reference
[MythUI Widget and theme handling]

A narrow purpose widget used to show television programs and the timeslots they occupy on channels. More...

#include <mythuiguidegrid.h>

Inheritance diagram for MythUIGuideGrid:
MythUIType XMLParseBase

List of all members.

Classes

class  UIGTCon

Public Types

enum  FillType { Alpha = 10, Dense, Eco, Solid }

Public Member Functions

 MythUIGuideGrid (MythUIType *parent, const QString &name)
 ~MythUIGuideGrid ()
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
bool isVerticalLayout (void)
int getChannelCount (void)
int getTimeCount (void)
void SetCategoryColors (const QMap< QString, QString > &catColors)
void SetTextOffset (const QPoint &to)
void SetArrow (int, const QString &file)
void LoadImage (int, const QString &file)
void SetProgramInfo (int row, int col, const QRect &area, const QString &title, const QString &category, int arrow, int recType, int recStat, bool selected)
void ResetData ()
void ResetRow (int row)
void SetProgPast (int ppast)
void SetMultiLine (bool multiline)

Protected Member Functions

virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks.
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.
bool parseDefaultCategoryColors (QMap< QString, QString > &catColors)

Private Member Functions

void drawBackground (MythPainter *p, UIGTCon *data, int alpaMod)
void drawBox (MythPainter *p, UIGTCon *data, const QColor &color, int alpaMod)
void drawText (MythPainter *p, UIGTCon *data, int alpaMod)
void drawRecType (MythPainter *p, UIGTCon *data, int alpaMod)
void drawCurrent (MythPainter *p, UIGTCon *data, int alpaMod)
QColor calcColor (const QColor &color, int alpha)

Private Attributes

QList< UIGTCon * > * allData
UIGTCon selectedItem
MythImagem_recImages [RECSTATUSSIZE]
MythImagem_arrowImages [ARROWIMAGESIZE]
int m_channelCount
int m_timeCount
bool m_verticalLayout
int m_categoryAlpha
QPoint m_textOffset
int m_justification
bool m_multilineText
MythFontPropertiesm_font
QColor m_solidColor
QString m_selType
QPen m_drawSelLine
QBrush m_drawSelFill
QColor m_recordingColor
QColor m_conflictingColor
int m_fillType
bool m_cutdown
bool m_drawCategoryColors
bool m_drawCategoryText
QMap< QString, QColor > categoryColors
int m_rowCount
int m_progPastCol

Detailed Description

A narrow purpose widget used to show television programs and the timeslots they occupy on channels.

Used for scheduling of recordings.

Definition at line 28 of file mythuiguidegrid.h.


Member Enumeration Documentation

Enumerator:
Alpha 
Dense 
Eco 
Solid 

Definition at line 37 of file mythuiguidegrid.h.


Constructor & Destructor Documentation

MythUIGuideGrid::MythUIGuideGrid ( MythUIType parent,
const QString &  name 
)

Definition at line 27 of file mythuiguidegrid.cpp.

Referenced by CreateCopy().

MythUIGuideGrid::~MythUIGuideGrid (  ) 

Definition at line 74 of file mythuiguidegrid.cpp.


Member Function Documentation

void MythUIGuideGrid::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
) [virtual]

Reimplemented from MythUIType.

Definition at line 296 of file mythuiguidegrid.cpp.

bool MythUIGuideGrid::isVerticalLayout ( void   )  [inline]

Definition at line 39 of file mythuiguidegrid.h.

Referenced by GuideGrid::Create().

int MythUIGuideGrid::getChannelCount ( void   )  [inline]
int MythUIGuideGrid::getTimeCount ( void   )  [inline]

Definition at line 41 of file mythuiguidegrid.h.

Referenced by GuideGrid::Create().

void MythUIGuideGrid::SetCategoryColors ( const QMap< QString, QString > &  catColors  ) 

Definition at line 642 of file mythuiguidegrid.cpp.

Referenced by MythUIGuideGrid().

void MythUIGuideGrid::SetTextOffset ( const QPoint &  to  )  [inline]

Definition at line 45 of file mythuiguidegrid.h.

void MythUIGuideGrid::SetArrow ( int  direction,
const QString &  file 
)

Definition at line 666 of file mythuiguidegrid.cpp.

Referenced by ParseElement().

void MythUIGuideGrid::LoadImage ( int  recType,
const QString &  file 
)

Definition at line 651 of file mythuiguidegrid.cpp.

Referenced by ParseElement().

void MythUIGuideGrid::SetProgramInfo ( int  row,
int  col,
const QRect &  area,
const QString &  title,
const QString &  category,
int  arrow,
int  recType,
int  recStat,
bool  selected 
)

Definition at line 564 of file mythuiguidegrid.cpp.

Referenced by GuideGrid::fillProgramRowInfos().

void MythUIGuideGrid::ResetData ( void   ) 

Definition at line 681 of file mythuiguidegrid.cpp.

Referenced by GuideGrid::fillProgramInfos().

void MythUIGuideGrid::ResetRow ( int  row  ) 
void MythUIGuideGrid::SetProgPast ( int  ppast  ) 

Definition at line 696 of file mythuiguidegrid.cpp.

Referenced by GuideGrid::fillProgramRowInfos().

void MythUIGuideGrid::SetMultiLine ( bool  multiline  ) 

Definition at line 706 of file mythuiguidegrid.cpp.

Referenced by ParseElement().

void MythUIGuideGrid::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 from MythUIType.

Definition at line 65 of file mythuiguidegrid.cpp.

bool MythUIGuideGrid::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
) [protected, virtual]

Parse the xml definition of this widget setting the state of the object accordingly.

Reimplemented from MythUIType.

Definition at line 97 of file mythuiguidegrid.cpp.

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

Copy this widgets state from another.

Reimplemented from MythUIType.

Definition at line 248 of file mythuiguidegrid.cpp.

Referenced by CreateCopy().

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

Copy the state of this widget to the one given, it must be of the same type.

Reimplemented from MythUIType.

Definition at line 283 of file mythuiguidegrid.cpp.

bool MythUIGuideGrid::parseDefaultCategoryColors ( QMap< QString, QString > &  catColors  )  [protected]

Definition at line 585 of file mythuiguidegrid.cpp.

Referenced by MythUIGuideGrid().

void MythUIGuideGrid::drawBackground ( MythPainter p,
UIGTCon data,
int  alpaMod 
) [private]

Definition at line 448 of file mythuiguidegrid.cpp.

Referenced by DrawSelf().

void MythUIGuideGrid::drawBox ( MythPainter p,
UIGTCon data,
const QColor &  color,
int  alpaMod 
) [private]

Definition at line 437 of file mythuiguidegrid.cpp.

Referenced by DrawSelf().

void MythUIGuideGrid::drawText ( MythPainter p,
UIGTCon data,
int  alpaMod 
) [private]

Definition at line 529 of file mythuiguidegrid.cpp.

Referenced by DrawSelf().

void MythUIGuideGrid::drawRecType ( MythPainter p,
UIGTCon data,
int  alpaMod 
) [private]

Definition at line 384 of file mythuiguidegrid.cpp.

Referenced by DrawSelf().

void MythUIGuideGrid::drawCurrent ( MythPainter p,
UIGTCon data,
int  alpaMod 
) [private]

Definition at line 333 of file mythuiguidegrid.cpp.

Referenced by DrawSelf().

QColor MythUIGuideGrid::calcColor ( const QColor &  color,
int  alpha 
) [private]

Definition at line 289 of file mythuiguidegrid.cpp.

Referenced by drawBackground(), drawBox(), and drawCurrent().


Member Data Documentation

QList<UIGTCon*>* MythUIGuideGrid::allData [private]

Definition at line 110 of file mythuiguidegrid.h.

Referenced by DrawSelf(), Finalize(), ResetRow(), SetProgramInfo(), and ~MythUIGuideGrid().

Definition at line 111 of file mythuiguidegrid.h.

Referenced by DrawSelf(), and SetProgramInfo().

MythImage* MythUIGuideGrid::m_recImages[RECSTATUSSIZE] [private]

Definition at line 113 of file mythuiguidegrid.h.

Referenced by drawRecType(), LoadImage(), MythUIGuideGrid(), and ~MythUIGuideGrid().

MythImage* MythUIGuideGrid::m_arrowImages[ARROWIMAGESIZE] [private]

Definition at line 114 of file mythuiguidegrid.h.

Referenced by drawRecType(), drawText(), MythUIGuideGrid(), SetArrow(), and ~MythUIGuideGrid().

Definition at line 117 of file mythuiguidegrid.h.

Referenced by CopyFrom(), Finalize(), MythUIGuideGrid(), and ParseElement().

Definition at line 118 of file mythuiguidegrid.h.

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

Definition at line 121 of file mythuiguidegrid.h.

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

Definition at line 122 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawText(), MythUIGuideGrid(), and SetMultiLine().

Definition at line 123 of file mythuiguidegrid.h.

Referenced by CopyFrom(), MythUIGuideGrid(), and SetMultiLine().

Definition at line 125 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawBackground(), drawCurrent(), and ParseElement().

QString MythUIGuideGrid::m_selType [private]

Definition at line 127 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawCurrent(), MythUIGuideGrid(), and ParseElement().

Definition at line 128 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawCurrent(), MythUIGuideGrid(), and ParseElement().

Definition at line 129 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawCurrent(), MythUIGuideGrid(), and ParseElement().

Definition at line 131 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawCurrent(), DrawSelf(), and ParseElement().

Definition at line 132 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawCurrent(), DrawSelf(), and ParseElement().

Definition at line 134 of file mythuiguidegrid.h.

Referenced by CopyFrom(), and MythUIGuideGrid().

Definition at line 135 of file mythuiguidegrid.h.

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

Definition at line 137 of file mythuiguidegrid.h.

Referenced by CopyFrom(), drawText(), MythUIGuideGrid(), and ParseElement().

QMap<QString, QColor> MythUIGuideGrid::categoryColors [private]

Definition at line 139 of file mythuiguidegrid.h.

Referenced by SetCategoryColors(), and SetProgramInfo().

Definition at line 141 of file mythuiguidegrid.h.

Referenced by DrawSelf(), Finalize(), MythUIGuideGrid(), ResetData(), and ~MythUIGuideGrid().

Definition at line 142 of file mythuiguidegrid.h.

Referenced by drawBackground(), MythUIGuideGrid(), and SetProgPast().


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