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"
34KMLprUiManager::KMLprUiManager(TQObject *parent,
const char *name,
const TQStringList & )
35: KMUiManager(parent,name)
39KMLprUiManager::~KMLprUiManager()
43void KMLprUiManager::setupPropertyPages(KMPropertyPage *pages)
45 pages->addPropPage(
new KMPropBackend(pages,
"Backend"));
46 pages->addPropPage(
new KMPropDriver(pages,
"Driver"));
49void KMLprUiManager::setupPrinterPropertyDialog(KPrinterPropertyDialog *dlg)
51 dlg->addPage(
new KPQtPage(dlg->driver(), dlg,
"QtPage"));
54void 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);
64void KMLprUiManager::setupConfigDialog(KMConfigDialog *dlg)
66 dlg->addConfigPage(
new KMConfigLpr(dlg));