MythTV  master
Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions | Private Types | Private Slots | Private Member Functions | Static 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 Slots

void PlayerExiting (TV *Player)
 
- 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

void ChangeVolume (bool Up, int NewVolume=-1)
 
void ToggleMute (bool CycleChannels)
 
- Signals inherited from MythScreenType
void Exiting ()
 
- Signals inherited from MythUIType
void RequestUpdate ()
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus ()
 
void LosingFocus ()
 
void VisibilityChanged (bool Visible)
 
void Showing ()
 
void Hiding ()
 
void Enabling ()
 
void Disabling ()
 
void FinishedMoving ()
 
void FinishedFading ()
 
void DependChanged (bool isDefault)
 

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 std::list< 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)
 
 ~MythScreenType () override
 
bool inputMethodEvent (QInputMethodEvent *event) override
 Input Method event handler. More...
 
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) const
 
bool IsLoaded (void) const
 
MythPainterGetPainter (void) override
 
- Public Member Functions inherited from MythUIComposite
 MythUIComposite (QObject *parent, const QString &name)
 
 ~MythUIComposite () override=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 (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...
 
QList< MythUIType * > GetAllDescendants (void)
 
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 order)
 
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...
 
void SetPosition (QPoint point)
 
virtual void SetPosition (const MythPoint &point)
 
virtual MythPoint GetPosition (void) const
 
virtual void SetSize (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 (QRect 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 (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 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 EditRecording (MythUIButtonListItem *)
 
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, QString channum, const QDateTime &startTime, TV *player=nullptr, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)
 
 ~GuideGrid () override
 
ProgramInfoGetCurrentProgram (void) const override
 
- Protected Member Functions inherited from ScheduleCommon
 ScheduleCommon (MythScreenStack *parent, const QString &name)
 
 ~ScheduleCommon () override=default
 
void customEvent (QEvent *event) 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 (const 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
 ~MythUIType () override
 
void customEvent (QEvent *event) override
 
virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
 
void AddFocusableChildrenToList (FocusInfoType &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) const
 
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 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)
 

Static Private Member Functions

static void HideTVWindow (void)
 

Private Attributes

std::chrono::minutes m_selectRecThreshold {16min}
 
bool m_allowFinder {false}
 
db_chan_list_list_t m_channelInfos
 
QMap< uint, uintm_channelInfoIdx
 
std::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_embedVideo {false}
 
QRect m_videoRect
 
QString m_channelOrdering
 
QTimer * m_updateTimer {nullptr}
 
MThreadPool m_threadPool
 
int m_changrpid {-1}
 
ChannelGroupList m_changrplist
 
ChannelGroupList m_channelGroupListManual
 
QRecursiveMutex m_jumpToChannelLock
 
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

- Static Protected Member Functions inherited from ScheduleCommon
static void ShowUpcoming (const QString &title, const QString &seriesid)
 Show the upcoming recordings for this title. More...
 
static void EditScheduled (ProgramInfo *pginfo)
 Creates a dialog for editing the recording schedule. More...
 
static void EditScheduled (RecordingInfo *recinfo)
 Creates a dialog for editing the recording schedule. More...
 
static void MakeOverride (RecordingInfo *recinfo)
 Creates a dialog for editing an override recording schedule. More...
 
- Static Protected Member Functions inherited from MythUIType
static int NormX (int width)
 
static int NormY (int height)
 
- 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}
 
FocusInfoType 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 101 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 185 of file guidegrid.h.

Constructor & Destructor Documentation

◆ GuideGrid()

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

Definition at line 486 of file guidegrid.cpp.

Referenced by RunProgramGuide().

◆ ~GuideGrid()

GuideGrid::~GuideGrid ( )
overrideprotected

Definition at line 633 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 1270 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 2595 of file guidegrid.cpp.

◆ SetJumpToChannel()

void GuideGrid::SetJumpToChannel ( JumpToChannel ptr)
overridevirtual

Implements JumpToChannelListener.

Definition at line 2620 of file guidegrid.cpp.

◆ Create()

bool GuideGrid::Create ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 540 of file guidegrid.cpp.

◆ 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 585 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 610 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 859 of file guidegrid.cpp.

◆ aboutToShow()

void GuideGrid::aboutToShow ( )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 2655 of file guidegrid.cpp.

◆ aboutToHide()

void GuideGrid::aboutToHide ( )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 2647 of file guidegrid.cpp.

◆ GetCurrentStartChannel()

uint GuideGrid::GetCurrentStartChannel ( void  ) const
inline

◆ GetCurrentStartTime()

QDateTime GuideGrid::GetCurrentStartTime ( void  ) const
inline

Definition at line 132 of file guidegrid.h.

Referenced by GuideUpdateProgramRow::ExecuteNonUI().

◆ PlayerExiting

void GuideGrid::PlayerExiting ( TV Player)
slot

Definition at line 529 of file guidegrid.cpp.

Referenced by GuideGrid().

◆ ChangeVolume

void GuideGrid::ChangeVolume ( bool  Up,
int  NewVolume = -1 
)
signal

Referenced by GuideGrid(), and keyPressEvent().

◆ ToggleMute

void GuideGrid::ToggleMute ( bool  CycleChannels)
signal

Referenced by GuideGrid(), and keyPressEvent().

◆ cursorLeft

void GuideGrid::cursorLeft ( )
protectedslot

Definition at line 2354 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorRight

void GuideGrid::cursorRight ( )
protectedslot

Definition at line 2378 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorDown

void GuideGrid::cursorDown ( )
protectedslot

Definition at line 2404 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorUp

void GuideGrid::cursorUp ( )
protectedslot

Definition at line 2419 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ toggleGuideListing

void GuideGrid::toggleGuideListing ( )
protectedslot

Definition at line 2217 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ toggleChannelFavorite

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

Definition at line 2307 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ ChannelGroupMenu

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

Definition at line 2252 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ generateListings

void GuideGrid::generateListings ( )
protectedslot

◆ enter

void GuideGrid::enter ( )
protectedslot

Definition at line 2517 of file guidegrid.cpp.

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

◆ showProgFinder

void GuideGrid::showProgFinder ( )
protectedslot

Definition at line 2511 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ channelUpdate

void GuideGrid::channelUpdate ( )
protectedslot

Definition at line 2580 of file guidegrid.cpp.

Referenced by enter(), and keyPressEvent().

◆ deleteRule

void GuideGrid::deleteRule ( )
protectedslot

Definition at line 2550 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ Close

void GuideGrid::Close ( )
overrideprotectedslot

Definition at line 2532 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ customEvent

void GuideGrid::customEvent ( QEvent *  event)
overrideprotectedslot

Definition at line 1854 of file guidegrid.cpp.

◆ GetCurrentProgram()

ProgramInfo* GuideGrid::GetCurrentProgram ( void  ) const
inlineoverrideprotectedvirtual

Reimplemented from ScheduleCommon.

Definition at line 171 of file guidegrid.h.

◆ updateTimeout

void GuideGrid::updateTimeout ( void  )
privateslot

Definition at line 1347 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 2604 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 2434 of file guidegrid.cpp.

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

◆ moveUpDown()

void GuideGrid::moveUpDown ( MoveVector  movement)
private

Definition at line 2465 of file guidegrid.cpp.

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

◆ moveToTime()

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

Definition at line 2489 of file guidegrid.cpp.

Referenced by customEvent().

◆ ShowMenu()

void GuideGrid::ShowMenu ( void  )
overrideprivatevirtual

Reimplemented from MythScreenType.

Definition at line 1065 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ ShowRecordingMenu()

void GuideGrid::ShowRecordingMenu ( void  )
private

Definition at line 1111 of file guidegrid.cpp.

Referenced by customEvent().

◆ ShowJumpToTime()

void GuideGrid::ShowJumpToTime ( void  )
private

Definition at line 2663 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 1431 of file guidegrid.cpp.

Referenced by fillChannelInfos(), and keyPressEvent().

◆ fillChannelInfos()

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

Definition at line 1354 of file guidegrid.cpp.

Referenced by generateListings(), and Load().

◆ fillTimeInfos()

void GuideGrid::fillTimeInfos ( void  )
private

Definition at line 1491 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 1554 of file guidegrid.cpp.

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

◆ getProgramListFromProgram()

ProgramList * GuideGrid::getProgramListFromProgram ( int  chanNum)

Definition at line 1530 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 std::list< GuideUIElement > &  elements 
)

Definition at line 2030 of file guidegrid.cpp.

Referenced by GuideUpdateProgramRow::ExecuteUI().

◆ updateChannelsNonUI()

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

Definition at line 2069 of file guidegrid.cpp.

Referenced by GuideUpdateChannels::ExecuteNonUI().

◆ updateChannelsUI()

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

Definition at line 2122 of file guidegrid.cpp.

Referenced by GuideUpdateChannels::ExecuteUI().

◆ setStartChannel()

void GuideGrid::setStartChannel ( int  newStartChannel)
private

Definition at line 2501 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 1155 of file guidegrid.cpp.

◆ GetChannelCount()

uint GuideGrid::GetChannelCount ( void  ) const
private

◆ GetStartChannelOffset()

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

Definition at line 1165 of file guidegrid.cpp.

Referenced by GetSelection().

◆ GetProgramList()

ProgramList GuideGrid::GetProgramList ( uint  chanid) const
private

Definition at line 1175 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 1208 of file guidegrid.cpp.

Referenced by updateChannelsNonUI().

◆ updateDateText()

void GuideGrid::updateDateText ( void  )
private

Definition at line 2021 of file guidegrid.cpp.

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

◆ EmbedTVWindow()

void GuideGrid::EmbedTVWindow ( void  )
private

Definition at line 2639 of file guidegrid.cpp.

Referenced by aboutToShow().

◆ HideTVWindow()

void GuideGrid::HideTVWindow ( void  )
staticprivate

Definition at line 2634 of file guidegrid.cpp.

Referenced by aboutToHide(), and PlayerExiting().

Member Data Documentation

◆ m_selectRecThreshold

std::chrono::minutes GuideGrid::m_selectRecThreshold {16min}
private

Definition at line 240 of file guidegrid.h.

Referenced by gestureEvent(), and keyPressEvent().

◆ m_allowFinder

bool GuideGrid::m_allowFinder {false}
private

Definition at line 242 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

std::vector<ProgramList*> GuideGrid::m_programs
private

Definition at line 246 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 248 of file guidegrid.h.

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

◆ m_originalStartTime

QDateTime GuideGrid::m_originalStartTime
private

Definition at line 250 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 254 of file guidegrid.h.

Referenced by fillChannelInfos().

◆ m_startChanNum

QString GuideGrid::m_startChanNum
private

Definition at line 255 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 260 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 263 of file guidegrid.h.

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

◆ m_verticalLayout

bool GuideGrid::m_verticalLayout {false}
private

Definition at line 264 of file guidegrid.h.

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

◆ m_firstTime

QDateTime GuideGrid::m_firstTime
private

Definition at line 266 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

◆ m_lastTime

QDateTime GuideGrid::m_lastTime
private

Definition at line 267 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

◆ m_player

TV* GuideGrid::m_player {nullptr}
private

◆ m_embedVideo

bool GuideGrid::m_embedVideo {false}
private

Definition at line 270 of file guidegrid.h.

Referenced by Create(), and showProgFinder().

◆ m_videoRect

QRect GuideGrid::m_videoRect
private

Definition at line 273 of file guidegrid.h.

Referenced by Create(), and EmbedTVWindow().

◆ m_channelOrdering

QString GuideGrid::m_channelOrdering
private

Definition at line 275 of file guidegrid.h.

Referenced by fillChannelInfos().

◆ m_updateTimer

QTimer* GuideGrid::m_updateTimer {nullptr}
private

Definition at line 277 of file guidegrid.h.

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

◆ m_threadPool

MThreadPool GuideGrid::m_threadPool
private

Definition at line 279 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 282 of file guidegrid.h.

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

◆ m_channelGroupListManual

ChannelGroupList GuideGrid::m_channelGroupListManual
private

Definition at line 283 of file guidegrid.h.

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

◆ m_jumpToChannelLock

QRecursiveMutex GuideGrid::m_jumpToChannelLock
private

Definition at line 285 of file guidegrid.h.

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

◆ m_jumpToChannel

JumpToChannel* GuideGrid::m_jumpToChannel {nullptr}
private

Definition at line 286 of file guidegrid.h.

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

◆ m_timeList

MythUIButtonList* GuideGrid::m_timeList {nullptr}
private

Definition at line 288 of file guidegrid.h.

Referenced by Create(), and fillTimeInfos().

◆ m_channelList

MythUIButtonList* GuideGrid::m_channelList {nullptr}
private

Definition at line 289 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 291 of file guidegrid.h.

Referenced by Create(), and updateDateText().

◆ m_longdateText

MythUIText* GuideGrid::m_longdateText {nullptr}
private

Definition at line 292 of file guidegrid.h.

Referenced by Create(), and updateDateText().

◆ m_jumpToText

MythUIText* GuideGrid::m_jumpToText {nullptr}
private

Definition at line 293 of file guidegrid.h.

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

◆ m_changroupname

MythUIText* GuideGrid::m_changroupname {nullptr}
private

Definition at line 294 of file guidegrid.h.

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

◆ m_channelImage

MythUIImage* GuideGrid::m_channelImage {nullptr}
private

Definition at line 295 of file guidegrid.h.

Referenced by Create(), and updateInfo().


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