Commit Graph

87 Commits

Author SHA1 Message Date
Mateusz Skowroński
e66ed26769 QPainter::HighQualityAntialiasing is deprecated. Use QPainter::Antialiasing instead. 2021-04-04 11:33:51 +02:00
Chris Hennes
cbdc2ac48e [TD] Remove deprecated Qt < 5.9 code 2021-04-02 12:02:54 +02:00
donovaly
fc91b251ee [TD] add dialog to modify some dimension settings
also fix issue that tolerance could be set despite theoretically exact is true under some circumstances

also some wording improvements

also a minor fix to use 0.0 instead of DBL_MIN
2021-01-15 05:21:49 +01:00
luz paz
2befcd9502 TD: Issue #0004473: Expose openCommand() to translation
Continuing the work to expose the undo/redo functionality to translation. This commit does so for the TechDraw Wb.  
Ticket: https://tracker.freecadweb.org/view.php?id=4473
2020-12-01 14:53:35 +01:00
wmayer
34f4b712d8 Qt5: fix deprecation warnings of QWheelEvent in Qt 5.15 2020-10-18 14:45:31 +02:00
wmayer
e9bc970c28 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +02: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
wandererfan
a9b718d1e0 [TD]Export Svg hatch as bitmap 2020-05-29 20:53:24 -04:00
wandererfan
18e732e38f [TD]do not write BOM on SVG export 2020-04-03 08:16:53 -04:00
wandererfan
fb2454dde7 [TD]fix crash on Dim delete
- adjust index/cache options to avoid "dirty" screen
  region errors.
- may be masking missing "prepareGeometryChange"
2020-03-06 13:56:38 -05:00
wandererfan
96e8f752be [TD]Landmark Dims initial impl 2020-02-25 17:21:00 -05:00
wandererfan
d68fcb8cc5 [TD]Fix rich text size/position in Svg export
- still an issue with line spacing
2020-02-04 19:35:27 -05:00
donovaly
72e55ca8a3 fix missing namespaces in SVG files
see https://forum.freecadweb.org/viewtopic.php?f=35&t=42955&start=10#p365470
2020-02-03 07:20:52 -05:00
wandererfan
1da11e4e5c [TD]fix #4170 Unicode in Svg export on Win 2020-01-14 07:36:36 -05:00
wandererfan
d64d6a7c65 [TD]fix leader line display attributes 2020-01-14 06:41:35 -05:00
wandererfan
00c69a9c64 [TD]fix LeaderLine noshow on doc load 2020-01-12 18:38:59 -05:00
WandererFan
ccd107f1ce [TD]fix Balloon placement issues
- contributed by @lidiriel
2019-12-27 20:27:19 -05:00
wandererfan
57bfc2e380 [TD]fix Svg hatch on export 2019-12-17 08:29:49 -05:00
wandererfan
c6cd65916c [TD]Avoid Spanish char issue in SVG Export (4170) 2019-10-20 15:36:59 -04:00
Tomas Pavlicek
c6d1684e2a TechDraw - Put BOM on beginning of exported SVG 2019-10-06 07:31:34 -04:00
Tomas Pavlicek
cf721089a9 TechDraw - SVG changes via DOM manipulation instead of Regex replace 2019-10-06 07:31:34 -04:00
Tomas Pavlicek
ffcac528d5 TechDraw: Middle button panning 2019-08-27 07:33:30 -04:00
wandererfan
178520fb4a [TD] fix stale pointer in scene 2019-08-22 17:11:55 -04:00
wandererfan
992ef1b07e [TD]Welding Symbol creation 2019-08-22 17:11:55 -04:00
wandererfan
506886f388 [TD]Fix Svg Export Scaling issue
- change target rectangle for render to match source
- add param for endcap style (.../General/EdgeEndCap)
2019-07-22 19:38:07 -04:00
Tomas Pavlicek
f4ca09f985 TechDraw: SVG export refactoring - All XML modifications via DOM 2019-06-11 15:46:46 -04:00
Tomas Pavlicek
fad4db3300 TechDraw: Fix font size issues when exporting to SVG 2019-05-27 22:18:14 -04:00
wandererfan
a0ea8b656b Fix Balloon Next Index Persistance
- next sequential number for balloon on Page was
  not being preserved across save/restore
2019-05-25 18:44:35 +02:00
Franck Jullien
1b5df7c727 [TD] Fix cursor behavior 2019-05-24 09:09:56 -04:00
Franck Jullien
36d341f3df [TD] Add TaskPanel for Balloons
TaskPanel can be open by double clicking either Balloon label on drawing
page or Balloon object in tree view.
2019-05-22 12:50:47 -04:00
Franck Jullien
9d24d19ee1 [TD] Rewrite balloon placing method
When clicking on balloon command, cursor is changing to balloon cursor.
It means user is ready to place a balloon (anywhere on the page).
Balloon object is not created until user click somewhere.

Balloon command can be aborted pressing escape or when page view lost
focus (in other words, when user clic somewhere else than the page).
2019-05-21 08:37:05 -04:00
wandererfan
d42c79c146 Fix #3695 Frame toggle sync 2019-05-13 12:29:15 -04:00
wandererfan
6c699887c0 Leader and RichText block improvements 2019-05-05 21:01:31 -04:00
wandererfan
7f07195f93 Text Leader initial version 2019-05-05 21:01:31 -04:00
babaroga
bae567c427 FIX:TD-fixed baloon cursor hotspot to be on arrow tip 2019-04-18 06:56:46 -04:00
Franck Jullien
bbd9fbf892 TechDraw: force user to place its balloon 2019-04-17 08:42:51 -04:00
Franck Jullien
b5613b2bd8 TechDraw: add Balloons 2019-04-01 23:24:17 +02:00
wandererfan
7b5458b7fa Ensure ProjGroup is created before child 2019-03-07 10:58:29 +01:00
wandererfan
198c2258d4 Remove superfluous updates
- under certain conditions, unnecessary screen paints
  were being performed.
2019-03-07 10:58:28 +01:00
wandererfan
be45d5e7ba Implement kb scroll and pan 2019-02-25 17:52:46 +01:00
wandererfan
1c209d423f Implment ctl+/- zoomin on Page 2019-02-25 17:52:46 +01:00
wmayer
2bb5797568 PVS: V595 The pointer was utilized before it was verified against nullptr 2019-02-17 20:55:52 +01:00
luz.paz
2b3ea642da Crowdin: More grammatical and whitespace fixes 2019-01-24 13:30:03 +01:00
wandererfan
0e26ce1f27 Add id=PageName to exported Svg
- add id attribute to output of QSvgGenerator.
2018-12-07 08:53:08 -03:00
wandererfan
4fa707f46d Respect "InvertZoom" parameter 2018-10-26 00:49:53 +02:00
wandererfan
afdd30b137 Fix delayed painting
- Annotation and Image were not being painted
  immediately, but had to wait for a page
  refresh.
2018-05-16 18:58:10 -04:00
wandererfan
eefaaa58db Eliminate some redundant executes
- excessive calls to DrawView::execute were
  slowing data entry in PropertyEditor.
2018-05-11 10:32:24 -03:00
wandererfan
f13689753c Fix #3367: view/data pane is unselected
- error in coordination of Tree & QGraphicsScene
  selection logic caused Feature to become
  unselected during update.
2018-04-23 07:55:38 +02:00
WandererFan
447d4816ce Fix #3224 Seg Fault in DrawProjGroup
- QGIViews for DrawProjGroupItem were not being deleted since
  DPGI belongs to DPG, not DrawPage.  Since there is a 1 to 1
  relationship between MDIViewPage and DrawPage, the check for
  membership in DrawPage is unnecessary.
2017-11-24 20:03:02 -05:00
Ian Rees
6368b2f822 TechDraw: Tidy, and fix Qt5 template text edition 2017-04-26 18:23:21 +12:00