00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef CHANNELWIDGETIMPL_H
00019 #define CHANNELWIDGETIMPL_H
00020
00021 #include <qlistview.h>
00022
00023 #include "channelstore.h"
00024 #include "channelwidget.h"
00025
00026 class QtVision;
00027 class Channel;
00028
00033 class ChannelListViewItem : public QObject, public QCheckListItem
00034 {
00035 Q_OBJECT
00036 public:
00037 ChannelListViewItem(KListView *, Channel*);
00038 ~ChannelListViewItem();
00039
00040 int compare(QListViewItem *, int, bool) const;
00041
00042 int rtti() const;
00043
00044 Channel *c;
00045
00046 public slots:
00047 void updateFields();
00048 };
00049
00050
00051
00052
00053
00054 class ChannelWidgetImpl : public ChannelWidget
00055 {
00056
00057 Q_OBJECT
00058
00059 public:
00060 ChannelWidgetImpl(QWidget *, QtVision *);
00061 ~ChannelWidgetImpl();
00062
00063 void updateChannels();
00064
00065 private:
00066 void createChannelList(ChannelStore *);
00067
00068 void setItemInEditor( ChannelListViewItem * );
00069 ChannelListViewItem *getItemInEditor();
00070
00071 ChannelListViewItem *itemInEditor;
00072 ChannelStore *cs;
00073 QtVision *qtv;
00074
00075 private slots:
00076 void slotListItemClicked();
00077 void slotAutoscanClicked();
00078 void slotRenumberClicked();
00079 void slotNewClicked();
00080 void slotChangeChannel();
00081 void slotEditClicked();
00082 void slotRenameClicked();
00083 void slotRemoveClicked();
00084 void slotMoveUpClicked();
00085 void slotMoveDownClicked();
00086 void slotRenameItem(QListViewItem*);
00087 void slotFreqUpdate( unsigned long freq );
00088 };
00089
00090 #endif