Go to the documentation of this file.
41 virtual void GoTo(
int start,
int cur_row) = 0;
44 bool exact =
true)
const = 0;
54 int start_chan_idx,
int cur_chan_idx,
uint rows_disp);
56 bool ProcessEntry(
const QStringList &actions,
const QKeyEvent *e);
85 QString title, QString category,
86 int arrow,
int recType,
int recStat,
bool selected)
108 const QString &startChanNum,
109 const QDateTime &startTime,
110 TV *player =
nullptr,
111 bool embedVideo =
false,
112 bool allowFinder =
true,
117 void GoTo(
int start,
int cur_row)
override;
120 bool Create(
void)
override;
121 void Load(
void)
override;
122 void Init(
void)
override;
159 void Close()
override;
164 uint chanid, QString channum,
165 const QDateTime &startTime,
166 TV *player =
nullptr,
167 bool embedVideo =
false,
168 bool allowFinder =
true,
207 bool exact =
true)
const override;
219 const QVector<ProgramList*> &proglists,
221 const std::list<GuideUIElement> &elements);
223 QVector<bool> &unavailables);
225 const QVector<bool> &unavailables);
285 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
void ShowMenu(void) override
MythUIGuideGrid * m_guideGrid
uint GetChannelCount(void) const
void moveUpDown(MoveVector movement)
ProgramInfo * GetCurrentProgram(void) const override
static void RunProgramGuide(uint startChanId, const QString &startChanNum, const QDateTime &startTime, TV *player=nullptr, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)
virtual int FindChannel(uint chanid, const QString &channum, bool exact=true) const =0
Image widget, displays a single image or multiple images in sequence.
MythUIText * m_changroupname
bool gestureEvent(MythGestureEvent *event) override
Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop.
void ShowRecordingMenu(void)
ChannelGroupList m_channelGroupListManual
void ToggleMute(bool CycleChannels)
MythUIImage * m_channelImage
uint GetAlternateChannelIndex(uint chan_idx, bool with_same_channum) const
QRecursiveMutex m_jumpToChannelLock
QDateTime m_currentEndTime
void updateChannels(void)
void setStartChannel(int newStartChannel)
uint m_currentStartChannel
static const uint kJumpToChannelTimeout
std::array< std::array< ProgramInfo *, MAX_DISPLAY_TIMES >, MAX_DISPLAY_CHANS > ProgInfoGuideArray
int GetStartChannelOffset(int row=-1) const
void toggleChannelFavorite(int grpid=-1)
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
void ShowJumpToTime(void)
MythUIButtonList * m_channelList
GuideGrid(MythScreenStack *parentStack, uint chanid, QString channum, const QDateTime &startTime, TV *player=nullptr, bool embedVideo=false, bool allowFinder=true, int changrpid=-1)
void PlayerExiting(TV *Player)
virtual void deleteLater(void)
bool Create(void) override
A narrow purpose widget used to show television programs and the timeslots they occupy on channels....
void updateChannelsNonUI(QVector< ChannelInfo * > &chinfos, QVector< bool > &unavailables)
void aboutToShow() override
void aboutToHide() override
std::vector< ChannelInfo > db_chan_list_t
std::vector< ProgramList * > m_programs
QDateTime m_currentStartTime
virtual void GoTo(int start, int cur_row)=0
std::chrono::minutes m_selectRecThreshold
void customEvent(QEvent *event) override
QDateTime m_originalStartTime
void fillChannelInfos(bool gotostartchannel=true)
MythUIText * m_longdateText
virtual ~JumpToChannelListener()=default
std::vector< db_chan_list_t > db_chan_list_list_t
void updateProgramsUI(unsigned int firstRow, unsigned int numRows, int progPast, const QVector< ProgramList * > &proglists, const ProgInfoGuideArray &programInfos, const std::list< GuideUIElement > &elements)
~JumpToChannel() override=default
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
uint GetCurrentStartChannel(void) const
db_chan_list_list_t m_channelInfos
std::vector< ChannelGroupItem > ChannelGroupList
MythUIButtonList * m_timeList
JumpToChannel(JumpToChannelListener *parent, QString start_entry, int start_chan_idx, int cur_chan_idx, uint rows_disp)
GuideUIElement(int row, int col, const QRect area, QString title, QString category, int arrow, int recType, int recStat, bool selected)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
QString m_channelOrdering
void moveLeftRight(MoveVector movement)
virtual void SetJumpToChannel(JumpToChannel *ptr)=0
void updateChannelsUI(const QVector< ChannelInfo * > &chinfos, const QVector< bool > &unavailables)
MythUIText * m_jumpToText
int m_previousCurrentChannelIndex
bool ProcessEntry(const QStringList &actions, const QKeyEvent *e)
Holds information on recordings and videos.
All purpose text widget, displays a text string.
QDateTime GetCurrentStartTime(void) const
JumpToChannel * m_jumpToChannel
void fillProgramRowInfos(int row, bool useExistingData)
static constexpr int MAX_DISPLAY_CHANS
void ChangeVolume(bool Up, int NewVolume=-1)
void toggleGuideListing()
int m_previousStartChannelIndex
ChannelInfoList GetSelection(void) const
void updateDateText(void)
void ChannelGroupMenu(int mode=0)
static void HideTVWindow(void)
QMap< uint, uint > m_channelInfoIdx
A custom event that represents a mouse gesture.
JumpToChannelListener * m_listener
ProgInfoGuideArray m_programInfos
void moveToTime(const QDateTime &datetime)
ProgramList GetProgramList(uint chanid) const
void fillProgramInfos(bool useExistingData=false)
ProgramList * getProgramListFromProgram(int chanNum)
QString GetEntry(void) const
ChannelInfo * GetChannelInfo(uint chan_idx, int sel=-1)
int FindChannel(uint chanid, const QString &channum, bool exact=true) const override
Q_DISABLE_COPY(GuideGrid)
void updateJumpToChannel(void)
std::vector< ChannelInfo > ChannelInfoList
void GoTo(int start, int cur_row) override
void SetJumpToChannel(JumpToChannel *ptr) override
ChannelGroupList m_changrplist