Skip to content

Commit

Permalink
Noise simulations do not have "Simulation" or "Sweep Parameter" setti…
Browse files Browse the repository at this point in the history
…ngs. Distortion simulations should have a sweep tab.
  • Loading branch information
iwbnwif committed Nov 20, 2024
1 parent 782f592 commit ed28844
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions qucs/components/componentdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,8 @@ ComponentDialog::ComponentDialog(Component* schematicComponent, Schematic* schem
component = schematicComponent;
document = schematic;

qDebug() << component->Model;

restoreGeometry(_settings::Get().item<QByteArray>("ComponentDialog/geometry"));
setWindowTitle(tr("Edit Component Properties") + " - " + component->Description.toUpper());

Expand All @@ -347,13 +349,13 @@ ComponentDialog::ComponentDialog(Component* schematicComponent, Schematic* schem

// Try to work out what kind of component this is.
isEquation = QStringList({"Eqn", "NutmegEq", "SpicePar", "SpGlobPar"}).contains(component->Model);
hasSweep = QStringList({".AC", ".NOISE", ".SW", ".SP", ".TR"}).contains(component->Model);
hasSweep = QStringList({".AC", ".DISTO", ".NOISE", ".SW", ".SP", ".TR"}).contains(component->Model);
sweepProperties = QStringList({"Sim", "Type", "Param", "Start", "Stop", "Points"});
hasFile = component->Props.count() > 0 && component->Props.at(0)->Name == "File";

paramsHiddenBySim["Export"] = QStringList{"NutmegEq"};
paramsHiddenBySim["Sim"] = QStringList{".AC", ".SP", ".TR", "Eqn", "SpicePar", "SpGlobPar"};
paramsHiddenBySim["Param"] = QStringList{".AC", ".SP", ".TR"};
paramsHiddenBySim["Sim"] = QStringList{".AC", ".DISTO", ".SP", ".NOISE", ".TR", "Eqn", "SpicePar", "SpGlobPar"};
paramsHiddenBySim["Param"] = QStringList{".AC", ".DISTO", ".SP", ".NOISE", ".TR"};

// Setup the dialog according to the component kind.
if (isEquation)
Expand Down

0 comments on commit ed28844

Please sign in to comment.