Commit Graph

259 Commits

Author SHA1 Message Date
Yorik van Havre
5033f64ce9 Merged crowdin translations 2023-01-17 09:40:31 +01:00
Yorik van Havre
ec6b14bbee Merged crowdin translations 2023-01-09 14:06:28 +01:00
wmayer
61fe4b6b6c Raytracing: QString::indexOf is now marked as [[nodiscard]] 2022-12-31 21:54:45 +01:00
Yorik van Havre
3376e387da Merged crowdin translations 2022-12-20 10:01:00 +01:00
Yorik van Havre
d206d5cd1f Updated ts files 2022-12-20 09:31:25 +01:00
Uwe
6451bbee69 [Raytracing] remove unused headers from PreCompiled
- just a preparation since enabling precompiled headers do not yet compile
2022-12-10 02:27:33 +01:00
Uwe
6ab86b96c0 [Raytracing] remove unnecessary include 2022-12-07 03:10:29 +01:00
Ajinkya Dahale
f120851112 (Attempt to) fix compile issue in Raytracing
Currently in Manjaro/Arch/Linux there's this issue:
```
/.../src/Mod/Raytracing/App/LuxProject.cpp: In member function ‘virtual App::DocumentObjectExecReturn* Raytracing::LuxProject::execute()’:
/.../src/Mod/Raytracing/App/LuxProject.cpp:85:20: error: variable ‘std::ifstream file’ has initializer but incomplete type
   85 |     ifstream file (fi.filePath().c_str());
      |                    ^~
/.../src/Mod/Raytracing/App/LuxProject.cpp:89:20: error: variable ‘std::ofstream ofile’ has initializer but incomplete type
   89 |     ofstream ofile(tempName.c_str());
      |                    ^~~~~~~~
```

See https://stackoverflow.com/questions/50355130/variable-stdofstream-outfile-has-initializer-but-incomplete-type.

Also edit `Precompiled.h` as compile fix
2022-12-06 21:41:53 +01:00
Uwe
3336f3398b [Raytracing] attempt to fix compilation on Arch linux
by adding all used STL headers

- also uniform std handling (either using namespace and then omit or use it always and no namespace
2022-12-06 19:04:38 +01:00
Uwe
8b25b8a902 [Raytracing] Gui: remove unused includes
- also some sorting
2022-12-06 02:26:00 +01:00
Uwe
f345b85b2d [Raytracing] App: remove unused includes
- also some sorting
2022-12-06 02:00:57 +01:00
Chris Hennes
1fac3fead0 cMake: Add support for compiling against Qt6 (#7647)
Removes the BUILD_QT5 flag and adds a new FREECAD_QT_VERSION option,
which can be set to either "Auto" (default), 5, or 6. Auto detects which
version of Qt is installed on the system and chooses it. If both version
are installed, Qt5 is used.

Note that this DOES NOT implement compiling against Qt6, it only adds
the necessary cMake infrastructure to begin work on the source code
changes that will be required.
2022-10-31 09:24:09 -05:00
Yorik van Havre
1ae780d3b1 Merged crowdin translations 2022-10-17 15:12:16 +02:00
wmayer
840fc70106 Mod: replace QRegExp with QRegularExpression 2022-10-07 14:03:53 +02:00
Yorik van Havre
4ca1b838a9 Merged crowdin translations 2022-10-06 12:48:05 +02:00
marioalexis
67dc3c5cd1 Raytracing: Replace C cast 2022-09-18 11:06:51 -05:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
Jonas Bähr
46cee50bd5 Fix build on MacOS-X 10.14: missing Xerces include dir
This undoes most of the Xerces related part of the commits listed below.
The issue resolved here is that the Xerces include dir *is* set in the
CMakeLists.txt of src/Base, but it got removed from various App and Gui
dirs in src/Mod. If those now include a header from src/Base, which
itself includes xercesc, the build fails using Apple clang version 11.0.0
(clang-1100.0.33.17) on Mojave, configured using cmake 3.22.1, with
errors like the following:

In file included from .../src/Mod/Part/App/FeaturePartBoolean.cpp:34:
In file included from .../src/App/Application.h:33:
.../src/Base/Parameter.h:54:10: fatal error: 'xercesc/util/XercesDefs.hpp' file not found
 #include <xercesc/util/XercesDefs.hpp>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.

Finally, a full list of the commits that introduced this spurious include
dir optimization for reference:
- Drawing: commit f4411478d106ba9f4827754a50efa53bd7767a66
- Image: commit e3476815c04c571199779bd1e444b950e6398025
- Import: commit b7b264e52c8fd97e83987c4ce42ce563170c8918
- Inspection: commit 1f64d8b1b8fcabe983c6e5e624d65766b4429ea0
- Mesh: commit 5a8fed0720d681cdbb9fedc840d2532c4f2f6042
- Part: commit 26bb65f11f4b51e5e47b65b2d6049ece10705a83
- PartDesign: commit f4e49f2aecf08f2337e84510ed019b7fa4b685a3
- Path: commit e3d9cc98577d2073297d55ffd8de28dd50f8444c
- Points: commit 09f3e867cdccd31294cced4e3c73015d3add3f4a
- Raytracing: commit 7b92dedc53f09e2ce8365408f3003e5700aebfc8
- ReverseEnginering: commit eeacc51ad0cd82e5f17d63207f78f79eb20bf9a9
- Robot: commit 4d06684cbd0328e4f43c78b5dab7e7fcebab148d
- Sketcher: commit 079125665495a08a7e2e2a4f01da406128dca625
- Spreadsheet: commit 514097954e95c04a7ec9d7e8ec1afc3aac3dd8d
- Start: commit 2ea2bb0dc393d7b8b41e9137c6d4ae40ce29719d
- Surface: commit 272268dd6c0b460ae9aeecdf371495ea26aa044d
- TechDraw: commit c70fdc3e0aa6b409626a6fa6b7266d05f3338c6d
- Test: commit 49a07b121e08e9bf3fef0f414a8da5602533592e
- Web: commit a93a23d7e4da13b2d5c37ac087b2dcf41aae197d
2022-08-24 07:40:04 +02:00
wmayer
8c298493de Mod: replace std::ifstream/std::ofstream with Base::ifstream/Base::ofstream 2022-08-21 12:46:53 +02:00
wmayer
c87e1cc1c2 clang: fix warnings [-Winconsistent-missing-override] 2022-08-09 17:36:25 +02:00
berniev
71dc5ead2f Mod: Use override etc 2 2022-08-09 12:52:26 +02:00
berniev
53ba98d636 Mod: use empty 2022-08-06 19:30:13 +02:00
wmayer
e11a95732a Raytracing: [skip ci] Fix several clazy issues:
* Don't call QList::operator[]() on temporary [-Wclazy-detaching-temporary]
2022-07-25 10:50:50 +02:00
Yorik van Havre
d2f8b7d4e3 Merged crowdin translations 2022-06-08 12:28:54 +02:00
Chris Hennes
861233e7f2 i18n: TS files generated by lupdate 6.4.0dev 2022-06-02 13:41:37 -05:00
Yorik van Havre
9cbe14f1d5 Merged crowdin translations 2022-05-30 10:01:02 +02:00
Yorik van Havre
2dffe82cda Merged crowdin translations 2022-05-27 11:28:55 +02:00
Kuzemko Alexsandr
c266f16c53 Update .ts with lupdate ver 6.4.0. 2022-05-23 16:53:07 +02:00
Yorik van Havre
996994da55 Merged crowdin translations 2022-05-05 15:46:09 +02:00
Zheng, Lei
8bec44934b Fix mixed line endings 2022-04-26 12:52:55 -05:00
Yorik van Havre
1fbd1fb38d Merged crowdin translations 2022-04-21 14:18:33 +02:00
Chris Hennes
6e681ffee7 Raytracing: PR6497 move return statement to new line 2022-03-29 13:23:53 -05:00
Chris Hennes
1141c266a9 Raytracing: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:22 -05:00
wmayer
b02854f842 Raytracing: include header with export macros 2022-03-24 20:40:31 +01:00
wmayer
d21a60b294 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
669b22252a Raytracing: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
d78bd81c67 [Raytracing] remove Python.h and Xerces 2022-03-20 22:53:01 +01:00
wmayer
0f9768fb33 Fix coverity issue:
* CID 332682: Resource leak
* CID 350607: Resource leak
* CID 332677: Resource leak
2022-03-14 11:35:04 +01:00
Uwe
554635cc7d [Gui] rename the Qt header list 2022-03-07 20:35:38 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Yorik van Havre
2cff977548 Merged crowdin translations 2022-03-07 14:55:22 +01:00
Syres916
e053db75b3 [Raytracing] Bugfix for compiling with OCC 7.6.x
See discussion https://forum.freecadweb.org/viewtopic.php?f=4&p=577109#p577109
2022-03-06 22:32:31 +01:00
wmayer
91e4e468dd Base: move ILogger sub-classes to their own source files in order to reduce including stream classes in client code 2022-03-06 10:13:47 +01:00
wmayer
5e0cfc64ee App: use forward declarations 2022-03-04 21:09:46 +01:00
Yorik van Havre
e1028eb65e Merged crowdin translations 2022-02-14 12:31:57 +01:00
Yorik van Havre
233182dcd6 Merged crowdin translations 2022-01-26 14:15:14 +01:00
luz paz
28ab1bb68f Fix various superfluous whitespace in *.dox files 2022-01-09 21:01:42 -06:00
wmayer
36fe42d869 Raytracing: replace subprocess.call with subprocess.Popen and escape file names 2022-01-02 22:44:04 +01:00
Yorik van Havre
91bfb0fbb6 Merged crowdin translations 2021-12-29 12:20:12 +01:00
Yorik van Havre
c4d4575eb3 Merged crowdin translations 2021-11-16 17:30:39 +01:00