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
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);
35 void setHideMode(bool hide);
36 void fillList();
37
38 private slots:
40
41 private:
42 enum sourceFilter : std::int8_t {
45 };
46
50 bool m_currentHideMode {false};
51
54
59 MythUIText *m_chanid {nullptr};
65};
66
67class ChannelID;
68
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
MythUIText * m_serviceid
Definition: channeleditor.h:61
void customEvent(QEvent *event) override
void setSortMode(MythUIButtonListItem *item)
MythUIImage * m_preview
Definition: channeleditor.h:55
bool Create(void) override
void menu(void)
void setHideMode(bool hide)
MythUIText * m_transportid
Definition: channeleditor.h:63
MythUIText * m_callsign
Definition: channeleditor.h:58
MythUIText * m_channum
Definition: channeleditor.h:57
void scan(void)
void restoreData(void)
void deleteChannels(void)
MythUIText * m_compoundname
Definition: channeleditor.h:64
MythUIText * m_sourcename
Definition: channeleditor.h:60
void setSourceID(MythUIButtonListItem *item)
void edit(MythUIButtonListItem *item=nullptr)
MythUIText * m_channame
Definition: channeleditor.h:56
void del(void)
MythUIButtonList * m_sourceList
Definition: channeleditor.h:53
MythUIButtonList * m_channelList
Definition: channeleditor.h:52
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
void channelIconImport(void)
void itemChanged(MythUIButtonListItem *item)
MythUIText * m_frequency
Definition: channeleditor.h:62
bool m_currentHideMode
Definition: channeleditor.h:50
QString m_currentSortMode
Definition: channeleditor.h:49
void transportEditor(void)
MythUIText * m_chanid
Definition: channeleditor.h:59
ChannelEditor(MythScreenStack *parent)
QString m_sourceFilterName
Definition: channeleditor.h:48
ChannelWizard(int id, int default_sourceid)
ChannelID * m_cid
Definition: channeleditor.h:76
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:99
All purpose text widget, displays a text string.
Definition: mythuitext.h:29