00001 #ifndef CHANNELEDITOR_H 00002 #define CHANNELEDITOR_H 00003 00004 #include "mythscreentype.h" 00005 00006 #include "mythconfigdialogs.h" 00007 00008 class MythUIButton; 00009 class MythUIButtonList; 00010 class MythUIButtonListItem; 00011 class MythUIProgressDialog; 00012 00013 class ChannelEditor : public MythScreenType 00014 { 00015 Q_OBJECT 00016 public: 00017 ChannelEditor(MythScreenStack *parent); 00018 00019 bool Create(void); 00020 bool keyPressEvent(QKeyEvent *); 00021 void customEvent(QEvent *event); 00022 00023 protected slots: 00024 void menu(void); 00025 void del(void); 00026 void edit(MythUIButtonListItem *item = NULL); 00027 void scan(void); 00028 void transportEditor(void); 00029 void channelIconImport(void); 00030 void deleteChannels(void); 00031 void setSortMode(MythUIButtonListItem *item); 00032 void setSourceID(MythUIButtonListItem *item); 00033 void setHideMode(bool hide); 00034 void fillList(); 00035 00036 private slots: 00037 void itemChanged(MythUIButtonListItem *item); 00038 00039 private: 00040 enum sourceFilter { 00041 FILTER_ALL = -1, 00042 FILTER_UNASSIGNED = 0 00043 }; 00044 00045 int m_sourceFilter; 00046 QString m_sourceFilterName; 00047 QString m_currentSortMode; 00048 bool m_currentHideMode; 00049 00050 MythUIButtonList *m_channelList; 00051 MythUIButtonList *m_sourceList; 00052 00053 MythUIImage *m_preview; 00054 MythUIText *m_channame; 00055 MythUIText *m_channum; 00056 MythUIText *m_callsign; 00057 MythUIText *m_chanid; 00058 MythUIText *m_sourcename; 00059 MythUIText *m_compoundname; 00060 }; 00061 00062 class ChannelID; 00063 00064 class ChannelWizard : public QObject, public ConfigurationWizard 00065 { 00066 Q_OBJECT 00067 public: 00068 ChannelWizard(int id, int default_sourceid); 00069 00070 private: 00071 ChannelID *cid; 00072 }; 00073 00074 #endif
1.6.3