25 Description = QObject::tr(
"file based current source");
27 Arcs.append(
new Arc(-12,-12, 24, 24, 0, 16*360,QPen(Qt::darkBlue,2)));
28 Lines.append(
new Line(-30, 0,-12, 0,QPen(Qt::darkBlue,2)));
29 Lines.append(
new Line( 30, 0, 12, 0,QPen(Qt::darkBlue,2)));
30 Lines.append(
new Line( -7, 0, 7, 0,QPen(Qt::darkBlue,3)));
31 Lines.append(
new Line( 6, 0, 0, -4,QPen(Qt::darkBlue,3)));
32 Lines.append(
new Line( 6, 0, 0, 4,QPen(Qt::darkBlue,3)));
34 Lines.append(
new Line( -6,-17, -6,-21,QPen(Qt::darkBlue,1)));
35 Lines.append(
new Line( -8,-17, -8,-21,QPen(Qt::darkBlue,1)));
36 Lines.append(
new Line(-10,-17,-10,-21,QPen(Qt::darkBlue,1)));
37 Lines.append(
new Line( -3,-15, -3,-23,QPen(Qt::darkBlue,2)));
38 Lines.append(
new Line(-13,-15,-13,-23,QPen(Qt::darkBlue,2)));
39 Lines.append(
new Line( -3,-23,-13,-23,QPen(Qt::darkBlue,2)));
40 Lines.append(
new Line( -3,-15,-13,-15,QPen(Qt::darkBlue,2)));
54 QObject::tr(
"name of the sample file")));
56 QObject::tr(
"interpolation type")+
" [hold, linear, cubic]"));
58 QObject::tr(
"repeat waveform")+
" [no, yes]"));
59 Props.append(
new Property(
"G",
"1",
false, QObject::tr(
"current gain")));
60 Props.append(
new Property(
"T",
"0",
false, QObject::tr(
"delay time")));
76 Name = QObject::tr(
"File Based Current Source");
77 BitmapFile = (
char *)
"ifile";
79 if(getNewOne)
return new iFile();
87 QString FileName =
Props.getFirst()->Value;
98 s +=
" "+p1->Connection->Name;
105 for(p2 =
Props.next(); p2 != 0; p2 =
Props.next())
106 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";
Q3PtrList< struct Arc > Arcs
Definitions and declarations for the main application.
static Element * info(QString &, char *&, bool getNewOne=false)
QString properAbsFileName(const QString &Name)
Q3PtrList< Property > Props
Superclass of all schematic drawing elements.
QString getSubcircuitFile()