tritao
551c2e48fb
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +01:00
wmayer
e56b85f6e1
Gui: Use bitmask instead of three booleans in setTemporaryVisibility to improve readability
2024-12-31 13:29:01 +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
PaddleStroke
b2f965c06e
ViewProviderOrigin: Renamed to ViewProviderCoordinateSystem
2024-11-27 12:15:53 +01:00
André Althaus
35ca189589
Fix regression in pattern reference selection
...
Reference selection in the GUI was accidentially changed to only
allow specific types of objects, preventing e.g. selection of a DatumPlane
for mirroring.
This restores the previous functionality.
2024-03-18 18:31:12 +01:00
André Althaus
1ee4a555da
Fix reference selection code
...
PolarPattern was missing some classes. The code is now more consistent
between the patterns.
2024-02-28 17:29:59 +01:00
André Althaus
bd0e555e4e
Use the isDerived<>() Template function
2024-02-28 17:29:59 +01:00
André Althaus
3936f49ee2
Fix linter hints
2024-02-28 17:29:59 +01:00
André Althaus
0c70b0bd1e
Refactor the apply function to be virtual public
2024-02-21 15:04:38 +01:00
André Althaus
30f5595e2a
Reformat files with clang-format
2024-02-17 17:13:14 +01:00
André Althaus
cf627f5ce4
Fix apply() method not called consistently
...
The python console commands where not consistenly reported because
the apply function was not called or not implemented.
The function is now called from the base class and also when
a subfeature is closed in MultiTransform.
Some missing properties are also added.
2024-02-17 17:13:14 +01:00
André Althaus
2076dff79d
Refactor: replace enum with enum class
2024-02-17 17:12:59 +01:00
André Althaus
0b3eb1ae08
Move duplicated code to the base class
...
All pattern sublcasses contain the same code for handling the
feature list. This code is now moved into the base class that handles
the common ui.
The subclasses now only need to call the setupUI/setupParameterUI function
in their constructors and implement the setupParameterUI function
to create their parameter ui into the specified widget.
The MultiTransform also handles it's common ui and the subclasses
can reuse setupParameterUI without code duplication.
2024-02-17 17:12:32 +01:00
wmayer
3e09b8ee2d
PD: modernize C++: use range-based for loop
2023-08-16 21:54:56 -05: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
luz paz
d265c9ff63
PD: remove trailing whitespace
2022-11-10 10:32:04 +01:00
berniev
f4ffd15864
Mod: redundant void 2
2022-08-08 10:27:50 +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
17e6ebf120
[PD] remove more unused includes
2022-02-22 01:19:32 +01:00
wmayer
b165947625
PD: cleanup the mess with boolean arguments and replace them with a bitmask
2021-12-03 14:46:19 +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
5d82ef08c9
PartDesign: [skip ci] Prevent crash when pressing delete key without feature selected to remove in mirror and scale pattern dialog
2020-10-12 18:56:12 +02:00
wmayer
87e7a3762b
PartDesign: [skip ci] move indexesMoved() to base class TaskTransformedParameters to avoid code duplication
2020-07-31 13:16:44 +02:00
donovaly
ccd0f58e60
[PD] allow to change feature order in patterns
...
As discussed here: https://forum.freecadweb.org/viewtopic.php?f=27&t=48998#p420352
The pattern dialogs need a feature to change the order of the features to be patterned
2020-07-31 11:47:31 +02:00
donovaly
ba5fbc5778
[PD] spread the fix from commit 319f38cafc to 3 other affected dialogs
2020-02-15 17:00:26 +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
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
c526c18b94
fix scan coverity issues: uncaught exception
2017-04-11 14:03:08 +02:00
Kunda
9410e751e9
source typo fixes pt4 (only on py3 merged code)
2017-03-02 13:47:21 +01:00
Stefan Tröger
1d1cc9cfba
PartDesign: Fix origin selection for pattern
2016-11-28 22:13:41 +01:00
wmayer
bad943b15f
issue #0001649 : Changing names on Pads does not change them everywere
2016-10-21 15:33:43 +02:00
wmayer
70ba1b994b
replace const char* with QString in removeItemFromListWidget
2016-10-21 13:48:45 +02:00
Sergo
e1a50ca414
PD: add SelectionFilterGate to filter dependents, fix mirror taskview
2016-10-15 17:41:56 +02:00
Sergo
f880202fe6
PD: fix #0002582
2016-10-15 17:41:56 +02:00
Sergo
1a688a6375
PartDesign: fix Polar and Mirror accepting Datum
2016-09-30 11:09:00 -03:00
wmayer
dd7c91ddcf
fix -Wextra in PartDesign
2016-09-22 18:34:56 +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
Stefan Tröger
463070b1f6
Fix crash on aborted pattern external axis
2016-04-12 18:12:22 +02:00
Stefan Tröger
f392ed30d2
PartDesign mirror must work with base planes
2016-04-12 18:12:22 +02:00
Alexander Golubev
96ae671a23
PartDesign/Gui: prevent Task*PatternParameters not crash on non sketchBased features
2016-04-12 18:12:19 +02:00
Alexander Golubev
3ed51ac4bd
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
d72a919384
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00