24 #ifndef KADDRESSBOOKICONVIEW_H
25 #define KADDRESSBOOKICONVIEW_H
28 #include <kiconview.h>
29 #include "kaddressbookview.h"
33 class AddresseeIconView;
34 class AddresseeIconViewItem;
36 namespace TDEABC {
class AddressBook; }
49 const char *name = 0 );
53 virtual TQString
type()
const {
return "Icon"; }
61 void refresh(
const TQString &uid = TQString() );
62 void setSelected(
const TQString &uid = TQString(),
bool selected =
true );
63 virtual void setFirstSelected(
bool selected =
true );
66 void addresseeExecuted( TQIconViewItem *item );
67 void addresseeSelected();
68 void rmbClicked( TQIconViewItem*,
const TQPoint& );
71 AddresseeIconView *mIconView;
72 TQPtrList<AddresseeIconViewItem> mIconList;
76 class AddresseeIconView :
public TDEIconView
82 AddresseeIconView( TQWidget *parent,
const char *name = 0 );
86 void addresseeDropped( TQDropEvent* );
87 void startAddresseeDrag();
90 virtual TQDragObject *dragObject();
93 void itemDropped( TQDropEvent*,
const TQValueList<TQIconDragItem>& );
This is an example kaddressbook view that is implemented using TDEIconView.
virtual void readConfig(TDEConfig *config)
Called whenever this view should read the config.
virtual TQStringList selectedUids()
Must be overloaded in subclasses.
virtual TQString type() const
Return the type of the view: Icon, Table, etc.
virtual TDEABC::Field * sortField() const
Base class for all views in kaddressbook.
void selected(const TQString &uid)
This signal should be emitted by a subclass whenever an addressee is selected.