Skip to content

Commit

Permalink
Make externally driven transient sim. inherit from SimulationComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
wawuwo committed Jun 23, 2024
1 parent 2c5e687 commit 7c3a7f6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
16 changes: 1 addition & 15 deletions qucs/components/etr_sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,13 @@
* *
***************************************************************************/
#include "etr_sim.h"
#include "main.h"


ETR_Sim::ETR_Sim()
{
Description = QObject::tr("externally driven transient simulation");
Simulator = spicecompat::simQucsator;

QString s = Description;
int a = 17;
s[a] = '\n';

Texts.append(new Text(0, 0, s.left(a), Qt::darkBlue, QucsSettings.largeFontSize));
if (a != -1)
Texts.append(new Text(0, 0, s.mid(a+1), Qt::darkBlue, QucsSettings.largeFontSize));

x1 = -10; y1 = -9;
x2 = x1+130; y2 = y1+59;

tx = 0;
ty = y2+1;
initSymbol(Description);
Model = ".ETR";
Name = "ETR";

Expand Down
4 changes: 2 additions & 2 deletions qucs/components/etr_sim.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
#ifndef ETR_SIM_H
#define ETR_SIM_H

#include "component.h"
#include "simulation.h"


class ETR_Sim : public Component {
class ETR_Sim : public qucs::component::SimulationComponent {
public:
ETR_Sim();
~ETR_Sim();
Expand Down

0 comments on commit 7c3a7f6

Please sign in to comment.