wmayer
dbd14fe2b9
Part: [skip ci] implement live preview for box and cylinder
2020-11-08 10:26:07 +01:00
donovaly
7460cd5ebc
[part] remove a now misleading comment
...
I added this comment when I read the dialog state fro the index of the type combobox, now we read the primitive's TypeID so the comment is misleading
2020-11-08 06:43:16 +01:00
wmayer
266ca1ad28
Part: allow to edit primitives via dialog
2020-11-06 23:12:40 +01:00
wmayer
677ce69873
[Part] allow to edit helices via a dialog
...
+ add class ViewProviderPrimitive to avoid to re-implement setEdit/unsetEdit methods for each sub-class separately
+ avoid using global variables
+ when editing a feature directly pass it to the dialogs
+ when editing a feature then do not use active document as this could point to the wrong object
+ fix undo/redo message
+ re-add '3D View' button to location dialog
2020-11-06 19:59:14 +01:00
wmayer
ca5d4d5f72
Part: [skip ci] fix build failure due to missing class declarations
2020-11-06 13:46:38 +01:00
donovaly
18c1364d1d
[Part] allow to edit helices via a dialog
...
fixes https://tracker.freecadweb.org/view.php?id=3857
Currently primitives of the Part WB can only be created suing a dialog. Editing is not possible that way.
This PR makes the first step in achieving this:
- Helices can now be edited using the same dialog ans when created
- New location dialog. The Gui::LocationWidget used there is not aware of the rotation angle and it treats the rotation axis as direction. To fix this, I set changed the dialog so that one can define every parameter as in the PartDesign attacher dialog (Placement, rotation axis and rotation angle separately). Another reason for this change was that one could not use the location dialog, fill it with the placement properties of the object, and close the dialog without any change. Because of the missing angle info the objects was then always rotated despite nothing was changed.
If this PR goes in, I will extend it for the other primitives.
Todo for the future: allow a preview of the changes made in the dialog. (I could not find out how this is done.)
2020-11-06 13:27:03 +01:00
donovaly
b0faf1197c
[PD] fix wording for skew prisms
...
the UI and the property is not consistent. In the dialog we use the term angle upon user feedback while the property still has the name "skew" in it.
I simply forgot this change in my PR that implemented skew prisms.
This is now corrected by this PR.
2020-09-15 22:13:26 +02:00
donovaly
6bbab49723
[PD and Part] add possibility to create skew prisms
2020-09-12 13:28:00 +02:00
wmayer
9aa6a700d8
Replace Base::Exception with appropriate subclass
2018-11-14 19:45:20 +01:00
wmayer
5ff6945577
fix compiler warnings with py3 and msvc
2018-04-16 18:24:53 +02:00
Peter Lama
fa4bebf2e0
Use OCCT Handle macro for Handle_ classes
...
This is the result of running OCCT's upgrade script provided
with OCCT 7.0. See
https://www.opencascade.com/content/freecad-occt710-and-windows-rtti-data-missing#comment-form
and
https://www.forum.freecadweb.org/viewtopic.php?f=4&t=21405&start=120#p169019
for why this is necessary for OCCT >= 7.1
2017-04-20 12:27:34 +02:00
wmayer
7d38edb065
fix -Wextra in Part
2016-09-22 11:49:28 +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
wmayer
cb73d010bb
+ port to OCC 7.0
2016-05-14 16:53:27 +02:00
wmayer
b500af9afa
+ set range for quantity boxes
2016-02-29 12:29:02 +01:00
wmayer
7a2b8b9dcf
+ code clean-up
2016-02-28 19:01:23 +01:00
wmayer
917805f18d
+ use application-wide number of decimals in primitive creation dialog
2016-02-28 12:30:42 +01:00
Mateusz Skowroński
c275b35d48
QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Mateusz Skowroński
0695552cff
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
45b4fbe200
+ fixes #0001829 : DlgPrimitives replaces non ASCII charaters in objects Labels by ?
2014-11-17 20:36:22 +01:00
wmayer
908c11edd7
+ fixes #0001798 : Support general ellipsoid with three radii
2014-10-30 18:02:18 +01:00
wmayer
398546aecb
+ fix build problems with Python & MacOSX
2014-10-13 22:02:57 +02:00
wmayer
732c521f39
+ Replace InputField with QuantitySpinBox
2014-07-31 15:14:27 +02:00
wmayer
ae5ca4e5a3
+ replace degree symbol with 'deg' to make sure it works on all systems, force to use right codec to display floating numbers
2014-05-19 20:56:23 +02:00
WandererFan
94a1fe9eb1
Add UNITS to Part Primitive Gui
2014-05-19 20:34:10 +02:00
wmayer
55984a200f
+ fix flaws found with code analyzer tool
2014-05-07 13:09:44 +02:00
wmayer
09122a27b7
+ fixes #0000854 : Ability to change number of digits to the right of decimal place in spinboxes
2014-02-16 18:02:09 +01:00
wmayer
b4fb579e05
+ Use icons and translated names for Part primitives
2013-12-09 11:11:51 +01:00
jmaustpc
ce5671401e
fix property names for Part RegularPolygon and Prism
...
Prism properties: - Polygon, Circumradius and Height
RegularPolygon : - Polygon and Circumradius
DraftTools updated to reflect the change in property names
2013-11-18 11:08:29 +11:00
jmaustpc
072e015a54
rebase auto merge error fixes
...
Signed-off-by: jmaustpc <jmaustpc@users.sourceforge.net >
2013-11-14 13:30:25 -02:00
jmaustpc
cb540afa2e
Add Part_RegularPolygon,
...
regular polygon edge in Part workbench "create primitives",
Add icons Part_Polygon and Part_Spline
2013-11-14 13:30:25 -02:00
wmayer
1086dbf389
+ fixes #0001247
2013-11-07 14:17:41 +01:00
wmayer
9e3a8e0f7c
0001290: Add spiral tool in Part Module
2013-10-30 14:48:42 +01:00
jriegel
ecae7fac7f
Further doubel suggestions from Jan
...
Moved Gui/InputVector,Placement,Transform from float to double
Moved Sketcher from float to double
more suggestions for moving float -> double
2013-09-24 11:01:01 +02:00
wmayer
0d25b68ce3
0001239: Part --> Geometric Primitives --> Regular Prism
2013-09-21 14:20:04 +02:00
wmayer
d112755730
Fix problems with picking callback function
2012-07-05 13:27:17 +02:00
wmayer
8a94ba885c
Fix critical warnings
2012-06-13 18:49:10 +02:00
wmayer
2a16c7bd49
left hand helix
2012-05-01 13:17:10 +02:00
wmayer
10e63810c0
0000548: 3D Circle from three points in Part wb
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5388 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2012-01-04 16:44:55 +00:00
wmayer
9f8bb2dc98
0000548: 3D Circle from three points in Part wb
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5387 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2012-01-04 16:17:57 +00:00
wmayer
54e4a8d5c6
0000546: Ellipse added to create primitive dialogue
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5371 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-31 18:54:45 +00:00
wmayer
0c70ddf595
+ implement primitive dialog as task panel
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5367 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-30 20:49:59 +00:00
wmayer
891421d805
+ implement primitive dialog as task panel
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5365 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-30 17:27:21 +00:00
wmayer
dfbea1de96
+ move vec_traits into its own module
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5363 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-30 11:45:28 +00:00
wmayer
431406a5aa
0000536: Parametric Edge in Part wb via create primitives dialogue gui
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5297 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-13 19:11:38 +00:00
wmayer
efa1dd9c63
0000508: Part: Parameterized Primitive: Plane - new planes with normals x or y are placed wrong
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5221 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-05 15:41:39 +00:00
wmayer
b005a7cf0b
+ 0000452: in "Part" added create "vertex" to the create primitives dialgue gui
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5049 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-21 15:50:10 +00:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00