25 Description = QObject::tr(
"switch (time controlled)");
28 QObject::tr(
"initial state")+
" [on, off]"));
30 QObject::tr(
"time when state changes (semicolon separated list possible)")));
32 QObject::tr(
"resistance of \"on\" state in ohms")));
34 QObject::tr(
"resistance of \"off\" state in ohms")));
36 QObject::tr(
"simulation temperature in degree Celsius")));
49 p->
Props.getFirst()->Value =
Props.getFirst()->Value;
57 Name = QObject::tr(
"Switch");
58 BitmapFile = (
char *)
"switch";
60 if(getNewOne)
return new Switch();
70 s +=
" "+
Ports.first()->Connection->Name;
71 s +=
" "+
Ports.next()->Connection->Name;
78 for(p2 =
Props.next(); p2 != 0; p2 =
Props.next())
87 if(
Props.getFirst()->Value !=
"on") {
88 Lines.append(
new Line(-15, 0, 15,-15,QPen(QPen::darkBlue,2)));
92 Lines.append(
new Line(-15, 0, 16,-5,QPen(QPen::darkBlue,2)));
96 Lines.append(
new Line(-30, 0,-15, 0,QPen(QPen::darkBlue,2)));
97 Lines.append(
new Line( 17, 0, 30, 0,QPen(QPen::darkBlue,2)));
98 Arcs.append(
new Arc( 12, -3, 5, 5, 0, 16*360,QPen(QPen::darkBlue,2)));
99 Ellips.append(
new Area(-18, -3, 6, 6, QPen(QPen::darkBlue,2),
100 QBrush(Qt::darkBlue, Qt::SolidPattern)));