20#include "kmpropgeneral.h" 
   30KMPropGeneral::KMPropGeneral(TQWidget *parent, 
const char *name)
 
   31: KMPropWidget(parent,name)
 
   33    m_name = 
new TQLabel(
"",
this);
 
   34    m_location = 
new TQLabel(
"",
this);
 
   35    m_description = 
new TQLabel(
"",
this);
 
   37    TQLabel *l1 = 
new TQLabel(i18n(
"Printer name:"), 
this);
 
   38    TQLabel *l2 = 
new TQLabel(i18n(
"Physical Location", 
"Location:"), 
this);
 
   39    TQLabel *l3 = 
new TQLabel(i18n(
"Description:"), 
this);
 
   42    TQGridLayout    *main_ = 
new TQGridLayout(
this, 4, 2, 10, 7);
 
   43    main_->setColStretch(0,0);
 
   44    main_->setColStretch(1,1);
 
   45    main_->setRowStretch(3,1);
 
   46    main_->addWidget(l1,0,0);
 
   47    main_->addWidget(l2,1,0);
 
   48    main_->addWidget(l3,2,0);
 
   49    main_->addWidget(m_name,0,1);
 
   50    main_->addWidget(m_location,1,1);
 
   51    main_->addWidget(m_description,2,1);
 
   53    m_pixmap = 
"contents";
 
   54    m_title = i18n(
"General");
 
   55    m_header = i18n(
"General Settings");
 
   58KMPropGeneral::~KMPropGeneral()
 
   62void KMPropGeneral::setPrinter(KMPrinter *p)
 
   66        m_name->setText(p->name());
 
   67        m_location->setText(p->location());
 
   68        m_description->setText(p->description());
 
   69        emit enableChange(!(p->isSpecial() || p->isRemote() || p->isImplicit()));
 
   73        emit enableChange(
false);
 
   75        m_location->setText(
"");
 
   76        m_description->setText(
"");
 
   80void KMPropGeneral::configureWizard(KMWizard *w)
 
   82    w->configure(KMWizard::Name,KMWizard::Name,
true);