wmayer
5ad97548ca
PD: do not record Gui command as Doc command
2023-03-26 18:41:56 +02:00
luz paz
c726b69d7e
PD: remove trailing whitespace
2022-11-10 10:32:04 +01:00
Uwe
35f75064a0
[PD] remove superfluous nullptr checks
2022-07-17 18:12:41 +02:00
Chris Hennes
6f230d7404
PD: PR6497 move return statement to new line
2022-03-29 12:37:21 -05:00
wmayer
3608ee7f51
PD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Uwe
c7e48869b6
[PD] Body and utils: remove unused includes
2022-02-20 21:23:05 +01:00
wmayer
f147986fa9
App: Bugfix for NULL-Pointer dereference of Property->getName()
2022-01-16 14:30:51 +01:00
luz paz
a5bfba2665
PD: Adjust header uniformity
2021-12-16 23:55:48 +01:00
Ajinkya Dahale
e305dbd49c
PartDesign: Add new need active body dialog with option to choose body ( #4949 )
...
* [PD] Add new need active body dialog
Intended for use wherever an active body is needed but none exists. The dialog
contains a list with the bodies present in the document, with an extra option to
make a new body. Custom text can be provided if needed.
This commit also replaces the warnings used by "new sketch" and "primitive"
command with this new dialog.
Addresses issue #4288 .
2021-09-16 12:27:46 -05:00
wmayer
b9da524451
PD: in setEdit() helper function make sure that recorded macro is handled as Gui command
2021-03-28 18:39:44 +02:00
wmayer
98f9397939
PD: [skip ci] drop some superfluous static_cast
2021-02-18 22:51:15 +01:00
Chris Hennes
30c24ae0bc
[PD] Fix isFeatureMovable() to check null status of property
...
As reported by @donovaly, if you try to move a pipe that does not have
an auxilliary spine, the code segfaults. This commit adds a check to ensure
that not only does the property exist (which in this case it always does), but
also that it does not contain a null. That is a valid value for the property
to have, but cannot be itself interrogated for moveability by the isFeatureMovable
recursive call. This fix is also applied to the other similar conditions in that
function to ensure they never yield the same segmentation fault.
Forums topic: https://forum.freecadweb.org/viewtopic.php?p=479388#p479388
2021-02-18 22:44:13 +01:00
wmayer
d0d92b0801
force strict ISO C++ (-Wpedantic)
...
for Fem, Import, PartDesign, Robot, Sketcher, TechDraw
2019-09-18 14:18:07 +02: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
6e44433b8b
activate/create 3d view when setting or getting active objects
2019-07-05 18:53:35 +02:00
wmayer
7acdb56d92
Replace Base::Exception with appropriate subclass
2018-11-14 19:28:00 +01:00
luz.paz
b214f606c4
Misc. typo and whitespace fixes
...
ref: https://forum.freecadweb.org/viewtopic.php?f=3&t=30988#p256964
along with other misc. fixes
2018-09-19 17:26:03 +02:00
wmayer
876339b885
add method to activate 3d view when setting active object list
2018-09-12 15:38:28 +02:00
wmayer
d24379d822
add option to getBodyFor to suppress dialog to set workflow style to modern
2018-01-03 21:35:03 +01:00
luzpaz
c1152f2a2c
PartDesign: typos
2017-12-25 11:04:43 +01:00
Peter Lama
926b844409
Rename superPlacement property to AttachmentOffset
...
The name Attachment Offset gives a better picture of what the
property does.
2017-11-05 16:41:25 +01:00
wmayer
957bab1e29
do not auto activate single body in document when opening context-menu
2017-09-21 15:59:32 +02:00
wmayer
770c9ce095
fix various coverity issues
2017-09-15 11:48:38 +02:00
Kurt Kremitzki
b6abbeb9cc
PDN: Automatically activate body if document has only 1
2017-08-12 14:45:28 +02:00
Ian Rees
ac2f9f8902
Make Body object on creation of Sketch/Primitive
2017-04-06 19:26:19 +02:00
Stefan Tröger
d2764a3c7a
PartDesign: Adopt python interface to body group
2017-01-04 16:01:58 +01:00
Stefan Tröger
9a3b952fb9
PartDesign: Port body to be a origin group
2017-01-04 16:01:58 +01:00
Stefan Tröger
bc133e4de2
PartDesign: Primitives are attachable directly
...
With the recently introduced AttachExtension the PartDesign primitives can be attachable by themself and don't need anymore the helping coordinate system datum. This simplyfies the code and the TreeView largely
2016-12-07 06:41:40 +01:00
Stefan Tröger
d0d4d6bc07
Port Attacher codde to the extension framework
...
AttachableObjects are desired in multiple occasions, and the current AttachableObject is not flexible enough to handle all cases. Hence the code is portet to an extension, which gives the needed flexibility.
2016-12-07 06:41:40 +01:00
Stefan Tröger
3a51404dd5
Extenions: Drop virtual inheritance
...
Due to problems onthe windows platform the virtual inheritance approach must be dropped. NExt to the already reimplemented proeprty interface the Type interface is reimplemented too. This change allows to revert some earlier changes.
2016-10-08 12:48:34 +02:00
Stefan Tröger
c5a2419e14
Extensions: Introduce classes and port App groups
2016-10-08 12:48:34 +02:00
wmayer
46adbae952
fix whitespaces
2016-08-25 12:27:08 +02:00
Sergo
c90da8e5fb
fix relinkToOrigin, remove source body from list, etc
2016-08-24 19:11:26 +02:00
Sergo
f49ddaea45
PD MoveFeature:Check if feature has dependencies in source body
2016-08-24 19:11:26 +02:00
Sergo
85015ef494
PartDesignGui: move feature with its dependencies
2016-08-24 19:11:26 +02:00
wmayer
63ad26491f
fix Coverity issues
2016-08-22 15:02:18 +02:00
DeepSOIC
f947101938
Attacher: use getModeName() instead of eMapModeStrings[]
...
getModeName() does range checking. eMapModeStrings[] will crash if out
of range.
2016-05-07 11:24:41 +02:00
wmayer
d03a8fd386
+ fix various gcc & clang warnings
2016-04-24 16:21:19 +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
wmayer
df48d1668b
+ remove 'using namespace Attacher' inside header file
2016-04-13 15:57:49 +02:00
Alexander Golubev
1a26f7551f
PartDesign: add Origin to the Body and unstrap the module from the Parts
2016-04-12 18:12:18 +02:00
Alexander Golubev
2c2d155ee9
OriginGroup: add new abstraction layer between the Part and the GeoFeatureGroup
2016-04-12 18:12:18 +02:00
Alexander Golubev
abc925b62e
PartDesign/Gui: Make partDesign's add sketch command Workflow-aware
2016-04-12 18:12:17 +02:00
Alexander Golubev
492f1d24a4
PartDesign/Gui: initial migration command implementation
2016-04-12 18:12:17 +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