GuideGrid Class Reference

#include <guidegrid.h>

Inheritance diagram for GuideGrid:

MythDialog

List of all members.


Detailed Description

Definition at line 32 of file guidegrid.h.


Public Member Functions

DBChanList GetSelection (void) const

Static Public Member Functions

static DBChanList Run (uint startChanId, const QString &startChanNum, bool thread=false, TV *player=NULL, bool allowsecondaryepg=true)

Protected Slots

void cursorLeft ()
void cursorRight ()
void cursorDown ()
void cursorUp ()
void scrollLeft ()
void scrollRight ()
void scrollDown ()
void scrollUp ()
void dayLeft ()
void dayRight ()
void pageLeft ()
void pageRight ()
void pageDown ()
void pageUp ()
void toggleGuideListing ()
void toggleChannelFavorite ()
void generateListings ()
void enter ()
void escape ()
void showProgFinder ()
void channelUpdate ()
void volumeUpdate (bool)
void toggleMute ()
void quickRecord ()
void editRecording ()
void editScheduled ()
void customEdit ()
void remove ()
void upcoming ()
void details ()
void customEvent (QCustomEvent *e)

Protected Member Functions

 GuideGrid (MythMainWindow *parent, uint chanid=0, QString channum="", TV *player=NULL, bool allowsecondaryepg=true, const char *name="GuideGrid")
 ~GuideGrid ()
void paintEvent (QPaintEvent *)

Private Slots

void timeCheckTimeout (void)
void repaintVideoTimeout (void)
void jumpToChannelTimeout (void)

Private Member Functions

void keyPressEvent (QKeyEvent *e)
void keyReleaseEvent (QKeyEvent *e)
void updateBackground (void)
void paintDate (QPainter *)
void paintJumpToChannel (QPainter *)
bool paintChannels (QPainter *)
void paintTimes (QPainter *)
void paintPrograms (QPainter *)
void paintCurrentInfo (QPainter *)
void paintInfo (QPainter *)
void resizeImage (QPixmap *, QString)
void LoadWindow (QDomElement &)
void parseContainer (QDomElement &)
void fillChannelInfos (bool gotostartchannel=true)
void fillTimeInfos ()
void fillProgramInfos (void)
void fillProgramRowInfos (unsigned int row)
void setStartChannel (int newStartChannel)
void createProgramLabel (int, int)
PixmapChannelGetChannelInfo (uint chan_idx, int sel=-1)
const PixmapChannelGetChannelInfo (uint chan_idx, int sel=-1) const
uint GetChannelCount (void) const
int GetStartChannelOffset (int row=-1) const
ProgramList GetProgramList (uint chanid) const
uint GetAlternateChannelIndex (uint chan_idx, bool with_same_channum) const
void jumpToChannelResetAndHide ()
void jumpToChannelCancel ()
void jumpToChannelCommit ()
void jumpToChannelShowSelection ()
void jumpToChannelDeleteLastDigit ()
void jumpToChannelDigitPress (int)
bool jumpToChannelGetInputDigit (QStringList &actions, int &digit)

Private Attributes

XMLParsetheme
QDomElement xmldata
int m_context
bool selectChangesChannel
int selectRecThreshold
int gridfilltype
int scrolltype
QRect fullRect
QRect dateRect
QRect jumpToChannelRect
QRect channelRect
QRect timeRect
QRect programRect
QRect infoRect
QRect curInfoRect
QRect videoRect
pix_chan_list_list_t m_channelInfos
QMap< uint, uintm_channelInfoIdx
TimeInfom_timeInfos [MAX_DISPLAY_TIMES]
ProgramListm_programs [MAX_DISPLAY_CHANS]
ProgramInfom_programInfos [MAX_DISPLAY_CHANS][MAX_DISPLAY_TIMES]
ProgramList m_recList
QDateTime m_originalStartTime
QDateTime m_currentStartTime
QDateTime m_currentEndTime
uint m_currentStartChannel
uint startChanID
QString startChanNum
int m_currentRow
int m_currentCol
bool selectState
bool showFavorites
bool sortReverse
QString channelFormat
int desiredDisplayChans
int DISPLAY_CHANS
int DISPLAY_TIMES
QDateTime firstTime
QDateTime lastTime
TVm_player
QString channelOrdering
QString dateformat
QString timeformat
QString unknownTitle
QString unknownCategory
QTimer * timeCheck
QTimer * videoRepaintTimer
bool keyDown
int jumpToChannel
int jumpToChannelPreviousStartChannel
int jumpToChannelPreviousRow
bool jumpToChannelEnabled
bool jumpToChannelActive
bool jumpToChannelHasRect
QTimer * jumpToChannelTimer

Constructor & Destructor Documentation

GuideGrid::GuideGrid ( MythMainWindow parent,
uint  chanid = 0,
QString  channum = "",
TV player = NULL,
bool  allowsecondaryepg = true,
const char *  name = "GuideGrid" 
) [protected]

Definition at line 92 of file guidegrid.cpp.

Referenced by Run().

GuideGrid::~GuideGrid (  )  [protected]

Definition at line 291 of file guidegrid.cpp.


Member Function Documentation

DBChanList GuideGrid::Run ( uint  startChanId,
const QString &  startChanNum,
bool  thread = false,
TV player = NULL,
bool  allowsecondaryepg = true 
) [static]

Definition at line 39 of file guidegrid.cpp.

Referenced by TV::doEditSchedule(), ProgFinder::showGuide(), and startGuide().

DBChanList GuideGrid::GetSelection ( void   )  const

Definition at line 658 of file guidegrid.cpp.

Referenced by channelUpdate(), and Run().

void GuideGrid::cursorLeft (  )  [protected, slot]

Definition at line 1638 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::cursorRight (  )  [protected, slot]

Definition at line 1665 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::cursorDown (  )  [protected, slot]

Definition at line 1694 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::cursorUp (  )  [protected, slot]

Definition at line 1717 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::scrollLeft (  )  [protected, slot]

Definition at line 1740 of file guidegrid.cpp.

Referenced by cursorLeft().

void GuideGrid::scrollRight (  )  [protected, slot]

Definition at line 1763 of file guidegrid.cpp.

Referenced by cursorRight().

void GuideGrid::scrollDown (  )  [protected, slot]

Definition at line 1795 of file guidegrid.cpp.

Referenced by cursorDown().

void GuideGrid::scrollUp (  )  [protected, slot]

Definition at line 1806 of file guidegrid.cpp.

Referenced by cursorUp().

void GuideGrid::dayLeft (  )  [protected, slot]

Definition at line 1817 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::dayRight (  )  [protected, slot]

Definition at line 1827 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::pageLeft (  )  [protected, slot]

Definition at line 1837 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::pageRight (  )  [protected, slot]

Definition at line 1856 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::pageDown (  )  [protected, slot]

Definition at line 1875 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::pageUp (  )  [protected, slot]

Definition at line 1884 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::toggleGuideListing (  )  [protected, slot]

Definition at line 1571 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::toggleChannelFavorite (  )  [protected, slot]

Definition at line 1593 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::generateListings (  )  [protected, slot]

Definition at line 1577 of file guidegrid.cpp.

Referenced by keyPressEvent(), toggleChannelFavorite(), and toggleGuideListing().

void GuideGrid::enter (  )  [protected, slot]

Definition at line 1905 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::escape (  )  [protected, slot]

Definition at line 1919 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::showProgFinder (  )  [protected, slot]

Definition at line 1893 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::channelUpdate ( void   )  [protected, slot]

Definition at line 2073 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::volumeUpdate ( bool  up  )  [protected, slot]

Definition at line 2087 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::toggleMute ( void   )  [protected, slot]

Definition at line 2093 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::quickRecord (  )  [protected, slot]

Definition at line 1932 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::editRecording (  )  [protected, slot]

Definition at line 1950 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::editScheduled (  )  [protected, slot]

Definition at line 1977 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::customEdit (  )  [protected, slot]

Definition at line 2005 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::remove (  )  [protected, slot]

Definition at line 2018 of file guidegrid.cpp.

void GuideGrid::upcoming (  )  [protected, slot]

Definition at line 2044 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::details (  )  [protected, slot]

Definition at line 2060 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::customEvent ( QCustomEvent *  e  )  [protected, slot]

Definition at line 1160 of file guidegrid.cpp.

void GuideGrid::paintEvent ( QPaintEvent *  e  )  [protected]

Definition at line 1176 of file guidegrid.cpp.

void GuideGrid::timeCheckTimeout ( void   )  [private, slot]

Definition at line 728 of file guidegrid.cpp.

Referenced by GuideGrid().

void GuideGrid::repaintVideoTimeout ( void   )  [private, slot]

Definition at line 756 of file guidegrid.cpp.

Referenced by GuideGrid().

void GuideGrid::jumpToChannelTimeout ( void   )  [private, slot]

Definition at line 2205 of file guidegrid.cpp.

Referenced by GuideGrid().

void GuideGrid::keyPressEvent ( QKeyEvent *  e  )  [private]

Reimplemented from MythDialog.

Definition at line 341 of file guidegrid.cpp.

void GuideGrid::keyReleaseEvent ( QKeyEvent *  e  )  [private]

Definition at line 496 of file guidegrid.cpp.

void GuideGrid::updateBackground ( void   )  [private]

Definition at line 504 of file guidegrid.cpp.

Referenced by GuideGrid().

void GuideGrid::paintDate ( QPainter *  p  )  [private]

Definition at line 1216 of file guidegrid.cpp.

Referenced by paintEvent().

void GuideGrid::paintJumpToChannel ( QPainter *  p  )  [private]

Definition at line 1247 of file guidegrid.cpp.

Referenced by paintEvent().

bool GuideGrid::paintChannels ( QPainter *  p  )  [private]

Definition at line 1314 of file guidegrid.cpp.

Referenced by paintEvent().

void GuideGrid::paintTimes ( QPainter *  p  )  [private]

Definition at line 1456 of file guidegrid.cpp.

Referenced by paintEvent().

void GuideGrid::paintPrograms ( QPainter *  p  )  [private]

Definition at line 1479 of file guidegrid.cpp.

Referenced by paintEvent().

void GuideGrid::paintCurrentInfo ( QPainter *  p  )  [private]

Definition at line 1290 of file guidegrid.cpp.

Referenced by paintEvent().

void GuideGrid::paintInfo ( QPainter *  p  )  [private]

Definition at line 1502 of file guidegrid.cpp.

Referenced by paintEvent().

void GuideGrid::resizeImage ( QPixmap *  ,
QString   
) [private]

void GuideGrid::LoadWindow ( QDomElement &  element  )  [private]

Definition at line 520 of file guidegrid.cpp.

Referenced by GuideGrid().

void GuideGrid::parseContainer ( QDomElement &  element  )  [private]

Definition at line 545 of file guidegrid.cpp.

Referenced by LoadWindow().

void GuideGrid::fillChannelInfos ( bool  gotostartchannel = true  )  [private]

Definition at line 762 of file guidegrid.cpp.

Referenced by generateListings(), GuideGrid(), and toggleChannelFavorite().

void GuideGrid::fillTimeInfos (  )  [private]

Definition at line 850 of file guidegrid.cpp.

Referenced by dayLeft(), dayRight(), GuideGrid(), pageLeft(), pageRight(), scrollLeft(), and scrollRight().

void GuideGrid::fillProgramInfos ( void   )  [private]

void GuideGrid::fillProgramRowInfos ( unsigned int  row  )  [private]

Definition at line 919 of file guidegrid.cpp.

Referenced by cursorDown(), cursorLeft(), cursorRight(), cursorUp(), and fillProgramInfos().

void GuideGrid::setStartChannel ( int  newStartChannel  )  [private]

void GuideGrid::createProgramLabel ( int  ,
int   
) [private]

PixmapChannel * GuideGrid::GetChannelInfo ( uint  chan_idx,
int  sel = -1 
) [private]

const PixmapChannel * GuideGrid::GetChannelInfo ( uint  chan_idx,
int  sel = -1 
) const [private]

Definition at line 585 of file guidegrid.cpp.

uint GuideGrid::GetChannelCount ( void   )  const [private]

int GuideGrid::GetStartChannelOffset ( int  row = -1  )  const [private]

Definition at line 595 of file guidegrid.cpp.

Referenced by GetSelection().

ProgramList GuideGrid::GetProgramList ( uint  chanid  )  const [private]

Definition at line 605 of file guidegrid.cpp.

Referenced by GetAlternateChannelIndex(), GetSelection(), and paintChannels().

uint GuideGrid::GetAlternateChannelIndex ( uint  chan_idx,
bool  with_same_channum 
) const [private]

Definition at line 624 of file guidegrid.cpp.

Referenced by paintChannels().

void GuideGrid::jumpToChannelResetAndHide (  )  [private]

Definition at line 2196 of file guidegrid.cpp.

Referenced by jumpToChannelCancel(), and jumpToChannelCommit().

void GuideGrid::jumpToChannelCancel (  )  [private]

Definition at line 2184 of file guidegrid.cpp.

Referenced by jumpToChannelDeleteLastDigit(), and keyPressEvent().

void GuideGrid::jumpToChannelCommit (  )  [private]

Definition at line 2179 of file guidegrid.cpp.

Referenced by jumpToChannelTimeout().

void GuideGrid::jumpToChannelShowSelection (  )  [private]

Definition at line 2153 of file guidegrid.cpp.

Referenced by jumpToChannelDeleteLastDigit(), and jumpToChannelDigitPress().

void GuideGrid::jumpToChannelDeleteLastDigit (  )  [private]

Definition at line 2143 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::jumpToChannelDigitPress ( int  digit  )  [private]

Definition at line 2123 of file guidegrid.cpp.

Referenced by keyPressEvent().

bool GuideGrid::jumpToChannelGetInputDigit ( QStringList &  actions,
int &  digit 
) [private]

Definition at line 2212 of file guidegrid.cpp.

Referenced by keyPressEvent().


Member Data Documentation

QDomElement GuideGrid::xmldata [private]

Definition at line 116 of file guidegrid.h.

Referenced by GuideGrid().

int GuideGrid::m_context [private]

Definition at line 120 of file guidegrid.h.

Referenced by GuideGrid(), and keyPressEvent().

Definition at line 121 of file guidegrid.h.

Referenced by GuideGrid(), and keyPressEvent().

int GuideGrid::gridfilltype [private]

Definition at line 123 of file guidegrid.h.

Referenced by GuideGrid().

int GuideGrid::scrolltype [private]

Definition at line 124 of file guidegrid.h.

Referenced by cursorDown(), cursorUp(), GuideGrid(), and paintChannels().

QRect GuideGrid::fullRect [private]

QRect GuideGrid::dateRect [private]

QRect GuideGrid::channelRect [private]

QRect GuideGrid::timeRect [private]

QRect GuideGrid::programRect [private]

QRect GuideGrid::infoRect [private]

QRect GuideGrid::curInfoRect [private]

QRect GuideGrid::videoRect [private]

TimeInfo* GuideGrid::m_timeInfos[MAX_DISPLAY_TIMES] [private]

Definition at line 159 of file guidegrid.h.

Referenced by fillTimeInfos(), GuideGrid(), and ~GuideGrid().

ProgramList* GuideGrid::m_programs[MAX_DISPLAY_CHANS] [private]

Definition at line 160 of file guidegrid.h.

Referenced by fillProgramRowInfos(), GuideGrid(), and ~GuideGrid().

ProgramInfo* GuideGrid::m_programInfos[MAX_DISPLAY_CHANS][MAX_DISPLAY_TIMES] [private]

QDateTime GuideGrid::m_originalStartTime [private]

Definition at line 164 of file guidegrid.h.

Referenced by GuideGrid().

QDateTime GuideGrid::m_currentStartTime [private]

QDateTime GuideGrid::m_currentEndTime [private]

Definition at line 166 of file guidegrid.h.

Referenced by fillProgramRowInfos(), fillTimeInfos(), and GetProgramList().

Definition at line 168 of file guidegrid.h.

Referenced by fillChannelInfos(), and GuideGrid().

QString GuideGrid::startChanNum [private]

Definition at line 169 of file guidegrid.h.

Referenced by fillChannelInfos(), and GuideGrid().

int GuideGrid::m_currentRow [private]

int GuideGrid::m_currentCol [private]

Definition at line 174 of file guidegrid.h.

Referenced by enter(), GuideGrid(), and Run().

Definition at line 176 of file guidegrid.h.

Referenced by fillChannelInfos(), GuideGrid(), keyPressEvent(), and ~GuideGrid().

QString GuideGrid::channelFormat [private]

Definition at line 177 of file guidegrid.h.

Referenced by GuideGrid(), and paintChannels().

Definition at line 179 of file guidegrid.h.

Referenced by generateListings(), GuideGrid(), and toggleChannelFavorite().

int GuideGrid::DISPLAY_CHANS [private]

int GuideGrid::DISPLAY_TIMES [private]

QDateTime GuideGrid::firstTime [private]

Definition at line 183 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

QDateTime GuideGrid::lastTime [private]

Definition at line 184 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

TV* GuideGrid::m_player [private]

QString GuideGrid::channelOrdering [private]

Definition at line 188 of file guidegrid.h.

Referenced by fillChannelInfos(), and GuideGrid().

QString GuideGrid::dateformat [private]

Definition at line 189 of file guidegrid.h.

Referenced by GuideGrid(), and paintDate().

QString GuideGrid::timeformat [private]

Definition at line 190 of file guidegrid.h.

Referenced by fillTimeInfos(), GuideGrid(), and timeCheckTimeout().

QString GuideGrid::unknownTitle [private]

QString GuideGrid::unknownCategory [private]

Definition at line 192 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and GuideGrid().

QTimer* GuideGrid::timeCheck [private]

Definition at line 194 of file guidegrid.h.

Referenced by enter(), escape(), GuideGrid(), paintEvent(), timeCheckTimeout(), and ~GuideGrid().

QTimer* GuideGrid::videoRepaintTimer [private]

Definition at line 195 of file guidegrid.h.

Referenced by channelUpdate(), GuideGrid(), repaintVideoTimeout(), and ~GuideGrid().

Definition at line 197 of file guidegrid.h.

Referenced by GuideGrid(), keyPressEvent(), and keyReleaseEvent().

int GuideGrid::jumpToChannel [private]

Definition at line 207 of file guidegrid.h.

Referenced by jumpToChannelCancel(), and jumpToChannelDigitPress().

Definition at line 208 of file guidegrid.h.

Referenced by jumpToChannelCancel(), and jumpToChannelDigitPress().

Definition at line 209 of file guidegrid.h.

Referenced by GuideGrid(), keyPressEvent(), and paintJumpToChannel().

Definition at line 211 of file guidegrid.h.

Referenced by GuideGrid(), paintEvent(), paintJumpToChannel(), and parseContainer().

QTimer* GuideGrid::jumpToChannelTimer [private]


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

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