Commit Graph

699 Commits

Author SHA1 Message Date
wmayer
9424395afc PVS: V1004 A pointer was used unsafely after it was verified against nullptr 2020-07-18 10:59:27 +02:00
wmayer
4807fd3b33 PVS: V730 Not all members of a class are initialized inside the constructor 2020-07-18 10:59:27 +02:00
luz paz
e4f6689e0a Merged crowdin translations 2020-07-13 14:49:45 +02:00
wmayer
d2ff5eaebe Part: fix regression of visibility automation in Attachment dialog
If a body is in a Part container and a new primitive is created no preview is shown because the Part container is automatically made invisiible.
The user has to manually make the container visible but this is an error-prone procedure because the Attachment dialog reacts on user-selection and thus
unintended things can happen. So, this is a serious regression of usability.

The regression is caused by commit cd73df745124 but the commit log doesn't explain why the change was even needed.
So, this commit leaves the previous changes but re-adds the old check to filter out container objects.
2020-07-12 16:03:42 +02:00
Zheng, Lei
147b00f2cb Part: fix TaskAttacher::visibilityAutomation()
Rename Python variable 'tv' to avoid potential conflict with others
(PS. I can't reproduce error caused by this. But there is no harm doing
it either).

Handle editing attachment through an App::Link.
2020-07-12 16:03:42 +02:00
Thomas Gimpel
28dcbc5185 Part: fix handling of attachment offset rotation changes in attachment editor 2020-07-04 07:50:58 +02:00
triplus
38ada85382 Icon themes Part viewproviders 2020-06-22 11:58:06 +02:00
wmayer
d6169d6478 boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
c8dae9eb85 Qt5: 'void QTime::start()' / 'int QTime::elapsed() const' / 'int QTime::restart()' are deprecated: Use QElapsedTimer instead [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
8dbe26a95f Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
wmayer
7b72dcb062 Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
709c349fa7 [skip ci] avoid to redefine GL_GLEXT_PROTOTYPES if already defined 2020-06-12 14:07:45 +02:00
wmayer
7e71c8ecc5 [skip ci] include missing boost header 2020-06-07 20:58:45 +02:00
Syres916
b65111790d [Gui] Part TaskCheckGeometry change Error to Log..
for faulty geometry output, The user can still see all the error output in the task panel but by default they will see nothing in the Report View as Log is not Enabled for new users. See discussion https://forum.freecadweb.org/viewtopic.php?f=15&t=46803#p402533
2020-05-28 18:45:36 +02:00
Abdullah Tahiri
7988d859ab Part: Gui ViewProvider2D Grid Management
========================================

1. The Grid has a default maximum of 10000 lines that is controlled via a new property. The grid is not created (is empty)
if a higher number of lines is necessary. This event is show as a Warning in the Report view.

2. The Grid now checks a new property ShowOnlyInEditMode before deciding whether to show the grid or not. This is a new
mode for ViewProvider2D and derived objects. If the property is set to true (and showGrid is true), the grid is only shown
if the object is in edit mode. If the property is set to false, the grid is shown regardless of whether it is in edit mode
or not (provided that showGrid is true).

3. Grid limits are now encapsulated (private). They can be set via a new function updateGridExtent.
2020-05-27 19:25:47 +02:00
0penBrain
bcf451bac8 [Sketcher] Grid is displayed in 3D view only if sketch is visible 2020-05-27 19:25:47 +02:00
0penBrain
2de7560489 [Sketcher] Fix grid size initialization ; fixes #4055 2020-05-27 19:25:47 +02:00
wmayer
720b3073e7 Part: [skip ci] copy visual attributes of reversed shape 2020-05-15 19:26:24 +02:00
Yorik van Havre
141764e64f Merged crowdin translations 2020-04-29 16:08:23 +02:00
Yorik van Havre
7003b3f747 Updated source ts files 2020-04-29 15:41:26 +02:00
donovaly
92f745b0ba [Part] color preferences: add missing tooltips
see: https://forum.freecadweb.org/viewtopic.php?f=8&t=44595
2020-04-20 12:44:02 +02:00
wmayer
43844e9a59 Part: [skip ci] set again Two-side rendering as default lighting style 2020-04-06 14:12:44 +02:00
vocx-fc
027c2d54dd Part: remove excessive spacing in strings 2020-03-26 23:59:49 +01:00
wmayer
e14e5b845e [skip ci] use QLocale class consistently to make it possible to change it application-wide 2020-03-26 16:37:45 +01:00
wmayer
c3d99ee5db Part: [skip ci] explicitly open transaction when opening the Attachment dialog 2020-03-23 17:14:42 +01:00
wmayer
8451cb332a Part: [skip ci] support of expressions of Euler angles in attachment dialog 2020-03-21 14:27:53 +01:00
0penBrain
247a2a9579 Extend sketch grid boundaries by 1/2 step so it displays without border 2020-03-19 12:37:34 -03:00
donovaly
5909cb6584 [Part] color dialog cleanup
- remove redundant words
- add missing tooltip
2020-03-19 10:59:32 +01:00
Yorik van Havre
8933e8ed38 Merged latest translations from crowdin 2020-03-05 11:58:03 -03:00
wmayer
b97f37cf9a Part: [skip ci] add option to set two-side rendering of Part shapes 2020-02-22 12:09:26 +01:00
wmayer
6a13453f78 [skip ci] Preferences names or paths must not be set to translatable strings! 2020-02-15 12:42:12 +01:00
Zheng, Lei
644c277fbb Part: fix Sweep path selection
Fixes #0004255
2020-02-13 15:21:19 +01:00
wmayer
3ea4428b47 Part: [skip ci] use the right value from the user settings to set point size 2020-02-08 11:07:06 +01:00
donovaly
24ec114cb8 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
Zheng, Lei
fb036960ba Part: fix various commands on selection detection 2020-02-05 11:07:40 +01:00
wmayer
0620d53b96 Part: Restore parametric refine function 2020-02-02 20:48:02 +01:00
wmayer
e9662984e7 Part: make reverse function parametric 2020-01-29 16:43:35 +01:00
MA-LAPTOP\apeltauer
7a8ac5bc49 make some header include adoption for open cascade 7.4.0 2020-01-27 10:15:32 +01:00
0penBrain
43b9900964 Fix XPM height of 'Not attached' overlay icon 2020-01-27 10:06:03 +01:00
wmayer
0a5028f181 issue #0004188: Editing a subtractive box in PartDesign doesn't show the shaded box 2020-01-15 10:00:47 +01:00
wmayer
798edb8a55 fixes #0004188: Editing a subtractive box in PartDesign doesn't show the shaded box 2020-01-15 01:33:28 +01:00
Zheng, Lei
7e4969f329 Gui: fix screentshot 2020-01-14 15:59:38 +01:00
donovaly
723c1025dc make clear that is is the local coordinate system 2020-01-14 12:56:46 +01:00
donovaly
cb86e5dea6 [proposal] rename rotation angles
proposal for this discussion: https://forum.freecadweb.org/viewtopic.php?p=359619#p359482
2020-01-14 12:56:46 +01:00
Zheng, Lei
12965165a6 Gui: fix screenshot 2020-01-12 18:50:37 +01:00
wmayer
e578e8f849 implementation classes don't inherit from UI classes 2020-01-12 10:32:34 +01:00
wmayer
134863a4ef Gui: [skip ci] rename Location classes 2020-01-10 21:19:36 +01:00
wmayer
8fdb29c842 Mod: [skip ci] implementation classes don't inherit from UI classes any more 2020-01-10 16:19:35 +01:00
wmayer
d8d44f37cb [skip ci] fix superfluous workarounds 2020-01-09 23:36:28 +01:00