Benjamin Bræstrup Sayoc
3794897699
[TechDraw] Simplify return logic
2023-04-10 23:34:05 -04:00
Benjamin Bræstrup Sayoc
5d05acc87e
[TechDraw] Simplify retrievement of user preferences
...
for all TechDraw files
2023-04-10 23:34:05 -04:00
wmayer
25beef481c
TD: move to new style connect()
2023-02-01 01:33:34 +01:00
Uwe
c792e7b6c5
[TD] remove unused Console include
...
- no longer used since #8180
2023-01-14 02:39:43 +01:00
wandererfan
bc036abb30
[TD]Allow balloons to be attached to non-part views
2023-01-13 12:15:33 -05:00
wandererfan
437457e996
[TD]remove obsolete log messages
2023-01-13 12:15:33 -05:00
Uwe
c947055821
[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
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
7a2d0037ff
[TD] QGIView*: remove unused includes
...
- also some sorting
2022-12-04 04:21:01 +01:00
Wanderer Fan
99f2820712
[TD]fix Text sizes not exact
2022-09-07 16:06:54 -04:00
wandererfan
aa2b1b8392
[TD]CI clang warnings
2022-09-05 17:48:38 -04:00
Benjamin Bræstrup Sayoc
b498e85f43
[TechDraw] Remove uneeded redefinitions of inherited functions
2022-08-12 18:13:52 -04:00
Uwe
5486c9808d
[TD] remove some more superfluous nullptr checks
2022-07-20 02:53:48 +02:00
Uwe
b514f47c21
[TD] Gui: remove some superfluous nullptr checks
2022-07-19 02:49:46 +02:00
Wanderer Fan
db89eec8e3
[TD]implement navigation styles
2022-06-24 10:03:02 -04:00
Wanderer Fan
a799a5db66
[TD]fix Dimension/Balloon movement
2022-06-02 16:33:25 -04:00
wmayer
e8f9c8a1d3
TD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
Tomas Pavlicek
b93d049f8e
TechDraw - Balloon updates
2021-10-03 13:43:53 +02:00
donovaly
d208fc6ef0
[TD] fix balloon dragging
...
Fixes bug that dragging while pressing CTRL did not work anymore, see https://forum.freecadweb.org/viewtopic.php?f=35&t=55863
2021-02-22 02:17:05 +01:00
donovaly
966540aa3a
QGIViewBalloon.cpp: a fix as suggested
2021-02-18 01:41:23 +01:00
donovaly
038e35c002
QGIViewBalloon.cpp: code simplification
2021-02-16 01:51:43 +01:00
donovaly
5932bbd6a6
[TD] fix dragging of balloons
...
as reported in https://forum.freecadweb.org/viewtopic.php?f=10&t=55109&start=30#p478147
dragging a balloon pollutes the undo steps destroying working with undo and drawings.
2021-02-15 22:28:13 +01:00
wmayer
a79e9bb609
TD: fix undo/redo for balloon objects
...
* inside mouseReleaseEvent() check if the mouse has been moved and only if yes emit the dragFinished() signal
* improve error handling in mouseDoubleClickEvent
* in mouseDoubleClickEvent start to edit the view provider
2021-02-14 19:30:06 +01:00
donovaly
699baa8477
[TD] show balloon dialog on double-clicking
...
when adding GD&T statements as described in https://wiki.freecadweb.org/TechDraw_Geometric_dimensioning_and_tolerancing
You will quickly get a lot of balloons and it is then very tiring to be forced to first select a balloon with a single-click in the drawing, then go to the model tree and there double-click to get the dialog.
This PR also removes unused includes from the dialog code.
2021-01-11 03:02:35 +01:00
donovaly
e54f4fc086
[TD] fix regression for balloon text separators
...
as reported here: https://forum.freecadweb.org/viewtopic.php?f=35&t=53664 the balloon text separation no longer works.
The regression was introduced by commit 76357b3fc . The mistake thereby was that the textHeight is already handled before the separators and that rectangular balloons behave differently because of the separator feature.
2020-12-30 23:59:15 +01:00
Aapo
294136e9bd
[TD] Balloon, move property LineVisible to View tab and fix a refresh bug.
2020-12-18 12:45:34 +01:00
Aapo
a421a35f1f
[TD] Add a comment about QGIViewBalloon.cpp draw() function needing refactoring.
2020-12-07 23:48:28 +02:00
Aapo
6670197fad
[TD] Add Balloon property LineVisible for making the Balloon line visible or hidden.
2020-12-07 23:40:12 +02:00
Aapo
d274805567
[TD] Add Balloon property EndTypeScale for scaling line end decorations (arrows etc).
2020-12-07 23:40:12 +02: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
wandererfan
b298e78624
[TD]remove obsolete QPointF (LGTM)
2020-07-26 19:45:49 -04:00
wmayer
983939b32d
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
wmayer
a9202f931b
Coverity: Unchecked dynamic_cast
2020-07-20 17:34:28 +02:00
wmayer
0a6929a122
Coverity: Dereference after null check
2020-07-20 17:34:25 +02:00
wmayer
1ae38aea04
PVS: V522 There might be dereferencing of a potential null pointer
2020-07-18 10:59:27 +02:00
wmayer
611fd4088a
fixes #0004318 : Compilation fails with Qt 5.15 beta with QPainterPath errors [skip ci]
2020-07-02 13:19:43 +02:00
wandererfan
c92d725aed
[TD]change misleading prop name - Shape
2020-06-15 13:57:55 -04:00
wmayer
8dbe26a95f
Qt5: 'int QFontMetrics::width' is deprecated since Qt 5.11: Use QFontMetrics::horizontalAdvance [-Wdeprecated-declarations]
2020-06-12 17:51:33 +02:00
wandererfan
a3029fec74
[TD]Centralize preference getters
2020-04-24 11:13:49 -04:00
donovaly
7f58c979b7
[TD] use uniform naming for balloon outline
...
- in the prefs we call the outline "shape" and this describes it better than "symbol" (it is the shape of the bubble). The line end, however, has a symbol so "Shape" makes clear that is is something different.
2020-03-19 09:26:50 -04:00
wandererfan
5f1f5f2195
[TD]fix bad preference keys
...
- GeomHatch color, centerline color, ortho balloon
filled triangle end
2020-03-17 08:45:26 -04:00
wandererfan
b493b3841d
[TD]harmonize Arrow enums
2020-03-11 09:33:54 -04:00
WandererFan
383e20e941
[TD]fix Balloon label position
2020-03-10 07:36:38 -04:00
wandererfan
f4233cadb3
[TD]fix Balloon coordinates
2020-03-07 19:29:57 -05:00
wandererfan
79d5d35eb1
[TD]Preferences: reorganize and add missing
2020-01-27 08:02:29 -05:00
wandererfan
96ad0d9f37
[TD]Balloon ends and kink
2020-01-16 07:35:37 -05:00
wandererfan
7580c05504
[TD]fix Dimension selection issues
2019-12-31 17:28:41 -05:00
WandererFan
864fa1dc55
[TD]support Pyramid in Balloon
2019-12-31 08:11:40 -05:00
wandererfan
6886621008
[TD]fix potential nullptr while restoring
2019-12-30 18:20:48 -05:00
WandererFan
a6b3de4220
[TD]fix Balloon placement issues
...
- contributed by @lidiriel
2019-12-27 20:27:19 -05:00