GuideGrid Class Reference

#include <guidegrid.h>

Inheritance diagram for GuideGrid:
ScheduleCommon JumpToChannelListener MythScreenType MythUIType XMLParseBase

List of all members.

Public Member Functions

DBChanList GetSelection (void) const
virtual void GoTo (int start, int cur_row)
virtual void SetJumpToChannel (JumpToChannel *ptr)
bool Create (void)
virtual void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning).
virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load().
bool keyPressEvent (QKeyEvent *event)
 Key event handler.
virtual void aboutToShow ()
virtual void aboutToHide ()

Static Public Member Functions

static void RunProgramGuide (uint startChanId, const QString &startChanNum, TV *player=NULL, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)

Protected Slots

void cursorLeft ()
void cursorRight ()
void cursorDown ()
void cursorUp ()
void toggleGuideListing ()
void toggleChannelFavorite (int grpid=-1)
void ChannelGroupMenu (int mode=0)
void generateListings ()
void enter ()
void showProgFinder ()
void channelUpdate ()
void volumeUpdate (bool)
void toggleMute (const bool muteIndividualChannels=false)
void quickRecord ()
void editRecSchedule ()
void editSchedule ()
void customEdit ()
void deleteRule ()
void upcoming ()
void details ()
void Close ()
void customEvent (QEvent *event)

Protected Member Functions

 GuideGrid (MythScreenStack *parentStack, uint chanid=0, QString channum="", TV *player=NULL, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)
 ~GuideGrid ()

Private Types

enum  MoveVector {
  kScrollUp, kScrollDown, kScrollLeft, kScrollRight,
  kPageUp, kPageDown, kPageLeft, kPageRight,
  kDayLeft, kDayRight
}

Private Slots

void updateTimeout (void)
void refreshVideo (void)
void updateInfo (void)
void updateChannels (void)
void updateJumpToChannel (void)

Private Member Functions

void moveLeftRight (MoveVector movement)
void moveUpDown (MoveVector movement)
void moveToTime (QDateTime datetime)
void ShowMenu (void)
void ShowRecordingMenu (void)
void ShowJumpToTime (void)
int FindChannel (uint chanid, const QString &channum, bool exact=true) const
void fillChannelInfos (bool gotostartchannel=true)
void fillTimeInfos (void)
void fillProgramInfos (bool useExistingData=false)
void fillProgramRowInfos (unsigned int row, bool useExistingData=false)
ProgramListgetProgramListFromProgram (int chanNum)
void setStartChannel (int newStartChannel)
DBChannelGetChannelInfo (uint chan_idx, int sel=-1)
const DBChannelGetChannelInfo (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 updateDateText (void)
void EmbedTVWindow (void)
void HideTVWindow (void)

Private Attributes

bool m_selectChangesChannel
int m_selectRecThreshold
bool m_allowFinder
db_chan_list_list_t m_channelInfos
QMap< uint, uintm_channelInfoIdx
vector< ProgramList * > m_programs
ProgramInfom_programInfos [MAX_DISPLAY_CHANS][MAX_DISPLAY_TIMES]
ProgramList m_recList
QDateTime m_originalStartTime
QDateTime m_currentStartTime
QDateTime m_currentEndTime
uint m_currentStartChannel
uint m_startChanID
QString m_startChanNum
int m_currentRow
int m_currentCol
bool m_sortReverse
int m_channelCount
int m_timeCount
bool m_verticalLayout
QDateTime m_firstTime
QDateTime m_lastTime
TVm_player
bool m_usingNullVideo
bool m_embedVideo
QTimer * m_previewVideoRefreshTimer
QRect m_videoRect
QString m_channelOrdering
QTimer * m_updateTimer
int m_changrpid
ChannelGroupList m_changrplist
QMutex m_jumpToChannelLock
JumpToChannelm_jumpToChannel
MythUIButtonListm_timeList
MythUIButtonListm_channelList
MythUIGuideGridm_guideGrid
MythUITextm_dateText
MythUITextm_longdateText
MythUITextm_jumpToText
MythUITextm_changroupname
MythUIImagem_channelImage

Detailed Description

Definition at line 79 of file guidegrid.h.


Member Enumeration Documentation

enum GuideGrid::MoveVector [private]
Enumerator:
kScrollUp 
kScrollDown 
kScrollLeft 
kScrollRight 
kPageUp 
kPageDown 
kPageLeft 
kPageRight 
kDayLeft 
kDayRight 

Definition at line 151 of file guidegrid.h.


Constructor & Destructor Documentation

GuideGrid::GuideGrid ( MythScreenStack parentStack,
uint  chanid = 0,
QString  channum = "",
TV player = NULL,
bool  embedVideo = false,
bool  allowFinder = true,
int  changrpid = -1 
) [protected]

Definition at line 220 of file guidegrid.cpp.

Referenced by RunProgramGuide().

GuideGrid::~GuideGrid (  )  [protected]

Definition at line 361 of file guidegrid.cpp.


Member Function Documentation

void GuideGrid::RunProgramGuide ( uint  startChanId,
const QString &  startChanNum,
TV player = NULL,
bool  embedVideo = false,
bool  allowFinder = true,
int  changrpid = -1 
) [static]

Definition at line 167 of file guidegrid.cpp.

Referenced by SetFuncPtrs(), ProgFinder::showGuide(), and startGuide().

DBChanList GuideGrid::GetSelection ( void   )  const

Definition at line 773 of file guidegrid.cpp.

Referenced by channelUpdate().

void GuideGrid::GoTo ( int  start,
int  cur_row 
) [virtual]

Implements JumpToChannelListener.

Definition at line 2116 of file guidegrid.cpp.

void GuideGrid::SetJumpToChannel ( JumpToChannel ptr  )  [virtual]

Implements JumpToChannelListener.

Definition at line 2142 of file guidegrid.cpp.

bool GuideGrid::Create ( void   )  [virtual]

Reimplemented from MythScreenType.

Definition at line 265 of file guidegrid.cpp.

Referenced by RunProgramGuide().

void GuideGrid::Load ( void   )  [virtual]

Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning).

Warning:
This method should only load data, it should NEVER perform UI routines or segfaults WILL result. This includes assinging data to any widgets, calling methods on a widget or anything else which triggers redraws. The safest and recommended approach is to avoid any interaction with a libmythui class or class member.

Reimplemented from MythScreenType.

Definition at line 310 of file guidegrid.cpp.

void GuideGrid::Init ( void   )  [virtual]

Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load().

Warning:
Do NOT confuse this with Load(), they serve very different purposes and most often both should be used when creating a new screen.

Reimplemented from MythScreenType.

Definition at line 335 of file guidegrid.cpp.

bool GuideGrid::keyPressEvent ( QKeyEvent *   )  [virtual]

Key event handler.

Parameters:
event Keypress event

Reimplemented from MythScreenType.

Definition at line 405 of file guidegrid.cpp.

void GuideGrid::aboutToShow ( void   )  [virtual]

Reimplemented from MythScreenType.

Definition at line 2197 of file guidegrid.cpp.

void GuideGrid::aboutToHide ( void   )  [virtual]

Reimplemented from MythScreenType.

Definition at line 2189 of file guidegrid.cpp.

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

Definition at line 1758 of file guidegrid.cpp.

Referenced by keyPressEvent().

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

Definition at line 1784 of file guidegrid.cpp.

Referenced by keyPressEvent().

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

Definition at line 1812 of file guidegrid.cpp.

Referenced by keyPressEvent().

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

Definition at line 1830 of file guidegrid.cpp.

Referenced by keyPressEvent().

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

Definition at line 1636 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::toggleChannelFavorite ( int  grpid = -1  )  [protected, slot]

Definition at line 1718 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

void GuideGrid::ChannelGroupMenu ( int  mode = 0  )  [protected, slot]

Definition at line 1668 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 1937 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 1931 of file guidegrid.cpp.

Referenced by keyPressEvent().

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

Definition at line 2081 of file guidegrid.cpp.

Referenced by enter(), and keyPressEvent().

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

Definition at line 2096 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::toggleMute ( const bool  muteIndividualChannels = false  )  [protected, slot]

Definition at line 2106 of file guidegrid.cpp.

Referenced by keyPressEvent().

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

Definition at line 1972 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 1991 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 2004 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 2017 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 2024 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 2055 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

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

Definition at line 2068 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

void GuideGrid::Close ( void   )  [protected, virtual, slot]

Reimplemented from MythScreenType.

Definition at line 1953 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::customEvent ( QEvent *  event  )  [protected, virtual, slot]

Reimplemented from ScheduleCommon.

Definition at line 1350 of file guidegrid.cpp.

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

Definition at line 850 of file guidegrid.cpp.

Referenced by Init().

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

Definition at line 2181 of file guidegrid.cpp.

Referenced by GuideGrid().

void GuideGrid::updateInfo ( void   )  [private, slot]
void GuideGrid::updateChannels ( void   )  [private, slot]
void GuideGrid::updateJumpToChannel ( void   )  [private, slot]

Definition at line 2126 of file guidegrid.cpp.

Referenced by GoTo(), and keyPressEvent().

void GuideGrid::moveLeftRight ( MoveVector  movement  )  [private]

Definition at line 1848 of file guidegrid.cpp.

Referenced by cursorLeft(), cursorRight(), and keyPressEvent().

void GuideGrid::moveUpDown ( MoveVector  movement  )  [private]

Definition at line 1881 of file guidegrid.cpp.

Referenced by cursorDown(), cursorUp(), and keyPressEvent().

void GuideGrid::moveToTime ( QDateTime  datetime  )  [private]

Definition at line 1907 of file guidegrid.cpp.

Referenced by customEvent().

void GuideGrid::ShowMenu ( void   )  [private, virtual]

Reimplemented from MythScreenType.

Definition at line 586 of file guidegrid.cpp.

Referenced by keyPressEvent().

void GuideGrid::ShowRecordingMenu ( void   )  [private]

Definition at line 629 of file guidegrid.cpp.

Referenced by customEvent().

void GuideGrid::ShowJumpToTime ( void   )  [private]

Definition at line 2205 of file guidegrid.cpp.

Referenced by customEvent().

int GuideGrid::FindChannel ( uint  chanid,
const QString &  channum,
bool  exact = true 
) const [private, virtual]

Implements JumpToChannelListener.

Definition at line 929 of file guidegrid.cpp.

Referenced by fillChannelInfos(), and keyPressEvent().

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

Definition at line 857 of file guidegrid.cpp.

Referenced by generateListings(), and Load().

void GuideGrid::fillTimeInfos ( void   )  [private]

Definition at line 1024 of file guidegrid.cpp.

Referenced by Init(), moveLeftRight(), and moveToTime().

void GuideGrid::fillProgramInfos ( bool  useExistingData = false  )  [private]
void GuideGrid::fillProgramRowInfos ( unsigned int  row,
bool  useExistingData = false 
) [private]

Definition at line 1091 of file guidegrid.cpp.

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

ProgramList * GuideGrid::getProgramListFromProgram ( int  chanNum  )  [private]

Definition at line 1068 of file guidegrid.cpp.

Referenced by fillProgramRowInfos(), and Load().

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

Definition at line 1921 of file guidegrid.cpp.

Referenced by GoTo(), Load(), and moveUpDown().

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

Definition at line 673 of file guidegrid.cpp.

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

Definition at line 683 of file guidegrid.cpp.

Referenced by GetSelection().

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

Definition at line 693 of file guidegrid.cpp.

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

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

Definition at line 714 of file guidegrid.cpp.

Referenced by updateChannels().

void GuideGrid::updateDateText ( void   )  [private]

Definition at line 1498 of file guidegrid.cpp.

Referenced by Init(), moveLeftRight(), moveToTime(), and SetJumpToChannel().

void GuideGrid::EmbedTVWindow ( void   )  [private]

Definition at line 2161 of file guidegrid.cpp.

Referenced by aboutToShow().

void GuideGrid::HideTVWindow ( void   )  [private]

Definition at line 2156 of file guidegrid.cpp.

Referenced by aboutToHide().


Member Data Documentation

Definition at line 193 of file guidegrid.h.

Definition at line 194 of file guidegrid.h.

Referenced by GuideGrid(), and keyPressEvent().

Definition at line 196 of file guidegrid.h.

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

vector<ProgramList*> GuideGrid::m_programs [private]

Definition at line 200 of file guidegrid.h.

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

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

Definition at line 204 of file guidegrid.h.

Referenced by GuideGrid().

QDateTime GuideGrid::m_currentStartTime [private]
QDateTime GuideGrid::m_currentEndTime [private]

Definition at line 208 of file guidegrid.h.

Referenced by fillChannelInfos(), and GuideGrid().

QString GuideGrid::m_startChanNum [private]

Definition at line 209 of file guidegrid.h.

Referenced by fillChannelInfos(), and GuideGrid().

int GuideGrid::m_currentRow [private]
int GuideGrid::m_currentCol [private]

Definition at line 214 of file guidegrid.h.

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

int GuideGrid::m_timeCount [private]

Definition at line 218 of file guidegrid.h.

Referenced by Create(), fillProgramRowInfos(), and keyPressEvent().

QDateTime GuideGrid::m_firstTime [private]

Definition at line 220 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

QDateTime GuideGrid::m_lastTime [private]

Definition at line 221 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

TV* GuideGrid::m_player [private]

Definition at line 224 of file guidegrid.h.

Referenced by EmbedTVWindow(), and refreshVideo().

Definition at line 225 of file guidegrid.h.

Referenced by Create(), and showProgFinder().

Definition at line 226 of file guidegrid.h.

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

QRect GuideGrid::m_videoRect [private]

Definition at line 229 of file guidegrid.h.

Referenced by Create(), EmbedTVWindow(), and refreshVideo().

QString GuideGrid::m_channelOrdering [private]

Definition at line 231 of file guidegrid.h.

Referenced by fillChannelInfos(), and GuideGrid().

QTimer* GuideGrid::m_updateTimer [private]

Definition at line 233 of file guidegrid.h.

Referenced by Close(), enter(), Init(), updateTimeout(), and ~GuideGrid().

int GuideGrid::m_changrpid [private]

Definition at line 236 of file guidegrid.h.

Referenced by ChannelGroupMenu(), GuideGrid(), ShowMenu(), and toggleGuideListing().

Definition at line 238 of file guidegrid.h.

Referenced by keyPressEvent(), SetJumpToChannel(), and updateJumpToChannel().

Definition at line 239 of file guidegrid.h.

Referenced by keyPressEvent(), SetJumpToChannel(), and updateJumpToChannel().

Definition at line 241 of file guidegrid.h.

Referenced by Create(), and fillTimeInfos().

Definition at line 242 of file guidegrid.h.

Referenced by Create(), and updateChannels().

Definition at line 244 of file guidegrid.h.

Referenced by Create(), and updateDateText().

Definition at line 245 of file guidegrid.h.

Referenced by Create(), and updateDateText().

Definition at line 246 of file guidegrid.h.

Referenced by Create(), SetJumpToChannel(), and updateJumpToChannel().

Definition at line 247 of file guidegrid.h.

Referenced by Create(), customEvent(), Init(), and toggleGuideListing().

Definition at line 248 of file guidegrid.h.

Referenced by Create(), and updateInfo().


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:05 2012 for MythTV by  doxygen 1.6.3