wmayer
3ee1d91b88
PD: cleanup the mess with boolean arguments and replace them with a bitmask
2021-12-03 14:46:19 +01:00
donovaly
249c2c7970
[PD] set App constraints for their Gui counterparts
...
based on Werner's work yesterday, this PR takes care of the missing PD features to use the constraints already defined in App
2021-03-04 11:03:24 +01:00
wmayer
482884cfd4
PD: [skip ci] fix regression caused by e0d07257b7
...
In the accept() method the view provider of the edited object must be made visible if it's valid as otherwise it can happen that the view is empty.
See https://forum.freecadweb.org/viewtopic.php?f=13&t=55915
2021-02-23 11:20:45 +01:00
donovaly
e0d07257b7
[PD] fix dressup feature display when broken
...
As discussed in https://forum.freecadweb.org/viewtopic.php?p=479647#p479377
the user can end up without either seeing nothing or an inexisting dressup feature.
This PR fixes this.
2021-02-19 14:51:52 +01:00
Chris Hennes
41a40c1c31
[PD] Catch Python exceptions in dtors (Coverity)
...
In some PartDesign task dialogs, the destructors call functions that may
throw exceptions. If that occurs and the exception is uncaught, this
will ususally end up terminating the program. This commit adds try-catch
blocks around each instance of that (identified by Coverity) and handles
the Python exception in the normal reporting workflow.
2021-02-08 21:30:22 +01:00
donovaly
2ac84872ec
[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
bdd8d257d9
PartDesign: [skip ci] optimize when removing items from dress-up features
2020-02-23 14:58:48 +01:00
donovaly
da6352c43d
[PD] only recompute once per deletion action
...
see https://forum.freecadweb.org/viewtopic.php?f=19&t=43383&p=370357#p370357
2020-02-23 12:43:11 +01:00
donovaly
361acd5a84
[PD] enable selection of fillets etc. using arrow keys in Dlg
...
see https://forum.freecadweb.org/viewtopic.php?f=19&t=43383&p=370758#p370758
2020-02-21 09:27:00 +01:00
donovaly
cc3b21fa0b
improve code as suggested by Werner
...
see https://forum.freecadweb.org/viewtopic.php?p=369921#p369921
2020-02-18 23:16:48 +01:00
donovaly
69f97014e7
[PD] missing changed from commit d4be4a02
...
(key event handling for more dialogs)
2020-02-18 22:29:53 +01:00
donovaly
01e8e7f777
try to squash GCC compile error
2020-02-18 00:08:58 +01:00
donovaly
b86d97b9bc
catch case that users tries to delete all items in the dialog list
2020-02-18 00:08:28 +01:00
donovaly
316a8840b4
remove unnecessary code and comment
2020-02-18 00:07:01 +01:00
donovaly
0a7d82b0bb
enable selection in the dialog item list
...
now the user can use the Ctrl and/or Shift key to select multiple items to be deleted
2020-02-17 22:36:42 +01:00
donovaly
702b37aa06
improve fillet dialog logic
...
- now also the case of only one item in the list is handled properly (single-click will highlight it, double-click will show the final fillet)
2020-02-17 21:53:45 +01:00
wmayer
177afc7b91
PartDesign: [skip ci] fix possible segmentation fault in destructors of dressup task panels
2020-02-16 20:58:44 +01:00
donovaly
d40eb2dbfc
[PD] add feature to highlight references in some dialogs
...
- also fix some logic issues and avoid to break the feature (deleting the last item is now no longer possible)
2020-02-16 05:18:29 +01:00
donovaly
3877e18e06
[PD] enable to de/selecet several entities at once
...
see https://forum.freecadweb.org/viewtopic.php?f=19&t=43383
2020-02-15 04:07:09 +01:00
wmayer
88a60f91e9
PartDesign: use QKeySequence::Delete instead of a QString
2020-02-14 10:11:09 +01:00
donovaly
5ca8b490f0
[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
d38f18af23
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
11a93a0578
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
10c745175f
support Del shortcut in several PD task dialogs
2019-02-27 13:36:45 +01:00
wmayer
847c6ef74a
fixes 0003652: Missing little expression icon
2018-11-09 16:48:44 +01:00
sL1pKn07
018b41032a
[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
664cf65d26
fix -Wextra in PartDesign
2016-09-22 18:34:56 +02:00
Mateusz Skowroński
b5519922d8
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
5002e8e430
Fix crash on aborted pattern external axis
2016-04-12 18:12:22 +02:00
Alexander Golubev
c4f094bba4
PartDesign/Gui: rename some fonctions in ReferenceSelection.cpp
...
e.g. getPythonStr -> buildLinkListPythonStr etc
2016-04-12 18:12:17 +02:00
Alexander Golubev
c782a11aab
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
11a71d46e3
PartDesignGui: move signal connections in several parameter dialogs after ui initialization
2016-04-12 18:12:15 +02:00
Alexander Golubev
b14d7c2e14
PartDesign: move common code for TaskDlg{SketcherBased,DressUp}Parameters into new base class
...
Added a new class: TaskDlgFeatureBased which currently contains common
code for TaskDlgSketcherBasedParameters::reject() as well as the same
methode for TaskDlgDressUpParameters.
It's likely that other Feature task dialogs will inherit this class too.
2016-04-12 18:12:15 +02:00
Stefan Tröger
fc1e8b8d17
allow to add faces to fillet and chamfer
2016-04-12 18:12:07 +02:00
jrheinlaender
5376e3a3e5
Fixed bugs in various features that reversed the list of selections
2016-04-12 18:11:57 +02:00
jrheinlaender
a2359adb2e
Unify code of Dressup features (part 1: Draft)
2016-04-12 18:11:56 +02:00
jrheinlaender
904799d462
Color already selected faces of Draft feature when adding more or removing faces
2016-04-12 18:11:56 +02:00
jrheinlaender
0e9ee59129
Some code unification for Gui selections
2016-04-12 18:11:51 +02:00
jrheinlaender
934c68faa5
Draft: Accept datum lines and planes as references
2016-04-12 18:11:50 +02:00
jrheinlaender
7330d4357e
Made the rest of the PartDesign features aware of the Body
2016-04-12 18:11:49 +02:00
Mateusz Skowroński
cd2db00f22
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
wmayer
b7be7aec13
+ Prefer prefix ++/-- operators for non-primitive types
2015-10-07 13:38:17 +02:00
wmayer
834c0a642d
+ include missing header files
2015-07-01 13:02:29 +02:00
wmayer
57cdb8aed5
+ support units in draft panel
2014-07-22 14:44:20 +02:00
wmayer
fb994e204c
+ fixes #0000854 : Ability to change number of digits to the right of decimal place in spinboxes
2014-02-16 18:02:09 +01:00
jrheinlaender
8df84e76c4
PartDesign module moving float -> double
2013-03-25 17:42:29 +04:30
wmayer
515f30c1a0
0000906: Segmentation Fault when try to use linear pattern on Part, fix some issues with selection gate
2012-12-07 14:01:49 +01:00
jrheinlaender
8a1c9f0651
Fixed UI bugs
2012-12-04 10:59:44 +01:00
jrheinlaender
d763053925
Fixed two bugs, thanks to wmayer
2012-12-04 10:59:42 +01:00
jrheinlaender
0773311d5b
Created Draft feature for PartDesign
2012-12-04 10:59:41 +01:00