Skip to content

Commit

Permalink
Allow free text editing for .IC components.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwbnwif committed Dec 10, 2024
1 parent 0fe4bc4 commit aa3354b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions qucs/components/componentdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ ComponentDialog::ComponentDialog(Component* schematicComponent, Schematic* schem
componentNameWidget->setCheck(component->showName);

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

Expand All @@ -358,8 +358,8 @@ ComponentDialog::ComponentDialog(Component* schematicComponent, Schematic* schem
// for a given simulation type. Then only create the valid widgets fo
// sweepParams[".AC"] = QStringList({"Type", "Start", "Stop", "Points"});

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

// Setup the dialog according to the component kind.
Expand Down

0 comments on commit aa3354b

Please sign in to comment.