20 #ifndef KMPRINTERVIEW_H
21 #define KMPRINTERVIEW_H
23 #include <tqwidgetstack.h>
24 #include <tqptrlist.h>
31 class KMPrinterView :
public TQWidgetStack
35 enum ViewType { Icons = 0, List, Tree };
37 KMPrinterView(TQWidget *parent = 0,
const char *name = 0);
40 void setPrinterList(TQPtrList<KMPrinter> *list);
41 void setPrinter( KMPrinter* );
42 void setViewType(ViewType t);
43 ViewType viewType()
const {
return m_type; }
45 TQSize minimumSizeHint()
const;
48 void printerSelected(
const TQString&);
49 void rightButtonClicked(
const TQString&,
const TQPoint&);
52 void slotPrinterSelected(
const TQString&);
55 KMIconView *m_iconview;
56 KMListView *m_listview;