MythTV  master
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;
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 *) 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 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 {
41  FILTER_ALL = -1,
43  };
44 
48  bool m_currentHideMode {false};
49 
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};
60 };
61 
62 class ChannelID;
63 
65 {
66  Q_OBJECT
67  public:
68  ChannelWizard(int id, int default_sourceid);
69 
70  private:
71  ChannelID *m_cid {nullptr};
72 };
73 
74 #endif
void del(void)
unsigned int slots[4]
Definition: element.c:38
MythUIButtonList * m_sourceList
Definition: channeleditor.h:51
void setSortMode(MythUIButtonListItem *item)
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
ChannelWizard(int id, int default_sourceid)
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:97
void scan(void)
MythUIText * m_channum
Definition: channeleditor.h:55
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: osd.cpp:106
MythUIImage * m_preview
Definition: channeleditor.h:53
void transportEditor(void)
MythUIText * m_chanid
Definition: channeleditor.h:57
void edit(MythUIButtonListItem *item=nullptr)
bool Create(void) override
Definition: osd.cpp:46
MythUIText * m_callsign
Definition: channeleditor.h:56
void setHideMode(bool hide)
QString m_sourceFilterName
Definition: channeleditor.h:46
QString m_currentSortMode
Definition: channeleditor.h:47
void setSourceID(MythUIButtonListItem *item)
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:21
ChannelEditor(QObject *retobject, const char *name)
Definition: osd.cpp:36
void customEvent(QEvent *event) override
bool m_currentHideMode
Definition: channeleditor.h:48
MythUIText * m_compoundname
Definition: channeleditor.h:59
ChannelID * m_cid
Definition: channeleditor.h:71
MythUIText * m_sourcename
Definition: channeleditor.h:58
MythUIButtonList * m_channelList
Definition: channeleditor.h:50
void menu(void)
Screen in which all other widgets are contained and rendered.
void deleteChannels(void)
MythUIText * m_channame
Definition: channeleditor.h:54
void itemChanged(MythUIButtonListItem *item)
void channelIconImport(void)