20 #include "kmlpruimanager.h"
21 #include "kmpropertypage.h"
22 #include "kprinterpropertydialog.h"
24 #include "kmconfigdialog.h"
26 #include "kmpropdriver.h"
27 #include "kmpropbackend.h"
29 #include "kmwbackend.h"
30 #include "kmconfiglpr.h"
32 #include <tdelocale.h>
34 KMLprUiManager::KMLprUiManager(TQObject *parent,
const char *name,
const TQStringList & )
35 : KMUiManager(parent,name)
39 KMLprUiManager::~KMLprUiManager()
43 void KMLprUiManager::setupPropertyPages(KMPropertyPage *pages)
45 pages->addPropPage(
new KMPropBackend(pages,
"Backend"));
46 pages->addPropPage(
new KMPropDriver(pages,
"Driver"));
49 void KMLprUiManager::setupPrinterPropertyDialog(KPrinterPropertyDialog *dlg)
51 dlg->addPage(
new KPQtPage(dlg->driver(), dlg,
"QtPage"));
54 void KMLprUiManager::setupWizard(KMWizard *wizard)
56 KMWBackend *backend = wizard->backendPage();
58 backend->addBackend(KMWizard::Local,
true);
59 backend->addBackend(KMWizard::LPD,
true);
60 backend->addBackend(KMWizard::TCP,
true);
61 backend->addBackend(KMWizard::SMB,
true, KMWizard::Password);
64 void KMLprUiManager::setupConfigDialog(KMConfigDialog *dlg)
66 dlg->addConfigPage(
new KMConfigLpr(dlg));