Commit Graph

1304 Commits

Author SHA1 Message Date
wmayer
19148d3051 PartDesign: [skip ci] add missing header 2020-02-18 23:23:49 +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
donovaly
45d9660f96 [PD] rename buttons
as requested in https://forum.freecadweb.org/viewtopic.php?f=19&t=43383#p369328
2020-02-17 13:14:16 +01:00
wmayer
7aad85e9c8 PartDesign: [skip ci] workaround for ambiguous Delete key event 2020-02-17 00:46:17 +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
wmayer
17bad8504d PartDesign: [skip ci] do forward declaration if possible to reduce build timw 2020-02-16 19:26:48 +01:00
donovaly
a2eecf3059 TaskDressUpParameters: GCC compile fix 2020-02-16 05:47:54 +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
5aa15e7d71 [PD] spread the fix from commit fa963d36d1 to 3 other affected dialogs 2020-02-15 17:00:26 +01:00
wmayer
fa963d36d1 PartDesign: add/remove features to list view in linear pattern panel 2020-02-15 15:55:11 +01:00
donovaly
a10a0d9e0f fix logic
now also the case that one switches from add mode directly to remove mode is correctly handled
also remove doubled code that is already executed
2020-02-15 04:30:26 +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
Zheng, Lei
3a9002217c PartDesign: fix FeatureDressUp base checking 2020-02-14 13:34:03 +01:00
Zheng, Lei
469614eb17 PartDesign: support transformed pattern in FeatureDressUp
Fixes #1650
2020-02-14 13:34:03 +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
donovaly
f2c83ac46b remove program-specific SVG namespaces
while fixing a SVG export issue for techDraw I noticed that some SVG files have program-dependent (and thus not clean) code in it. These are traces of the programs Sodipodi and Inkscape, like e.g. this line:
inkscape:export-filename="/home/yorik/PartDesign_Groove.png

This is unnecessary and FC should not use program-dependent code in the SVG but use instead plain SVG strictly following the SVG specification.

This PR transforms the few affected SVGs to a plain version.
2020-02-07 07:34:49 -05:00
wmayer
f70a267d77 issue #0004258: FreeCAD crashes on "Edit datum" in PartDesign when datum in Part [skip-ci] 2020-01-30 16:07:17 +01:00
MA-LAPTOP\apeltauer
7240de9b2f make some header include adoption for open cascade 7.4.0 2020-01-27 10:15:32 +01:00
wmayer
25b3cfc170 issue #0004188: Editing a subtractive box in PartDesign doesn't show the shaded box 2020-01-15 10:00:47 +01:00
wmayer
bff7369e54 fixes #0004188: Editing a subtractive box in PartDesign doesn't show the shaded box 2020-01-15 01:33:28 +01:00
wmayer
9270322d25 Mod: [skip ci] implementation classes don't inherit from UI classes any more 2020-01-10 16:19:35 +01:00
wmayer
1f92535883 PartDesign: [skip ci] set explicit encoding of Python files for backward compatibility 2020-01-09 17:07:04 +01:00
wmayer
4df6373457 fixes #0004158: FreeCAD crashes when deleting spline [skip ci] 2020-01-03 14:24:53 +01:00
wmayer
977f5c28f2 PartDesign: [skip ci] replace int with proper enum type 2019-12-30 17:19:59 +01:00
Zheng, Lei
c9f6e5c37f PartDesign: improve SubShapeBinder transformation cache 2019-12-30 17:17:14 +01:00
Zheng, Lei
7dffaf43c8 PartDesign: fix SubShapeBinder lost of placement 2019-12-30 17:17:14 +01:00
Zolko-123
7dbc309015 Manual dimension centers the plane's view
With the current manual dimensions a Datum Plane is visually ex-centred from it's origin, so when drawing a circle the circle is outside of the Plane representation. With this proposed change the visual representation is centred.
2019-12-24 01:17: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
wmayer
2c13387cef issue #0004225: FreeCAD crash when making draft in PartDesign [skip ci] 2019-12-16 15:26:34 +01:00
vocx-fc
008ef2f1ed PartDesign: rename icon, and organize resource file 2019-12-06 14:35:14 -03:00
vocx-fc
a61a779a2e Gui: PartDesign: remove execute bit from icons, now 644 2019-12-06 14:34:25 -03:00
wmayer
fb43b00501 [skip ci] fix SyntaxWarning: 'is not' with a literal. Did you mean '!='? 2019-11-25 16:29:56 +01:00
asapelkin
e9814d9183 used in-built methods instead of external algoritms 2019-11-21 18:57:06 +01:00
asapelkin
e951094af9 use emplace_back instead of push_back where justified 2019-11-21 14:48:09 +01:00
luz.paz
1bc33025d6 LGTM: various fixes for using string operator instead of numeric 2019-10-25 10:33:12 -03:00
Zheng, Lei
8952306088 PartDesign: fix Body getSubObject() 2019-10-16 10:55:53 +02:00
Zheng, Lei
7a74093432 Replace use of Matrix.inverse() with inverseGauss()
Because of possible scaling involved.
2019-10-07 17:24:30 +02:00
luz.paz
7b7797f4f3 Fix various (doxy) typos and whitespace issues
Found via `codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,currenty,dof,doubleclick,dum,eiter,elemente,feld,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml`
2019-10-03 07:57:13 +02:00
wmayer
d0d92b0801 force strict ISO C++ (-Wpedantic)
for Fem, Import, PartDesign, Robot, Sketcher, TechDraw
2019-09-18 14:18:07 +02:00
wmayer
727ba5a17e support to load old project files with PD draft object, restore handling with constraints 2019-09-14 19:57:31 +02:00
mwganson
ecd4038d3a [PartDesign] Draft angle property change from App::PropertyFloatConstraint to App::PropertyAngle 2019-09-14 19:05:29 +02:00
DeepSOIC
588fc8df77 PartDesign: change view sizing on new sketch 2019-09-11 21:39:16 +02:00
0penBrain
2756d46a2a PartDesign : make possible to prevent auto-switching to PartDesign WB when a Body is activated
* Use a boolean parameter located at BaseApp/Preferences/Mod/PartDesign/SwitchToWB
   * resolves #2703
2019-09-11 21:32:41 +02:00