Commit Graph

187 Commits

Author SHA1 Message Date
Chris Hennes
6c9557c39b Surface: Final application of pre-commit 2023-09-04 08:18:51 -05:00
wmayer
255ddb746c Surface: apply clang format 2023-09-04 07:21:32 -05:00
tomate44
a501b93f16 BlendCurve: cleanup properties instantiation 2023-08-31 10:42:40 +02:00
tomate44
bc7f7c7dbf BlendCurve: add documentation of properties 2023-08-31 10:42:40 +02:00
tomate44
34634ac3cf BlendCurve: fix auto-update of properties 2023-08-31 10:42:40 +02:00
tomate44
e1b139655f Surface: allow instant update of BlendCurve properties 2023-08-31 10:42:40 +02:00
wmayer
e4239b74b6 Surface: modernize C++: use default member init 2023-08-23 00:55:03 +02:00
wmayer
93ac88bcc3 Surface: modernize C++: use equals default 2023-08-22 11:16:10 +02:00
wmayer
e1dce4e024 Surface: modernize C++: use range-based for loop 2023-08-15 17:20:01 +02:00
tomate44
8b2c2dab51 Surface: fix BlendCurve relative size
values independent of the number of control points are more intuitive
2023-08-07 09:53:00 -06:00
wmayer
9f99285d59 modernize C++: use nullptr 2023-08-05 11:23:12 -06:00
wmayer
2b3d48176c Mods: modernize C++: redundant void arg 2023-08-05 16:50:31 +02:00
wmayer
6ff3ee9951 Sketch: modernize C++: use override 2023-08-04 17:09:53 +02:00
tomate44
da3088d8b9 Surface: Fix Blend Curve icon name
and remove unused BlendSurface code
2023-05-29 10:53:01 +02:00
luzpaz
38a01939e0 Migrate domain name from freecadweb to freecad (#9352)
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files

Closes #6415
2023-04-24 15:19:20 -05:00
wmayer
64a6c3c376 Surface: fix -Wclazy-connect-by-name 2023-04-05 00:44:13 +02:00
wmayer
c5dedb412d Surface: replace slots with member function pointers 2023-02-03 00:21:38 +01:00
luzpaz
3a6794a317 Surface: fix header uniformity 2023-01-22 20:31:45 +01:00
wmayer
4da8c3682e Surface: move to new style connect() 2023-01-13 15:21:37 +01:00
wmayer
9a9cd5f048 Surface: fix crash when canceling filling dialog 2022-12-23 11:56:00 +01:00
wmayer
996839c263 Surface: use a single button group for all task boxes 2022-12-20 19:17:10 +01:00
wmayer
8310d0e2cb Surface: add external enumerators 2022-12-20 19:17:10 +01:00
wmayer
c30ede9df4 Surface: remove unneeded includes 2022-12-20 16:22:59 +01:00
Ajinkya Dahale
80f28a4821 [Surface] Allow modal adding/removal of geometric entities 2022-12-20 15:42:46 +01:00
Uwe
3b0f96098e [Surface] enable precompiled headers
- also remove double code
2022-12-08 03:26:59 +01:00
Uwe
2ef00dc9f2 [Surface] Gui:: remove unused includes
- also some sorting
2022-12-08 01:32:38 +01:00
Uwe
101ac1175d [Surface] App:: remove unused includes
- also some sorting
2022-12-08 00:34:08 +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
wmayer
10d6a90be5 Mod: [skip ci] fix some MSVC warnings 2022-09-05 13:45:22 +02:00
wmayer
312c8f68e4 Mod: modernize C++: replace 'typedef' with 'using' 2022-08-29 23:21:15 +02:00
wmayer
e56e35cf6a Surface: [skip ci] fix minor issues found by code checkers 2022-08-24 18:47:48 +02:00
wmayer
c7d6f7ab87 Surface: add unit test for blend curve 2022-08-24 14:37:10 +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
c2b9eceec1 Surface: several improvements
* fix crash because of incomplete inheritance of BlendPoint and BlendCurve -> do not inherit from BaseClass
  as consequebce make destructor non-virtual and remove getPyObject
* pass std::vector by const reference
* remove unneeded includes
* use more suitable Python exception types
* when returning with null from Python handler then set an exception
* harmonize file guards
* several optimizations or simplifications
* use modern C++
* harmonize command name
* fix copyright note
2022-08-23 16:51:55 +02:00
Matteo-Grellier
3b839551da [Surface]: Change to BaseClass 2022-08-23 16:51:16 +02:00
Matteo-Grellier
83ee62bca4 [Surface]: Implementation of BlenCurve. 2022-08-23 16:51:16 +02:00
tomate44
6ec601dade Surface: Various fixes 2022-08-23 16:51:16 +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
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
berniev
47ac049e14 Mod: use emplace_back 2022-08-05 10:36:16 +02:00
wmayer
985f0a9132 Surface: Fix several clazy issues:
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* Use multi-arg instead [-Wclazy-qstring-arg]
2022-07-25 10:01:49 +02:00
Uwe
7b4e014263 [Robot etc.] remove superfluous nullptr checks 2022-07-18 02:54:09 +02:00
andrea
c66aadeb60 removed references to OCC<7 2022-06-25 14:29:24 +02:00
wmayer
c5bab68332 Gui: add convenience functions to SelectionFilterGate 2022-04-19 15:04:14 +02:00
Chris Hennes
fc4371f0d9 Surface: PR4556 Step 3: sort QGridLayout by row-col 2022-03-28 10:43:23 -05:00
wmayer
10e65e9141 Surface: include header with export macros 2022-03-24 20:41:34 +01:00
wmayer
3268179b7b Surface: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
bfb18671fc [Surface] remove Python.h and Xerces 2022-03-20 22:46:47 +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