26 #include <qpushbutton.h>
27 #include <qtextedit.h>
31 : QDialog(parent, 0, false, Qt::WDestructiveClose)
33 setCaption(
"Qucs Filter Help");
37 QString
s(tr(
"QucsFilter is a filter synthesis program. "
38 "To create a filter, simply enter all "
39 "parameters and press the big button at the "
40 "bottom of the main window. Immediatly, the "
41 "schematic of the filter is calculated and "
42 "put into the clipboard. Now go to Qucs, "
43 "open an empty schematic and press "
44 "CTRL-V (paste from clipboard). The filter "
45 "schematic can now be inserted and "
46 " simulated. 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()