20 #include "kmproprlpr.h"
21 #include "kmprinter.h"
26 #include <tdelocale.h>
28 KMPropRlpr::KMPropRlpr(TQWidget *parent,
const char *name)
29 : KMPropWidget(parent,name)
31 m_host =
new TQLabel(
"",
this);
32 m_queue =
new TQLabel(
"",
this);
34 TQLabel *l1 =
new TQLabel(i18n(
"Host:"),
this);
35 TQLabel *l2 =
new TQLabel(i18n(
"Queue:"),
this);
38 TQGridLayout *main_ =
new TQGridLayout(
this, 3, 2, 10, 7);
39 main_->setColStretch(0,0);
40 main_->setColStretch(1,1);
41 main_->setRowStretch(2,1);
42 main_->addWidget(l1,0,0);
43 main_->addWidget(l2,1,0);
44 main_->addWidget(m_host,0,1);
45 main_->addWidget(m_queue,1,1);
47 m_pixmap =
"connect_established";
48 m_title = i18n(
"Queue");
49 m_header = i18n(
"Remote LPD Queue Settings");
52 KMPropRlpr::~KMPropRlpr()
56 void KMPropRlpr::setPrinter(KMPrinter *p)
58 if (p && !p->isSpecial())
60 m_host->setText(p->option(
"host"));
61 m_queue->setText(p->option(
"queue"));
72 void KMPropRlpr::configureWizard(KMWizard *w)
74 w->configure(KMWizard::Custom+1,KMWizard::Custom+1,
true);