Main Page   Class Hierarchy   Compound List   File List   Compound Members  

channelwidgetimpl.h

00001 /***************************************************************************
00002                           channelwidgetimpl.h  -  description
00003                              -------------------
00004     begin                : Wed Jun 12 2002
00005     copyright            : (C) 2002 by Kevin Hessels
00006     email                : khessels@shaw.ca
00007  ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
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

Generated at Thu Jan 30 02:56:02 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001