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 <vector>
6 
7 // mythui
8 #include "mythscreentype.h"
9 
10 // mythtv
11 #include "programinfo.h"
12 
14 {
15  public:
16  ProgramStruct() = default;
17  ProgramInfo *m_before {nullptr};
18  ProgramInfo *m_after {nullptr};
19 };
20 
21 class QKeyEvent;
22 
24 {
25  Q_OBJECT
26  public:
27  ViewScheduleDiff(MythScreenStack *parent, const QString& altTbl,
28  int recordid = -1, const QString& ltitle = "")
29  : MythScreenType(parent, "ViewScheduleDiff"),
30  m_altTable(altTbl), m_title(ltitle),
31  m_recordid(recordid) {}
32  ~ViewScheduleDiff() = default;
33 
34  bool Create(void) override; // MythScreenType
35  bool keyPressEvent(QKeyEvent *) override; // MythScreenType
36 
37  private slots:
38  void updateInfo(MythUIButtonListItem *item);
39  void showStatus(MythUIButtonListItem *item);
40 
41  private:
42  void Load(void) override; // MythScreenType
43  void Init(void) override; // MythScreenType
44 
45  void fillList(void);
46  void updateUIList();
47 
49 
50  bool m_inEvent {false};
51  bool m_inFill {false};
52 
55 
56  QString m_altTable;
57  QString m_title;
58 
60  MythUIText *m_titleText {nullptr};
62 
63  std::vector<class ProgramStruct> m_recList;
64 
65  int m_recordid {-1};
66 };
67 
68 #endif
bool keyPressEvent(QKeyEvent *) override
Key event handler.
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
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:66
MythUIButtonList * m_conflictList
void showStatus(MythUIButtonListItem *item)
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
bool Create(void) override
~ViewScheduleDiff()=default
std::vector< class ProgramStruct > m_recList
ViewScheduleDiff(MythScreenStack *parent, const QString &altTbl, int recordid=-1, const QString &ltitle="")
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