28 Description = QObject::tr(
"equation defined RF device");
35 QObject::tr(
"type of parameters")+
" [Y, Z, S]"));
37 QObject::tr(
"number of ports")));
39 QObject::tr(
"representation during DC analysis")+
40 " [open, short, unspecified, zerofrequency]"));
44 QObject::tr(
"parameter equation") +
" 11"));
46 QObject::tr(
"parameter equation") +
" 12"));
48 QObject::tr(
"parameter equation") +
" 21"));
50 QObject::tr(
"parameter equation") +
" 22"));
68 Name = QObject::tr(
"Equation Defined RF Device");
69 BitmapFile = (
char *)
"rfedd";
73 p->
Props.at(0)->Value =
"Y";
74 p->
Props.at(1)->Value =
"2";
90 s +=
" "+p1->Connection->Name;
95 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
98 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
102 s +=
" "+p2->Name+
"=\""+Name+
"."+p+n+
"\"";
103 e +=
" Eqn:Eqn"+Name+p2->Name+
" "+
104 Name+
"."+p+n+
"=\""+p2->Value+
"\" Export=\"no\"\n";
115 int fHeight = metrics.lineSpacing();
120 int No =
Props.at(1)->Value.toInt();
123 Props.at(1)->Value = QString::number(No);
126 int NumProps =
Props.count() - 3;
127 if (NumProps < No * No) {
128 for(i = 0; i < NumProps; i++) {
129 tmp=QString::number((i)/No+1)+QString::number((i)%No+1);
130 Props.at(i+3)->Name=
"P"+tmp;
131 Props.at(i+3)->Description=QObject::tr(
"parameter equation") +
" " +tmp;
133 for(i = NumProps; i < No * No; i++) {
134 tmp=QString::number((i)/No+1)+QString::number((i)%No+1);
136 QObject::tr(
"parameter equation") +
" " +tmp));
139 for(i = No * No; i < NumProps; i++) {
142 for(i = 0; i < No * No; i++) {
143 tmp=QString::number((i)/No+1)+QString::number((i)%No+1);
144 Props.at(i+3)->Name=
"P"+tmp;
145 Props.at(i+3)->Description=QObject::tr(
"parameter equation") +
" " +tmp;
151 int h = 30*((No-1)/2) + 15;
158 tmp = QObject::tr(
"RF");
159 w = metrics.width(tmp);
167 tmp = QString::number(i+1);
168 w = metrics.width(tmp);
169 Texts.append(
new Text(-20-w, y-fHeight-2, tmp));
175 tmp = QString::number(i+1);
176 Texts.append(
new Text( 20, y-fHeight-2, tmp));
185 ty =
y1 - fHeight - 4;
tQucsSettings QucsSettings
Definitions and declarations for the main application.
static Element * info(QString &, char *&, bool getNewOne=false)
Q3PtrList< Property > Props
Superclass of all schematic drawing elements.
void recreate(Schematic *)