26 #include <qpushbutton.h>
27 #include <qtextedit.h>
31 : QDialog(parent, 0, false, Qt::WDestructiveClose)
33 setCaption(tr(
"Qucs Attenuator Help"));
37 QString
s(tr(
"QucsAttenuator is an attenuator synthesis program. "
38 "To create a attenuator, simply enter all "
39 "the input parameters and press the calculation button. "
41 "schematic of the attenuator is calculated and "
42 "put into the clipboard. Now go to Qucs, "
43 "open an schematic and press "
44 "CTRL-V (paste from clipboard). The attenuator "
45 "schematic can now be inserted. "
46 "Have lots of fun!"));
52 vLayout =
new QVBoxLayout(
this);
54 Text =
new QTextEdit(s, QString::null,
this);
55 Text->setTextFormat(Qt::PlainText);
56 Text->setReadOnly(
true);
58 Text->setMinimumSize(200,200);
59 vLayout->addWidget(
Text);
61 QHBox *h =
new QHBox(
this);
62 vLayout->addWidget(h);
64 h->setStretchFactor(
new QWidget(h),5);
66 QPushButton *ButtonClose =
new QPushButton(tr(
"Close"), h);
67 connect(ButtonClose, SIGNAL(clicked()), SLOT(slotClose()));
68 ButtonClose->setFocus();
70 h->setStretchFactor(
new QWidget(h),5);
79 void HelpDialog::slotClose()