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 <mythfrontend/guidegrid.h>

Inheritance diagram for GuideGrid:
[legend]
Collaboration diagram for GuideGrid:
[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 (void)
 
bool TakeFocus (void)
 
void Activate (void)
 
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)
 
void RequestRegionUpdate (const QRect &)
 
void TakingFocus (void)
 
void LosingFocus (void)
 
void VisibilityChanged (bool Visible)
 
void Showing (void)
 
void Hiding (void)
 
void Enabling (void)
 
void Disabling (void)
 
void FinishedMoving (void)
 
void FinishedFading (void)
 
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
 
virtual bool Create (void)
 
bool keyPressEvent (QKeyEvent *event) override
 Key event handler. More...
 
bool inputMethodEvent (QInputMethodEvent *event) override
 Input Method event handler. More...
 
bool gestureEvent (MythGestureEvent *event) override
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
virtual void ShowMenu (void)
 
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
 
virtual void aboutToHide (void)
 
virtual void aboutToShow (void)
 
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)
 
void SetFocusedName (const QString &widgetname)
 
QString GetFocusedName (void) const
 
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 bool keyPressEvent (QKeyEvent *event)
 Key event handler. More...
 
virtual bool inputMethodEvent (QInputMethodEvent *event)
 Input Method event handler. More...
 
virtual bool gestureEvent (MythGestureEvent *event)
 Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. More...
 
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...
 
virtual MythPainterGetPainter (void)
 
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
 
virtual void GoTo (int start, int cur_row)=0
 
virtual void SetJumpToChannel (JumpToChannel *ptr)=0
 
virtual int FindChannel (uint chanid, const QString &channum, bool exact=true) const =0
 

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
 
virtual void AddGroupMenuItems (MythMenu *sortGroupMenu)
 
void customEvent (QEvent *event) override
 
virtual ProgramInfoGetCurrentProgram (void) const
 
- 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...
 
virtual void Load (void)
 Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (See Warning) More...
 
virtual void Init (void)
 Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in Load() 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 bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings)
 Parse the xml definition of this widget setting the state of the object accordingly. More...
 
virtual void CopyFrom (MythUIType *base)
 Copy this widgets state from another. More...
 
virtual void CreateCopy (MythUIType *parent)
 Copy the state of this widget to the one given, it must be of the same type. More...
 
virtual void Finalize (void)
 Perform any post-xml parsing initialisation tasks. More...
 

Private Types

enum  MoveVector : std::uint8_t {
  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 ProgGroupBy::Type GetProgramListGroupBy (void)
 
- 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
 
QString m_focusedName
 
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 : std::uint8_t
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 632 of file guidegrid.cpp.

Member Function Documentation

◆ aboutToHide()

void GuideGrid::aboutToHide ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 2687 of file guidegrid.cpp.

◆ aboutToShow()

void GuideGrid::aboutToShow ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 2695 of file guidegrid.cpp.

◆ ChangeVolume

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

Referenced by GuideGrid(), and keyPressEvent().

◆ ChannelGroupMenu

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

Definition at line 2293 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ channelUpdate

void GuideGrid::channelUpdate ( void  )
protectedslot

Definition at line 2620 of file guidegrid.cpp.

Referenced by enter(), and keyPressEvent().

◆ Close

void GuideGrid::Close ( void  )
overrideprotectedslot

Definition at line 2572 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ Create()

bool GuideGrid::Create ( void  )
overridevirtual

Reimplemented from MythScreenType.

Definition at line 540 of file guidegrid.cpp.

◆ cursorDown

void GuideGrid::cursorDown ( )
protectedslot

Definition at line 2444 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorLeft

void GuideGrid::cursorLeft ( )
protectedslot

Definition at line 2394 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorRight

void GuideGrid::cursorRight ( )
protectedslot

Definition at line 2418 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ cursorUp

void GuideGrid::cursorUp ( )
protectedslot

Definition at line 2459 of file guidegrid.cpp.

Referenced by gestureEvent(), and keyPressEvent().

◆ customEvent

void GuideGrid::customEvent ( QEvent *  event)
overrideprotectedslot

Definition at line 1894 of file guidegrid.cpp.

◆ deleteRule

void GuideGrid::deleteRule ( void  )
protectedslot

Definition at line 2590 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ EmbedTVWindow()

void GuideGrid::EmbedTVWindow ( void  )
private

Definition at line 2679 of file guidegrid.cpp.

Referenced by aboutToShow().

◆ enter

void GuideGrid::enter ( )
protectedslot

Definition at line 2557 of file guidegrid.cpp.

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

◆ fillChannelInfos()

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

Definition at line 1393 of file guidegrid.cpp.

Referenced by generateListings(), and Load().

◆ fillProgramInfos()

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

◆ fillProgramRowInfos()

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

Definition at line 1594 of file guidegrid.cpp.

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

◆ fillTimeInfos()

void GuideGrid::fillTimeInfos ( void  )
private

Definition at line 1530 of file guidegrid.cpp.

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

◆ FindChannel()

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

Implements JumpToChannelListener.

Definition at line 1470 of file guidegrid.cpp.

Referenced by fillChannelInfos(), and keyPressEvent().

◆ generateListings

void GuideGrid::generateListings ( )
protectedslot

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

◆ GetAlternateChannelIndex()

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

Definition at line 1247 of file guidegrid.cpp.

Referenced by updateChannelsNonUI().

◆ GetChannelCount()

uint GuideGrid::GetChannelCount ( void  ) const
private

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

◆ GetCurrentProgram()

ProgramInfo * GuideGrid::GetCurrentProgram ( void  ) const
inlineoverrideprotectedvirtual

Reimplemented from ScheduleCommon.

Definition at line 171 of file guidegrid.h.

◆ 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().

◆ GetProgramList()

ProgramList GuideGrid::GetProgramList ( uint  chanid) const
private

Definition at line 1214 of file guidegrid.cpp.

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

◆ getProgramListFromProgram()

ProgramList * GuideGrid::getProgramListFromProgram ( int  chanNum)

Definition at line 1569 of file guidegrid.cpp.

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

◆ GetSelection()

ChannelInfoList GuideGrid::GetSelection ( void  ) const

Definition at line 1309 of file guidegrid.cpp.

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

◆ GetStartChannelOffset()

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

Definition at line 1204 of file guidegrid.cpp.

Referenced by GetSelection().

◆ GoTo()

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

Implements JumpToChannelListener.

Definition at line 2635 of file guidegrid.cpp.

◆ HideTVWindow()

void GuideGrid::HideTVWindow ( void  )
staticprivate

Definition at line 2674 of file guidegrid.cpp.

Referenced by aboutToHide(), and PlayerExiting().

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

◆ keyPressEvent()

bool GuideGrid::keyPressEvent ( QKeyEvent *  event)
overridevirtual

Key event handler.

Parameters
eventKeypress event

Reimplemented from MythScreenType.

Definition at line 669 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.

◆ moveLeftRight()

void GuideGrid::moveLeftRight ( MoveVector  movement)
private

Definition at line 2474 of file guidegrid.cpp.

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

◆ moveToTime()

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

Definition at line 2529 of file guidegrid.cpp.

Referenced by customEvent().

◆ moveUpDown()

void GuideGrid::moveUpDown ( MoveVector  movement)
private

Definition at line 2505 of file guidegrid.cpp.

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

◆ PlayerExiting

void GuideGrid::PlayerExiting ( TV Player)
slot

Definition at line 529 of file guidegrid.cpp.

Referenced by GuideGrid().

◆ Q_DISABLE_COPY()

GuideGrid::Q_DISABLE_COPY ( GuideGrid  )
private

◆ 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

◆ SetJumpToChannel()

void GuideGrid::SetJumpToChannel ( JumpToChannel ptr)
overridevirtual

Implements JumpToChannelListener.

Definition at line 2660 of file guidegrid.cpp.

◆ setStartChannel()

void GuideGrid::setStartChannel ( int  newStartChannel)
private

Definition at line 2541 of file guidegrid.cpp.

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

◆ ShowJumpToTime()

void GuideGrid::ShowJumpToTime ( void  )
private

Definition at line 2703 of file guidegrid.cpp.

Referenced by customEvent().

◆ ShowMenu()

void GuideGrid::ShowMenu ( void  )
overrideprivatevirtual

Reimplemented from MythScreenType.

Definition at line 1104 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ showProgFinder

void GuideGrid::showProgFinder ( )
protectedslot

Definition at line 2551 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ ShowRecordingMenu()

void GuideGrid::ShowRecordingMenu ( void  )
private

Definition at line 1150 of file guidegrid.cpp.

Referenced by customEvent().

◆ toggleChannelFavorite

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

Definition at line 2348 of file guidegrid.cpp.

Referenced by customEvent(), and keyPressEvent().

◆ toggleGuideListing

void GuideGrid::toggleGuideListing ( )
protectedslot

Definition at line 2258 of file guidegrid.cpp.

Referenced by keyPressEvent().

◆ ToggleMute

void GuideGrid::ToggleMute ( bool  CycleChannels)
signal

Referenced by GuideGrid(), and keyPressEvent().

◆ updateChannels

void GuideGrid::updateChannels ( void  )
privateslot

◆ updateChannelsNonUI()

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

Definition at line 2111 of file guidegrid.cpp.

Referenced by GuideUpdateChannels::ExecuteNonUI().

◆ updateChannelsUI()

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

Definition at line 2164 of file guidegrid.cpp.

Referenced by GuideUpdateChannels::ExecuteUI().

◆ updateDateText()

void GuideGrid::updateDateText ( void  )
private

Definition at line 2063 of file guidegrid.cpp.

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

◆ updateInfo

void GuideGrid::updateInfo ( void  )
privateslot

◆ updateJumpToChannel

void GuideGrid::updateJumpToChannel ( void  )
privateslot

Definition at line 2644 of file guidegrid.cpp.

Referenced by GoTo(), and keyPressEvent().

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

Referenced by GuideUpdateProgramRow::ExecuteUI().

◆ updateTimeout

void GuideGrid::updateTimeout ( void  )
privateslot

Definition at line 1386 of file guidegrid.cpp.

Referenced by GuideGrid().

Member Data Documentation

◆ m_allowFinder

bool GuideGrid::m_allowFinder {false}
private

Definition at line 242 of file guidegrid.h.

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

◆ m_changroupname

MythUIText* GuideGrid::m_changroupname {nullptr}
private

Definition at line 294 of file guidegrid.h.

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

◆ 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_channelCount

int GuideGrid::m_channelCount {5}
private

◆ m_channelGroupListManual

ChannelGroupList GuideGrid::m_channelGroupListManual
private

Definition at line 283 of file guidegrid.h.

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

◆ m_channelImage

MythUIImage* GuideGrid::m_channelImage {nullptr}
private

Definition at line 295 of file guidegrid.h.

Referenced by Create(), and updateInfo().

◆ m_channelInfoIdx

QMap<uint,uint> GuideGrid::m_channelInfoIdx
private

◆ m_channelInfos

db_chan_list_list_t GuideGrid::m_channelInfos
private

◆ m_channelList

MythUIButtonList* GuideGrid::m_channelList {nullptr}
private

Definition at line 289 of file guidegrid.h.

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

◆ m_channelOrdering

QString GuideGrid::m_channelOrdering
private

Definition at line 275 of file guidegrid.h.

Referenced by fillChannelInfos().

◆ m_currentCol

int GuideGrid::m_currentCol {0}
private

◆ m_currentEndTime

QDateTime GuideGrid::m_currentEndTime
private

◆ m_currentRow

int GuideGrid::m_currentRow {0}
private

◆ m_currentStartChannel

uint GuideGrid::m_currentStartChannel {0}
private

◆ m_currentStartTime

QDateTime GuideGrid::m_currentStartTime
private

◆ m_dateText

MythUIText* GuideGrid::m_dateText {nullptr}
private

Definition at line 291 of file guidegrid.h.

Referenced by Create(), and updateDateText().

◆ m_embedVideo

bool GuideGrid::m_embedVideo {false}
private

Definition at line 270 of file guidegrid.h.

Referenced by Create(), and showProgFinder().

◆ m_firstTime

QDateTime GuideGrid::m_firstTime
private

Definition at line 266 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

◆ m_guideGrid

MythUIGuideGrid* GuideGrid::m_guideGrid {nullptr}
private

◆ m_jumpToChannel

JumpToChannel* GuideGrid::m_jumpToChannel {nullptr}
private

Definition at line 286 of file guidegrid.h.

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

◆ m_jumpToChannelLock

QRecursiveMutex GuideGrid::m_jumpToChannelLock
private

Definition at line 285 of file guidegrid.h.

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

◆ m_jumpToText

MythUIText* GuideGrid::m_jumpToText {nullptr}
private

Definition at line 293 of file guidegrid.h.

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

◆ m_lastTime

QDateTime GuideGrid::m_lastTime
private

Definition at line 267 of file guidegrid.h.

Referenced by fillProgramRowInfos(), and fillTimeInfos().

◆ m_longdateText

MythUIText* GuideGrid::m_longdateText {nullptr}
private

Definition at line 292 of file guidegrid.h.

Referenced by Create(), and updateDateText().

◆ m_originalStartTime

QDateTime GuideGrid::m_originalStartTime
private

Definition at line 250 of file guidegrid.h.

Referenced by GuideGrid().

◆ m_player

TV* GuideGrid::m_player {nullptr}
private

◆ m_programInfos

ProgInfoGuideArray GuideGrid::m_programInfos {}
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_recList

ProgramList GuideGrid::m_recList
private

Definition at line 248 of file guidegrid.h.

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

◆ m_selectRecThreshold

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

Definition at line 240 of file guidegrid.h.

Referenced by gestureEvent(), and keyPressEvent().

◆ m_sortReverse

bool GuideGrid::m_sortReverse {false}
private

Definition at line 260 of file guidegrid.h.

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

◆ 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_threadPool

MThreadPool GuideGrid::m_threadPool
private

Definition at line 279 of file guidegrid.h.

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

◆ 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_timeList

MythUIButtonList* GuideGrid::m_timeList {nullptr}
private

Definition at line 288 of file guidegrid.h.

Referenced by Create(), and fillTimeInfos().

◆ 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_verticalLayout

bool GuideGrid::m_verticalLayout {false}
private

Definition at line 264 of file guidegrid.h.

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

◆ m_videoRect

QRect GuideGrid::m_videoRect
private

Definition at line 273 of file guidegrid.h.

Referenced by Create(), and EmbedTVWindow().


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