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
12
13class MythUIText;
15class 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;
50
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;
91
98};
99
101{
102 Q_OBJECT
103
104 public:
105 EditPowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent,
106 QString &currentValue);
107
108 bool Create() override; // MythScreenType
109
110 private slots:
111 void okClicked(void);
112
113 private:
114 void initLists(void);
115
117 QStringList m_categories;
118 QStringList m_genres;
119 QStringList m_channels;
120
122
129
131};
132
133#endif // PROGLIST_HELPERS_H
MythUIButtonList * m_genreList
MythUITextEdit * m_subtitleEdit
EditPowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent, QString &currentValue)
MythUITextEdit * m_descEdit
MythUIButton * m_okButton
MythUIButtonList * m_categoryList
MythUIButtonList * m_channelList
MythUITextEdit * m_titleEdit
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 ...
A single button widget.
Definition: mythuibutton.h:22
A text entry and edit widget.
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
void haveResult(QString item)
void okClicked(void)
void editChanged(void)
RecSearchType m_searchType
MythUIText * m_titleText
void phraseClicked(MythUIButtonListItem *item)
MythUITextEdit * m_phraseEdit
void recordClicked(void)
void phraseSelected(MythUIButtonListItem *item)
bool Create() override
ProgLister * m_parent
MythUIButton * m_okButton
void deleteClicked(void)
MythUIButton * m_deleteButton
MythUIButtonList * m_phraseList
QString m_currentValue
MythUIButton * m_recordButton
PhrasePopup(MythScreenStack *parentStack, ProgLister *parent, RecSearchType searchType, QStringList list, QString currentValue)
QStringList m_list
MythUIButtonList * m_phraseList
bool Create() override
void phraseClicked(MythUIButtonListItem *item)
void haveResult(QString item)
MythUIButton * m_deleteButton
MythUIButton * m_recordButton
MythUIButton * m_editButton
ProgLister * m_parent
RecSearchType m_searchType
QStringList m_list
void phraseSelected(MythUIButtonListItem *item)
MythUIText * m_titleText
PowerSearchPopup(MythScreenStack *parentStack, ProgLister *parent, RecSearchType searchType, QStringList list, QString currentValue)
MythUITextEdit * m_phraseEdit
STL namespace.
RecSearchType