WandererFan
abb57f10b6
Update src/Mod/TechDraw/Gui/QGIViewDimension.cpp
...
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
2025-02-23 09:14:23 -05:00
wandererfan
4c39987df4
[TD]fix bad formatting
2025-02-23 09:14:23 -05:00
WandererFan
022dde80f1
Update src/Mod/TechDraw/Gui/QGIViewDimension.cpp
...
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
2025-02-23 09:14:23 -05:00
WandererFan
d928750026
Update src/Mod/TechDraw/Gui/QGIViewDimension.cpp
...
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
2025-02-23 09:14:23 -05:00
wandererfan
812976f9df
[TD]lint removal
2025-02-23 09:14:23 -05:00
wandererfan
b084d7fadb
{TD]Set Arrow end property at Dimension level.
2025-02-23 09:14:23 -05:00
Florian Foinant-Willig
8b8e29a032
TechDraw: Add a format spec. to round a value
2025-02-17 12:18:26 -05:00
Benjamin Bræstrup Sayoc
6d544d5599
Remove magic number and hard type enums in DrawBrokenView.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-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
ea26b3f18c
Remove magic number and hard type enums in CenterLine.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-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
c53679422b
Remove magic numbers and hard type enums in DimensionFormatter.h.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-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
97b34f9c57
Remove magic number and hard type enums in Geometry.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-02-17 12:16:49 -05:00
Benjamin Bræstrup Sayoc
06fa035126
TechDraw: use QStringLiteral 2
2025-02-16 19:52:30 +01:00
Joao Matos
aace8f7bee
CMake: Modernize build files using outdated Python variables.
2025-02-16 10:21:26 -06:00
Andrea
146d8a356b
change MIN_boost_version
...
ubuntu version 20.04 is no longer supported.
The minimum boost version used for freecad is now 1.74 (ubuntu 22.04) https://launchpad.net/ubuntu/jammy/+package/libboost-system-dev
2025-02-15 13:33:32 -06:00
tritao
80b299bb88
Base: Move zipios library to 3rdParty folder.
2025-02-14 13:08:28 -06:00
Benjamin Bræstrup Sayoc
d3c13c3d47
TechDraw: Set symbol dir
...
Fixes #19496
2025-02-14 10:27:53 -06:00
Chris Hennes
443d91606d
TD: Add missing #include "PreCompiled.h" ( #19547 )
...
* TD: Add missing #include "PreCompiled.h"
* Update src/Mod/TechDraw/Gui/CommandAlign.cpp
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
* TD: Add guards around QMessageBox include
---------
Co-authored-by: WandererFan <WandererFan@gmail.com >
Co-authored-by: Benjamin Nauck <benjamin@nauck.se >
2025-02-12 21:28:34 -06:00
Chris Hennes
a3004c2c0a
Merge pull request #19142 from hyarion/refactor/add-template-addobject
...
Add new addObject<T>() function
2025-02-11 09:42:47 -06:00
Chris Hennes
201015fd70
Merge pull request #19502 from benj5378/QStringLiteral
...
Use QStringLiteral
2025-02-11 07:34:12 -06:00
Benjamin Bræstrup Sayoc
02c300669f
[TechDraw] Add ability to align points by rotating view
...
Fixes #7061
2025-02-10 19:31:39 -05:00
Benjamin Nauck
edb4817872
Mod: Use new addObject<T>(...) that requires additional changes
2025-02-10 18:35:38 +01:00
Benjamin Nauck
265b58c034
Mod: Use new addObject<T>(...) using regex
2025-02-10 18:35:38 +01:00
Benjamin Nauck
f1ab1ee0ad
Mod: Fix mistakes in type system class names
2025-02-10 18:33:00 +01:00
Benjamin Bræstrup Sayoc
9a8bdbaf9f
TechDraw: Use QStringLiteral
2025-02-10 18:32:44 +01:00
Chris Hennes
97b9b6de89
Merge pull request #17082 from benj5378/useTemplates
...
[TechDraw] Use templates
2025-02-10 11:17:26 -06:00
Chris Hennes
5869fdb95f
Merge pull request #19420 from tritao/gui-selection-refactor
...
Gui: Selection code cleanups
2025-02-10 10:56:23 -06:00
Benjamin Bræstrup Sayoc
5793b0d59d
[TechDraw] Use templates instead of duplicate code: formatVector
2025-02-08 22:35:57 +01:00
Benjamin Bræstrup Sayoc
9f8f6b1f56
[TechDraw] Use templates instead of duplicate code: toGp
2025-02-08 22:35:57 +01:00
tritao
02ab2deac7
Gui: Reorganize the navigation files into a top Navigation folder.
2025-02-05 20:21:00 -06:00
tritao
38c9a7cdb3
Gui: Cleanup mystery comments around ResolveMode.
2025-02-05 13:11:05 +00:00
Chris Hennes
52cb5af18f
TD: Migrate to using App::Application::getNameWithVersion
2025-02-03 12:05:16 -05:00
Pascal de Bruijn
5ac886fa0e
Add proper PDF creator metadata
2025-02-03 12:05:16 -05:00
tritao
551c2e48fb
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +01:00
Chris Hennes
143edf737a
Merge pull request #19232 from WandererFan/miscSmallFixes
...
[TD]minor fixes x3
2025-02-03 17:54:20 +01:00
wandererfan
50c9c910ea
[TD]fix crash on delete while dialog open ( #18120 )
2025-02-03 17:51:46 +01:00
Pascal de Bruijn
0fbb6e9398
TechDraw: Export with default filename ( #19033 )
...
* TechDraw: Export with default filename
* TechDraw: templates consistent drawing_number/revision_index
2025-02-03 11:34:14 -05:00
Max Wilfinger
5925c7a560
Merge pull request #19097 from hyarion/refactor/template-based-is-derived-from
...
Simplify code by using BaseClass' isDerivedFrom<> and is<>
2025-01-27 20:40:08 +01:00
Benjamin Guest
4f56102978
TechDraw: Fix dimension alignment issue.
...
Fixes issue #19121 "dimension numbers placed lower than normal".
Problem:
QGCustomText has a new method `alignmentRect` which can optionally return a
`tightBoundingRect` instead of the regular `boundingRect`. The
`alignmentRect` is used for laying out the `QGIDatumLabel`, however
QGraphicsItemGroup's `childrenBoundingRect` use the childrens'
`boundingRect` and knows nothing of `alignmentRect`. The result is an
improperly sized label and frame and miss alignment. Additionally
`childrenBoundingRect` calculations includes hidden views, so even though
the `m_tolTextOver` and `m_tolTextUnder` are hidden they still affect
the bounding rect size.
Solution:
1. Implement new method `QGIDatumLabel::tightBoundingRect` this
calculates the bounding rect using the subview's
`aligmentRect` if there is text in the custom text.
2. Use `tightBoundingRect` in place of `boundingRect` to for the drawing of
arrows and the exact dim frames.
3. This PR acknowledges that there are some edge case fonts that while not
clipped may not interface perfectly with arrows and the exact dimension
frame.
4. Fix vertical alignment of `m_tolTextOver` / `m_tolTextUnder`
5. Incorporate PR Review comments
2025-01-27 20:39:41 +01:00
marcuspollio
d72124f86a
TechDraw: rename user-facing strings Arch to BIM
2025-01-27 17:58:45 +01:00
Dan Taylor
3ac01778f7
TechDraw: Fix finding outlines consisting of a single closed edge
2025-01-27 17:55:50 +01:00
Pascal de Bruijn
f29cc727a7
TechDraw: fix editable/autofill scale in Templates
2025-01-27 17:50:18 +01:00
wandererfan
44a1e8de4d
[TD]fix front view position in projection group ( fix #19085 )
2025-01-27 17:34:13 +01:00
Benjamin Nauck
5410123f0d
Simplify logic using freecad_dynamic_cast
2025-01-27 16:08:19 +01:00
Benjamin Nauck
97bf3c5e33
Manual changes to improve isDerivedFrom usage
2025-01-27 16:08:19 +01:00
Benjamin Nauck
6f535f19fb
Prefer to use BaseClass's isDerivedFrom<T> over non template or Base::Type's
...
Regex based changes, manually verified
2025-01-27 16:08:18 +01:00
wandererfan
add93323d7
[TD]fix cosmetic circle arc handling
2025-01-24 17:29:22 -05:00
wandererfan
dbf2e85f6f
[TD]control svg scaling at object level
2025-01-24 16:34:18 -05:00
wandererfan
2bc9f2ea1f
[TD]allow showing units on individual dimensions
2025-01-24 13:04:00 -05:00
João Matos
97e24f10f8
CMake: Improve Import dependency check for TechDraw module. ( #19036 )
...
* CMake: Fix missing Import dependency check for TechDraw module.
* CMake/TechDraw: Conditionally use Import library.
* CMake: Fix missing dependency check for Module and PartDesign measure in TechDraw.
2025-01-19 13:33:16 -06:00
Yorik van Havre
0213b4fc6c
Translations ( #18923 )
...
* Updated ts files
* Merged crowdin translations
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-01-13 21:30:30 -06:00