MythTV  master
Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Private Attributes | List of all members
GuideGrid Class Reference

#include <guidegrid.h>

Inheritance diagram for GuideGrid:
Inheritance graph
[legend]
Collaboration diagram for GuideGrid:
Collaboration graph
[legend]

Public Member Functions

ChannelInfoList GetSelection (void) const
 
void GoTo (int start, int cur_row) override
 
void SetJumpToChannel (JumpToChannel *ptr) override
 
bool Create (void) override
 
void Load (void) override
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning) More...
 
void Init (void) override
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load() More...
 
bool keyPressEvent (QKeyEvent *event) override
 Key event handler. More...
 
bool gestureEvent (MythGestureEvent *event) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
void aboutToShow () override
 
void aboutToHide () override
 
uint GetCurrentStartChannel (void) const
 
QDateTime GetCurrentStartTime (void) const
 
ProgramListgetProgramListFromProgram (int chanNum)
 
void updateProgramsUI (unsigned int firstRow, unsigned int numRows, int progPast, const QVector< ProgramList * > &proglists, const ProgInfoGuideArray &programInfos, const QLinkedList< GuideUIElement > &elements)
 
void updateChannelsNonUI (QVector< ChannelInfo * > &chinfos, QVector< bool > &unavailables)
 
void updateChannelsUI (const QVector< ChannelInfo * > &chinfos, const QVector< bool > &unavailables)
 
- Public Member Functions inherited from MythScreenType
 MythScreenType (MythScreenStack *parent, const QString &name, bool fullscreen=true)
 
virtual ~MythScreenType ()
 
void doInit (void)
 
void LoadInForeground (void)
 
bool IsInitialized (void) const
 Has Init() been called on this screen? More...
 
bool IsFullscreen (void) const
 
void SetFullscreen (bool full)
 
MythUITypeGetFocusWidget (void) const
 
bool SetFocusWidget (MythUIType *widget=nullptr)
 
virtual bool NextPrevWidgetFocus (bool up_or_down)
 
void BuildFocusList (void)
 
MythScreenStackGetScreenStack () const
 
bool IsDeleting (void) const
 
void SetDeleting (bool deleting)
 
bool IsLoading (void)
 
bool IsLoaded (void)
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
virtual ~MythUIComposite ()=default
 
virtual void SetTextFromMap (const InfoMap &infoMap)
 
virtual void ResetMap (const InfoMap &infoMap)
 
- Public Member Functions inherited from MythUIType
 MythUIType (QObject *parent, const QString &name)
 
virtual void Reset (void)
 Reset the widget to it's original state, should not reset changes made by the theme. More...
 
void AddChild (MythUIType *child)
 Add a child UIType. More...
 
MythUITypeGetChild (const QString &name) const
 Get a named child of this UIType. More...
 
MythUITypeGetChildAt (const QPoint &p, bool recursive=true, bool focusable=true) const
 Return the first MythUIType at the given coordinates. More...
 
QList< MythUIType * > * GetAllChildren (void)
 Return a list of all child widgets. More...
 
void DeleteChild (const QString &name)
 Delete a named child of this UIType. More...
 
void DeleteChild (MythUIType *child)
 Delete the given UIType if it is a child of this UIType. More...
 
void DeleteAllChildren (void)
 Delete all child widgets. More...
 
bool NeedsRedraw (void) const
 
void ResetNeedsRedraw (void)
 
void SetRedraw (void)
 
void SetChildNeedsRedraw (MythUIType *child)
 
bool CanTakeFocus (void) const
 Return if this widget can accept input focus. More...
 
void SetCanTakeFocus (bool set=true)
 Set whether this widget can take focus. More...
 
void SetFocusOrder (int)
 
bool IsEnabled (void) const
 
void SetEnabled (bool enable)
 
bool MoveToTop (void)
 
bool MoveChildToTop (MythUIType *child)
 
void ActivateAnimations (MythUIAnimation::Trigger trigger)
 
QList< MythUIAnimation * > * GetAnimations (void)
 
virtual void Pulse (void)
 Pulse is called 70 times a second to trigger a single frame of an animation. More...
 
void Draw (MythPainter *p, int xoffset, int yoffset, int alphaMod=255, QRect clipRect=QRect())
 
void SetPosition (int x, int y)
 Convenience method, calls SetPosition(const MythPoint&) Override that instead to change functionality. More...
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (const QSize &size)
 
virtual void SetMinSize (const MythPoint &size)
 Set the minimum size of this widget, for widgets which can be rescaled. More...
 
virtual QSize GetMinSize (void) const
 
virtual void SetArea (const MythRect &rect)
 
virtual void AdjustMinArea (int delta_x, int delta_y, int delta_w, int delta_h)
 Adjust the size of a sibling. More...
 
virtual void VanishSibling (void)
 
virtual void SetMinAreaParent (MythRect actual_area, MythRect allowed_area, MythUIType *child)
 Adjust the size of sibling objects within the button. More...
 
virtual void SetMinArea (const MythRect &rect)
 Set the minimum area based on the given size. More...
 
virtual MythRect GetArea (void) const
 If the object has a minimum area defined, return it, other wise return the default area. More...
 
virtual MythRect GetFullArea (void) const
 
virtual void RecalculateArea (bool recurse=true)
 
void ExpandArea (const MythRect &rect)
 
virtual QRegion GetDirtyArea (void) const
 
bool IsVisible (bool recurse=false) const
 
virtual void SetVisible (bool visible)
 
void MoveTo (QPoint destXY, QPoint speedXY)
 
void AdjustAlpha (int mode, int alphachange, int minalpha=0, int maxalpha=255)
 
void SetAlpha (int newalpha)
 
int GetAlpha (void) const
 
virtual void mediaEvent (MythMediaEvent *event)
 Media/Device status event handler, received from MythMediaMonitor. More...
 
MythFontPropertiesGetFont (const QString &text) const
 
bool AddFont (const QString &text, MythFontProperties *fontProp)
 
void SetHelpText (const QString &text)
 
QString GetHelpText (void) const
 
void SetXMLLocation (const QString &filename, int where)
 
QString GetXMLLocation (void) const
 
void SetXMLName (const QString &name)
 
QString GetXMLName (void) const
 
bool IsDeferredLoading (bool recurse=false) const
 
void SetDeferLoad (bool defer)
 
virtual void LoadNow (void)
 Cause images in this and child widgets to be loaded. More...
 
bool ContainsPoint (const QPoint &point) const
 Check if the given point falls within this widgets area. More...
 
void SetPainter (MythPainter *painter)
 
void SetCentre (UIEffects::Centre centre)
 
void SetZoom (float zoom)
 
void SetHorizontalZoom (float zoom)
 
void SetVerticalZoom (float zoom)
 
void SetAngle (float angle)
 
void SetDependIsDefault (bool isDefault)
 
void SetReverseDependence (MythUIType *dependee, bool reverse)
 
void SetDependsMap (QMap< QString, QString > dependsMap)
 
QMap< QString, QString > GetDependsMap () const
 
- Public Member Functions inherited from JumpToChannelListener
virtual ~JumpToChannelListener ()=default
 

Static Public Member Functions

static void RunProgramGuide (uint startChanId, const QString &startChanNum, const QDateTime &startTime, TV *player=nullptr, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)
 
- Static Public Member Functions inherited from XMLParseBase
static QString getFirstText (QDomElement &element)
 
static bool parseBool (const QString &text)
 
static bool parseBool (QDomElement &element)
 
static MythPoint parsePoint (const QString &text, bool normalize=true)
 
static MythPoint parsePoint (QDomElement &element, bool normalize=true)
 
static QSize parseSize (const QString &text, bool normalize=true)
 
static QSize parseSize (QDomElement &element, bool normalize=true)
 
static MythRect parseRect (const QString &text, bool normalize=true)
 
static MythRect parseRect (QDomElement &element, bool normalize=true)
 
static int parseAlignment (const QString &text)
 
static int parseAlignment (QDomElement &element)
 
static QBrush parseGradient (const QDomElement &element)
 
static QString parseText (QDomElement &element)
 
static MythUITypeGetGlobalObjectStore (void)
 
static void ClearGlobalObjectStore (void)
 
static void ParseChildren (const QString &filename, QDomElement &element, MythUIType *parent, bool showWarnings)
 
static MythUITypeParseUIType (const QString &filename, QDomElement &element, const QString &type, MythUIType *parent, MythScreenType *screen, bool showWarnings, QMap< QString, QString > &parentDependsMap)
 
static bool WindowExists (const QString &xmlfile, const QString &windowname)
 
static bool LoadWindowFromXML (const QString &xmlfile, const QString &windowname, MythUIType *parent)
 
static bool LoadBaseTheme (void)
 
static bool LoadBaseTheme (const QString &baseTheme)
 
static bool CopyWindowFromBase (const QString &windowname, MythScreenType *win)
 

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 deleteRule ()
 
void Close () override
 
void customEvent (QEvent *event) override
 
- Protected Slots inherited from ScheduleCommon
virtual void EditRecording (bool may_watch_now=false)
 Creates a dialog for editing the recording status, blocking until user leaves dialog. More...
 
virtual void QuickRecord (void)
 Create a kSingleRecord or bring up recording dialog. More...
 
virtual void ShowPrevious (void) const
 Show the previous recordings for this recording rule. More...
 
virtual void ShowPrevious (uint ruleid, const QString &title) const
 Show the previous recordings for this recording rule. More...
 
virtual void ShowUpcoming (void) const
 Show the upcoming recordings for this title. More...
 
virtual void ShowUpcomingScheduled (void) const
 Show the upcoming recordings for this recording rule. More...
 
virtual void ShowChannelSearch (void) const
 Show the channel search. More...
 
virtual void ShowGuide (void) const
 Show the program guide. More...
 
virtual void EditScheduled (void)
 Creates a dialog for editing the recording schedule. More...
 
virtual void EditCustom (void)
 Creates a dialog for creating a custom recording rule. More...
 

Protected Member Functions

 GuideGrid (MythScreenStack *parentStack, uint chanid, const QString &channum, const QDateTime &startTime, TV *player=nullptr, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)
 
 ~GuideGrid ()
 
ProgramInfoGetCurrentProgram (void) const override
 
- Protected Member Functions inherited from ScheduleCommon
 ScheduleCommon (MythScreenStack *parent, const QString &name)
 
 ~ScheduleCommon ()=default
 
void ShowUpcoming (const QString &title, const QString &seriesid) const
 Show the upcoming recordings for this title. More...
 
void EditScheduled (ProgramInfo *pginfo)
 Creates a dialog for editing the recording schedule. More...
 
void EditScheduled (RecordingInfo *recinfo)
 Creates a dialog for editing the recording schedule. More...
 
void MakeOverride (RecordingInfo *recinfo)
 Creates a dialog for editing an override recording schedule. More...
 
void customEvent (QEvent *) override
 
- Protected Member Functions inherited from MythScreenType
 MythScreenType (MythUIType *parent, const QString &name, bool fullscreen=true)
 
void CopyFrom (MythUIType *base) override
 Copy this widgets state from another. More...
 
void CreateCopy (MythUIType *parent) override
 Copy the state of this widget to the one given, it must be of the same type. More...
 
bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings) override
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
void LoadInBackground (QString message="")
 
void ReloadInBackground (void)
 
void OpenBusyPopup (const QString &message="")
 
void CloseBusyPopup (void)
 
void SetBusyPopupMessage (const QString &message)
 
void ResetBusyPopup (void)
 
- Protected Member Functions inherited from MythUIType
virtual ~MythUIType ()
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (QMap< int, MythUIType * > &focusList)
 
void HandleAlphaPulse ()
 Handle one frame of an alpha (transparency) change animation. More...
 
void HandleMovementPulse ()
 Handle one frame of a movement animation. More...
 
int CalcAlpha (int alphamod)
 
int NormX (const int width)
 
int NormY (const int height)
 
void ConnectDependants (bool recurse=false)
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

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

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

int m_selectRecThreshold {16}
 
bool m_allowFinder {false}
 
db_chan_list_list_t m_channelInfos
 
QMap< uint, uintm_channelInfoIdx
 
vector< ProgramList * > m_programs
 
ProgInfoGuideArray m_programInfos
 
ProgramList m_recList
 
QDateTime m_originalStartTime
 
QDateTime m_currentStartTime
 
QDateTime m_currentEndTime
 
uint m_currentStartChannel {0}
 
uint m_startChanID
 
QString m_startChanNum
 
int m_currentRow {0}
 
int m_currentCol {0}
 
bool m_sortReverse {false}
 
int m_channelCount {5}
 
int m_timeCount {30}
 
bool m_verticalLayout {false}
 
QDateTime m_firstTime
 
QDateTime m_lastTime
 
TVm_player {nullptr}
 
bool m_usingNullVideo {false}
 
bool m_embedVideo {false}
 
QTimer * m_previewVideoRefreshTimer {nullptr}
 
QRect m_videoRect
 
QString m_channelOrdering
 
QTimer * m_updateTimer {nullptr}
 
MThreadPool m_threadPool
 
int m_changrpid {-1}
 
ChannelGroupList m_changrplist
 
QMutex m_jumpToChannelLock {QMutex::Recursive}
 
JumpToChannelm_jumpToChannel {nullptr}
 
MythUIButtonListm_timeList {nullptr}
 
MythUIButtonListm_channelList {nullptr}
 
MythUIGuideGridm_guideGrid {nullptr}
 
MythUITextm_dateText {nullptr}
 
MythUITextm_longdateText {nullptr}
 
MythUITextm_jumpToText {nullptr}
 
MythUITextm_changroupname {nullptr}
 
MythUIImagem_channelImage {nullptr}
 

Additional Inherited Members

- Public Slots inherited from ScheduleCommon
virtual void ShowDetails (void) const
 Show the Program Details screen. More...
 
- Public Slots inherited from MythScreenType
virtual void Close ()
 
- Public Slots inherited from MythUIType
void LoseFocus ()
 
bool TakeFocus ()
 
void Activate ()
 
void Hide (void)
 
void Show (void)
 
void Refresh (void)
 
void UpdateDependState (bool isDefault)
 
void UpdateDependState (MythUIType *dependee, bool isDefault)
 
- Signals inherited from MythScreenType
void Exiting ()
 
- Signals inherited from MythUIType
void RequestUpdate ()
 
void RequestUpdate (const QRect &)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 
- Protected Attributes inherited from MythScreenType
bool m_FullScreen {false}
 
bool m_IsDeleting {false}
 
QSemaphore m_LoadLock {1}
 
volatile bool m_IsLoading {false}
 
volatile bool m_IsLoaded {false}
 
bool m_IsInitialized {false}
 
MythUITypem_CurrentFocusWidget {nullptr}
 
QMap< int, MythUIType * > m_FocusWidgetList
 
MythScreenStackm_ScreenStack {nullptr}
 
MythUIBusyDialogm_BusyPopup {nullptr}
 
QRegion m_SavedMask
 
- Protected Attributes inherited from MythUIType
QList< MythUIType * > m_ChildrenList
 
QMap< QString, QString > m_dependsMap
 
QList< QPair< MythUIType *, bool > > m_dependsValue
 
QList< int > m_dependOperator
 
bool m_Visible {true}
 
bool m_HasFocus {false}
 
bool m_CanHaveFocus {false}
 
bool m_Enabled {true}
 
bool m_EnableInitiator {false}
 
bool m_Initiator {false}
 
bool m_Vanish {false}
 
bool m_Vanished {false}
 
bool m_IsDependDefault {false}
 
QMap< MythUIType *, boolm_ReverseDepend
 
int m_focusOrder {0}
 
MythRect m_Area {0,0,0,0}
 
MythRect m_MinArea {0,0,0,0}
 
MythPoint m_MinSize
 
QRegion m_DirtyRegion {0,0,0,0}
 
bool m_NeedsRedraw {false}
 
UIEffects m_Effects
 
int m_AlphaChangeMode {0}
 
int m_AlphaChange {0}
 
int m_AlphaMin {0}
 
int m_AlphaMax {255}
 
bool m_Moving {false}
 
QPoint m_XYDestination {0,0}
 
QPoint m_XYSpeed {0,0}
 
FontMapm_Fonts {nullptr}
 
MythUITypem_Parent {nullptr}
 
MythPainterm_Painter {nullptr}
 
QList< MythUIAnimation * > m_animations
 
QString m_helptext
 
QString m_xmlName
 
QString m_xmlLocation
 
bool m_deferload {false}
 
QColor m_BorderColor {Qt::black}
 

Detailed Description

Definition at line 103 of file guidegrid.h.

Member Enumeration Documentation

◆ MoveVector

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

Definition at line 182 of file guidegrid.h.

Constructor & Destructor Documentation

◆ GuideGrid()

GuideGrid::GuideGrid ( MythScreenStack parentStack,
uint  chanid,
const QString &  channum,
const QDateTime &  startTime,
TV player = nullptr,
bool  embedVideo = false,
bool  allowFinder = true,
int  changrpid = -1 
)
protected

Definition at line 491 of file guidegrid.cpp.

Referenced by RunProgramGuide().

◆ ~GuideGrid()

GuideGrid::~GuideGrid ( )
protected

Definition at line 627 of file guidegrid.cpp.

Member Function Documentation

◆ RunProgramGuide()

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

◆ GetSelection()

ChannelInfoList GuideGrid::GetSelection ( void  ) const

Definition at line 1273 of file guidegrid.cpp.

Referenced by channelUpdate(), customEvent(), keyPressEvent(), and ShowMenu().

◆ GoTo()

void GuideGrid::GoTo ( int  start,
int  cur_row 
)
overridevirtual

Implements JumpToChannelListener.

Definition at line 2622 of file guidegrid.cpp.

◆ SetJumpToChannel()

void GuideGrid::SetJumpToChannel ( JumpToChannel ptr)
overridevirtual

Implements JumpToChannelListener.

Definition at line 2647 of file guidegrid.cpp.

◆ Create()

bool GuideGrid::Create ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 534 of file guidegrid.cpp.

Referenced by RunProgramGuide().

◆ Load()

void GuideGrid::Load ( void  )
overridevirtual

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 579 of file guidegrid.cpp.

◆ Init()

void GuideGrid::Init ( void  )
overridevirtual

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 604 of file guidegrid.cpp.

◆ keyPressEvent()

bool GuideGrid::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 670 of file guidegrid.cpp.

◆ gestureEvent()

bool GuideGrid::gestureEvent ( MythGestureEvent event)
overridevirtual

Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.

Should not be used directly.

Parameters
eventMouse event

Reimplemented from MythScreenType.

Definition at line 858 of file guidegrid.cpp.

◆ aboutToShow()

void GuideGrid::aboutToShow ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 2702 of file guidegrid.cpp.

◆ aboutToHide()

void GuideGrid::aboutToHide ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 2694 of file guidegrid.cpp.

◆ GetCurrentStartChannel()

uint GuideGrid::GetCurrentStartChannel ( void  ) const
inline

◆ GetCurrentStartTime()

QDateTime GuideGrid::GetCurrentStartTime ( void  ) const
inline

Definition at line 134 of file guidegrid.h.

Referenced by GuideUpdateProgramRow::ExecuteNonUI().

◆ cursorLeft

void GuideGrid::cursorLeft ( )
protectedslot

Definition at line 2360 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorRight

void GuideGrid::cursorRight ( )
protectedslot

Definition at line 2384 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorDown

void GuideGrid::cursorDown ( )
protectedslot

Definition at line 2410 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorUp

void GuideGrid::cursorUp ( )
protectedslot

Definition at line 2425 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ toggleGuideListing

void GuideGrid::toggleGuideListing ( )
protectedslot

Definition at line 2234 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ toggleChannelFavorite

void GuideGrid::toggleChannelFavorite ( int  grpid = -1)
protectedslot

Definition at line 2318 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ ChannelGroupMenu

void GuideGrid::ChannelGroupMenu ( int  mode = 0)
protectedslot

Definition at line 2266 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ generateListings

void GuideGrid::generateListings ( )
protectedslot

◆ enter

void GuideGrid::enter ( )
protectedslot

Definition at line 2523 of file guidegrid.cpp.

Referenced by customEvent(), gestureEvent(), and keyPressEvent().

◆ showProgFinder

void GuideGrid::showProgFinder ( )
protectedslot

Definition at line 2517 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ channelUpdate

void GuideGrid::channelUpdate ( void  )
protectedslot

Definition at line 2587 of file guidegrid.cpp.

Referenced by enter(), and keyPressEvent().

◆ volumeUpdate

void GuideGrid::volumeUpdate ( bool  up)
protectedslot

Definition at line 2602 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ toggleMute

void GuideGrid::toggleMute ( const bool  muteIndividualChannels = false)
protectedslot

Definition at line 2612 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ deleteRule

void GuideGrid::deleteRule ( void  )
protectedslot

Definition at line 2556 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ Close

void GuideGrid::Close ( void  )
overrideprotectedslot

Definition at line 2538 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ customEvent

void GuideGrid::customEvent ( QEvent *  event)
overrideprotectedslot

Definition at line 1861 of file guidegrid.cpp.

◆ GetCurrentProgram()

ProgramInfo* GuideGrid::GetCurrentProgram ( void  ) const
inlineoverrideprotectedvirtual

Reimplemented from ScheduleCommon.

Definition at line 168 of file guidegrid.h.

◆ updateTimeout

void GuideGrid::updateTimeout ( void  )
privateslot

Definition at line 1350 of file guidegrid.cpp.

Referenced by GuideGrid().

◆ refreshVideo

void GuideGrid::refreshVideo ( void  )
privateslot

Definition at line 2686 of file guidegrid.cpp.

Referenced by GuideGrid().

◆ updateInfo

void GuideGrid::updateInfo ( void  )
privateslot

◆ updateChannels

void GuideGrid::updateChannels ( void  )
privateslot

◆ updateJumpToChannel

void GuideGrid::updateJumpToChannel ( void  )
privateslot

Definition at line 2631 of file guidegrid.cpp.

Referenced by GoTo(), and keyPressEvent().

◆ Q_DISABLE_COPY()

GuideGrid::Q_DISABLE_COPY ( GuideGrid  )
private

◆ moveLeftRight()

void GuideGrid::moveLeftRight ( MoveVector  movement)
private

Definition at line 2440 of file guidegrid.cpp.

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

◆ moveUpDown()

void GuideGrid::moveUpDown ( MoveVector  movement)
private

Definition at line 2471 of file guidegrid.cpp.

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

◆ moveToTime()

void GuideGrid::moveToTime ( const QDateTime &  datetime)
private

Definition at line 2495 of file guidegrid.cpp.

Referenced by customEvent().

◆ ShowMenu()

void GuideGrid::ShowMenu ( void  )
overrideprivatevirtual

Reimplemented from MythScreenType.

Definition at line 1069 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ ShowRecordingMenu()

void GuideGrid::ShowRecordingMenu ( void  )
private

Definition at line 1116 of file guidegrid.cpp.

Referenced by customEvent().

◆ ShowJumpToTime()

void GuideGrid::ShowJumpToTime ( void  )
private

Definition at line 2710 of file guidegrid.cpp.

Referenced by customEvent().

◆ FindChannel()

int GuideGrid::FindChannel ( uint  chanid,
const QString &  channum,
bool  exact = true 
) const
overrideprivatevirtual

Implements JumpToChannelListener.

Definition at line 1434 of file guidegrid.cpp.

Referenced by fillChannelInfos(), and keyPressEvent().

◆ fillChannelInfos()

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

Definition at line 1357 of file guidegrid.cpp.

Referenced by generateListings(), and Load().

◆ fillTimeInfos()

void GuideGrid::fillTimeInfos ( void  )
private

Definition at line 1497 of file guidegrid.cpp.

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

◆ fillProgramInfos()

void GuideGrid::fillProgramInfos ( bool  useExistingData = false)
private

◆ fillProgramRowInfos()

void GuideGrid::fillProgramRowInfos ( int  row,
bool  useExistingData 
)
private

Definition at line 1561 of file guidegrid.cpp.

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

◆ getProgramListFromProgram()

ProgramList * GuideGrid::getProgramListFromProgram ( int  chanNum)

Definition at line 1537 of file guidegrid.cpp.

Referenced by GuideUpdateProgramRow::ExecuteNonUI(), and Load().

◆ updateProgramsUI()

void GuideGrid::updateProgramsUI ( unsigned int  firstRow,
unsigned int  numRows,
int  progPast,
const QVector< ProgramList * > &  proglists,
const ProgInfoGuideArray programInfos,
const QLinkedList< GuideUIElement > &  elements 
)

Definition at line 2044 of file guidegrid.cpp.

Referenced by GuideUpdateProgramRow::ExecuteUI().

◆ updateChannelsNonUI()

void GuideGrid::updateChannelsNonUI ( QVector< ChannelInfo * > &  chinfos,
QVector< bool > &  unavailables 
)

Definition at line 2086 of file guidegrid.cpp.

Referenced by GuideUpdateChannels::ExecuteNonUI().

◆ updateChannelsUI()

void GuideGrid::updateChannelsUI ( const QVector< ChannelInfo * > &  chinfos,
const QVector< bool > &  unavailables 
)

Definition at line 2138 of file guidegrid.cpp.

Referenced by GuideUpdateChannels::ExecuteUI().

◆ setStartChannel()

void GuideGrid::setStartChannel ( int  newStartChannel)
private

Definition at line 2507 of file guidegrid.cpp.

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

◆ GetChannelInfo() [1/2]

ChannelInfo * GuideGrid::GetChannelInfo ( uint  chan_idx,
int  sel = -1 
)
private

◆ GetChannelInfo() [2/2]

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

Definition at line 1161 of file guidegrid.cpp.

◆ GetChannelCount()

uint GuideGrid::GetChannelCount ( void  ) const
private

◆ GetStartChannelOffset()

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

Definition at line 1171 of file guidegrid.cpp.

Referenced by GetSelection().

◆ GetProgramList()

ProgramList GuideGrid::GetProgramList ( uint  chanid) const
private

Definition at line 1181 of file guidegrid.cpp.

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

◆ GetAlternateChannelIndex()

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

Definition at line 1214 of file guidegrid.cpp.

Referenced by updateChannelsNonUI().

◆ updateDateText()

void GuideGrid::updateDateText ( void  )
private

Definition at line 2035 of file guidegrid.cpp.

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

◆ EmbedTVWindow()

void GuideGrid::EmbedTVWindow ( void  )
private

Definition at line 2666 of file guidegrid.cpp.

Referenced by aboutToShow().

◆ HideTVWindow()

void GuideGrid::HideTVWindow ( void  )
private

Definition at line 2661 of file guidegrid.cpp.

Referenced by aboutToHide().

Member Data Documentation

◆ m_selectRecThreshold

int GuideGrid::m_selectRecThreshold {16}
private

Definition at line 237 of file guidegrid.h.

Referenced by gestureEvent(), and keyPressEvent().

◆ m_allowFinder

bool GuideGrid::m_allowFinder {false}
private

Definition at line 239 of file guidegrid.h.

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

◆ m_channelInfos

db_chan_list_list_t GuideGrid::m_channelInfos
private

◆ m_channelInfoIdx

QMap<uint,uint> GuideGrid::m_channelInfoIdx
private

◆ m_programs

vector<ProgramList*> GuideGrid::m_programs
private

Definition at line 243 of file guidegrid.h.

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

◆ m_programInfos

ProgInfoGuideArray GuideGrid::m_programInfos
private

◆ m_recList

ProgramList GuideGrid::m_recList
private

Definition at line 245 of file guidegrid.h.

Referenced by customEvent(), generateListings(), getProgramListFromProgram(), and Load().

◆ m_originalStartTime

QDateTime GuideGrid::m_originalStartTime
private

Definition at line 247 of file guidegrid.h.

Referenced by GuideGrid().

◆ m_currentStartTime

QDateTime GuideGrid::m_currentStartTime
private

◆ m_currentEndTime

QDateTime GuideGrid::m_currentEndTime
private

◆ m_currentStartChannel

uint GuideGrid::m_currentStartChannel {0}
private

◆ m_startChanID

uint GuideGrid::m_startChanID
private

Definition at line 251 of file guidegrid.h.

Referenced by fillChannelInfos().

◆ m_startChanNum

QString GuideGrid::m_startChanNum
private

Definition at line 252 of file guidegrid.h.

Referenced by fillChannelInfos().

◆ m_currentRow

int GuideGrid::m_currentRow {0}
private

◆ m_currentCol

int GuideGrid::m_currentCol {0}
private

◆ m_sortReverse

bool GuideGrid::m_sortReverse {false}
private

Definition at line 257 of file guidegrid.h.

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

◆ m_channelCount

int GuideGrid::m_channelCount {5}
private

◆ m_timeCount

int GuideGrid::m_timeCount {30}
private

Definition at line 260 of file guidegrid.h.

Referenced by Create(), cursorRight(), fillProgramRowInfos(), fillTimeInfos(), and moveLeftRight().

◆ m_verticalLayout

bool GuideGrid::m_verticalLayout {false}
private

Definition at line 261 of file guidegrid.h.

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

◆ m_firstTime

QDateTime GuideGrid::m_firstTime
private

Definition at line 263 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

◆ m_lastTime

QDateTime GuideGrid::m_lastTime
private

Definition at line 264 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

◆ m_player

TV* GuideGrid::m_player {nullptr}
private

◆ m_usingNullVideo

bool GuideGrid::m_usingNullVideo {false}
private

Definition at line 267 of file guidegrid.h.

Referenced by EmbedTVWindow(), and refreshVideo().

◆ m_embedVideo

bool GuideGrid::m_embedVideo {false}
private

Definition at line 268 of file guidegrid.h.

Referenced by Create(), and showProgFinder().

◆ m_previewVideoRefreshTimer

QTimer* GuideGrid::m_previewVideoRefreshTimer {nullptr}
private

Definition at line 269 of file guidegrid.h.

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

◆ m_videoRect

QRect GuideGrid::m_videoRect
private

Definition at line 272 of file guidegrid.h.

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

◆ m_channelOrdering

QString GuideGrid::m_channelOrdering
private

Definition at line 274 of file guidegrid.h.

Referenced by fillChannelInfos().

◆ m_updateTimer

QTimer* GuideGrid::m_updateTimer {nullptr}
private

Definition at line 276 of file guidegrid.h.

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

◆ m_threadPool

MThreadPool GuideGrid::m_threadPool
private

Definition at line 278 of file guidegrid.h.

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

◆ m_changrpid

int GuideGrid::m_changrpid {-1}
private

◆ m_changrplist

ChannelGroupList GuideGrid::m_changrplist
private

Definition at line 281 of file guidegrid.h.

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

◆ m_jumpToChannelLock

QMutex GuideGrid::m_jumpToChannelLock {QMutex::Recursive}
private

Definition at line 283 of file guidegrid.h.

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

◆ m_jumpToChannel

JumpToChannel* GuideGrid::m_jumpToChannel {nullptr}
private

Definition at line 284 of file guidegrid.h.

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

◆ m_timeList

MythUIButtonList* GuideGrid::m_timeList {nullptr}
private

Definition at line 286 of file guidegrid.h.

Referenced by Create(), and fillTimeInfos().

◆ m_channelList

MythUIButtonList* GuideGrid::m_channelList {nullptr}
private

Definition at line 287 of file guidegrid.h.

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

◆ m_guideGrid

MythUIGuideGrid* GuideGrid::m_guideGrid {nullptr}
private

◆ m_dateText

MythUIText* GuideGrid::m_dateText {nullptr}
private

Definition at line 289 of file guidegrid.h.

Referenced by Create(), and updateDateText().

◆ m_longdateText

MythUIText* GuideGrid::m_longdateText {nullptr}
private

Definition at line 290 of file guidegrid.h.

Referenced by Create(), and updateDateText().

◆ m_jumpToText

MythUIText* GuideGrid::m_jumpToText {nullptr}
private

Definition at line 291 of file guidegrid.h.

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

◆ m_changroupname

MythUIText* GuideGrid::m_changroupname {nullptr}
private

Definition at line 292 of file guidegrid.h.

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

◆ m_channelImage

MythUIImage* GuideGrid::m_channelImage {nullptr}
private

Definition at line 293 of file guidegrid.h.

Referenced by Create(), and updateInfo().


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