Commit Graph

113 Commits

Author SHA1 Message Date
wandererfan
0e402ae075 [TD]add light text on dark page mode
- some visually impaired users need white graphics on
  dark page.

- revise Annotation dialog to respect dark style
2023-01-03 17:41:33 -05:00
Uwe
c2ff5475c7 [TD] QGV*:remove unused includes
- also some sorting
2022-12-04 02:29:20 +01:00
wmayer
249eb7ff79 Qt6: remove or replace QTextCodec 2022-09-30 14:52:11 +02:00
wandererfan
aa2b1b8392 [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
wandererfan
9035020315 [TD]fix crash in Preferences
- QGVPage was not detaching the parameter observer when
  deleted, leaving a stale pointer in the list of observers.
2022-08-27 15:50:48 -04:00
berniev
180edfa3cc Mod: Single arg ctors must be explicit 2022-08-24 16:55:20 +02:00
Wanderer Fan
aa1193559b [TD]clazy warnings and duplicate setter/getter
- clazy warning re missing Q_OBJECT

- include TechDrawGlobal.h in headers

- resolve duplicate setter/getters
2022-08-18 09:34:32 -04:00
Wanderer Fan
2c047e361d [TD]fix segfault on repeated open/close
[TD]fix memory leak in ViewProviderPage

[TD]fix QGView redraws at idle
2022-08-18 09:34:32 -04:00
Wanderer Fan
b467cd32f2 [TD]refactor scene/view/mdi
- move scene related functions out of mdiViewPage
  and QGVPage.
- route requests for scene/view/mdi through
  ViewProviderPage
2022-08-18 09:34:32 -04:00
Wanderer Fan
fdfc73fe93 [TD]remove precompiled from *.h 2022-08-14 09:20:38 -04:00
berniev
f4ffd15864 Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Uwe
b514f47c21 [TD] Gui: remove some superfluous nullptr checks 2022-07-19 02:49:46 +02:00
Wanderer Fan
203b9bb26c [TD]Navigation Styles - context menu handling & std cursors 2022-06-30 08:50:33 -04:00
Uwe
5ca796a162 [TD] fix linker error with MSVC
patch by @wwmayer: https://forum.freecadweb.org/viewtopic.php?p=605472#p605472
many thanks!
2022-06-26 22:38:49 +02:00
Wanderer Fan
db89eec8e3 [TD]implement navigation styles 2022-06-24 10:03:02 -04:00
wmayer
e8f9c8a1d3 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Stefan Brüns
1e018f63d8 [TechDraw] Replace XQuery based SVG cleanup with DOM traversal
Evaluation of the XQuery has a complexity of more than O(3), as the
underlying QDomNodeModel::compareOrder is quite expensive.

Traversing the DOM tree directly is significantly faster, i.e. it now
takes constantly less time than the actual drawing via QPainter, while
previously it could take several magnitudes more time.

Fixes #6638

Also replace the XQuery used for reparenting the drawing group. Not
performance critical, but significantly simpler code.
2022-03-22 08:44:39 -04:00
Wanderer Fan
0149b99b6f [TD]make page grid unit aware 2022-03-04 09:28:16 -05:00
Wanderer Fan
879339faa4 [TD]add alignment grid to page 2022-02-27 14:34:35 -05:00
Wanderer Fan
2204bb9d7a [TD]Add sodipodi namespace to exported SVG 2022-02-03 15:07:07 -05:00
wmayer
895ff340af TD: [skip ci] fix deprecation warning with Qt5.15 2021-11-17 17:20:57 +01:00
Tomas Pavlicek
af9daa9e46 TechDraw - Balloon updates - improve hospot calculation 2021-10-09 00:30:28 +02:00
Tomas Pavlicek
52dcfc64c3 TechDraw - Balloon updates - review based changes 2021-10-08 16:12:01 +02:00
Tomas Pavlicek
b93d049f8e TechDraw - Balloon updates 2021-10-03 13:43:53 +02:00
Łukasz Stelmach
ba5f7f5d80 [TD] Make the root SVG group a layer for Inkscape
Layers are Inkscape way of marking top level groups. Inkscape provides
convenient UI to show and hide these groups as well as to lock them to
prevent users from accidentally editing them. Although Inkscape can open
and edit files without layers (without any top level group having the
groupmode attribute set to "layer"), it is somewhat cumbersome to move
the group created by TechDraw to a separate layer, which is what I do,
when I want to add more layers with additional information.

Signed-off-by: Łukasz Stelmach <stlman@poczta.fm>
2021-05-03 21:39:07 +02:00
luz paz
60030e5f31 [TD] remove icons/cursor-balloon.png and replace references w/ SVG file
Replacing w/ the already installed`TechDraw_Balloon.svg` file in the same directory.
2021-04-17 11:38:10 +02:00
Mateusz Skowroński
252d30e40f QPainter::HighQualityAntialiasing is deprecated. Use QPainter::Antialiasing instead. 2021-04-04 11:33:51 +02:00
Chris Hennes
bd86b4dcfe [TD] Remove deprecated Qt < 5.9 code 2021-04-02 12:02:54 +02:00
donovaly
1a296a4006 [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
89664642fb 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
2647987157 Qt5: fix deprecation warnings of QWheelEvent in Qt 5.15 2020-10-18 14:45:31 +02:00
wmayer
1ae38aea04 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +02:00
wmayer
a455927d4a 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
8944a9cfbe [TD]Export Svg hatch as bitmap 2020-05-29 20:53:24 -04:00
wandererfan
3483ebdb31 [TD]do not write BOM on SVG export 2020-04-03 08:16:53 -04:00
wandererfan
b5ea5ed31e [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
cb2a3d529c [TD]Landmark Dims initial impl 2020-02-25 17:21:00 -05:00
wandererfan
9d7d43ea18 [TD]Fix rich text size/position in Svg export
- still an issue with line spacing
2020-02-04 19:35:27 -05:00
donovaly
97b80ff7f9 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
4fb29c7adf [TD]fix #4170 Unicode in Svg export on Win 2020-01-14 07:36:36 -05:00
wandererfan
eaa42b0dcd [TD]fix leader line display attributes 2020-01-14 06:41:35 -05:00
wandererfan
41b09a0ee5 [TD]fix LeaderLine noshow on doc load 2020-01-12 18:38:59 -05:00
WandererFan
a6b3de4220 [TD]fix Balloon placement issues
- contributed by @lidiriel
2019-12-27 20:27:19 -05:00
wandererfan
b09233314b [TD]fix Svg hatch on export 2019-12-17 08:29:49 -05:00
wandererfan
542379124a [TD]Avoid Spanish char issue in SVG Export (4170) 2019-10-20 15:36:59 -04:00
Tomas Pavlicek
1751e130ff TechDraw - Put BOM on beginning of exported SVG 2019-10-06 07:31:34 -04:00
Tomas Pavlicek
c67ffc9f44 TechDraw - SVG changes via DOM manipulation instead of Regex replace 2019-10-06 07:31:34 -04:00
Tomas Pavlicek
49294e780f TechDraw: Middle button panning 2019-08-27 07:33:30 -04:00
wandererfan
e4d3909484 [TD] fix stale pointer in scene 2019-08-22 17:11:55 -04:00
wandererfan
7cb2713e8c [TD]Welding Symbol creation 2019-08-22 17:11:55 -04:00