23 #include <kiconview.h>
24 #include <tqptrlist.h>
30 class KMIconViewItem :
public TQIconViewItem,
public KMObject
33 KMIconViewItem(TQIconView *parent, KMPrinter *p);
34 void updatePrinter(KMPrinter *printer = 0,
int mode = TQIconView::Bottom);
35 bool isClass()
const {
return m_isclass; }
38 virtual void paintItem(TQPainter*,
const TQColorGroup&);
39 virtual void calcRect(
const TQString& text_ = TQString::null);
48 class KMIconView :
public TDEIconView
52 enum ViewMode { Big, Small };
54 KMIconView(TQWidget *parent = 0,
const char *name = 0);
57 void setPrinterList(TQPtrList<KMPrinter> *list);
58 void setPrinter(
const TQString&);
59 void setPrinter(KMPrinter*);
60 void setViewMode(ViewMode);
63 void rightButtonClicked(
const TQString&,
const TQPoint&);
64 void printerSelected(
const TQString&);
67 void slotRightButtonClicked(TQIconViewItem*,
const TQPoint&);
68 void slotSelectionChanged();
71 KMIconViewItem* findItem(KMPrinter *p);
74 TQPtrList<KMIconViewItem> m_items;