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 // mythui
9 #include "mythscreentype.h"
10 
11 // mythtv
12 #include "programinfo.h"
13 
15 {
16  public:
17  ProgramStruct() = default;
18  ProgramInfo *m_before {nullptr};
19  ProgramInfo *m_after {nullptr};
20 };
21 
22 class QKeyEvent;
23 
25 {
26  Q_OBJECT
27  public:
28  ViewScheduleDiff(MythScreenStack *parent, QString altTbl,
29  int recordid = -1, QString ltitle = "")
30  : MythScreenType(parent, "ViewScheduleDiff"),
31  m_altTable(std::move(altTbl)), m_title(std::move(ltitle)),
32  m_recordid(recordid) {}
33  ~ViewScheduleDiff() override = default;
34 
35  bool Create(void) override; // MythScreenType
36  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
37 
38  private slots:
39  void updateInfo(MythUIButtonListItem *item);
40  void showStatus(MythUIButtonListItem *item);
41 
42  private:
43  void Load(void) override; // MythScreenType
44  void Init(void) override; // MythScreenType
45 
46  void fillList(void);
47  void updateUIList();
48 
50 
51  bool m_inEvent {false};
52  bool m_inFill {false};
53 
56 
57  QString m_altTable;
58  QString m_title;
59 
61  MythUIText *m_titleText {nullptr};
63 
64  std::vector<class ProgramStruct> m_recList;
65 
66  int m_recordid {-1};
67 };
68 
69 #endif
int m_recordid
recordid that differs from master (-1 = assume all)
unsigned int slots[4]
Definition: element.c:38
void updateInfo(MythUIButtonListItem *item)
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
MythUIText * m_noChangesText
ProgramList m_recListAfter
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
ProgramStruct()=default
ProgramInfo * m_after
Holds information on recordings and videos.
Definition: programinfo.h:67
ViewScheduleDiff(MythScreenStack *parent, QString altTbl, int recordid=-1, QString ltitle="")
MythUIButtonList * m_conflictList
void showStatus(MythUIButtonListItem *item)
~ViewScheduleDiff() override=default
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
bool Create(void) override
std::vector< class ProgramStruct > m_recList
ProgramInfo * CurrentProgram(void)
Screen in which all other widgets are contained and rendered.
ProgramInfo * m_before
ProgramList m_recListBefore
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