25 Description = QObject::tr(
"bipolar junction transistor");
36 p->
Props.getFirst()->Value =
Props.getFirst()->Value;
44 Name = QObject::tr(
"npn transistor");
45 BitmapFile = (
char *)
"npn";
47 if(getNewOne)
return new BJT();
54 Name = QObject::tr(
"pnp transistor");
55 BitmapFile = (
char *)
"pnp";
59 p->
Props.getFirst()->Value =
"pnp";
69 Lines.append(
new Line(-10,-15,-10, 15,QPen(Qt::darkBlue,3)));
70 Lines.append(
new Line(-30, 0,-10, 0,QPen(Qt::darkBlue,2)));
71 Lines.append(
new Line(-10, -5, 0,-15,QPen(Qt::darkBlue,2)));
72 Lines.append(
new Line( 0,-15, 0,-30,QPen(Qt::darkBlue,2)));
73 Lines.append(
new Line(-10, 5, 0, 15,QPen(Qt::darkBlue,2)));
74 Lines.append(
new Line( 0, 15, 0, 30,QPen(Qt::darkBlue,2)));
76 if(
Props.getFirst()->Value ==
"npn") {
77 Lines.append(
new Line( -6, 15, 0, 15,QPen(Qt::darkBlue,2)));
78 Lines.append(
new Line( 0, 9, 0, 15,QPen(Qt::darkBlue,2)));
81 Lines.append(
new Line( -5, 10, -5, 16,QPen(Qt::darkBlue,2)));
82 Lines.append(
new Line( -5, 10, 1, 10,QPen(Qt::darkBlue,2)));
96 QString s =
"BJT:"+
Name;
100 s +=
" "+p1->Connection->Name;
101 s +=
" "+
Ports.at(1)->Connection->Name;
105 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
Q3PtrList< Property > Props
Superclass of all schematic drawing elements.
void recreate(Schematic *)
static Element * info(QString &, char *&, bool getNewOne=false)
static Element * info_pnp(QString &, char *&, bool getNewOne=false)