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