30 QObject::tr(
"number of the port within the subcircuit")));
33 QObject::tr(
"type of the port (for digital simulation only)")
34 +
" [analog, in, out, inout]"));
49 if(
Props.at(1)->Value.at(0) ==
'a') {
50 Arcs.append(
new Arc(-25, -6, 12, 12, 0, 16*360,QPen(QPen::darkBlue,2)));
51 Lines.append(
new Line(-13, 0, 0, 0,QPen(QPen::darkBlue,2)));
54 Lines.append(
new Line( -9, 0, 0, 0,QPen(QPen::darkBlue,2)));
55 if(
Props.at(1)->Value ==
"out") {
56 Lines.append(
new Line(-20, -5,-25, 0,QPen(QPen::red,2)));
57 Lines.append(
new Line(-20, 5,-25, 0,QPen(QPen::red,2)));
58 Lines.append(
new Line(-20, -5, -9, -5,QPen(QPen::red,2)));
59 Lines.append(
new Line(-20, 5, -9, 5,QPen(QPen::red,2)));
60 Lines.append(
new Line( -9, -5, -9, 5,QPen(QPen::red,2)));
63 Lines.append(
new Line(-14, -5, -9, 0,QPen(QPen::darkGreen,2)));
64 Lines.append(
new Line(-14, 5, -9, 0,QPen(QPen::darkGreen,2)));
65 if(
Props.at(1)->Value ==
"in") {
66 Lines.append(
new Line(-25, -5,-14, -5,QPen(QPen::darkGreen,2)));
67 Lines.append(
new Line(-25, 5,-14, 5,QPen(QPen::darkGreen,2)));
68 Lines.append(
new Line(-25, -5,-25, 5,QPen(QPen::darkGreen,2)));
72 Lines.append(
new Line(-18, -5,-14, -5,QPen(QPen::darkGreen,2)));
73 Lines.append(
new Line(-18, 5,-14, 5,QPen(QPen::darkGreen,2)));
74 Lines.append(
new Line(-23, -5,-28, 0,QPen(QPen::red,2)));
75 Lines.append(
new Line(-23, 5,-28, 0,QPen(QPen::red,2)));
76 Lines.append(
new Line(-23, -5,-18, -5,QPen(QPen::red,2)));
77 Lines.append(
new Line(-23, 5,-18, 5,QPen(QPen::red,2)));
94 Name = QObject::tr(
"Subcircuit Port");
95 BitmapFile = (
char *)
"subport";
110 if(
Props.at(1)->Value !=
"out")
114 QString
s =
" net_out";
116 s += pn->
Name +
" <= ";
117 s += pn->
Name +
";\n";