wmayer
2a7498c930
Helper function to get preferred delete key depending on platform
2025-06-09 18:10:52 +02:00
Chris Hennes
9a77120e82
Merge pull request #20142 from bofdahof/ranges
...
Apply C++20 std::ranges (mainly to std::find)
2025-03-17 03:08:27 -05:00
bofdahof
216a76e971
PartDesign: apply std::ranges
2025-03-16 17:17:15 -05:00
mosfet80
392aea5bf6
Update TaskBooleanParameters.cpp
2025-03-05 09:48:07 +01:00
Andrea
2d4ab5af20
REMOVE old QT<= 5.14 code
...
Ubuntu 22.04 use qt 1.15.3.
In the code is still used qt code <5.10.
A cleanup was done by removing qT code version used in ubuntu 18.04.
2025-03-05 09:32:06 +01:00
tritao
551c2e48fb
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +01:00
Kacper Donat
954b729b56
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
779fda5e4a
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
wwmayer
c5384dc36a
PartDesign: Prepare for clang-format ( #16048 )
...
* PartDesign: Prepare for clang-format
* [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-02 17:48:26 +02:00
André Caldas
89dbab9b0e
Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
...
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.
The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).
Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".
The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
Florian Foinant-Willig
24934d7843
PartDesign: modernize type checking
2023-10-23 18:08:16 +02:00
wmayer
622e46771e
PD: modernize C++: use equals default
2023-08-22 13:31:17 +02:00
wmayer
3e09b8ee2d
PD: modernize C++: use range-based for loop
2023-08-16 21:54:56 -05:00
wmayer
22e6e2cd40
Part/PD: modernize C++: redundant void arg
2023-08-05 16:50:31 +02:00
Chris Hennes
2ab9abbb01
PD: Attempt to translate exceptions in dialogs
...
Relies on the exception text having been added to the translation database in a previous call to QT_TRANSLATE_NOOP, and put in the 'Exception' context.
2023-04-27 17:41:41 -05:00
wmayer
a122aa01a7
PD: move to new style connect()
2023-01-15 14:27:33 +01:00
berniev
53ba98d636
Mod: use empty
2022-08-06 19:30:13 +02:00
Uwe
dfecb337e7
[PD] remove more superfluous nullptr checks
2022-07-18 01:33:28 +02:00
Uwe
16b25c5dab
[PD] remove superfluous nullptr checks
2022-07-17 18:12:41 +02:00
wmayer
d1d4b996e7
PD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
8f786ea6ef
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Uwe
a68e017f19
[PD] Gui: Boolean to Groove: remove unused includes
2022-02-21 01:33:04 +01:00
donovaly
b483fc0518
[PD] make pointers to the UI std::unique_ptr
...
Same as PR #4293 , just for PartDesign
as noted in https://github.com/FreeCAD/FreeCAD/pull/4271#discussion_r554673632
the pointer to the UI should be a unique pointer.
This PR does this for all PartDesign dialogs that don't already use a unique_ptr.
2021-02-05 18:01:57 +01:00
wmayer
60d9607112
PartDesign: use QKeySequence::Delete instead of a QString
2020-02-14 10:11:09 +01:00
donovaly
0310a99f4e
[PD] add shortcut to context menus
...
- people should be informed that there is a shortcut available (that was recently added)
- make the shortcut also translatable since "Del" means nothing in e.g. German
- minor code style fix in TaskDressUpParameters.h
2020-02-14 09:59:46 +01:00
luz.paz
dc8bf3dc39
PartDesign: [skip ci] fix header uniformity
...
This PR fixes header uniformity across all PartDesign WB files
2019-12-22 00:58:38 +01:00
Zheng, Lei
cd2b7e297c
PartDesign changes
...
* Mostly for supporting in-place editing
* Add new SubShapeBinder that support cross coordinate system,
external, and sub-object binding
2019-08-17 15:15:47 +02:00
wmayer
1e6cfd430c
support Del shortcut in several PD task dialogs
2019-02-27 13:36:45 +01:00
wmayer
96e6a43245
In boolean task panel show labels not internal names, fix adding/removing bodies
2019-02-19 20:49:14 +01:00
wmayer
34da2b5d4f
PVS: V783 Dereferencing of the invalid iterator 'b' might take place.
2019-02-17 22:39:13 +01:00
sL1pKn07
6674467254
[For v018] Fix build with Qt5 beta
...
Seems need add some headers for build with incoming Qt 5.11 (Tested with 5.11.0beta2)
2018-04-10 12:59:41 +02:00
wmayer
bbbbf6c691
don't allow to set empty list of bodies for boolean operations
...
don't update the body feature if boolean body list is empty
2018-03-15 12:05:13 +01:00
wmayer
2f2ba28156
remove pointless Section option from boolean operation in PD
2017-11-04 13:46:42 +01:00
Stefan Tröger
8841fb0805
Make PartDesign::Boolean work with new Link structure
...
This is the first feature that used GeoFeatureGroupExtension and required links to the groups inside as well as to things on the same level. Hence a few modifications to link scopes have been nesseccary.
2017-09-09 16:55:55 +02:00
wmayer
e8554cc77a
do not use doCommand without using format string, add overloaded method of runCommand
2016-09-15 18:53:37 +02:00
wmayer
c2dd2e2b99
fix Coverity issues
2016-08-21 18:46:40 +02:00
Mateusz Skowroński
a8d37dabbe
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-04-15 11:55:12 +02:00
Alexander Golubev
27667cf5e6
Fix warnings introduced in new PartDesign
...
Mostly unused wariables and compare of signed & unsigned
2016-04-12 18:12:21 +02:00
Alexander Golubev
9347f66a9e
PartDesign/Gui: Move various utility stuff from Workbench to a separate file
...
Also do some header cleanup.
2016-04-12 18:12:17 +02:00
Stefan Tröger
d2bd36e663
fix crash in boolean op if no base feature exists
2016-04-12 18:12:12 +02:00
jrheinlaender
5de7ac36c9
Prevent unnecessary error messages while loading a part
2016-04-12 18:11:52 +02:00
jrheinlaender
d09eaa2168
Changed tree ordering of booleans and bodies
2016-04-12 18:11:51 +02:00
jrheinlaender
dfce69c4b0
Allow booleans of bodies in PartDesign
2016-04-12 18:11:51 +02:00