MythTV  master
proglist_helpers.h
Go to the documentation of this file.
1 #ifndef _PROGLIST_HELPERS_H_
2 #define _PROGLIST_HELPERS_H_
3 
4 // Qt headers
5 #include <QDateTime>
6 
7 // MythTV headers
8 #include "mythscreentype.h"
9 #include "recordingtypes.h"
10 
11 class MythUIText;
12 class MythUIButtonList;
13 class ProgLister;
14 
16 {
17  Q_OBJECT
18 
19  public:
21  ProgLister *parent,
22  RecSearchType searchType,
23  const QStringList &list,
24  const QString &currentValue)
25  : MythScreenType(parentStack, "phrasepopup"),
26  m_parent(parent), m_searchType(searchType), m_list(list),
27  m_currentValue(currentValue) {}
28 
29  bool Create() override; // MythScreenType
30 
31  signals:
32  void haveResult(QString item);
33 
34  private slots:
35  void okClicked(void);
36  void deleteClicked(void);
37  void recordClicked(void);
40  void editChanged(void);
41 
42  private:
43  ProgLister *m_parent {nullptr};
45  QStringList m_list;
46  QString m_currentValue;
47 
48  MythUIText *m_titleText {nullptr};
54 };
55 
57 {
58  Q_OBJECT
59 
60  public:
62  ProgLister *parent,
63  RecSearchType searchType,
64  const QStringList &list,
65  const QString &currentValue)
66  : MythScreenType(parentStack, "phrasepopup"),
67  m_parent(parent), m_searchType(searchType), m_list(list),
68  m_currentValue(currentValue) {}
69 
70  bool Create() override; // MythScreenType
71 
72  signals:
73  void haveResult(QString item);
74 
75  private slots:
76  void editClicked(void);
77  void deleteClicked(void);
78  void recordClicked(void);
81 
82  private:
83  ProgLister *m_parent {nullptr};
85  QStringList m_list;
86  QString m_currentValue;
87 
88  MythUIText *m_titleText {nullptr};
94 };
95 
97 {
98  Q_OBJECT
99 
100  public:
101  EditPowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent,
102  const QString &currentValue);
103 
104  bool Create() override; // MythScreenType
105 
106  private slots:
107  void okClicked(void);
108 
109  private:
110  void initLists(void);
111 
112  ProgLister *m_parent {nullptr};
113  QStringList m_categories;
114  QStringList m_genres;
115  QStringList m_channels;
116 
117  QString m_currentValue;
118 
125 
127 };
128 
129 #endif // _PROGLIST_HELPERS_H_
enum RecSearchTypes RecSearchType
void phraseSelected(MythUIButtonListItem *item)
unsigned int slots[4]
Definition: element.c:38
void haveResult(QString item)
ProgLister * m_parent
QStringList m_list
MythUITextEdit * m_subtitleEdit
RecSearchType m_searchType
MythUIButton * m_recordButton
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
MythUIButton * m_okButton
MythUITextEdit * m_descEdit
void phraseClicked(MythUIButtonListItem *item)
void phraseSelected(MythUIButtonListItem *item)
MythUIText * m_titleText
void haveResult(QString item)
MythUITextEdit * m_phraseEdit
RecSearchType m_searchType
bool Create() override
QString m_currentValue
void recordClicked(void)
MythUIButtonList * m_channelList
PhrasePopup(MythScreenStack *parentStack, ProgLister *parent, RecSearchType searchType, const QStringList &list, const QString &currentValue)
MythUIText * m_titleText
MythUIButtonList * m_genreList
bool Create() override
A text entry and edit widget.
QStringList m_list
MythUITextEdit * m_titleEdit
MythUITextEdit * m_phraseEdit
MythUIButton * m_okButton
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
MythUIButton * m_recordButton
MythUIButtonList * m_phraseList
A single button widget.
Definition: mythuibutton.h:21
void editChanged(void)
void deleteClicked(void)
EditPowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent, const QString &currentValue)
ProgLister * m_parent
void phraseClicked(MythUIButtonListItem *item)
MythUIButtonList * m_categoryList
MythUIButton * m_deleteButton
Screen in which all other widgets are contained and rendered.
PowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent, RecSearchType searchType, const QStringList &list, const QString &currentValue)
MythUIButton * m_editButton
MythUIButton * m_deleteButton
void okClicked(void)
MythUIButtonList * m_phraseList