mirror of
https://github.com/ra3xdh/qucs_s
synced 2025-03-28 21:13:26 +00:00
Refactoring
This commit is contained in:
parent
6a908fc86f
commit
4700d7d747
@ -66,10 +66,7 @@ bool AbstractSpiceKernel::prepareSpiceNetlist(QTextStream &stream)
|
||||
QTextEdit *err = new QTextEdit;
|
||||
Sch->prepareNetlist(stream,collect,err,true);
|
||||
delete err;
|
||||
|
||||
//Sch->Signals.clear(); // was filled in "giveNodeNames()"
|
||||
//Sch->FileList.clear();
|
||||
|
||||
Sch->clearSignalsAndFileList(); // for proper build of subckts
|
||||
return true; // TODO: Add feature to determine ability of spice simulation
|
||||
}
|
||||
|
||||
|
@ -281,6 +281,7 @@ public:
|
||||
QString createNetlist(QTextStream&, int);
|
||||
bool loadDocument();
|
||||
void highlightWireLabels (void);
|
||||
void clearSignalsAndFileList();
|
||||
|
||||
private:
|
||||
int saveDocument();
|
||||
|
@ -1961,3 +1961,9 @@ QString Schematic::createNetlist(QTextStream& stream, int NumPorts)
|
||||
|
||||
return Time;
|
||||
}
|
||||
|
||||
void Schematic::clearSignalsAndFileList()
|
||||
{
|
||||
Signals.clear(); // was filled in "giveNodeNames()"
|
||||
FileList.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user