From e8e8f13b4913b4fd627fe2133beda13a5702144f Mon Sep 17 00:00:00 2001 From: Krasilnikov Sergey Date: Wed, 15 Nov 2023 15:21:25 +0300 Subject: [PATCH] fixes #350 --- qucs/spicecomponents/Icouple.cpp | 2 +- qucs/spicecomponents/core.cpp | 4 ++-- qucs/spicecomponents/eNL.cpp | 2 +- qucs/spicecomponents/gNL.cpp | 2 +- qucs/spicecomponents/iPWL.cpp | 2 +- qucs/spicecomponents/isffm.cpp | 2 +- qucs/spicecomponents/vPWL.cpp | 2 +- qucs/spicecomponents/vsffm.cpp | 4 ++-- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/qucs/spicecomponents/Icouple.cpp b/qucs/spicecomponents/Icouple.cpp index 2252335ee..689dfb16a 100644 --- a/qucs/spicecomponents/Icouple.cpp +++ b/qucs/spicecomponents/Icouple.cpp @@ -64,7 +64,7 @@ Icouple::Icouple() x1 = -45; y1 = -45; - x2 = 50; y2 = 45; + x2 = 65; y2 = 45; tx = x1+5; ty = y2+5; diff --git a/qucs/spicecomponents/core.cpp b/qucs/spicecomponents/core.cpp index 8ff2dc01d..753ff8953 100644 --- a/qucs/spicecomponents/core.cpp +++ b/qucs/spicecomponents/core.cpp @@ -48,8 +48,8 @@ core::core() Ports.append(new Port( -40, 0)); // Pin Ports.append(new Port( 40, 0)); // Pout - x1 = -35; y1 = -30; - x2 = 35; y2 = 30; + x1 = -45; y1 = -30; + x2 = 45; y2 = 30; tx = x1+5; ty = y2+5; diff --git a/qucs/spicecomponents/eNL.cpp b/qucs/spicecomponents/eNL.cpp index ff79d01c5..72c573420 100644 --- a/qucs/spicecomponents/eNL.cpp +++ b/qucs/spicecomponents/eNL.cpp @@ -29,7 +29,7 @@ eNL::eNL() // Value, Table and POLY forms are allowed. Arcs.append(new qucs::Arc(-14,-14, 28, 28, 0, 16*360,QPen(Qt::blue,3))); - Texts.append(new Text(30,12,"ENL",Qt::blue,10.0,0.0,-1.0)); + Texts.append(new Text(36,4,"ENL",Qt::blue,10.0,0.0,-1.0)); Lines.append(new qucs::Line(-30, 0,-14, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( 30, 0, 14, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( 18, -5, 18, -11,QPen(Qt::red,2))); diff --git a/qucs/spicecomponents/gNL.cpp b/qucs/spicecomponents/gNL.cpp index 60522bc8d..e2b1e5957 100644 --- a/qucs/spicecomponents/gNL.cpp +++ b/qucs/spicecomponents/gNL.cpp @@ -29,7 +29,7 @@ gNL::gNL() // Value, Table and POLY forms are allowed: should work with ngspice and Xyce. Arcs.append(new qucs::Arc(-14,-14, 28, 28, 0, 16*360,QPen(Qt::blue,3))); - Texts.append(new Text(30, 12,"GNL",Qt::blue,10.0,0.0,-1.0)); + Texts.append(new Text(36, 4,"GNL",Qt::blue,10.0,0.0,-1.0)); Lines.append(new qucs::Line(-30, 0,-14, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( 30, 0, 14, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( -7, 0, 7, 0,QPen(Qt::darkBlue,3))); diff --git a/qucs/spicecomponents/iPWL.cpp b/qucs/spicecomponents/iPWL.cpp index 1864e4e49..e27808155 100644 --- a/qucs/spicecomponents/iPWL.cpp +++ b/qucs/spicecomponents/iPWL.cpp @@ -31,7 +31,7 @@ iPWL::iPWL() // normal voltage source symbol Arcs.append(new qucs::Arc(-12,-12, 24, 24, 0, 16*360,QPen(Qt::darkRed,3))); - Texts.append(new Text(30, 12,"PWL",Qt::darkRed,10.0,0.0,-1.0)); + Texts.append(new Text(36, 4,"PWL",Qt::darkRed,10.0,0.0,-1.0)); Lines.append(new qucs::Line(-30, 0,-12, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( 30, 0, 12, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( -7, 0, 7, 0,QPen(Qt::darkRed,3))); diff --git a/qucs/spicecomponents/isffm.cpp b/qucs/spicecomponents/isffm.cpp index 1b2b91f98..846dda901 100644 --- a/qucs/spicecomponents/isffm.cpp +++ b/qucs/spicecomponents/isffm.cpp @@ -31,7 +31,7 @@ iSffm::iSffm() // normal current source symbol Arcs.append(new qucs::Arc(-12,-12, 24, 24, 0, 16*360,QPen(Qt::darkRed,3))); - Texts.append(new Text(36, 4," SFFM",Qt::darkRed,10.0,0.0,-1.0)); + Texts.append(new Text(36, 4,"SFFM",Qt::darkRed,10.0,0.0,-1.0)); Lines.append(new qucs::Line(-30, 0,-12, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( 30, 0, 12, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( -7, 0, 7, 0,QPen(Qt::darkRed,3))); diff --git a/qucs/spicecomponents/vPWL.cpp b/qucs/spicecomponents/vPWL.cpp index 14ce90d03..742d68562 100644 --- a/qucs/spicecomponents/vPWL.cpp +++ b/qucs/spicecomponents/vPWL.cpp @@ -30,7 +30,7 @@ vPWL::vPWL() Simulator = spicecompat::simSpice; Arcs.append(new qucs::Arc(-12,-12, 24, 24, 0, 16*360,QPen(Qt::darkRed,3))); - Texts.append(new Text(30, 12,"PWL",Qt::darkRed,10.0,0.0,-1.0)); + Texts.append(new Text(36, 4,"PWL",Qt::darkRed,10.0,0.0,-1.0)); Lines.append(new qucs::Line(-30, 0,-12, 0,QPen(Qt::darkBlue,3))); Lines.append(new qucs::Line( 30, 0, 12, 0,QPen(Qt::darkBlue,3))); Lines.append(new qucs::Line( 18, -5, 18, -11,QPen(Qt::red,3))); diff --git a/qucs/spicecomponents/vsffm.cpp b/qucs/spicecomponents/vsffm.cpp index 0def2ff67..eb194c30e 100644 --- a/qucs/spicecomponents/vsffm.cpp +++ b/qucs/spicecomponents/vsffm.cpp @@ -30,8 +30,8 @@ vSffm::vSffm() Simulator = spicecompat::simSpice; // normal voltage source symbol - Arcs.append(new qucs::Arc(-12,-12, 24, 24, 0, 16*360,QPen(Qt::darkRed,3))); - Texts.append(new Text(36, 4," SFFM",Qt::darkRed,10.0,0.0,-1.0)); + Arcs.append(new qucs::Arc(-12,-12, 24, 24, 0, 16*360,QPen(Qt::darkRed,3))); + Texts.append(new Text(36, 4,"SFFM",Qt::darkRed,10.0,0.0,-1.0)); Lines.append(new qucs::Line(-30, 0,-12, 0,QPen(Qt::darkBlue,2))); Lines.append(new qucs::Line( 30, 0, 12, 0,QPen(Qt::darkBlue,2)));