23 #include <qpushbutton.h>
24 #include <qvalidator.h>
28 : QDialog(parent, 0, FALSE, Qt::WDestructiveClose)
30 setCaption(tr(
"Edit Marker Properties"));
33 QGridLayout *g =
new QGridLayout(
this, 5,2,5,5);
35 g->addWidget(
new QLabel(tr(
"Precision: "),
this), 0,0);
38 Precision->setValidator(
new QIntValidator(0, 12,
this));
41 g->addWidget(
new QLabel(tr(
"Number Notation: "),
this), 1,0);
43 NumberBox->insertItem(tr(
"real/imaginary"));
44 NumberBox->insertItem(tr(
"magnitude/angle (degree)"));
45 NumberBox->insertItem(tr(
"magnitude/angle (radian)"));
49 TransBox =
new QCheckBox(tr(
"transparent"),
this);
51 g->addMultiCellWidget(
TransBox,3,3,0,1);
53 QHBox *
b =
new QHBox(
this);
55 g->addMultiCellWidget(b,4,4,0,1);
58 QPushButton *ButtOK =
new QPushButton(tr(
"OK"),b);
59 connect(ButtOK, SIGNAL(clicked()), SLOT(slotAcceptValues()));
61 QPushButton *ButtCancel =
new QPushButton(tr(
"Cancel"),b);
62 connect(ButtCancel, SIGNAL(clicked()), SLOT(reject()));
70 void MarkerDialog::slotAcceptValues()