kaddressbook
kaddressbookiconview.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KADDRESSBOOKICONVIEW_H
00025 #define KADDRESSBOOKICONVIEW_H
00026
00027 #include <tqstring.h>
00028 #include <kiconview.h>
00029 #include "kaddressbookview.h"
00030
00031 class TQIconViewItem;
00032 class KConfig;
00033 class AddresseeIconView;
00034 class AddresseeIconViewItem;
00035
00036 namespace KABC { class AddressBook; }
00037
00042 class KAddressBookIconView : public KAddressBookView
00043 {
00044 Q_OBJECT
00045 TQ_OBJECT
00046
00047 public:
00048 KAddressBookIconView( KAB::Core *core, TQWidget *parent,
00049 const char *name = 0 );
00050 virtual ~KAddressBookIconView();
00051
00052 virtual TQStringList selectedUids();
00053 virtual TQString type() const { return "Icon"; }
00054 virtual KABC::Field *sortField() const;
00055 virtual void readConfig( KConfig *config );
00056
00057 void scrollUp();
00058 void scrollDown();
00059
00060 public slots:
00061 void refresh( const TQString &uid = TQString() );
00062 void setSelected( const TQString &uid = TQString(), bool selected = true );
00063 virtual void setFirstSelected( bool selected = true );
00064
00065 protected slots:
00066 void addresseeExecuted( TQIconViewItem *item );
00067 void addresseeSelected();
00068 void rmbClicked( TQIconViewItem*, const TQPoint& );
00069
00070 private:
00071 AddresseeIconView *mIconView;
00072 TQPtrList<AddresseeIconViewItem> mIconList;
00073 };
00074
00075
00076 class AddresseeIconView : public KIconView
00077 {
00078 Q_OBJECT
00079 TQ_OBJECT
00080
00081 public:
00082 AddresseeIconView( TQWidget *parent, const char *name = 0 );
00083 ~AddresseeIconView();
00084
00085 signals:
00086 void addresseeDropped( TQDropEvent* );
00087 void startAddresseeDrag();
00088
00089 protected:
00090 virtual TQDragObject *dragObject();
00091
00092 protected slots:
00093 void itemDropped( TQDropEvent*, const TQValueList<TQIconDragItem>& );
00094 };
00095 #endif
|