25 Description = QObject::tr(
"file based voltage source");
27 Arcs.append(
new Arc(-12,-12, 24, 24, 0, 16*360,QPen(QPen::darkBlue,2)));
28 Arcs.append(
new Arc( -3, -7, 7, 7,16*270, 16*180,QPen(QPen::darkBlue,2)));
29 Arcs.append(
new Arc( -3, 0, 7, 7, 16*90, 16*180,QPen(QPen::darkBlue,2)));
30 Lines.append(
new Line(-30, 0,-12, 0,QPen(QPen::darkBlue,2)));
31 Lines.append(
new Line( 30, 0, 12, 0,QPen(QPen::darkBlue,2)));
32 Lines.append(
new Line( 18, 5, 18, 11,QPen(QPen::red,1)));
33 Lines.append(
new Line( 21, 8, 15, 8,QPen(QPen::red,1)));
34 Lines.append(
new Line(-18, 5,-18, 11,QPen(QPen::black,1)));
36 Lines.append(
new Line( -6,-17, -6,-21,QPen(QPen::darkBlue,1)));
37 Lines.append(
new Line( -8,-17, -8,-21,QPen(QPen::darkBlue,1)));
38 Lines.append(
new Line(-10,-17,-10,-21,QPen(QPen::darkBlue,1)));
39 Lines.append(
new Line( -3,-15, -3,-23,QPen(QPen::darkBlue,2)));
40 Lines.append(
new Line(-13,-15,-13,-23,QPen(QPen::darkBlue,2)));
41 Lines.append(
new Line( -3,-23,-13,-23,QPen(QPen::darkBlue,2)));
42 Lines.append(
new Line( -3,-15,-13,-15,QPen(QPen::darkBlue,2)));
56 QObject::tr(
"name of the sample file")));
58 QObject::tr(
"interpolation type")+
" [hold, linear, cubic]"));
60 QObject::tr(
"repeat waveform")+
" [no, yes]"));
61 Props.append(
new Property(
"G",
"1",
false, QObject::tr(
"voltage gain")));
62 Props.append(
new Property(
"T",
"0",
false, QObject::tr(
"delay time")));
78 Name = QObject::tr(
"File Based Voltage Source");
79 BitmapFile = (
char *)
"vfile";
81 if(getNewOne)
return new vFile();
89 QString FileName =
Props.getFirst()->Value;
100 s +=
" "+p1->Connection->Name;
107 for(p2 =
Props.next(); p2 != 0; p2 =
Props.next())
108 s +=
" "+p2->Name+
"=\""+p2->Value+
"\"";