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
00046 public:
00047 KAddressBookIconView( KAB::Core *core, TQWidget *parent,
00048 const char *name = 0 );
00049 virtual ~KAddressBookIconView();
00050
00051 virtual TQStringList selectedUids();
00052 virtual TQString type() const { return "Icon"; }
00053 virtual KABC::Field *sortField() const;
00054 virtual void readConfig( KConfig *config );
00055
00056 void scrollUp();
00057 void scrollDown();
00058
00059 public slots:
00060 void refresh( const TQString &uid = TQString() );
00061 void setSelected( const TQString &uid = TQString(), bool selected = true );
00062 virtual void setFirstSelected( bool selected = true );
00063
00064 protected slots:
00065 void addresseeExecuted( TQIconViewItem *item );
00066 void addresseeSelected();
00067 void rmbClicked( TQIconViewItem*, const TQPoint& );
00068
00069 private:
00070 AddresseeIconView *mIconView;
00071 TQPtrList<AddresseeIconViewItem> mIconList;
00072 };
00073
00074
00075 class AddresseeIconView : public KIconView
00076 {
00077 Q_OBJECT
00078
00079 public:
00080 AddresseeIconView( TQWidget *parent, const char *name = 0 );
00081 ~AddresseeIconView();
00082
00083 signals:
00084 void addresseeDropped( TQDropEvent* );
00085 void startAddresseeDrag();
00086
00087 protected:
00088 virtual TQDragObject *dragObject();
00089
00090 protected slots:
00091 void itemDropped( TQDropEvent*, const TQValueList<TQIconDragItem>& );
00092 };
00093 #endif
|