23 #include <QPushButton>
26 #include <Q3GridLayout>
31 : QDialog(parent, 0, FALSE, Qt::WDestructiveClose)
33 setCaption(tr(
"Edit Marker Properties"));
36 Q3GridLayout *g =
new Q3GridLayout(
this, 5,2,5,5);
38 g->addWidget(
new QLabel(tr(
"Precision: "),
this), 0,0);
41 Precision->setValidator(
new QIntValidator(0, 12,
this));
45 g->addWidget(
new QLabel(tr(
"Z0: "),
this), 2,0);
50 g->addWidget(
new QLabel(tr(
"Number Notation: "),
this), 1,0);
52 NumberBox->insertItem(tr(
"real/imaginary"));
53 NumberBox->insertItem(tr(
"magnitude/angle (degree)"));
54 NumberBox->insertItem(tr(
"magnitude/angle (radian)"));
58 TransBox =
new QCheckBox(tr(
"transparent"),
this);
60 g->addMultiCellWidget(
TransBox,3,3,0,1);
64 Q3HBox *b =
new Q3HBox(
this);
66 g->addMultiCellWidget(b,4,4,0,1);
69 QPushButton *ButtOK =
new QPushButton(tr(
"OK"),b);
72 QPushButton *ButtCancel =
new QPushButton(tr(
"Cancel"),b);
73 connect(ButtCancel, SIGNAL(clicked()), SLOT(reject()));
QLineEdit * SourceImpedance
MarkerDialog(Marker *pm_, QWidget *parent=0)