23 #include <tqlistview.h>
24 #include <tqptrlist.h>
29 class KMListView :
public TQListView
33 KMListView(TQWidget *parent = 0,
const char *name = 0);
36 void setPrinterList(TQPtrList<KMPrinter> *list);
37 void setPrinter(
const TQString&);
38 void setPrinter(KMPrinter*);
41 void rightButtonClicked(
const TQString&,
const TQPoint&);
42 void printerSelected(
const TQString&);
45 void slotRightButtonClicked(TQListViewItem*,
const TQPoint&,
int);
46 void slotSelectionChanged();
47 void slotOnItem(TQListViewItem*);
48 void slotOnViewport();
51 KMListViewItem* findItem(KMPrinter*);
52 KMListViewItem* findItem(
const TQString&);
55 TQPtrList<KMListViewItem> m_items;
56 KMListViewItem *m_root, *m_classes, *m_printers, *m_specials;