Qucsconv is called when a Spicefile component needs to be netlisted.
The Spice code is converted to the Qucsator format and inserted into the
netlist.
The issue is that path to Qucsconv is by default expected to be in the
same prefix as Qucs.
For testing the schematic->netlist from the command line it is
convenient to tell explicitly where Qucsconv is located.
This patch does a few things:
* Introduce the QUCSCONV environment variable to override the default
path, assume to be the same prefix as Qucs.
Setting QUCSDIR would work just fine, but require a make install first.
TODO update documentation along with issue #240
* Moved the QUCSCONV to main.cpp, where it is set only once with
a newly introduced QucsSettings.Qucsconv variable.
* Replace dialog pop-up on spicefile.cpp by a statusBar message.
Remaining issue: library components also depend on the assumption that
everything is located on the same Qucs prefix. Hence QUCSDIR migh still
be necessary in some cases, as when using command line on in-three Qucs
binary for testing purporses.
With spiceExtensions inside QucsApp we cannot run spicefile from the
command line interface.
Check if GUI is running before reading the search path lookup (which has
to be defined interactively).
Netlisting from the command line (for schematics containing spicefile
components) is still not working.
SET( QT_USE_QT3SUPPORT TRUE ) is delete from all CmakeLists.txt and adapting the souces, but "FIND_PACKAGE( Qt4 4.6.3 REQUIRED QtCore QtGui Qt3Support QtSvg QtXml QtScript)" in the root-CMakeLists.txt is unchanged. So Q3*-Header like Q3PtrList will not produce an error.
* spicedialog.cpp (loadSpiceNetList): Added selection box for
SPICE preprocessors. The preprocessor is run before the actual
SPICE to Qucs conversion.
* spicefile.cpp (recreateSubNetlist): Added preprocessor call if
necessary.
* librarydialog.cpp (slotRename): Also rename the library
subdirectory.
(slotDelete): Additionally remove all files in the library
subdirectory as well as the subdirectory itself.
* displaydialog.cpp (DisplayDialog): Showing now all three type of
models: Analog, VHDL and Verilog.
* dialogs/librarydialog.cpp (slotNext): Library creation now
includes file handling. Separate subcircuit files (VHDL, Verilog,
Qucs-Subcircuit, SPICE) used by library elements are stored in an
extra sub-directory.
* schematic_file.cpp (giveNodeNames): Saving included files in a
different manner in the global list.
(createSubNetlistPlain): Allow subcircuit files to be stored in a
dedicated file. Used during library file creations.
* main.cpp (properAbsFileName, properFileName): Added two new
helper functions for file name mangling.
2007-05-10 Stefan Jahn <stefan@lkcc.org>
* qucslib.cpp (slotShowComponent): Allow also VHDL and Verilog
entries to define a model. Fixed drag'n'drop ability for digital
only models.
2007-05-10 Stefan Jahn <stefan@lkcc.org>
* vhdlfile.cpp (getSubcircuitFile), verilogfile.cpp
(getSubcircuitFile), subcircuit.cpp (netlist), spicefile.cpp
(recreateSubNetlist): Using new file name mangling functions.
* libcomp.cpp (loadSection): Additionally loading the file include
references.
(createSubNetlist): Also put file includes into the netlist
stream.