MythTV master
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
11
13{
14 public:
15 ProgramStruct() = default;
17 ProgramInfo *m_after {nullptr};
18};
19
20class QKeyEvent;
21
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:
39
40 private:
41 void Load(void) override; // MythScreenType
42 void Init(void) override; // MythScreenType
43
44 void fillList(void);
45 void updateUIList();
46
48
49 bool m_inEvent {false};
50 bool m_inFill {false};
51
54
55 QString m_altTable;
56 QString m_title;
57
61
62 std::vector<class ProgramStruct> m_recList;
63
64 int m_recordid {-1};
65};
66
67#endif
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
Holds information on recordings and videos.
Definition: programinfo.h:68
ProgramInfo * m_after
ProgramStruct()=default
ProgramInfo * m_before
void updateInfo(MythUIButtonListItem *item)
ViewScheduleDiff(MythScreenStack *parent, QString altTbl, int recordid=-1, QString ltitle="")
~ViewScheduleDiff() override=default
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
MythUIText * m_titleText
ProgramList m_recListAfter
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
bool Create(void) override
std::vector< class ProgramStruct > m_recList
int m_recordid
recordid that differs from master (-1 = assume all)
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIButtonList * m_conflictList
void showStatus(MythUIButtonListItem *item)
MythUIText * m_noChangesText
ProgramInfo * CurrentProgram(void)
ProgramList m_recListBefore
STL namespace.