Commit Graph

932 Commits

Author SHA1 Message Date
donovaly
1ae69d2ac8 code simplification 2020-06-13 09:46:20 -04:00
donovaly
79b267a3dc [TD] fix hatch color issue
as discussed: https://forum.freecadweb.org/viewtopic.php?f=35&t=47536&p=407916#p407916
there are 2 types of SVG declarations possible
2020-06-13 09:46:20 -04:00
wmayer
c535881459 Qt5: Replace deprecated functions of QString:
'QString& QString::vsprintf(const char*, __va_list_tag*)' is deprecated: Use vasprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wmayer
6d0a136aad Qt5: 'void Q[Plain]TextEdit::setTabStopWidth(int)' is deprecated [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
1ee3d79d7c Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
wmayer
4ec45b545e 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
c814eb1a50 Qt5: 'QString::null' is deprecated: use QString() [-Wdeprecated-declarations] 2020-06-12 17:51:33 +02:00
donovaly
9726ad3f4a [TD] add dialog for hatches
as discussed in the forum, the hatch feature misses a dialog. So here it is. The code is more or less just the one of the existing GeomHatch dialog
2020-06-12 08:12:37 -04:00
donovaly
7366339266 [TD] GeomHatch dialog: use sensible hatch limits
- negative scale and line width is not sensible and lead to strange effects thus set a minimum
- set the minimum reasonably above 0 since e.g. a hatch scale of 0.01 fills 8 GB RAM -> out of RAM error
- disable KeyboardTracking since we don't want a time-consuming recomputation while the user changes a value
2020-06-12 08:12:07 -04:00
donovaly
4d0cd751da [TD] detail view: add missing tooltip 2020-06-12 08:11:25 -04:00
donovaly
b7bb7d1f2b [TD] update view when autoscale was set 2020-06-10 08:04:18 -04:00
wandererfan
dd0273ff4e [TD]Fix CosmeticVertex size 2020-06-09 16:12:14 -04:00
donovaly
86655f067e [TD] add scale settings to detail task dialog 2020-06-09 08:51:46 -04:00
wandererfan
cda235aba0 [TD]Fix geometric hatch in Pdf 2020-06-09 07:22:00 -04:00
donovaly
652d965d54 [TD] use new keyboardTracking feature for Detail dialog
Werner finally implemented that FC's spinboxes accept Qt's keyboardTracking. So we can use it now for dialogs like the Detail dialog.
2020-06-08 09:07:14 -04:00
wandererfan
d693ff13db [TD]Fix preference directory pickers 2020-06-07 11:26:56 -04:00
WandererFan
6974598dc1 [TD]Improve section face display 2020-06-04 09:00:22 -04:00
donovaly
98d2bb64a2 Merge branch 'master' of github.com:FreeCAD/FreeCAD into TD-DetailWork 2020-06-01 14:06:56 +02:00
wandererfan
c405349e86 [TD]export Svg hatch as bitmap (PDF) 2020-05-31 11:26:56 -04:00
donovaly
6cfc208db8 [TD] TaskDetail: omit problematic slot issue 2020-05-31 02:14:20 +02:00
donovaly
92bd5b56b1 Merge branch 'master' of github.com:FreeCAD/FreeCAD into TD-DetailWork 2020-05-31 00:24:29 +02:00
wandererfan
a9b718d1e0 [TD]Export Svg hatch as bitmap 2020-05-29 20:53:24 -04:00
wandererfan
ad405545e6 [TD]handle new identifier for Draft objects 2020-05-20 21:44:26 -04:00
wandererfan
add17980b3 [TD]Eliminate replace fcns for Cosmetic objs 2020-05-16 07:42:45 -04:00
wandererfan
dc007c1893 [TD]Highlight colour set in wrong class 2020-05-12 22:52:40 -04:00
wmayer
1bd131250a TechDraw: [skip ci] fix -Wconstant-logical-operand 2020-05-12 13:25:27 +02:00
wandererfan
29c5528fde [TD]oblique section lines 2020-05-10 11:03:15 -04:00
wandererfan
24139bf25d [TD]load images at correct size 2020-05-10 11:03:15 -04:00
WandererFan
92dfdf605b [TD]prevent extra recompute on X,Y change 2020-05-10 11:03:15 -04:00
donovaly
74b2321cbf Merge branch 'master' of github.com:FreeCAD/FreeCAD into TD-DetailWork 2020-05-09 01:36:49 +02:00
wandererfan
daa6330863 [TD]crash loading old development models
- LeaderLine behaviour changed during development
2020-04-30 15:57:35 -04:00
Yorik van Havre
28b51cf28a Merged crowdin translations 2020-04-29 16:08:23 +02:00
Yorik van Havre
693e374f99 Updated source ts files 2020-04-29 15:41:26 +02:00
wandererfan
1fc2e755dd [TD]Handle ProjGroup in TaskCosmeticVertex 2020-04-28 09:11:28 -04:00
wandererfan
4b38a6d51a [TD]Qt4 fixes 2020-04-24 11:13:49 -04:00
wandererfan
0c57730cd2 [TD]trap potential crash on app close
- avoid possible crash in TD dialogs if app closed
  while dialog in progress.
2020-04-24 11:13:49 -04:00
wandererfan
0a3f7ae312 [TD]handle ProjectionAngle changes 2020-04-24 11:13:49 -04:00
wandererfan
e80c576241 [TD]Centralize preference getters 2020-04-24 11:13:49 -04:00
donovaly
cc94e4252e DlgPrefsTechDrawAnnotation.ui: Detail Outline Shape affects existing views
therefore make its label in the dialog upright
2020-04-18 15:08:07 +02:00
donovaly
6d06bdffb5 [TD] some Detail View fixes
see https://forum.freecadweb.org/viewtopic.php?f=35&t=45236&p=388925#p388925 for a description of the changes
2020-04-18 14:56:01 +02:00
wandererfan
1c5b2c8e27 [TD]fix crash on bad centerline selection 2020-04-17 10:11:24 -04:00
wandererfan
98aaad5fb1 [TD]fix KB lockout in dialogs
- valueChanged signal is emitted for every keystroke
  causing multiple recomputes for every change of
  parameter.
2020-04-15 15:43:00 -04:00
donovaly
232b701b36 fix a typo 2020-04-15 10:10:14 -04:00
donovaly
ac82f6ca4a give all preferences dialogs a clear name
The numbering was somewhat artificial.
2020-04-15 10:10:14 -04:00
donovaly
79f7986eb9 This commits splits the "General" dialog to "General" and "Colors". 2020-04-15 10:10:14 -04:00
donovaly
57328a136e [TD] split too long preferences dialogs
- as once discussed 2 of the dialogs are too long for smaller screens.

This commits splits the "Dimensions" dialog to "Dimensions" and "Annotation".
2020-04-15 10:10:14 -04:00
wandererfan
2d29ac5fc1 [TD]Fix Detail dragger for ProjGroup 2020-04-14 17:42:11 -04:00
wandererfan
4104a0e263 [TD]Use PropertyXLinkList for external Sources 2020-04-14 10:24:29 -04:00
wmayer
2c11e0f4cd TechDraw: [skip ci] fix -Winconsistent-missing-override 2020-04-14 12:57:07 +02:00
donovaly
9e57caf2ec [TD] sanitize Detail view dialog
- fix dialog layout (was broken for Windows) and simplify it
- enable so immediately the changes you make in the dialog -> necessary to fine-tune the right position
2020-04-13 16:15:37 -04:00