22 #include <qfileinfo.h>
29 Description = QObject::tr(
"equation defined 2-port RF device");
36 QObject::tr(
"type of parameters")+
" [Y, Z, S, H, G, A, T]"));
38 QObject::tr(
"representation during DC analysis")+
39 " [open, short, unspecified, zerofrequency]"));
43 QObject::tr(
"parameter equation") +
" 11"));
45 QObject::tr(
"parameter equation") +
" 12"));
47 QObject::tr(
"parameter equation") +
" 21"));
49 QObject::tr(
"parameter equation") +
" 22"));
66 Name = QObject::tr(
"Equation Defined 2-port RF Device");
67 BitmapFile = (
char *)
"rfedd";
71 p->
Props.at(0)->Value =
"Y";
81 QString
s =
"RFEDD:"+
Name;
87 s +=
" "+p1->Connection->Name;
92 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
95 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
99 s +=
" "+p2->Name+
"=\""+
Name+
"."+p+n+
"\"";
100 e +=
" Eqn:Eqn"+
Name+p2->Name+
" "+
101 Name+
"."+p+n+
"=\""+p2->Value+
"\" Export=\"no\"\n";
112 int fHeight = metrics.lineSpacing();
125 tmp =
Props.at(0)->Value;
126 w = metrics.width(tmp);
133 tmp = QString::number(i+1);
134 w = metrics.width(tmp);
135 Texts.append(
new Text(-20-w, y-fHeight-2, tmp));
140 tmp = QString::number(i+1);
141 Texts.append(
new Text( 20, y-fHeight-2, tmp));
149 ty =
y1 - fHeight - 4;