Kacper Donat
2d22c8f4af
PD: Keep Length and Offset in sync for LinearPattern
...
As Length and Offset represents the same concept in different way it is
useful to keep them in sync when it is possible. Update to one of them
will update the other with approperiate value. This behaviour behaviour
works only if both properties are not coming from expression engine -
those will stay not touched.
2023-08-27 12:45:53 +02:00
al
b7da44f57b
PD: Add offset / overall length modes for LinearPattern
...
This commit adds support for two separate modes of defining distance
between elements in PD's Linear Pattern.
1. Overall Length - which works exactly like it works before,
2. Spacing - which allows user to explicitly define distance (offset) between
features.
2023-08-27 12:45:53 +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
luz paz
d265c9ff63
PD: remove trailing whitespace
2022-11-10 10:32:04 +01: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
wmayer
7b43f7e996
PD: improve task panel for linear patterns:
...
* set range of Occurrences property to spin box
* connect signals after initializing widgets to avoid superfluous recomputes and possible inconsistencies
2021-03-03 10:32:02 +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
marioalexis
2236c50e57
[PartDesign] Prevent crash when pressing delete key without feature selected to remove in linear and polar pattern dialog
2020-10-12 16:37:46 +02:00
marioalexis
97dd610c43
[PartDesign] Prevent crash when pressing delete key without feature selected to remove in linear and polar pattern dialog
2020-10-12 16:37:46 +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
wmayer
fe103a482f
PartDesign: add/remove features to list view in linear pattern panel
2020-02-15 15:55:11 +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
bbdb0ab323
fixes 0003611: Linear pattern: 'Select reference' does near to nothing
2018-09-25 11:07:43 +02: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
6f6ff3bab1
harmonize creation of linear pattern inside a multi transform to direction creation of linear pattern
2017-09-29 23:57:31 +02:00
wmayer
3b1c433daa
fix crashes when aborting linear pattern panel due access of null pointers
2017-09-29 21:22:48 +02:00
wmayer
9beb6f2029
fixes #0003179 : PDN + AdditiveBox + MultiTransform (with LinearPattern)
2017-09-29 19:55:42 +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
wmayer
a0517c1036
TaskTransformedParameters derives from Gui::DocumentObserver to handle deletion of view provider when clicking Cancel button
2017-01-22 19:07:07 +01:00
wmayer
d6a9e5afd7
issue #0001649 : Changing names on Pads does not change them everywere
2016-10-21 15:38:45 +02:00
wmayer
70ba1b994b
replace const char* with QString in removeItemFromListWidget
2016-10-21 13:48:45 +02: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
6b7b2176fb
Fix transform feature crash on apply
...
-Redundant "reset edit" and command commit removed
-Redundant apply call removed
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
Alexander Golubev
305151be34
App/Origin: big refactoring
...
- Rebase App::Origin on App::DocumentObject
- Keep all control over the Origin structure inside the Origin and it's
ViewProvider
- Add OriginFeature class as common base for App::Plane and App::Line
- Rebase App::Plane and App::Line on top of newly created class and
move to the file.
- Change Origin's ViewProvider API associated with temporary display
- Lots of associated changes to files
- Several minor fixes
- Lots of new bugs
2016-04-12 18:12:18 +02:00
Alexander Golubev
771c2b2fce
PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp
...
e.g. getPythonStr -> buildLinkListPythonStr etc
2016-04-12 18:12:17 +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
Alexander Golubev
f6ed16438f
PartDesign: make transform parameter dialogs use common base code with other dialogs
...
subj;
Make PasrtDesign::Transformed provide common for all features
classes interface getBaseObject() instead of specific getSupportObject ();
Refactor some TransformedParameters methods.
2016-04-12 18:12:16 +02:00
DeepSOIC
3d93c906d1
PartDesign: rework axis and plane comboboxes and make it work without part.
...
Rework combobox filling and link hadling for revolution and transformed features, in order to get rid of hard-coded item indexes and make the lists more dynamic.
2016-04-12 18:12:14 +02:00
Stefan Tröger
eba61e360d
make origin work correct with multiple parts
2016-04-12 18:12:08 +02:00
Stefan Tröger
e48bdc5d89
make transform features work with non-sketch based features
2016-04-12 18:12:07 +02:00
Stefan Tröger
616e372e4a
switch linear pattern to coordinate system axis
2016-04-12 18:12:05 +02:00
Stefan Tröger
148f5a9b7a
Remove BasePlanes from part design
2016-04-12 18:12:04 +02:00