MythTV master
channeleditor.h
Go to the documentation of this file.
1#ifndef CHANNELEDITOR_H
2#define CHANNELEDITOR_H
3
6
7class MythUIButton;
11
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);
33 void setHideMode(bool hide);
34 void fillList();
35
36 private slots:
38
39 private:
40 enum sourceFilter : std::int8_t {
43 };
44
48 bool m_currentHideMode {false};
49
52
57 MythUIText *m_chanid {nullptr};
63};
64
65class ChannelID;
66
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
MythUIText * m_serviceid
Definition: channeleditor.h:59
void customEvent(QEvent *event) override
void setSortMode(MythUIButtonListItem *item)
MythUIImage * m_preview
Definition: channeleditor.h:53
bool Create(void) override
void menu(void)
void setHideMode(bool hide)
MythUIText * m_transportid
Definition: channeleditor.h:61
MythUIText * m_callsign
Definition: channeleditor.h:56
MythUIText * m_channum
Definition: channeleditor.h:55
void scan(void)
void restoreData(void)
void deleteChannels(void)
MythUIText * m_compoundname
Definition: channeleditor.h:62
MythUIText * m_sourcename
Definition: channeleditor.h:58
void setSourceID(MythUIButtonListItem *item)
void edit(MythUIButtonListItem *item=nullptr)
MythUIText * m_channame
Definition: channeleditor.h:54
void del(void)
MythUIButtonList * m_sourceList
Definition: channeleditor.h:51
MythUIButtonList * m_channelList
Definition: channeleditor.h:50
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void channelIconImport(void)
void itemChanged(MythUIButtonListItem *item)
MythUIText * m_frequency
Definition: channeleditor.h:60
bool m_currentHideMode
Definition: channeleditor.h:48
QString m_currentSortMode
Definition: channeleditor.h:47
void transportEditor(void)
MythUIText * m_chanid
Definition: channeleditor.h:57
ChannelEditor(MythScreenStack *parent)
QString m_sourceFilterName
Definition: channeleditor.h:46
ChannelWizard(int id, int default_sourceid)
ChannelID * m_cid
Definition: channeleditor.h:74
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:22
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
All purpose text widget, displays a text string.
Definition: mythuitext.h:29