27 Props.append(
new Property(
"t",
"0",
false, QObject::tr(
"delay time")));
29 Lines.append(
new Line(-20,-20, 20,-20,QPen(Qt::darkBlue,2)));
30 Lines.append(
new Line(-20, 20, 20, 20,QPen(Qt::darkBlue,2)));
31 Lines.append(
new Line(-20,-20,-20, 20,QPen(Qt::darkBlue,2)));
32 Lines.append(
new Line( 20,-20, 20, 20,QPen(Qt::darkBlue,2)));
34 Lines.append(
new Line(-30,-10,-20,-10,QPen(Qt::darkBlue,2)));
35 Lines.append(
new Line(-30, 10,-20, 10,QPen(Qt::darkBlue,2)));
36 Lines.append(
new Line( 30,-10, 20,-10,QPen(Qt::darkBlue,2)));
37 Lines.append(
new Line( 30, 10, 20, 10,QPen(Qt::darkBlue,2)));
39 Texts.append(
new Text(-18,-21,
"R", Qt::darkBlue, 12.0));
40 Texts.append(
new Text(-18, -1,
"S", Qt::darkBlue, 12.0));
41 Texts.append(
new Text( 6,-21,
"Q", Qt::darkBlue, 12.0));
42 Texts.append(
new Text( 6, -1,
"Q", Qt::darkBlue, 12.0));
43 Texts.current()->over=
true;
63 QString td =
Props.at(0)->Value;
70 Ports.at(2)->Connection->Name +
" <= " +
71 Ports.at(0)->Connection->Name +
" nor " +
72 Ports.at(3)->Connection->Name + s +
" " +
73 Ports.at(3)->Connection->Name +
" <= " +
74 Ports.at(1)->Connection->Name +
" nor " +
75 Ports.at(2)->Connection->Name + s +
'\n';
84 QString td =
Props.at(0)->Value;
92 QString s =
Ports.at(1)->Connection->Name;
93 QString r =
Ports.at(0)->Connection->Name;
94 QString q =
Ports.at(2)->Connection->Name;
95 QString b =
Ports.at(3)->Connection->Name;
97 l =
"\n // " +
Name +
" RS-flipflop\n" +
98 " assign" + t + q +
" = ~(" + r +
" | " + b +
");\n" +
99 " assign" + t + b +
" = ~(" + s +
" | " + q +
");\n\n";
112 Name = QObject::tr(
"RS-FlipFlop");
113 BitmapFile = (
char *)
"rsflipflop";
static Element * info(QString &, char *&, bool getNewOne=false)
bool VHDL_Delay(QString &td, const QString &Name)
#define isDigitalComponent
bool Verilog_Delay(QString &td, const QString &Name)
Definitions and declarations for the main application.
Q3PtrList< Property > Props
Superclass of all schematic drawing elements.