Commit Graph

42 Commits

Author SHA1 Message Date
WandererFan
b71c2a3278 [TD]Cosmetic function overhaul (#14216)
* [TD]Cosmetic geometry and tools update

- all cosmetics to store geometry in same form
- all cosmetics to survive scaling and rotation
- extension functions to survive scaling and rotation

* [TD]overhaul leader point storage and editing

- add py routine makeLeader(points)

* [TD]add leader conversion utility

* [TD]Set Leader RotateWithView default to true

* [TD]fix intersection vertex position

* [TD]add CosmeticEdge::makeLineFromCanonicalPoints

* [TD]fix 2 Extension tools

- positioning in DrawCosmeticCircle
- mishandling of points in execLineParallelPerpendicular

* [TD]Remove duplicate constexpr

* [TD]fix 2x Cosmetic arc tools

* [TD]refactor LineFormat out of Cosmetic

* [TD]move cosmetic appearance settings to LineFormat

* [TD]remove 2 unused methods

* [TD]apply format to blue line & circle tools

* [TD]fix ballon arrowhead does not rotate with view

* [TD]fix CosmeticCircle3Points

* [TD]allow multiple cosmetic object deletions

* [TD]fix extend/shorten centerline
2024-05-23 09:41:42 -04:00
Tomas Pavlicek
f3fa2ba9c9 [TechDraw] Implement proper selection of subitems (#11804) 2023-12-22 08:25:58 -05:00
wandererfan
762e1b53ff [TD]Standard Line Styles - Gui components 2023-12-01 11:27:29 -05:00
wmayer
56820718c5 Core: Revert superfluous changes made with PR #9521 2023-10-09 15:06:45 +02:00
AgCaliva
280e5e3987 Fixing DOMDocument redefinition 2023-09-16 00:38:41 -03:00
wandererfan
8eeb095fcc [TD]fix direction precision error #9572 2023-05-15 10:13:42 -04:00
Chris Hennes
b40eae83f0 TechDraw: Translate leader line arrow shapes 2023-04-22 09:29:09 -04:00
Benjamin Bræstrup Sayoc
70c9cf0fc0 [TechDraw] Simplify return logic
Easy warmup
2023-04-11 13:00:45 -04:00
wandererfan
12db3618df [TD]remove obsolete log messages 2023-01-13 12:15:33 -05:00
Uwe
e42f46a47b [TD] attempt to fix compilation with PCH after #8141
- also resort includes
2023-01-09 11:26:51 +01:00
wandererfan
a1e295e92d [TD]fix loss of precision in view direction 2023-01-08 17:50:49 -05:00
wandererfan
02fbf1334d [TD]fix check of wrong variable
- replace check of pages in selection with check of
  pages in document
- fix mixed {} conventions
- fix fail to exit on user cancel
2022-10-20 21:28:04 -04:00
wandererfan
ce4ba703d9 [TD]ActiveView from different document 2022-10-18 09:04:28 -04:00
Uwe
1b7e53acbc [TD] Gui, everything but Q*, Task* and ViewP*: remove unused includes
- also sort includes
2022-10-09 17:20:00 +02:00
wmayer
82866db0ca Mod: replace QRegExp with QRegularExpression 2022-10-07 14:03:53 +02:00
wandererfan
acf17905ed [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
Wanderer Fan
f5c5eec3bb [TD]code review changes for Gui 2022-08-18 19:43:04 -04:00
Wanderer Fan
6677cd4d8f [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
bdf4cea14e [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
wmayer
e7edda9679 TD: [skip ci] Fix several clazy issues:
* Using copy-ctor but class TechDraw::anglePoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Using copy-ctor but class TechDraw::arcPoints has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
* Missing reference in range-for with non trivial type [-Wclazy-range-loop-reference]
* C++11 range-loop might detach Qt container (QList) [-Wclazy-range-loop-detach]
* signal arguments need to be fully-qualified (TechDrawGui::QGIView instead of QGIView) [-Wclazy-fully-qualified-moc-types]
* Use multi-arg instead [-Wclazy-qstring-arg]
* Use midRef() instead [-Wclazy-qstring-ref]
2022-07-25 17:00:48 +02:00
Uwe
2e5e4dced8 [TD] Gui: remove some superfluous nullptr checks 2022-07-19 02:49:46 +02:00
Wanderer Fan
9894964eb6 [TD]implement navigation styles 2022-06-24 10:03:02 -04:00
wmayer
fd8719c85c TD: [skip ci] activate PCH of TechDraw (Gui) and use forward declarations
For MSVC this reduces compile time by ~20%
2022-03-25 13:54:47 +01:00
Uwe
4b0767dec1 [TD] some style unification
automatically done by MSVC
2022-01-03 23:30:43 +01:00
Wanderer Fan
4430e3ec8c [TD]Allow selection of Page when adding View 2022-01-02 09:49:33 -05:00
wmayer
e9bc970c28 PVS: V522 There might be dereferencing of a potential null pointer 2020-07-18 10:59:27 +02:00
wandererfan
ad405545e6 [TD]handle new identifier for Draft objects 2020-05-20 21:44:26 -04:00
wandererfan
197c0f799c [TD]improve selection filtering for ArchSection 2020-03-19 08:00:53 -04:00
wandererfan
55da881bc9 [TD]improve selection filtering for DraftView 2020-03-19 08:00:53 -04:00
wandererfan
ebf6d1ca2b [TD]make Arrow enums translatable 2020-03-11 09:33:54 -04:00
wandererfan
dcef41782e [TD]harmonize Arrow enums 2020-03-11 09:33:54 -04:00
wandererfan
92dfecea75 [TD]correct alignment of Section & Detail with Base 2019-11-27 07:31:45 -05:00
Zheng, Lei
c555a8222e TechDraw: fix face based projection direction detection 2019-08-17 15:32:51 +02:00
Zheng, Lei
d26f772035 TechDraw: Link related changes
* Support link and group objects

* Support view sync by implementing view provider API getMDIView()

* Use handleChangedPropertyType() for object migration instead of
  reimplementing Restore() because of a lots of changes in
  PropertyContainer::Restore().

* Various other small fixes.
2019-08-17 15:15:46 +02:00
wandererfan
aa8feb79d0 Use Face or 3D direction for View and ProjGroup
- use current 3D window direction as starting
  direction for DrawViewPart and ProjectionGroup
- if a Face is selected, use Face normal as
  starting direction.
2018-09-06 08:00:00 +02:00
wmayer
4682b4fd25 fix -Wparentheses-equality 2018-05-23 18:40:47 +02:00
wandererfan
57b7f3389a Fix selection when multiple pages 2018-05-15 21:50:48 +02:00
wandererfan
4f3f620720 Coverity fixes
CID 174671
CID 174670
CID 174669
CID 174668
CID 174667
CID 174664
2018-04-23 07:55:38 +02:00
WandererFan
540b2dc79e Correct Selection When Multiple Pages
- when inserting a new View in a document with
  multiple Pages, the View did not always get
  added to the proper Page.
2018-02-06 13:58:00 -05:00
WandererFan
b6c820f4f4 Add debug utils for QRectF/QPointF 2017-09-17 18:50:07 +02:00
WandererFan
2c31b01ffe Fix 2889 Toggle Frames for DrawViewSymbol 2017-02-07 10:51:42 -02:00
WandererFan
f230967146 Only enable Commands when appropriate
Remove dupl code
2016-09-28 20:24:47 -04:00