tritao
6c2c6847eb
CMake: Cleanup targets with transitive dependencies
2025-03-17 12:12:06 +00:00
Chris Hennes
7f1c43a335
Merge pull request #19636 from kadet1090/color-in-base
...
Base: Move App::Color to Base
2025-03-02 16:36:40 -06:00
Benjamin Bræstrup Sayoc
755229df23
Build: suppress warnings from 3rd party libraries
...
Warnings from 3rd parties are not relevant and are only polluting the warning output. Marking these libraries as SYSTEM suppresses warning.
https://gcc.gnu.org/onlinedocs/cpp/Invocation.html#index-I
https://gcc.gnu.org/onlinedocs/cpp/System-Headers.html
2025-02-25 14:39:05 +00:00
Andrew Shkolik
a6c92e19f6
Surface - Fill boundary curves not honor SplitCurve edge if it's part of BSpline
2025-02-24 16:59:31 +00:00
Joao Matos
cc6ffb44de
Core: Move PyCXX library to src/3rdParty.
2025-02-24 16:36:06 +00:00
Kacper Donat
12a69fe296
Base: Add isNullOrEmpty string helper
...
This adds isNullOrEmpty string helper that cheks if string is... well
null or empty. It is done to improve readability of the code and better
express intent.
2025-02-21 15:04:43 +01:00
Kacper Donat
a72a63232a
Base: Move App::Color to Base
...
Every basic data type is stored in Base module, color is standing out as
one that does not. Moving it to Base opens possibilities to integrate it
better with the rest of FreeCAD.
2025-02-17 21:10:26 +01:00
Joao Matos
27ebc68a11
CMake: Modernize build files using outdated Python variables.
2025-02-16 10:21:26 -06:00
Benjamin Bræstrup Sayoc
e0fb77bcdc
Surface: Use QStringLiteral
2025-02-10 18:34:57 +01:00
tritao
65466d580b
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +01:00
Benjamin Nauck
dd6aa9f3c7
Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
...
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
Benjamin Nauck
7b22027b90
Add template based Document::countObjectsOfType
...
Also convert code to use this new method
2025-01-14 14:23:46 +01:00
Benjamin Nauck
08c9a191e2
Add template based SelectionSingleton::countObjectsOfType
...
Also convert code to use this new method
2025-01-13 18:55:15 +01:00
Kacper Donat
651cefde4d
Gui: Use getObject<T>() helpers in classes
...
This commit is generated using regex based find and replace:
```
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*getObject\(\s*\)\)/getObject<$1>/
s/[\w:]+_cast\s*<([^>]+)\*>\s*\(\s*([^)]*)\s*->\s*getObject\(\s*\)\)/$2->getObject<$1>()/
```
To regenerate if needed.
2024-12-06 18:29:39 +01:00
Benjamin Nauck
fdfb9fd2c6
Reuse Std_Delete shortcut instead of hardcoding Delete ( #16682 )
...
* Reuse Std_Delete shortcut in TaskBooleanParameters
* Reuse Std_Delete shortcut in TaskDressUpParameters
* Reuse Std_Delete shortcut in TaskLoftParameters
* Reuse Std_Delete shortcut in TaskPipeParameters
* Reuse Std_Delete shortcut in TaskSapeBinder
* Reuse Std_Delete shortcut in TaskTransformedParameters
* Reuse Std_Delete shortcut in TaskExtrudeParameters
* Reuse Std_Delete shortcut in TaskSections
* Reuse Std_Delete shortcut in MaterialSave
* Reuse Std_Delete shortcut in Array2D
* Reuse Std_Delete shortcut in TaskFemConstraint
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-23 10:53:39 -05:00
wmayer
80670094eb
Clean-up code and improve formatting
2024-06-17 16:30:25 +02:00
David Carter
8b5a3b1124
Material: Appearance Updates 2
...
Improves the use of the ShapeAppearance property for the Part workbench.
removes DiffuseColor property
adds Python compatibility using custom attributes
transitions DiffuseColor to ShapeAppearance on open
Improved UI elements for setting object appearance, and appearance per face
Lays the foundation for future texture support
2024-06-01 19:57:16 -05:00
wmayer
4185605d5e
clang/gcc: Add build option FREECAD_WARN_ERROR to force to make warnings into errors
2024-05-29 13:37:07 +02:00
David Carter
495a96a0f5
Material: Material appearance
...
Uses new material system for appearance
Each feature object now has a property called ShapeMaterial that
describes its physical properties. If it has a shape, it has a
material.
The ShapeColor attribute is replaced by a ShapeAppearance attribute.
This is a material list that describes all appearance properties, not
just diffuse color. As a list in can be used for all elements of a
shape, such as edges and faces.
A new widget is provided to allow the user to select materials in a
consistent fashion. It can also launch the material editor with its
more advanced capabilities.
2024-04-04 07:39:58 -05:00
wmayer
c0f151104a
Surface: use of TaskDialog::addTaskBox
2024-03-26 15:57:20 +01:00
Chris Hennes
aaa0db3867
Merge pull request #11231 from DeflateAwning/http-cleanup
...
Find and replace http://freecad to https://freecad
2023-11-06 11:16:13 -06:00
DeflateAwning
c847a3d516
Change http to https in SVGs
...
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Include: *.svg
2023-10-29 22:32:59 -06:00
Florian Foinant-Willig
6fb3984322
Surface: modernize type checking
2023-10-23 18:08:22 +02:00
liukaiwen
4f8fe8fd4a
[cmake] some definitions do not matter build now
2023-09-27 18:17:14 +08:00
pre-commit-ci[bot]
222a2520b1
[pre-commit.ci] auto fixes from pre-commit.com hooks
...
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
Chris Hennes
217674de04
Surface: Final application of pre-commit
2023-09-04 08:18:51 -05:00
wmayer
4919fa18ff
Surface: apply clang format
2023-09-04 07:21:32 -05:00
tomate44
f3463fe5a7
BlendCurve: cleanup properties instantiation
2023-08-31 10:42:40 +02:00
tomate44
81670321b8
BlendCurve: add documentation of properties
2023-08-31 10:42:40 +02:00
tomate44
2df068b3c5
BlendCurve: fix auto-update of properties
2023-08-31 10:42:40 +02:00
tomate44
cdf998343f
Surface: allow instant update of BlendCurve properties
2023-08-31 10:42:40 +02:00
wmayer
6bdff0f477
Surface: modernize C++: use default member init
2023-08-23 00:55:03 +02:00
wmayer
fecc939611
Surface: modernize C++: use equals default
2023-08-22 11:16:10 +02:00
wmayer
30d98dd417
Surface: modernize C++: use range-based for loop
2023-08-15 17:20:01 +02:00
tomate44
9587393ca3
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
d244dcf2da
modernize C++: use nullptr
2023-08-05 11:23:12 -06:00
wmayer
39e53e5eb0
Mods: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
wmayer
30249e6550
Sketch: modernize C++: use override
2023-08-04 17:09:53 +02:00
tomate44
6d1e88db07
Surface: Fix Blend Curve icon name
...
and remove unused BlendSurface code
2023-05-29 10:53:01 +02:00
luzpaz
129d5882a7
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
5163c1a2f4
Surface: fix -Wclazy-connect-by-name
2023-04-05 00:44:13 +02:00
wmayer
0363ebdf8f
Surface: replace slots with member function pointers
2023-02-03 00:21:38 +01:00
luzpaz
0e67943ea3
Surface: fix header uniformity
2023-01-22 20:31:45 +01:00
wmayer
9b5505fb34
Surface: move to new style connect()
2023-01-13 15:21:37 +01:00
wmayer
af33cdabe5
Surface: fix crash when canceling filling dialog
2022-12-23 11:56:00 +01:00
wmayer
6d535f834d
Surface: use a single button group for all task boxes
2022-12-20 19:17:10 +01:00
wmayer
e8cba4dda9
Surface: add external enumerators
2022-12-20 19:17:10 +01:00
wmayer
c8dd58fc20
Surface: remove unneeded includes
2022-12-20 16:22:59 +01:00
Ajinkya Dahale
f0f72d9ce3
[Surface] Allow modal adding/removal of geometric entities
2022-12-20 15:42:46 +01:00
Uwe
97ee8b847f
[Surface] enable precompiled headers
...
- also remove double code
2022-12-08 03:26:59 +01:00