A narrow purpose widget used to show television programs and the timeslots they occupy on channels. More...
#include <mythuiguidegrid.h>
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 |
| MythImage * | m_recImages [RECSTATUSSIZE] |
| MythImage * | m_arrowImages [ARROWIMAGESIZE] |
| int | m_channelCount |
| int | m_timeCount |
| bool | m_verticalLayout |
| int | m_categoryAlpha |
| QPoint | m_textOffset |
| int | m_justification |
| bool | m_multilineText |
| MythFontProperties * | m_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 |
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.
Definition at line 37 of file mythuiguidegrid.h.
| 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.
| 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] |
Definition at line 40 of file mythuiguidegrid.h.
Referenced by GuideGrid::Create(), GuideGrid::fillProgramRowInfos(), and GuideGrid::generateListings().
| 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 | ) |
Definition at line 687 of file mythuiguidegrid.cpp.
Referenced by GuideGrid::fillProgramRowInfos(), ResetData(), and ~MythUIGuideGrid().
| 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().
QList<UIGTCon*>* MythUIGuideGrid::allData [private] |
Definition at line 110 of file mythuiguidegrid.h.
Referenced by DrawSelf(), Finalize(), ResetRow(), SetProgramInfo(), and ~MythUIGuideGrid().
UIGTCon MythUIGuideGrid::selectedItem [private] |
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().
int MythUIGuideGrid::m_channelCount [private] |
Definition at line 117 of file mythuiguidegrid.h.
Referenced by CopyFrom(), Finalize(), MythUIGuideGrid(), and ParseElement().
int MythUIGuideGrid::m_timeCount [private] |
Definition at line 118 of file mythuiguidegrid.h.
Referenced by CopyFrom(), MythUIGuideGrid(), and ParseElement().
bool MythUIGuideGrid::m_verticalLayout [private] |
Definition at line 119 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawBackground(), drawRecType(), drawText(), MythUIGuideGrid(), ParseElement(), and SetProgPast().
int MythUIGuideGrid::m_categoryAlpha [private] |
Definition at line 120 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawBackground(), drawBox(), drawCurrent(), MythUIGuideGrid(), and ParseElement().
QPoint MythUIGuideGrid::m_textOffset [private] |
Definition at line 121 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawText(), and ParseElement().
int MythUIGuideGrid::m_justification [private] |
Definition at line 122 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawText(), MythUIGuideGrid(), and SetMultiLine().
bool MythUIGuideGrid::m_multilineText [private] |
Definition at line 123 of file mythuiguidegrid.h.
Referenced by CopyFrom(), MythUIGuideGrid(), and SetMultiLine().
MythFontProperties* MythUIGuideGrid::m_font [private] |
Definition at line 124 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawText(), MythUIGuideGrid(), ParseElement(), and ~MythUIGuideGrid().
QColor MythUIGuideGrid::m_solidColor [private] |
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().
QPen MythUIGuideGrid::m_drawSelLine [private] |
Definition at line 128 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawCurrent(), MythUIGuideGrid(), and ParseElement().
QBrush MythUIGuideGrid::m_drawSelFill [private] |
Definition at line 129 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawCurrent(), MythUIGuideGrid(), and ParseElement().
QColor MythUIGuideGrid::m_recordingColor [private] |
Definition at line 131 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawCurrent(), DrawSelf(), and ParseElement().
QColor MythUIGuideGrid::m_conflictingColor [private] |
Definition at line 132 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawCurrent(), DrawSelf(), and ParseElement().
int MythUIGuideGrid::m_fillType [private] |
Definition at line 134 of file mythuiguidegrid.h.
Referenced by CopyFrom(), and MythUIGuideGrid().
bool MythUIGuideGrid::m_cutdown [private] |
Definition at line 135 of file mythuiguidegrid.h.
Referenced by CopyFrom(), MythUIGuideGrid(), and ParseElement().
bool MythUIGuideGrid::m_drawCategoryColors [private] |
Definition at line 136 of file mythuiguidegrid.h.
Referenced by CopyFrom(), drawBackground(), drawCurrent(), MythUIGuideGrid(), ParseElement(), and SetProgramInfo().
bool MythUIGuideGrid::m_drawCategoryText [private] |
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().
int MythUIGuideGrid::m_rowCount [private] |
Definition at line 141 of file mythuiguidegrid.h.
Referenced by DrawSelf(), Finalize(), MythUIGuideGrid(), ResetData(), and ~MythUIGuideGrid().
int MythUIGuideGrid::m_progPastCol [private] |
Definition at line 142 of file mythuiguidegrid.h.
Referenced by drawBackground(), MythUIGuideGrid(), and SetProgPast().
1.6.3