Commit Graph

48 Commits

Author SHA1 Message Date
Benjamin Bræstrup Sayoc
e60c800a0b Remove magic number and hard type enums in ArrowPropEnum.h
- Remove currently present magic numbers
- Hard type enums, so magic numbers can no longer be introduced. We don't want people to introduce magic numbers.
2025-03-02 17:14:24 +01:00
Chris Hennes
a88f30877c Update src/Mod/TechDraw/Gui/QGILeaderLine.cpp 2024-12-16 18:16:03 +01:00
wandererfan
3cadb489d9 [TD]allow weld symbol on rotated leader 2024-12-16 18:16:03 +01:00
wandererfan
a92acbd457 [TD]fix leader autohorizontal on rotated base view 2024-12-16 18:16:03 +01:00
Benjamin Bræstrup Sayoc
cdb92768fe [TechDraw] Return logic simplification (#16504)
* [TechDraw] AppTechDrawPy.cpp return logic simplification

* [TechDraw] CosmeticExtension.cpp return logic simplification

* [TechDraw] DrawBrokenView.cpp return logic simplification

* [TechDraw] HatchLine.cpp return logic simplification

* [TechDraw] LineGenerator.cpp return logic simplification

* [TechDraw] Preferences.cpp return logic simplification

* [TechDraw] ShapeExtractor.cpp return logic simplification

* [TechDraw] MDIViewPage.cpp return logic simplification

* [TechDraw] QGILeaderLine.cpp return logic simplification

* [TechDraw] QGIRichAnno.cpp return logic simplification

* [TechDraw] QGTracker.cpp return logic simplification
2024-11-18 16:14:47 -03:00
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
pavltom
a9b77de0be [TechDraw] Reimplement Leader Line parent linking 2024-03-04 15:35:06 +01:00
wandererfan
21e61995fd [TD]fix leader end symbol does not scale 2023-07-30 12:48:30 -04:00
Benjamin Bræstrup Sayoc
3f81006ac4 [TechDraw] Simplify return logic
Normal warmup
2023-04-11 13:49:57 -04:00
wmayer
25a63f8750 TD: move to new style connect() 2023-02-01 01:33:34 +01:00
Uwe
f8db7e9187 [TD] remove unused headers (#8155)
* [TD] remove unused headers

- also some sorting
- also improve readability by not using an abbreviation (we consistently don't abbreviate class names)
2023-01-09 14:55:22 +01:00
wandererfan
d63ac0f7f6 [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
98a0172700 [TD] QGIL - QGIVE:remove unused includes
- also some sorting
2022-12-04 03:29:19 +01:00
marioalexis
d206116c3d TechDraw: Replace C cast 2022-09-18 11:06:51 -05:00
wmayer
6d7d154c0e TD: remove unused member variables to fix -Wunused-private-field 2022-09-08 08:15:19 +02:00
wandererfan
acf17905ed [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
Benjamin Bræstrup Sayoc
9905e17ba1 [TechDraw] Remove uneeded redefinitions of inherited functions 2022-08-12 18:13:52 -04:00
berniev
da9ebc572f Mod: redundant void 2 2022-08-08 10:27:50 +02:00
Uwe
7ab531c51a [TD] last part of removal of superfluous nullptr checks 2022-07-20 12:17:16 +02:00
Uwe
31bc9f3913 [TD] remove some more superfluous nullptr checks 2022-07-20 02:53:48 +02:00
Uwe
8304a0942e [TD] remove more superfluous nullptr checks 2022-07-20 02:32:52 +02:00
wmayer
97330443a2 All: modernize C++11
* replace deprecated headers
2022-03-23 22:44:18 +01:00
wmayer
b25dee58d5 Coverity: Uninitialized scalar/pointer field 2020-07-20 17:34:30 +02:00
wmayer
45b755a596 Coverity: Unchecked dynamic_cast 2020-07-20 17:34:28 +02:00
wmayer
da6b379566 fixes #0004318: Compilation fails with Qt 5.15 beta with QPainterPath errors [skip ci] 2020-07-02 13:19:43 +02:00
wandererfan
daa6330863 [TD]crash loading old development models
- LeaderLine behaviour changed during development
2020-04-30 15:57:35 -04:00
wandererfan
e80c576241 [TD]Centralize preference getters 2020-04-24 11:13:49 -04:00
wandererfan
779ebb7715 [TD]fix Leader end type selection 2020-03-23 09:23:08 -04:00
wandererfan
dcef41782e [TD]harmonize Arrow enums 2020-03-11 09:33:54 -04:00
wandererfan
f5d66c5e88 [TD]update leaderline immediate when props change 2020-01-27 15:42:48 -05:00
wandererfan
96bdea2f5f [TD]fix LeaderLine autoHorizontal 2020-01-22 20:23:18 -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
36d158ac1b [TD]support Pyramid in Balloon 2019-12-31 08:11:40 -05:00
WandererFan
3c97d0b9e8 [TD]support pyramid arrow in leader 2019-12-31 08:11:40 -05:00
wandererfan
4a736b7731 [TD]fix Py2/Qt4 errors 2019-12-26 08:56:21 -05:00
wandererfan
c05f2268a8 [TD]fix Leader position override by QGIView 2019-12-26 08:56:21 -05:00
wandererfan
b5f12376a9 [TD]fix LeaderLine point edit 2019-12-26 08:56:21 -05:00
wandererfan
12335c7d52 [TD]Fix Arrowhead Fill in Dims & Leaders 2019-09-29 19:56:46 -04:00
wandererfan
3c4700d05b [TD]fix BRect on empty text items 2019-08-22 17:11:55 -04:00
wandererfan
992ef1b07e [TD]Welding Symbol creation 2019-08-22 17:11:55 -04:00
wandererfan
7d6bc8d92c Clean up Scale retrieval 2019-06-04 15:41:41 -04:00
wandererfan
8e6dd25ad7 Fix overlap of line ends and arrowheads 2019-06-04 06:59:17 -04:00
wandererfan
be257182ba Fix Abandon Edit 2019-05-29 23:22:24 -04:00
wandererfan
bf38ae958f Fix point edit when attach point changed 2019-05-24 22:18:32 -04:00
wandererfan
ab986d9a00 Fix Leader point edit 2019-05-16 06:32:44 -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