24 #include <qpushbutton.h>
25 #include <qtextedit.h>
31 : QDialog(parent, 0, false, Qt::WDestructiveClose)
33 setCaption(
"QucsTranscalc "+tr(
"Help"));
36 QString
s(tr(
"QucsTranscalc is an analysis and synthesis tool for "
37 "calculating the electrical and physical properties of "
38 "different kinds of RF and microwave transmission lines.")+
40 tr(
"For each type of transmission line, using dialog boxes, you can "
41 "enter values for the various parameters, and either calculate its "
42 "electrical properties, or use the given electrical requirements to "
43 "synthesize physical parameters of the required transmission line."));
49 vLayout =
new QVBoxLayout(
this);
50 vLayout->setMargin(3);
51 vLayout->setSpacing(3);
53 Text =
new QTextEdit(
s, QString::null,
this);
54 Text->setTextFormat(Qt::PlainText);
55 Text->setReadOnly(
true);
56 Text->setMinimumSize(300,200);
57 vLayout->addWidget(
Text);
59 QPushButton *ButtonClose =
new QPushButton(tr(
"Dismiss"),
this);
60 vLayout->addWidget(ButtonClose);
61 connect(ButtonClose, SIGNAL(clicked()), SLOT(slotClose()));
62 ButtonClose->setFocus();
70 void HelpDialog::slotClose()