MythTV
master
mythplugins
mytharchive
mytharchive
recordingselector.h
Go to the documentation of this file.
1
/*
2
recordingselector.h
3
4
header for the recording selector interface screen
5
*/
6
7
#ifndef RECORDINGSELECTOR_H_
8
#define RECORDINGSELECTOR_H_
9
10
// c++
11
#include <vector>
12
13
// qt
14
#include <QList>
15
#include <QStringList>
16
17
// mythtv
18
#include <
libmythui/mythscreentype.h
>
19
20
// mytharchive
21
#include "
archiveutil.h
"
22
23
class
ProgramInfo
;
24
class
MythUIText
;
25
class
MythUIButton
;
26
class
MythUIButtonList
;
27
class
MythUIButtonListItem
;
28
29
class
RecordingSelector
:
public
MythScreenType
30
{
31
32
Q_OBJECT
33
34
public
:
35
RecordingSelector
(
MythScreenStack
*parent, QList<ArchiveItem *> *archiveList)
36
:
MythScreenType
(parent,
"RecordingSelector"
),
37
m_archiveList
(archiveList) {}
38
~RecordingSelector
(
void
)
override
;
39
40
bool
Create
()
override
;
// MythScreenType
41
bool
keyPressEvent
(QKeyEvent *e)
override
;
// MythScreenType
42
43
signals:
44
void
haveResult
(
bool
ok);
45
46
public
slots:
47
void
OKPressed
(
void
);
48
void
cancelPressed
(
void
);
49
50
void
ShowMenu
(
void
)
override
;
// MythScreenType
51
void
selectAll
(
void
);
52
void
clearAll
(
void
);
53
54
void
setCategory
(
MythUIButtonListItem
*item);
55
void
titleChanged
(
MythUIButtonListItem
*item);
56
void
toggleSelected
(
MythUIButtonListItem
*item);
57
58
private
:
59
void
Init
(
void
)
override
;
// MythScreenType
60
void
updateRecordingList
(
void
);
61
void
updateSelectedList
(
void
);
62
void
updateCategorySelector
(
void
);
63
void
getRecordingList
(
void
);
64
65
QList<ArchiveItem *> *
m_archiveList
{
nullptr
};
66
std::vector<ProgramInfo *> *
m_recordingList
{
nullptr
};
67
QList<ProgramInfo *>
m_selectedList
;
68
QStringList
m_categories
;
69
70
MythUIButtonList
*
m_recordingButtonList
{
nullptr
};
71
MythUIButton
*
m_okButton
{
nullptr
};
72
MythUIButton
*
m_cancelButton
{
nullptr
};
73
MythUIButtonList
*
m_categorySelector
{
nullptr
};
74
MythUIText
*
m_titleText
{
nullptr
};
75
MythUIText
*
m_datetimeText
{
nullptr
};
76
MythUIText
*
m_filesizeText
{
nullptr
};
77
MythUIText
*
m_descriptionText
{
nullptr
};
78
MythUIImage
*
m_previewImage
{
nullptr
};
79
MythUIImage
*
m_cutlistImage
{
nullptr
};
80
81
friend
class
GetRecordingListThread
;
82
};
83
84
#endif
RecordingSelector::haveResult
void haveResult(bool ok)
RecordingSelector::RecordingSelector
RecordingSelector(MythScreenStack *parent, QList< ArchiveItem * > *archiveList)
Definition:
recordingselector.h:35
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition:
mythuiimage.h:97
GetRecordingListThread
Definition:
recordingselector.cpp:34
RecordingSelector::Create
bool Create() override
Definition:
recordingselector.cpp:60
RecordingSelector::setCategory
void setCategory(MythUIButtonListItem *item)
Definition:
recordingselector.cpp:491
RecordingSelector::ShowMenu
void ShowMenu(void) override
Definition:
recordingselector.cpp:180
RecordingSelector::m_categorySelector
MythUIButtonList * m_categorySelector
Definition:
recordingselector.h:73
MythScreenStack
Definition:
mythscreenstack.h:16
RecordingSelector::toggleSelected
void toggleSelected(MythUIButtonListItem *item)
Definition:
recordingselector.cpp:216
RecordingSelector::keyPressEvent
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
Definition:
recordingselector.cpp:151
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
RecordingSelector::m_filesizeText
MythUIText * m_filesizeText
Definition:
recordingselector.h:76
RecordingSelector::m_titleText
MythUIText * m_titleText
Definition:
recordingselector.h:74
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
RecordingSelector::getRecordingList
void getRecordingList(void)
Definition:
recordingselector.cpp:448
RecordingSelector::selectAll
void selectAll(void)
Definition:
recordingselector.cpp:195
RecordingSelector::clearAll
void clearAll(void)
Definition:
recordingselector.cpp:207
RecordingSelector::m_previewImage
MythUIImage * m_previewImage
Definition:
recordingselector.h:78
RecordingSelector
Definition:
recordingselector.h:29
RecordingSelector::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
recordingselector.cpp:108
archiveutil.h
RecordingSelector::titleChanged
void titleChanged(MythUIButtonListItem *item)
Definition:
recordingselector.cpp:235
RecordingSelector::m_selectedList
QList< ProgramInfo * > m_selectedList
Definition:
recordingselector.h:67
MythUIButton
A single button widget.
Definition:
mythuibutton.h:21
RecordingSelector::updateRecordingList
void updateRecordingList(void)
Definition:
recordingselector.cpp:364
RecordingSelector::updateSelectedList
void updateSelectedList(void)
Definition:
recordingselector.cpp:496
RecordingSelector::cancelPressed
void cancelPressed(void)
Definition:
recordingselector.cpp:358
RecordingSelector::updateCategorySelector
void updateCategorySelector(void)
Definition:
recordingselector.cpp:474
RecordingSelector::m_okButton
MythUIButton * m_okButton
Definition:
recordingselector.h:71
RecordingSelector::m_recordingButtonList
MythUIButtonList * m_recordingButtonList
Definition:
recordingselector.h:70
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:67
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:28
RecordingSelector::m_datetimeText
MythUIText * m_datetimeText
Definition:
recordingselector.h:75
RecordingSelector::m_recordingList
std::vector< ProgramInfo * > * m_recordingList
Definition:
recordingselector.h:66
RecordingSelector::~RecordingSelector
~RecordingSelector(void) override
Definition:
recordingselector.cpp:53
RecordingSelector::m_cutlistImage
MythUIImage * m_cutlistImage
Definition:
recordingselector.h:79
RecordingSelector::m_categories
QStringList m_categories
Definition:
recordingselector.h:68
RecordingSelector::m_descriptionText
MythUIText * m_descriptionText
Definition:
recordingselector.h:77
RecordingSelector::OKPressed
void OKPressed(void)
Definition:
recordingselector.cpp:285
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
RecordingSelector::m_cancelButton
MythUIButton * m_cancelButton
Definition:
recordingselector.h:72
mythscreentype.h
RecordingSelector::m_archiveList
QList< ArchiveItem * > * m_archiveList
Definition:
recordingselector.h:65
Generated on Mon Jan 6 2025 03:16:39 for MythTV by
1.8.17