mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Make optimization inherit from SimulationComponent
This commit is contained in:
parent
1803e9ce66
commit
3b8c38d11b
@ -29,14 +29,7 @@ Optimize_Sim::Optimize_Sim()
|
||||
{
|
||||
Description = QObject::tr("Optimization");
|
||||
Simulator = spicecompat::simQucsator;
|
||||
|
||||
Texts.append(new Text(0, 0, Description, Qt::darkBlue, QucsSettings.largeFontSize));
|
||||
|
||||
x1 = -10; y1 = -9;
|
||||
x2 = x1+128; y2 = y1+41;
|
||||
|
||||
tx = 0;
|
||||
ty = y2+1;
|
||||
initSymbol(Description);
|
||||
Model = ".Opt";
|
||||
Name = "Opt";
|
||||
|
||||
|
@ -18,10 +18,10 @@
|
||||
#ifndef OPT_SIM_H
|
||||
#define OPT_SIM_H
|
||||
|
||||
#include "component.h"
|
||||
#include "simulation.h"
|
||||
|
||||
|
||||
class Optimize_Sim : public Component {
|
||||
class Optimize_Sim : public qucs::component::SimulationComponent {
|
||||
public:
|
||||
Optimize_Sim();
|
||||
~Optimize_Sim();
|
||||
|
Loading…
x
Reference in New Issue
Block a user