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