22 #include <qfileinfo.h>
36 QObject::tr(
"name of the s parameter file")));
38 QObject::tr(
"data type")+
" [rectangular, polar]"));
40 QObject::tr(
"interpolation type")+
" [linear, cubic]"));
42 QObject::tr(
"representation during DC analysis")+
43 " [open, short, shortall, unspecified]"));
47 QObject::tr(
"number of ports")));
56 p->
Props.getLast()->Value =
Props.getLast()->Value;
64 Name = QObject::tr(
"n-port S parameter file");
65 BitmapFile = (
char *)
"spfile3";
69 p->
Props.getFirst()->Value =
"test.s3p";
70 p->
Props.getLast()->Value =
"3";
80 Name = QObject::tr(
"1-port S parameter file");
81 BitmapFile = (
char *)
"spfile1";
90 Name = QObject::tr(
"2-port S parameter file");
91 BitmapFile = (
char *)
"spfile2";
95 p->
Props.getFirst()->Value =
"test.s2p";
96 p->
Props.getLast()->Value =
"2";
107 QString FileName =
Props.getFirst()->Value;
118 s +=
" "+p1->Connection->Name;
126 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
130 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
134 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"\n";
142 int PortDistance = 60;
143 int Num =
Props.getLast()->Value.toInt();
147 if(Num > 40) Num = 40;
149 Props.getLast()->Value = QString::number(Num);
151 int h = (PortDistance/2)*((Num-1)/2) + 15;
152 Lines.append(
new Line(-15, -h, 15, -h,QPen(QPen::darkBlue,2)));
153 Lines.append(
new Line( 15, -h, 15, h,QPen(QPen::darkBlue,2)));
154 Lines.append(
new Line(-15, h, 15, h,QPen(QPen::darkBlue,2)));
155 Lines.append(
new Line(-15, -h,-15, h,QPen(QPen::darkBlue,2)));
156 Texts.append(
new Text( -9, -6,QObject::tr(
"file")));
162 Lines.append(
new Line(-30, y,-15, y,QPen(QPen::darkBlue,2)));
164 Texts.append(
new Text(-25,y-14,QString::number(i)));
168 Lines.append(
new Line( 15, y, 30, y,QPen(QPen::darkBlue,2)));
170 Texts.append(
new Text( 19,y-14,QString::number(i)));
174 Lines.append(
new Line( 0, h, 0,h+15,QPen(QPen::darkBlue,2)));
183 ty =
y1 - 2*metrics.lineSpacing() - 4;