MythTV
master
programs
mythfrontend
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
10
#include "
libmythbase/programinfo.h
"
11
#include "
libmythui/mythscreentype.h
"
12
13
// MythFrontend
14
#include "
schedulecommon.h
"
15
16
class
TV
;
17
class
Timer;
18
19
class
MythUIText
;
20
class
MythUIStateType
;
21
class
MythUIButtonList
;
22
class
MythUIButtonListItem
;
23
29
class
ViewScheduled
:
public
ScheduleCommon
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
void
customEvent
(QEvent *event)
override
;
// ScheduleCommon
43
44
protected
slots:
45
void
ChangeGroup
(
MythUIButtonListItem
*item);
46
void
deleteRule
();
47
void
updateInfo
(
MythUIButtonListItem
*item);
48
void
SwitchList
(
void
);
49
void
Close
(
void
)
override
;
// MythScreenType
50
51
protected
:
52
void
Load
(
void
)
override
;
// MythScreenType
53
void
Init
(
void
)
override
;
// MythScreenType
54
ProgramInfo
*
GetCurrentProgram
(
void
)
const override
;
// ScheduleCommon
55
56
private
:
57
void
FillList
(
void
);
58
void
LoadList
(
bool
useExistingData =
false
);
59
void
setShowAll
(
bool
all);
60
void
viewInputs
(
void
);
61
62
void
EmbedTVWindow
(
void
);
63
64
void
UpdateUIListItem
(
MythUIButtonListItem
* item,
65
ProgramInfo
*pginfo)
const
;
66
static
void
CalcRecordedPercent
(
ProgramInfo
&pg);
67
68
bool
m_conflictBool
{
false
};
69
QDate
m_conflictDate
;
70
71
QRect
m_tvRect
;
72
73
MythUIButtonList
*
m_schedulesList
{
nullptr
};
74
MythUIButtonList
*
m_groupList
{
nullptr
};
75
MythUIProgressBar
*
m_progressBar
{
nullptr
};
76
77
bool
m_showAll
{
false
};
78
79
bool
m_inEvent
{
false
};
80
bool
m_inFill
{
false
};
81
bool
m_needFill
{
false
};
82
83
int
m_listPos
{0};
84
ProgramList
m_recList
;
85
QMap<QDate, ProgramList>
m_recgroupList
;
86
87
QDate
m_currentGroup
;
88
QDate
m_defaultGroup
;
89
90
QMap<int, int>
m_inputref
;
91
uint
m_maxinput
{0};
92
uint
m_curinput
{0};
93
94
TV
*
m_player
{
nullptr
};
95
};
96
97
#endif
ViewScheduled::GetCurrentProgram
ProgramInfo * GetCurrentProgram(void) const override
Definition:
viewscheduled.cpp:734
ViewScheduled::m_currentGroup
QDate m_currentGroup
Definition:
viewscheduled.h:87
ViewScheduled::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
viewscheduled.cpp:107
ViewScheduled::Close
void Close(void) override
Definition:
viewscheduled.cpp:112
ViewScheduled::m_needFill
bool m_needFill
Definition:
viewscheduled.h:81
ViewScheduled::m_defaultGroup
QDate m_defaultGroup
Definition:
viewscheduled.h:88
ViewScheduled::m_curinput
uint m_curinput
Definition:
viewscheduled.h:92
ViewScheduled::m_inputref
QMap< int, int > m_inputref
Definition:
viewscheduled.h:90
ViewScheduled::ViewScheduled
ViewScheduled(MythScreenStack *parent, TV *player=nullptr, bool showTV=false)
Definition:
viewscheduled.cpp:38
MythScreenStack
Definition:
mythscreenstack.h:16
ViewScheduled::deleteRule
void deleteRule()
Definition:
viewscheduled.cpp:529
ViewScheduled::SwitchList
void SwitchList(void)
Definition:
viewscheduled.cpp:121
ViewScheduled::m_progressBar
MythUIProgressBar * m_progressBar
Definition:
viewscheduled.h:75
ViewScheduled::CalcRecordedPercent
static void CalcRecordedPercent(ProgramInfo &pg)
ViewScheduled::m_showAll
bool m_showAll
Definition:
viewscheduled.h:77
schedulecommon.h
ViewScheduled::m_player
TV * m_player
Definition:
viewscheduled.h:94
ViewScheduled::Load
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition:
viewscheduled.cpp:102
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
ViewScheduled::m_schedulesList
MythUIButtonList * m_schedulesList
Definition:
viewscheduled.h:73
programinfo.h
ViewScheduled::Create
bool Create(void) override
Definition:
viewscheduled.cpp:61
MythUIProgressBar
Progress bar widget.
Definition:
mythuiprogressbar.h:12
ViewScheduled::m_inFill
bool m_inFill
Definition:
viewscheduled.h:80
ViewScheduled::EmbedTVWindow
void EmbedTVWindow(void)
Definition:
viewscheduled.cpp:583
ScheduleCommon
Definition:
schedulecommon.h:15
ViewScheduled::m_recgroupList
QMap< QDate, ProgramList > m_recgroupList
Definition:
viewscheduled.h:85
uint
unsigned int uint
Definition:
compat.h:81
ViewScheduled::m_recList
ProgramList m_recList
Definition:
viewscheduled.h:84
ViewScheduled::m_groupList
MythUIButtonList * m_groupList
Definition:
viewscheduled.h:74
ViewScheduled::ShowMenu
void ShowMenu(void) override
Definition:
viewscheduled.cpp:193
ViewScheduled::m_conflictDate
QDate m_conflictDate
Definition:
viewscheduled.h:69
ViewScheduled::RunViewScheduled
static void * RunViewScheduled(void *player, bool showTv)
Definition:
viewscheduled.cpp:25
ViewScheduled::setShowAll
void setShowAll(bool all)
Definition:
viewscheduled.cpp:563
AutoDeleteDeque< ProgramInfo * >
ViewScheduled::m_maxinput
uint m_maxinput
Definition:
viewscheduled.h:91
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:67
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:28
ViewScheduled::customEvent
void customEvent(QEvent *event) override
Definition:
viewscheduled.cpp:589
ViewScheduled::m_listPos
int m_listPos
Definition:
viewscheduled.h:83
ViewScheduled::m_inEvent
bool m_inEvent
Definition:
viewscheduled.h:79
ViewScheduled::m_conflictBool
bool m_conflictBool
Definition:
viewscheduled.h:68
ViewScheduled
Screen for viewing and managing upcoming and conflicted recordings.
Definition:
viewscheduled.h:29
ViewScheduled::~ViewScheduled
~ViewScheduled() override
Definition:
viewscheduled.cpp:48
ViewScheduled::LoadList
void LoadList(bool useExistingData=false)
Definition:
viewscheduled.cpp:226
ViewScheduled::m_tvRect
QRect m_tvRect
Definition:
viewscheduled.h:71
ViewScheduled::UpdateUIListItem
void UpdateUIListItem(MythUIButtonListItem *item, ProgramInfo *pginfo) const
Definition:
viewscheduled.cpp:383
ViewScheduled::updateInfo
void updateInfo(MythUIButtonListItem *item)
Definition:
viewscheduled.cpp:505
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
ViewScheduled::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
viewscheduled.cpp:129
ViewScheduled::viewInputs
void viewInputs(void)
Definition:
viewscheduled.cpp:569
ViewScheduled::ChangeGroup
void ChangeGroup(MythUIButtonListItem *item)
Definition:
viewscheduled.cpp:370
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition:
mythuistatetype.h:22
mythscreentype.h
ViewScheduled::FillList
void FillList(void)
Definition:
viewscheduled.cpp:431
TV
Control TV playback.
Definition:
tv_play.h:154
Generated on Sat Dec 2 2023 03:22:35 for MythTV by
1.8.17