41 Commits

Author SHA1 Message Date
luz paz
10c1ee639c Fix various typos (including documenation)
Found via `codespell -q 3 -S *.ts,./qucs/ChangeLog -L ba,coul,inout,leaded,nd,numer,ro`
2022-07-05 07:08:28 -04:00
Vadim Kuznetsov
189802ab0d Fix more warnings in components 2022-02-24 00:13:12 +01:00
Vadim Kuznetsov
f9af5213da Everything in components compiles 2022-02-13 20:39:55 +01:00
Vadim Kuznetzov
bedcad140a Refactoring: Moved SpiceFile::getSubcktname() to spicecompat namespace 2016-03-10 13:45:45 +03:00
Vadim Kuznetzov
dc190fec88 Disabled QucsConv invocation when SPICE simulation kernel is selected 2016-01-21 18:53:06 +03:00
Guilherme Brondani Torri
0cb7ec1588 Enable to set qucsconv via environment variable.
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.
2015-09-13 19:00:16 +02:00
Guilherme Brondani Torri
07ad029735 Move spiceExtensions out of QucsApp, fix crash
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.
2015-09-13 18:57:58 +02:00
yodalee
2ab553207d remove getSpiceNameFilter funciton
replace with QStringList join
2015-01-28 00:07:55 +08:00
global667
e33a3ae388 Delete QT3_US_SUPPORT from all CMakesLists.txt
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.
2014-11-27 20:16:14 +01:00
yodalee
0462cf7058 remove qtgui in components/cppfile 2014-11-04 13:36:17 +08:00
yodalee
304f0cc1d6 modify indent 2014-11-04 01:34:28 +08:00
yodalee
06e8ba92ad move QListBox to QListWidget 2014-11-04 01:19:16 +08:00
yodalee
e40fb84f9f move Q3layout to Qt4
Q3HBox->QHBoxLayout
Q3VBox->QVBoxLayout
Q3GridLayout->QGridLayout
2014-11-04 00:06:38 +08:00
Guilherme Brondani Torri
b04aa3d042 fix qucsconv on Windows
* QProcesses not launching properly.
* executable without extension.
2014-08-31 08:55:18 +02:00
Guilherme Brondani Torri
f06bb6d860 qucs: move from Q3TextStream to QTextStream 2014-06-06 22:06:38 +02:00
Richard C Crozier
df5a797644 Improved handling of spice extensions 2014-02-07 15:04:12 +00:00
Richard C Crozier
be2ae049e2 spicedialog.cpp: replaced Q3FileDialog #include with QFileDialog 2014-02-07 12:06:06 +00:00
Richard C Crozier
48518bde26 spicedialog.cpp: upgraded Q3FileDialog to QFileDialog 2014-02-07 11:55:58 +00:00
Richard C Crozier
2f641378ee spicedialog.cpp: corrected QucsConv slots and signals and added test for empty line in qucsconv output, also reformatted A-Style 2014-02-07 11:44:43 +00:00
Guilherme Brondani Torri
b0d7cce0b7 Fix several Qt3 deprecated header inclusion 2013-12-01 18:35:44 +01:00
Guilherme Brondani Torri
edde902512 Fix depreprecated header include
Silence the anoying warning:
c:/Qt/4.8.5/include/Qt/qbrush.h:3:10: warning: #warning "Inclusion of header fil
es from include/Qt is deprecated."
2013-12-01 18:35:44 +01:00
Frans Schreuder
6a56fc1a1f Qucs Home directory can now be edited in Application settings, as well as octave bin dir 2013-07-01 23:43:49 +02:00
Frans Schreuder
9195de22a8 Ported some Q3Process statements to QProcess
Fixes simulations not finishing if they contain octave scripts
2013-06-28 20:18:35 +02:00
Frans Schreuder
5736ac67f8 Compiles with QT4 (still crashes when opening a document) 2012-10-31 09:15:06 +01:00
ela
35073bc578 2008-09-25 Stefan Jahn <stefan@lkcc.org>
* contrib/ps2sp: Renamed ps2sp.pl into ps2sp in order to avoid
        'script-with-language-extension' warning for Debian packages.
2008-09-25 17:50:05 +00:00
ela
bd62b3035d * using activated() instead of highlighted() signal for
the preprocessor combobox
2007-06-02 11:13:47 +00:00
ela
fdeb5bb4d6 2007-05-31 Stefan Jahn <stefan@lkcc.org>
* qucs_uk.ts: Updated Ukrainian translations.
2007-05-31 16:10:38 +00:00
ela
b433bc88cb 2007-05-30 Stefan Jahn <stefan@lkcc.org>
* spicefile.cpp, spicedialog.cpp: Tested code for all three SPICE
        preprocessors.  Made small modicfications for spiceprm as well as
        for Win32.
2007-05-30 17:18:44 +00:00
ela
7e74d25284 2007-05-29 Stefan Jahn <stefan@lkcc.org>
* 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.
2007-05-29 18:59:18 +00:00
ela
ac0ce156e3 2007-05-12 Stefan Jahn <stefan@lkcc.org>
* 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.
2007-05-12 17:15:11 +00:00
ela
c9a549b860 2007-05-10 Stefan Jahn <stefan@lkcc.org>
* 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.
2007-05-10 21:54:06 +00:00
margraf
c0ffdbf2ce *** empty log message *** 2006-07-03 06:02:08 +00:00
margraf
54c4de8e35 *** empty log message *** 2006-04-28 06:04:44 +00:00
margraf
0ed81add8c *** empty log message *** 2006-03-28 06:10:52 +00:00
margraf
1448bea334 *** empty log message *** 2005-10-24 06:10:35 +00:00
margraf
bcd5d061ee *** empty log message *** 2005-07-04 06:07:17 +00:00
margraf
6036e52114 *** empty log message *** 2005-06-06 06:29:49 +00:00
raimi
8650b28c4b 2005-05-21 Michael Margraf <michael.margraf@alumni.tu-berlin.de>
* fixed bug scaling independent x axis in Cartesian diagram

2005-05-21  Stefan Jahn  <stefan@lkcc.org>

        * spicedialog.cpp (loadSpiceNetList): Closing stdin of
        qucsconv process.
2005-05-23 20:07:05 +00:00
margraf
d8bb5c6e15 *** empty log message *** 2005-05-20 06:19:18 +00:00
margraf
db72ed1dff *** empty log message *** 2005-05-17 06:35:55 +00:00
margraf
e42df3f888 *** empty log message *** 2005-05-09 06:32:17 +00:00