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, even numbered lists are repeated)")));
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")));
38 QObject::tr(
"Max possible switch transition time (transition time 1/100 smallest value in 'time', or this number)")));
51 p->
Props.getFirst()->Value =
Props.getFirst()->Value;
59 Name = QObject::tr(
"Switch");
60 BitmapFile = (
char *)
"switch";
62 if(getNewOne)
return new Switch();
72 s +=
" "+
Ports.first()->Connection->Name;
73 s +=
" "+
Ports.next()->Connection->Name;
80 for(p2 =
Props.next(); p2 != 0; p2 =
Props.next())
89 if(
Props.getFirst()->Value !=
"on") {
90 Lines.append(
new Line(-15, 0, 15,-15,QPen(Qt::darkBlue,2)));
94 Lines.append(
new Line(-15, 0, 16,-5,QPen(Qt::darkBlue,2)));
98 Lines.append(
new Line(-30, 0,-15, 0,QPen(Qt::darkBlue,2)));
99 Lines.append(
new Line( 17, 0, 30, 0,QPen(Qt::darkBlue,2)));
100 Arcs.append(
new Arc( 12, -3, 5, 5, 0, 16*360,QPen(Qt::darkBlue,2)));
101 Ellips.append(
new Area(-18, -3, 6, 6, QPen(Qt::darkBlue,2),
102 QBrush(Qt::darkBlue, Qt::SolidPattern)));
Q3PtrList< struct Arc > Arcs
static Element * info(QString &, char *&, bool getNewOne=false)
Q3PtrList< Property > Props
Superclass of all schematic drawing elements.
void recreate(Schematic *)