MythTV
master
programs
mythtv-setup
channeleditor.h
Go to the documentation of this file.
1
#ifndef CHANNELEDITOR_H
2
#define CHANNELEDITOR_H
3
4
#include "
mythscreentype.h
"
5
6
#include "
standardsettings.h
"
7
8
class
MythUIButton
;
9
class
MythUIButtonList
;
10
class
MythUIButtonListItem
;
11
class
MythUIProgressDialog
;
12
13
class
ChannelEditor
:
public
MythScreenType
14
{
15
Q_OBJECT
16
public
:
17
explicit
ChannelEditor
(
MythScreenStack
*parent);
18
19
bool
Create
(
void
)
override
;
// MythScreenType
20
bool
keyPressEvent
(QKeyEvent *event)
override
;
// MythScreenType
21
void
customEvent
(QEvent *event)
override
;
// MythUIType
22
23
protected
slots:
24
void
menu
(
void
);
25
void
del
(
void
);
26
void
edit
(
MythUIButtonListItem
*item =
nullptr
);
27
void
scan
(
void
);
28
void
restoreData
(
void
);
29
void
transportEditor
(
void
);
30
void
channelIconImport
(
void
);
31
void
deleteChannels
(
void
);
32
void
setSortMode
(
MythUIButtonListItem
*item);
33
void
setSourceID
(
MythUIButtonListItem
*item);
34
void
setHideMode
(
bool
hide);
35
void
fillList
();
36
37
private
slots:
38
void
itemChanged
(
MythUIButtonListItem
*item);
39
40
private
:
41
enum
sourceFilter
{
42
FILTER_ALL
= -1,
43
FILTER_UNASSIGNED
= 0
44
};
45
46
int
m_sourceFilter
{
FILTER_ALL
};
47
QString
m_sourceFilterName
;
48
QString
m_currentSortMode
;
49
bool
m_currentHideMode
{
false
};
50
51
MythUIButtonList
*
m_channelList
{
nullptr
};
52
MythUIButtonList
*
m_sourceList
{
nullptr
};
53
54
MythUIImage
*
m_preview
{
nullptr
};
55
MythUIText
*
m_channame
{
nullptr
};
56
MythUIText
*
m_channum
{
nullptr
};
57
MythUIText
*
m_callsign
{
nullptr
};
58
MythUIText
*
m_chanid
{
nullptr
};
59
MythUIText
*
m_sourcename
{
nullptr
};
60
MythUIText
*
m_serviceid
{
nullptr
};
61
MythUIText
*
m_frequency
{
nullptr
};
62
MythUIText
*
m_transportid
{
nullptr
};
63
MythUIText
*
m_compoundname
{
nullptr
};
64
};
65
66
class
ChannelID
;
67
68
class
ChannelWizard
:
public
GroupSetting
69
{
70
Q_OBJECT
71
public
:
72
ChannelWizard
(
int
id
,
int
default_sourceid);
73
74
private
:
75
ChannelID
*
m_cid
{
nullptr
};
76
};
77
78
#endif
ChannelEditor::m_sourceFilterName
QString m_sourceFilterName
Definition:
channeleditor.h:47
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition:
mythuiimage.h:97
ChannelEditor::scan
void scan(void)
Definition:
channeleditor.cpp:627
ChannelEditor::m_transportid
MythUIText * m_transportid
Definition:
channeleditor.h:62
ChannelEditor::m_callsign
MythUIText * m_callsign
Definition:
channeleditor.h:57
ChannelEditor::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
channeleditor.cpp:188
ChannelEditor::m_frequency
MythUIText * m_frequency
Definition:
channeleditor.h:61
ChannelEditor::menu
void menu(void)
Definition:
channeleditor.cpp:526
ChannelWizard::m_cid
ChannelID * m_cid
Definition:
channeleditor.h:75
ChannelEditor::m_currentHideMode
bool m_currentHideMode
Definition:
channeleditor.h:49
MythScreenStack
Definition:
mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:44
ChannelEditor::edit
void edit(MythUIButtonListItem *item=nullptr)
Definition:
channeleditor.cpp:504
ChannelID
Definition:
channelsettings.h:20
MythUIButtonListItem
Definition:
mythuibuttonlist.h:27
ChannelEditor::m_channame
MythUIText * m_channame
Definition:
channeleditor.h:55
ChannelEditor::customEvent
void customEvent(QEvent *event) override
Definition:
channeleditor.cpp:736
ChannelEditor::m_sourceList
MythUIButtonList * m_sourceList
Definition:
channeleditor.h:52
ChannelEditor::m_serviceid
MythUIText * m_serviceid
Definition:
channeleditor.h:60
MythUIProgressDialog
Definition:
mythprogressdialog.h:59
ChannelEditor::restoreData
void restoreData(void)
Definition:
channeleditor.cpp:646
ChannelEditor
Definition:
channeleditor.h:13
MythUIButton
A single button widget.
Definition:
mythuibutton.h:21
ChannelEditor::m_channelList
MythUIButtonList * m_channelList
Definition:
channeleditor.h:51
ChannelEditor::del
void del(void)
Definition:
channeleditor.cpp:457
ChannelEditor::m_channum
MythUIText * m_channum
Definition:
channeleditor.h:56
ChannelEditor::deleteChannels
void deleteChannels(void)
Definition:
channeleditor.cpp:480
standardsettings.h
ChannelEditor::setSourceID
void setSourceID(MythUIButtonListItem *item)
Definition:
channeleditor.cpp:432
ChannelEditor::channelIconImport
void channelIconImport(void)
Definition:
channeleditor.cpp:686
ChannelEditor::m_compoundname
MythUIText * m_compoundname
Definition:
channeleditor.h:63
ChannelEditor::m_chanid
MythUIText * m_chanid
Definition:
channeleditor.h:58
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:30
ChannelEditor::m_sourcename
MythUIText * m_sourcename
Definition:
channeleditor.h:59
ChannelEditor::Create
bool Create(void) override
Definition:
channeleditor.cpp:71
ChannelEditor::setHideMode
void setHideMode(bool hide)
Definition:
channeleditor.cpp:448
ChannelEditor::fillList
void fillList()
Definition:
channeleditor.cpp:264
ChannelEditor::FILTER_UNASSIGNED
@ FILTER_UNASSIGNED
Definition:
channeleditor.h:43
ChannelEditor::setSortMode
void setSortMode(MythUIButtonListItem *item)
Definition:
channeleditor.cpp:418
ChannelEditor::m_preview
MythUIImage * m_preview
Definition:
channeleditor.h:54
ChannelEditor::transportEditor
void transportEditor(void)
Definition:
channeleditor.cpp:667
ChannelEditor::m_currentSortMode
QString m_currentSortMode
Definition:
channeleditor.h:48
ChannelWizard
Definition:
channeleditor.h:68
ChannelEditor::m_sourceFilter
int m_sourceFilter
Definition:
channeleditor.h:46
ChannelEditor::itemChanged
void itemChanged(MythUIButtonListItem *item)
Definition:
channeleditor.cpp:217
ChannelWizard::ChannelWizard
ChannelWizard(int id, int default_sourceid)
Definition:
channeleditor.cpp:29
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:151
ChannelEditor::ChannelEditor
ChannelEditor(MythScreenStack *parent)
Definition:
channeleditor.cpp:65
ChannelEditor::sourceFilter
sourceFilter
Definition:
channeleditor.h:41
ChannelEditor::FILTER_ALL
@ FILTER_ALL
Definition:
channeleditor.h:42
mythscreentype.h
GroupSetting
Definition:
standardsettings.h:435
Generated on Sat Mar 6 2021 03:17:43 for MythTV by
1.8.17