MythTV
master
mythtv
programs
mythfrontend
viewschedulediff.h
Go to the documentation of this file.
1
#ifndef VIEWSCHEDULEDIFF_H_
2
#define VIEWSCHEDULEDIFF_H_
3
4
// C++ headers
5
#include <utility>
6
#include <vector>
7
8
// MythTV
9
#include "
libmythbase/programinfo.h
"
10
#include "
libmythui/mythscreentype.h
"
11
12
class
ProgramStruct
13
{
14
public
:
15
ProgramStruct
() =
default
;
16
ProgramInfo
*
m_before
{
nullptr
};
17
ProgramInfo
*
m_after
{
nullptr
};
18
};
19
20
class
QKeyEvent;
21
22
class
ViewScheduleDiff
:
public
MythScreenType
23
{
24
Q_OBJECT
25
public
:
26
ViewScheduleDiff
(
MythScreenStack
*parent, QString altTbl,
27
int
recordid = -1, QString ltitle =
""
)
28
:
MythScreenType
(parent,
"ViewScheduleDiff"
),
29
m_altTable
(std::move(altTbl)),
m_title
(std::move(ltitle)),
30
m_recordid
(recordid) {}
31
~ViewScheduleDiff
()
override
=
default
;
32
33
bool
Create
(
void
)
override
;
// MythScreenType
34
bool
keyPressEvent
(QKeyEvent *event)
override
;
// MythScreenType
35
36
private
slots:
37
void
updateInfo
(
MythUIButtonListItem
*item);
38
void
showStatus
(
MythUIButtonListItem
*item);
39
40
private
:
41
void
Load
(
void
)
override
;
// MythScreenType
42
void
Init
(
void
)
override
;
// MythScreenType
43
44
void
fillList
(
void
);
45
void
updateUIList
();
46
47
ProgramInfo
*
CurrentProgram
(
void
);
48
49
bool
m_inEvent
{
false
};
50
bool
m_inFill
{
false
};
51
52
ProgramList
m_recListBefore
;
53
ProgramList
m_recListAfter
;
54
55
QString
m_altTable
;
56
QString
m_title
;
57
58
MythUIButtonList
*
m_conflictList
{
nullptr
};
59
MythUIText
*
m_titleText
{
nullptr
};
60
MythUIText
*
m_noChangesText
{
nullptr
};
61
62
std::vector<class ProgramStruct>
m_recList
;
63
64
int
m_recordid
{-1};
65
};
66
67
#endif
ViewScheduleDiff::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
viewschedulediff.cpp:53
ViewScheduleDiff::m_recListAfter
ProgramList m_recListAfter
Definition:
viewschedulediff.h:53
ViewScheduleDiff::m_inEvent
bool m_inEvent
Definition:
viewschedulediff.h:49
ViewScheduleDiff::showStatus
void showStatus(MythUIButtonListItem *item)
Definition:
viewschedulediff.cpp:77
ViewScheduleDiff::updateUIList
void updateUIList()
Definition:
viewschedulediff.cpp:277
ViewScheduleDiff::~ViewScheduleDiff
~ViewScheduleDiff() override=default
ViewScheduleDiff::Create
bool Create(void) override
Definition:
viewschedulediff.cpp:17
ViewScheduleDiff::m_recList
std::vector< class ProgramStruct > m_recList
Definition:
viewschedulediff.h:62
MythScreenStack
Definition:
mythscreenstack.h:16
ProgramStruct::ProgramStruct
ProgramStruct()=default
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
ProgramStruct::m_after
ProgramInfo * m_after
Definition:
viewschedulediff.h:17
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
ViewScheduleDiff::CurrentProgram
ProgramInfo * CurrentProgram(void)
Definition:
viewschedulediff.cpp:342
programinfo.h
ProgramStruct
Definition:
viewschedulediff.h:12
ViewScheduleDiff::updateInfo
void updateInfo(MythUIButtonListItem *item)
Definition:
viewschedulediff.cpp:328
ViewScheduleDiff::m_title
QString m_title
Definition:
viewschedulediff.h:56
ViewScheduleDiff::Load
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition:
viewschedulediff.cpp:48
ViewScheduleDiff::m_recordid
int m_recordid
recordid that differs from master (-1 = assume all)
Definition:
viewschedulediff.h:64
ViewScheduleDiff::fillList
void fillList(void)
Definition:
viewschedulediff.cpp:183
ViewScheduleDiff::m_titleText
MythUIText * m_titleText
Definition:
viewschedulediff.h:59
ViewScheduleDiff::m_recListBefore
ProgramList m_recListBefore
Definition:
viewschedulediff.h:52
ProgramStruct::m_before
ProgramInfo * m_before
Definition:
viewschedulediff.h:16
ViewScheduleDiff::m_inFill
bool m_inFill
Definition:
viewschedulediff.h:50
AutoDeleteDeque< ProgramInfo * >
ViewScheduleDiff
Definition:
viewschedulediff.h:22
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:67
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:28
ViewScheduleDiff::m_noChangesText
MythUIText * m_noChangesText
Definition:
viewschedulediff.h:60
ViewScheduleDiff::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
viewschedulediff.cpp:58
ViewScheduleDiff::m_conflictList
MythUIButtonList * m_conflictList
Definition:
viewschedulediff.h:58
ViewScheduleDiff::ViewScheduleDiff
ViewScheduleDiff(MythScreenStack *parent, QString altTbl, int recordid=-1, QString ltitle="")
Definition:
viewschedulediff.h:26
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
mythscreentype.h
ViewScheduleDiff::m_altTable
QString m_altTable
Definition:
viewschedulediff.h:55
Generated on Wed Feb 26 2025 03:18:06 for MythTV by
1.8.17