21 #include "kminfopage.h"
22 #include "kmjobviewer.h"
23 #include "kmpropertypage.h"
24 #include "kminstancepage.h"
26 #include <tdelocale.h>
27 #include <kiconloader.h>
30 KMPages::KMPages(TQWidget *parent,
const char *name)
31 : TQTabWidget(parent,name)
33 m_pages.setAutoDelete(
false);
41 void KMPages::setPrinter(KMPrinter *p)
43 TQPtrListIterator<KMPrinterPage> it(m_pages);
44 for (
int i=0;it.current();++it,i++)
45 it.current()->setPrinter(p);
48 void KMPages::initialize()
50 setMargin(KDialog::marginHint());
53 KMInfoPage *infopage =
new KMInfoPage(
this,
"InfoPage");
54 addTab(infopage, SmallIcon(
"help"), i18n(
"Information"));
55 m_pages.append(infopage);
58 KMJobViewer *jobviewer =
new KMJobViewer(
this,
"JobViewer");
59 addTab(jobviewer, SmallIcon(
"folder"), i18n(
"Jobs"));
60 m_pages.append(jobviewer);
63 KMPropertyPage *proppage =
new KMPropertyPage(
this,
"Property");
64 addTab(proppage, SmallIcon(
"configure"), i18n(
"Properties"));
65 m_pages.append(proppage);
68 KMInstancePage *instpage =
new KMInstancePage(
this,
"Instance");
69 addTab(instpage, SmallIcon(
"document-print"), i18n(
"Instances"));
70 m_pages.append(instpage);