20 #include "kmpropmembers.h"
21 #include "kmprinter.h"
24 #include <tqtextview.h>
26 #include <tdelocale.h>
28 KMPropMembers::KMPropMembers(TQWidget *parent,
const char *name)
29 : KMPropWidget(parent,name)
31 m_members =
new TQTextView(
this);
32 m_members->setPaper(colorGroup().background());
33 m_members->setFrameStyle(TQFrame::NoFrame);
35 TQVBoxLayout *main_ =
new TQVBoxLayout(
this, 10, 0);
36 main_->addWidget(m_members);
38 m_pixmap =
"tdeprint_printer_class";
39 m_title = i18n(
"Members");
40 m_header = i18n(
"Class Members");
43 KMPropMembers::~KMPropMembers()
47 void KMPropMembers::setPrinter(KMPrinter *p)
49 if (p && ((p->isClass(
false) && p->isLocal()) || p->isImplicit()))
51 TQStringList l = p->members();
53 for (TQStringList::ConstIterator it=l.begin(); it!=l.end(); ++it)
54 txt.append(
"<li>" + (*it) +
"</li>");
56 m_members->setText(txt);
58 emit enableChange(!p->isImplicit());
63 m_members->setText(
"");
67 void KMPropMembers::configureWizard(KMWizard *w)
69 w->configure(KMWizard::Class,KMWizard::Class,
true);