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 "
libmyth/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
void
customEvent
(QEvent *event)
override
;
// MythUIType
21
22
protected
slots:
23
void
menu
(
void
);
24
void
del
(
void
);
25
void
edit
(
MythUIButtonListItem
*item =
nullptr
);
26
void
scan
(
void
);
27
void
restoreData
(
void
);
28
void
transportEditor
(
void
);
29
void
channelIconImport
(
void
);
30
void
deleteChannels
(
void
);
31
void
setSortMode
(
MythUIButtonListItem
*item);
32
void
setSourceID
(
MythUIButtonListItem
*item);
33
void
setHideMode
(
bool
hide);
34
void
fillList
();
35
36
private
slots:
37
void
itemChanged
(
MythUIButtonListItem
*item);
38
39
private
:
40
enum
sourceFilter
{
41
FILTER_ALL
= -1,
42
FILTER_UNASSIGNED
= 0
43
};
44
45
int
m_sourceFilter
{
FILTER_ALL
};
46
QString
m_sourceFilterName
;
47
QString
m_currentSortMode
;
48
bool
m_currentHideMode
{
false
};
49
50
MythUIButtonList
*
m_channelList
{
nullptr
};
51
MythUIButtonList
*
m_sourceList
{
nullptr
};
52
53
MythUIImage
*
m_preview
{
nullptr
};
54
MythUIText
*
m_channame
{
nullptr
};
55
MythUIText
*
m_channum
{
nullptr
};
56
MythUIText
*
m_callsign
{
nullptr
};
57
MythUIText
*
m_chanid
{
nullptr
};
58
MythUIText
*
m_sourcename
{
nullptr
};
59
MythUIText
*
m_serviceid
{
nullptr
};
60
MythUIText
*
m_frequency
{
nullptr
};
61
MythUIText
*
m_transportid
{
nullptr
};
62
MythUIText
*
m_compoundname
{
nullptr
};
63
};
64
65
class
ChannelID
;
66
67
class
ChannelWizard
:
public
GroupSetting
68
{
69
Q_OBJECT
70
public
:
71
ChannelWizard
(
int
id
,
int
default_sourceid);
72
73
private
:
74
ChannelID
*
m_cid
{
nullptr
};
75
};
76
77
#endif
ChannelEditor::m_sourceFilterName
QString m_sourceFilterName
Definition:
channeleditor.h:46
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition:
mythuiimage.h:97
ChannelEditor::scan
void scan(void)
Definition:
channeleditor.cpp:667
ChannelEditor::m_transportid
MythUIText * m_transportid
Definition:
channeleditor.h:61
ChannelEditor::m_callsign
MythUIText * m_callsign
Definition:
channeleditor.h:56
ChannelEditor::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
channeleditor.cpp:193
ChannelEditor::m_frequency
MythUIText * m_frequency
Definition:
channeleditor.h:60
ChannelEditor::menu
void menu(void)
Definition:
channeleditor.cpp:566
ChannelWizard::m_cid
ChannelID * m_cid
Definition:
channeleditor.h:74
ChannelEditor::m_currentHideMode
bool m_currentHideMode
Definition:
channeleditor.h:48
MythScreenStack
Definition:
mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
ChannelEditor::edit
void edit(MythUIButtonListItem *item=nullptr)
Definition:
channeleditor.cpp:544
ChannelID
Definition:
channelsettings.h:20
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
ChannelEditor::m_channame
MythUIText * m_channame
Definition:
channeleditor.h:54
ChannelEditor::customEvent
void customEvent(QEvent *event) override
Definition:
channeleditor.cpp:776
ChannelEditor::m_sourceList
MythUIButtonList * m_sourceList
Definition:
channeleditor.h:51
ChannelEditor::m_serviceid
MythUIText * m_serviceid
Definition:
channeleditor.h:59
MythUIProgressDialog
Definition:
mythprogressdialog.h:59
ChannelEditor::restoreData
void restoreData(void)
Definition:
channeleditor.cpp:686
ChannelEditor
Definition:
channeleditor.h:12
MythUIButton
A single button widget.
Definition:
mythuibutton.h:21
ChannelEditor::m_channelList
MythUIButtonList * m_channelList
Definition:
channeleditor.h:50
ChannelEditor::del
void del(void)
Definition:
channeleditor.cpp:497
ChannelEditor::m_channum
MythUIText * m_channum
Definition:
channeleditor.h:55
ChannelEditor::deleteChannels
void deleteChannels(void)
Definition:
channeleditor.cpp:520
standardsettings.h
ChannelEditor::setSourceID
void setSourceID(MythUIButtonListItem *item)
Definition:
channeleditor.cpp:472
ChannelEditor::channelIconImport
void channelIconImport(void)
Definition:
channeleditor.cpp:726
ChannelEditor::m_compoundname
MythUIText * m_compoundname
Definition:
channeleditor.h:62
ChannelEditor::m_chanid
MythUIText * m_chanid
Definition:
channeleditor.h:57
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:28
ChannelEditor::m_sourcename
MythUIText * m_sourcename
Definition:
channeleditor.h:58
ChannelEditor::Create
bool Create(void) override
Definition:
channeleditor.cpp:76
ChannelEditor::setHideMode
void setHideMode(bool hide)
Definition:
channeleditor.cpp:488
ChannelEditor::fillList
void fillList()
Definition:
channeleditor.cpp:269
ChannelEditor::FILTER_UNASSIGNED
@ FILTER_UNASSIGNED
Definition:
channeleditor.h:42
ChannelEditor::setSortMode
void setSortMode(MythUIButtonListItem *item)
Definition:
channeleditor.cpp:458
ChannelEditor::m_preview
MythUIImage * m_preview
Definition:
channeleditor.h:53
ChannelEditor::transportEditor
void transportEditor(void)
Definition:
channeleditor.cpp:707
ChannelEditor::m_currentSortMode
QString m_currentSortMode
Definition:
channeleditor.h:47
ChannelWizard
Definition:
channeleditor.h:67
ChannelEditor::m_sourceFilter
int m_sourceFilter
Definition:
channeleditor.h:45
ChannelEditor::itemChanged
void itemChanged(MythUIButtonListItem *item)
Definition:
channeleditor.cpp:222
ChannelWizard::ChannelWizard
ChannelWizard(int id, int default_sourceid)
Definition:
channeleditor.cpp:31
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
ChannelEditor::ChannelEditor
ChannelEditor(MythScreenStack *parent)
Definition:
channeleditor.cpp:70
ChannelEditor::sourceFilter
sourceFilter
Definition:
channeleditor.h:40
ChannelEditor::FILTER_ALL
@ FILTER_ALL
Definition:
channeleditor.h:41
mythscreentype.h
GroupSetting
Definition:
standardsettings.h:435
Generated on Wed Sep 6 2023 03:18:19 for MythTV by
1.8.17