23 Description = QObject::tr(
"RLCG transmission line");
25 Lines.append(
new Line(-30, 0, 30, 0,QPen(QPen::darkBlue,2)));
26 Lines.append(
new Line(-28, 7, 28, 7,QPen(QPen::darkBlue,2)));
28 Lines.append(
new Line(-28, 14,-21, 7,QPen(QPen::darkBlue,2)));
29 Lines.append(
new Line(-21, 14,-14, 7,QPen(QPen::darkBlue,2)));
30 Lines.append(
new Line(-14, 14, -7, 7,QPen(QPen::darkBlue,2)));
31 Lines.append(
new Line( -7, 14, 0, 7,QPen(QPen::darkBlue,2)));
32 Lines.append(
new Line( 0, 14, 7, 7,QPen(QPen::darkBlue,2)));
33 Lines.append(
new Line( 7, 14, 14, 7,QPen(QPen::darkBlue,2)));
34 Lines.append(
new Line( 14, 14, 21, 7,QPen(QPen::darkBlue,2)));
35 Lines.append(
new Line( 21, 14, 28, 7,QPen(QPen::darkBlue,2)));
38 int fHeight = metrics.lineSpacing();
39 QString tmp = QObject::tr(
"RLCG");
40 int w = metrics.width(tmp);
41 Texts.append(
new Text(w/-2, -fHeight, tmp));
46 x1 = -30;
y1 = -fHeight;
55 QObject::tr(
"resistive load")+
" ("+QObject::tr (
"Ohm/m")+
")"));
57 QObject::tr(
"inductive load")+
" ("+QObject::tr (
"H/m")+
")"));
59 QObject::tr(
"capacitive load")+
" ("+QObject::tr (
"F/m")+
")"));
61 QObject::tr(
"conductive load")+
" ("+QObject::tr (
"S/m")+
")"));
63 QObject::tr(
"electrical length of the line")));
65 QObject::tr(
"simulation temperature in degree Celsius")));
79 Name = QObject::tr(
"RLCG Transmission Line");
80 BitmapFile = (
char *)
"rlcg";
82 if(getNewOne)
return new RLCG();