MythTV master
viewscheduled.h
Go to the documentation of this file.
1#ifndef VIEWSCHEDULED_H_
2#define VIEWSCHEDULED_H_
3
4// QT
5#include <QDateTime>
6#include <QString>
7#include <QMap>
8
9// MythTV
12
13// MythFrontend
14#include "schedulecommon.h"
15
16class TV;
17class Timer;
18
19class MythUIText;
20class MythUIStateType;
23
30{
31 Q_OBJECT
32 public:
33 explicit ViewScheduled(MythScreenStack *parent, TV *player = nullptr,
34 bool showTV = false);
35 ~ViewScheduled() override;
36
37 static void * RunViewScheduled(void *player, bool showTv);
38
39 bool Create(void) override; // MythScreenType
40 void ShowMenu(void) override; // MythScreenType
41 bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
42 public slots:
43 void Close(void) override; // MythScreenType
44
45 protected slots:
47 void deleteRule();
49 void SwitchList(void);
50
51 protected:
52 void customEvent(QEvent *event) override; // ScheduleCommon
53 void Load(void) override; // MythScreenType
54 void Init(void) override; // MythScreenType
55 ProgramInfo *GetCurrentProgram(void) const override; // ScheduleCommon
56
57 private:
58 void FillList(void);
59 void LoadList(bool useExistingData = false);
60 void setShowAll(bool all);
61 void viewInputs(void);
62
63 void EmbedTVWindow(void);
64
66 ProgramInfo *pginfo) const;
68
69 bool m_conflictBool {false};
71
72 QRect m_tvRect;
73
77
78 bool m_showAll {false};
79
80 bool m_inEvent {false};
81 bool m_inFill {false};
82 bool m_needFill {false};
83
84 int m_listPos {0};
86 QMap<QDate, ProgramList> m_recgroupList;
87
90
91 QMap<int, int> m_inputref;
94
95 TV *m_player {nullptr};
96};
97
98#endif
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Progress bar widget.
This widget is used for grouping other widgets for display when a particular named state is called.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
Holds information on recordings and videos.
Definition: programinfo.h:74
Control TV playback.
Definition: tv_play.h:157
Screen for viewing and managing upcoming and conflicted recordings.
Definition: viewscheduled.h:30
ProgramList m_recList
Definition: viewscheduled.h:85
MythUIButtonList * m_groupList
Definition: viewscheduled.h:75
static void CalcRecordedPercent(ProgramInfo &pg)
void SwitchList(void)
QMap< QDate, ProgramList > m_recgroupList
Definition: viewscheduled.h:86
~ViewScheduled() override
ProgramInfo * GetCurrentProgram(void) const override
void ChangeGroup(MythUIButtonListItem *item)
void updateInfo(MythUIButtonListItem *item)
bool Create(void) override
void customEvent(QEvent *event) override
ViewScheduled(MythScreenStack *parent, TV *player=nullptr, bool showTV=false)
void Close(void) override
void setShowAll(bool all)
QDate m_defaultGroup
Definition: viewscheduled.h:89
void ShowMenu(void) override
void FillList(void)
static void * RunViewScheduled(void *player, bool showTv)
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
QMap< int, int > m_inputref
Definition: viewscheduled.h:91
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
MythUIProgressBar * m_progressBar
Definition: viewscheduled.h:76
void UpdateUIListItem(MythUIButtonListItem *item, ProgramInfo *pginfo) const
void viewInputs(void)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void LoadList(bool useExistingData=false)
QDate m_conflictDate
Definition: viewscheduled.h:70
QDate m_currentGroup
Definition: viewscheduled.h:88
MythUIButtonList * m_schedulesList
Definition: viewscheduled.h:74
void EmbedTVWindow(void)
unsigned int uint
Definition: compat.h:60