MythTV
master
mythtv
programs
mythfrontend
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 "
libmythbase/recordingtypes.h
"
11
#include "
libmythui/mythscreentype.h
"
12
13
class
MythUIText
;
14
class
MythUIButtonList
;
15
class
ProgLister
;
16
17
class
PhrasePopup
:
public
MythScreenType
18
{
19
Q_OBJECT
20
21
public
:
22
PhrasePopup
(
MythScreenStack
*parentStack,
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
);
41
void
phraseClicked
(
MythUIButtonListItem
*item);
42
void
phraseSelected
(
MythUIButtonListItem
*item);
43
void
editChanged
(
void
);
44
45
private
:
46
ProgLister
*
m_parent
{
nullptr
};
47
RecSearchType
m_searchType
;
48
QStringList
m_list
;
49
QString
m_currentValue
;
50
51
MythUIText
*
m_titleText
{
nullptr
};
52
MythUIButtonList
*
m_phraseList
{
nullptr
};
53
MythUITextEdit
*
m_phraseEdit
{
nullptr
};
54
MythUIButton
*
m_okButton
{
nullptr
};
55
MythUIButton
*
m_deleteButton
{
nullptr
};
56
MythUIButton
*
m_recordButton
{
nullptr
};
57
};
58
59
class
PowerSearchPopup
:
public
MythScreenType
60
{
61
Q_OBJECT
62
63
public
:
64
PowerSearchPopup
(
MythScreenStack
*parentStack,
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
);
83
void
phraseClicked
(
MythUIButtonListItem
*item);
84
void
phraseSelected
(
MythUIButtonListItem
*item);
85
86
private
:
87
ProgLister
*
m_parent
{
nullptr
};
88
RecSearchType
m_searchType
;
89
QStringList
m_list
;
90
QString
m_currentValue
;
91
92
MythUIText
*
m_titleText
{
nullptr
};
93
MythUIButtonList
*
m_phraseList
{
nullptr
};
94
MythUITextEdit
*
m_phraseEdit
{
nullptr
};
95
MythUIButton
*
m_editButton
{
nullptr
};
96
MythUIButton
*
m_deleteButton
{
nullptr
};
97
MythUIButton
*
m_recordButton
{
nullptr
};
98
};
99
100
class
EditPowerSearchPopup
:
public
MythScreenType
101
{
102
Q_OBJECT
103
104
public
:
105
EditPowerSearchPopup
(
MythScreenStack
*parentStack,
ProgLister
*parent,
106
QString ¤tValue);
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
123
MythUITextEdit
*
m_titleEdit
{
nullptr
};
124
MythUITextEdit
*
m_subtitleEdit
{
nullptr
};
125
MythUITextEdit
*
m_descEdit
{
nullptr
};
126
MythUIButtonList
*
m_categoryList
{
nullptr
};
127
MythUIButtonList
*
m_genreList
{
nullptr
};
128
MythUIButtonList
*
m_channelList
{
nullptr
};
129
130
MythUIButton
*
m_okButton
{
nullptr
};
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:98
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:290
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:16
PhrasePopup::m_okButton
MythUIButton * m_okButton
Definition:
proglist_helpers.h:54
ProgLister
Definition:
proglist.h:35
PhrasePopup::PhrasePopup
PhrasePopup(MythScreenStack *parentStack, ProgLister *parent, RecSearchType searchType, QStringList list, QString currentValue)
Definition:
proglist_helpers.h:22
RecSearchType
RecSearchType
Definition:
recordingtypes.h:77
MythUITextEdit
A text entry and edit widget.
Definition:
mythuitextedit.h:34
PhrasePopup::phraseClicked
void phraseClicked(MythUIButtonListItem *item)
Definition:
proglist_helpers.cpp:85
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
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:346
PhrasePopup::Create
bool Create() override
Definition:
proglist_helpers.cpp:17
EditPowerSearchPopup::Create
bool Create() override
Definition:
proglist_helpers.cpp:418
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:162
PowerSearchPopup::m_parent
ProgLister * m_parent
Definition:
proglist_helpers.h:87
PowerSearchPopup::phraseClicked
void phraseClicked(MythUIButtonListItem *item)
Definition:
proglist_helpers.cpp:264
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
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:312
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:481
MythUIButton
A single button widget.
Definition:
mythuibutton.h:21
PhrasePopup::m_list
QStringList m_list
Definition:
proglist_helpers.h:48
PhrasePopup::editChanged
void editChanged(void)
Definition:
proglist_helpers.cpp:77
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, QString ¤tValue)
Definition:
proglist_helpers.cpp:401
EditPowerSearchPopup
Definition:
proglist_helpers.h:100
PhrasePopup
Definition:
proglist_helpers.h:17
PowerSearchPopup::Create
bool Create() override
Definition:
proglist_helpers.cpp:215
EditPowerSearchPopup::m_currentValue
QString m_currentValue
Definition:
proglist_helpers.h:121
PowerSearchPopup::phraseSelected
void phraseSelected(MythUIButtonListItem *item)
Definition:
proglist_helpers.cpp:280
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:128
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:191
EditPowerSearchPopup::m_channels
QStringList m_channels
Definition:
proglist_helpers.h:119
PhrasePopup::okClicked
void okClicked(void)
Definition:
proglist_helpers.cpp:113
PowerSearchPopup::m_titleText
MythUIText * m_titleText
Definition:
proglist_helpers.h:92
mythscreentype.h
EditPowerSearchPopup::okClicked
void okClicked(void)
Definition:
proglist_helpers.cpp:455
PowerSearchPopup::m_currentValue
QString m_currentValue
Definition:
proglist_helpers.h:90
Generated on Sun Jan 19 2025 03:17:02 for MythTV by
1.8.17