25 #include <QGridLayout>
26 #include <QVBoxLayout>
27 #include <QHBoxLayout>
38 #include <QPushButton>
45 setWindowTitle(tr(
"Edit File Properties"));
47 all =
new QVBoxLayout(
this);
48 QTabWidget *t =
new QTabWidget();
52 QWidget *Tab1 =
new QWidget(t);
53 QGridLayout *gp =
new QGridLayout(Tab1);
56 QLabel *l2 =
new QLabel(tr(
"Data Set:"), Tab1);
57 gp->addWidget(l2,0,0);
61 QLabel *l1 =
new QLabel(tr(
"Data Display:"));
62 gp->addWidget(l1,1,0);
66 Check_OpenDpl =
new QCheckBox(tr(
"open data display after simulation"),
70 QLabel *l20 =
new QLabel(tr(
"Octave Script:"), Tab1);
71 gp->addWidget(l20,3,0);
79 t->addTab(Tab1, tr(
"Simulation"));
82 QWidget *Tab2 =
new QWidget(t);
83 QGridLayout *gp2 =
new QGridLayout(Tab2);
87 valExpr =
new QRegExpValidator(QRegExp(
"[1-9]\\d{0,2}"),
this);
89 QLabel *l3 =
new QLabel(tr(
"horizontal Grid:"), Tab2);
90 gp2->addWidget(l3,1,0);
95 QLabel *l4 =
new QLabel(tr(
"vertical Grid:"), Tab2);
96 gp2->addWidget(l4,2,0);
101 t->addTab(Tab2, tr(
"Grid"));
104 QWidget *Tab3 =
new QWidget(t);
105 QGridLayout *gp3 =
new QGridLayout(Tab3);
131 t->addTab(Tab3, tr(
"Frame"));
135 QHBoxLayout *Butts =
new QHBoxLayout();
136 Butts->setSpacing(5);
138 all->addLayout(Butts);
140 QPushButton *OkButt =
new QPushButton(tr(
"OK"));
141 Butts->addWidget(OkButt);
142 connect(OkButt, SIGNAL(clicked()), SLOT(
slotOK()));
143 QPushButton *ApplyButt =
new QPushButton(tr(
"Apply"));
144 Butts->addWidget(ApplyButt);
145 connect(ApplyButt, SIGNAL(clicked()), SLOT(
slotApply()));
146 QPushButton *CancelButt =
new QPushButton(tr(
"Cancel"));
147 Butts->addWidget(CancelButt);
148 connect(CancelButt, SIGNAL(clicked()), SLOT(reject()));
150 OkButt->setDefault(
true);
196 bool changed =
false;
284 Doc->viewport()->repaint();
QLineEdit * Input_DataDisplay
SettingsDialog(Schematic *)
QRegExpValidator * valExpr
QCheckBox * Check_OpenDpl
QCheckBox * Check_RunScript
void encode_String(const QString &Input, QString &Output)
QLineEdit * Input_DataSet
void decode_String(QString &Output)
void setChanged(bool, bool fillStack=false, char Op='*')