85 Commits

Author SHA1 Message Date
Vadim Kuznetsov
c9dac25b20 Change required CMake version to ensure compatibility with Ubunutu22.04 #264 2023-05-25 09:09:49 +03:00
Vadim Kuznetsov
c6dec8391f Set explicit locale for QDoubleValidator 2023-03-25 20:12:58 +03:00
dsm
a22e4ba234 add msvc build support. - added msvc compiler flags. - fixed wrong file encoding. - change VLA to fixed or dynamic array for msvc. - succesfully build with qt6.5.0 and vs2019 on win10 native. 2023-02-28 14:49:51 +03:00
dsm
3dc306a611 fixed fPIC and corrected cmake qt5 package find. 2023-02-14 09:52:43 +03:00
dsm
d8bd72206b cmake update
1. cmake minimum version updated to 3.18
2. find_package qt updated no need for  -DWITH_QT6
2023-02-13 21:50:15 +03:00
Vadim Kuznetsov
4e782ec31e Set -fPIC using CMake 2023-02-13 15:28:36 +03:00
Muhammet Şükrü Demir
834ea4d19a compiler options more generic now 2023-02-13 13:25:30 +03:00
Vadim Kuznetsov
67e000234e Activefilter utility compiles 2023-01-26 12:10:45 +03:00
Vadim Kuznetsov
764bf9ff85 Provide options to build utilities with Qt6 2023-01-26 11:15:02 +03:00
Krasilnikov Sergey
b70e615020 replace foreach macro 2023-01-15 01:17:09 +03:00
Krasilnikov Sergey
2a76359bfd fix qucs setShorcuts() deprecation 2023-01-14 22:02:59 +03:00
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
4a10052fa1 Update minimum cmake version 2022-04-26 16:40:35 +03:00
Vadim Kuznetsov
bf9a87c520 Set explicit STATIC cmake target for libs 2022-02-20 16:27:02 +01:00
Vadim Kuznetsov
8e148581ea Fix CMakeLists
1. Remvove invalid option -Wno-deprecated-register
2. Supress messages form qDebug() when Release mode activated
2022-02-19 12:04:51 +01:00
Vadim Kuznetsov
c9ffce91a7 Fixed default font in utilities 2022-02-18 19:47:32 +01:00
Vadim Kuznetsov
51831a58e0 QucsActivefilter compiles and runs with Qt5 2022-02-14 22:31:30 +01:00
Vadim Kuznetzov
30de5ae169 Further remove Autotools 2017-10-21 18:06:46 +03:00
Vadim Kuznetzov
c56cfe6a15 Disable Autotools 2017-10-21 15:03:09 +03:00
Vadim Kuznetzov
a62186403b Further remove WITH_SPICE... 2017-10-20 18:23:21 +03:00
Vadim Kuznetzov
9a1a7b17ec Remove WITH_SPICE CMake switch 2017-10-20 17:37:13 +03:00
Vadim Kuznetzov
d1bd120d41 Don't use QUCSDIR with QUCS-S 2016-12-08 11:04:16 +03:00
Vadim Kuznetzov
5e9ceffa49 Fixed after merge of release-0.0.19 2016-11-05 17:54:15 +03:00
Vadim Kuznetzov
080af2931e Added icons set and manpages for Qucs-S to avoid rewriting existing ones after installation 2016-07-22 15:00:25 +03:00
Vadim Kuznetzov
5bb55b9562 Replaced hardcoded resurces paths
Resources paths at $prefix/share/qucs/ are defined now via QUCS_NAME
marcro from config.h
2016-07-22 15:00:25 +03:00
Vadim Kuznetzov
eba11e32ea Implemented building of two apllications with CMake
1. Added WITH_SPICE CMake variable. If it is not set usual Qucs will be
built. Application name is set to "qucs". If it is set, Qucs-S will be
built. Application name will be to "qucs-s".
2. Removed hardoced resources paths in "/usr/share/qucs", etc and
application names. Now resource paths depends on application name.
Resources will be installed into PREFIX/share/qucs-s/ for Qucs-S
3. Introduced a special definition QUCS_NAME in config.h. It will store
real application name.
4. Disabled default Debug mode for CMake
5. Exclude qucsattenuator, qucsedit, qucsresocdes, qucstrans, and qucshelp
(except docs) from the build system when building with WITH_SPICE switch
2016-07-22 14:57:44 +03:00
in3otd
9951c6045b Instantiate QApplication sooner so applicationDirPath() is valid
applicationDirPath() was used before a QApplication was instantiated
so it returned an empty path. This caused the application language
files path to be computed incorrectly.
2016-04-17 22:27:51 +02:00
Guilherme Brondani Torri
7d0feb8b08 Remove LANGUAGEDIR definition.
The language files are installed into
  [prefix]/share/qucs/lang
regardless of the definition of LANGUAGEDIR.
2016-04-08 22:03:37 +02:00
Guilherme Brondani Torri
ea38769bda Avoid using LANGUAGEDIR definition.
To have qucs in a relocatable directory (in Windows) it cannot rely
the prefix given at build time. This is actually a bug.

This patch let each tool find the language files at runtime, relative
to the location of the executable.
2016-04-08 22:03:37 +02:00
Guilherme Brondani Torri
da81c032b1 DOCDIR only matters to qusc-help 2016-02-06 05:44:26 +01:00
Guilherme Brondani Torri
f656794a31 LIBRARYDIR only relevant to qucs-lib 2016-02-06 05:40:52 +01:00
Guilherme Brondani Torri
a3bbbfdf92 remove traces of OCTAVEDIR 2016-02-06 05:37:32 +01:00
Guilherme Brondani Torri
915b1bd125 remove references to BINARYDIR 2016-02-06 05:33:38 +01:00
Guilherme Brondani Torri
7530640d99 remove references to BITMAPDIR 2016-02-06 05:31:03 +01:00
Felix Salfelder
25f7544f74 make distcheck work in qucs
- add SUFFIXES for .h->.moc.cpp rule
- add various _HEADERS
- distribute qucs.qrc
- add several qrc files
- add more filter headers
- sort out qm rule
- add translation files to dist
2015-09-28 22:03:45 +02:00
Vadim Kuznetzov
afcde20f81 Added force resizing in main window constructor
----
Main window remains with large gaps between window elements
in some cases. Force resizing helps to keep smallest possible window
height.
2015-09-18 21:24:09 +02:00
in3otd
8b9b2277af Add possibility to view/hide text output console
The text output console showing the detailed results of the filter
calculation can be now hidden/shown using a dedicated menu item.
Visibility of the output console is remembered across sessions using
the QucsSettings.
A status bar has also been added to show the status of the last
calculation
2015-09-18 21:24:09 +02:00
Vadim Kuznetzov
9029bc7879 Replaced float by double
Suggested in discussion thread at issue #300
2015-09-18 21:24:09 +02:00
in3otd
c3207ec766 Make main window more compact
The filter schematic and the frequency response images are now shown
one below the other and not side by side, in order to reduce the
minimum window width required. Images were also centered and their
size made relative to the main input boxes sizes.
2015-09-18 21:24:09 +02:00
in3otd
345beaf21b Use fixed width font for the text output window
The text output console now uses HTML and <pre> tags to force using
a fixed witdh font, so the results are lined up better.
2015-09-18 21:24:09 +02:00
in3otd
d4e93674f5 Correct transient error when switching to band stop filter
When switching to a band-stop filter (from low-pass or others) an
error message appeared on the console since slotUpdateSchematic()
was not initializing the schematic file name string to use and no
assignment to it was made until slotSwitchParameters() updated
the filter type. Now a default assignment is done so no transient
error occurs anymore.
2015-09-18 21:24:09 +02:00
in3otd
a658ef3369 Use QucsSettings, correct windows titles
Implement QSettings read/write on startup/exit, as for the other
tools. Set main window title and icon as in the other tools.
Correct Help window title.
2015-09-18 21:24:09 +02:00
in3otd
b872ea4d01 Fix some typos 2015-09-18 21:24:09 +02:00
in3otd
34ef8ac46b Simplify an expression to avoid loss of precision
A sqrt() function had an argument that often should have been
nominally zero but was sometimes negative, likely due to loss
of precision, when compiled without optimization.
The expression was simplified taking into account the
cancellation of various terms.
2015-09-18 21:24:09 +02:00
Guilherme Brondani Torri
dbf6ef26e1 [cmake] remove unrecognized compiler flag.
warning: unrecognized command line option "-Wno-deprecated-register" [enabled by default]

This is unknown to mingw 4.8.2 and MSVC10.
2015-07-03 17:12:25 +02:00
Vadim Kuznetzov
67080e545c Added fix to avoid infinite loop 2015-04-04 16:50:00 +03:00
Guilherme Brondani Torri
b51b31f956 active: s/M_PI/pi 2015-01-20 16:34:25 +01:00
Guilherme Brondani Torri
9246b219c9 fix various warnings of unused variable, arguments... 2015-01-20 16:32:12 +01:00
Guilherme Brondani Torri
b44ceb1fcf fix warning: unused variable 2015-01-20 11:23:07 +01:00
yodalee
648081b5a4 add Wno-deprecated-register C++flags
disable noisy warning
2015-01-10 08:06:46 +08:00