Commit Graph

81 Commits

Author SHA1 Message Date
Syres916
e95d3cbdc9 [TechDraw] Fix the projection type combobox and align all references to First angle and Third angle (#24762) 2025-10-26 17:31:44 -05:00
Markus Reitböck
0019739095 TechDraw: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following:

"Targets should build successfully with or without compiler support for precompiled headers. It
 should be considered an optimization, not a requirement. In particular, do not explicitly include a
 precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically
 generated precompile header on the compiler command line instead. This is more portable across
 the major compilers and is likely to be easier to maintain. It will also avoid warnings being
 generated from certain code checking tools like iwyu (include what you use)."

Therefore, removed the "#include <PreCompiled.h>" from sources, also
there is no need for the "#ifdef _PreComp_" anymore
2025-09-23 00:50:59 +02:00
bofdahof
998f4e4d45 Console: rename PascalCase named methods to camelCase 2025-05-06 17:50:21 +02:00
Kacper Donat
d9d518f905 TechDraw: Use freecad_cast whenever possible 2025-04-26 14:23:25 +02:00
Benjamin Nauck
bfdaa9aab2 Techdraw: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:39 +01:00
Benjamin Nauck
dd6aa9f3c7 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
PaddleStroke
4f3bb4e543 TechDraw: Fix child of linked view. 2024-04-18 12:14:10 -04:00
PaddleStroke
156ae209f5 TechDraw: Fix child not moving when drag and dropping a view between pages. 2024-04-18 12:14:10 -04:00
PaddleStroke
fc32946149 TechDraw: Enable App::Links to work with TechDraw views. 2024-04-18 12:14:10 -04:00
pavltom
d11d3cd7b8 [TechDraw] Reimplement Rich Annotation parent linking 2024-02-26 16:22:30 -05:00
André Caldas
560898907b Avoids using getNameInDocument() to test if DocumentObject is attached to a Document.
This patch substitutes by isAttachedToDocument() (almost) everywhere where
getNameInDocument() is used for this purpose.

The very few places not touched by this patch demand a (just a little) less trivial change.
When we change the returning type of getNameInDocument() to std::string,
those places will be easily found, because they shall generate a compiler error
(converting std::string to bool).

Rationale:
The fact that getNameInDocument() return nullptr to indicate
that the object is not attached to a document is responsible for lots of bugs
where the developer does not check for "nullptr".

The idea is to eliminate all those uses of getNameInDocument() and, in the near future,
make getNameInDocument() return always a valid std::string.
2023-12-11 17:37:58 +01:00
wandererfan
f03461a85a [TD]spelling in comments 2023-11-26 16:42:06 -05:00
wandererfan
49a9442d61 [TD]add label translation for Page and Template 2023-08-17 19:23:29 -04:00
Benjamin Bræstrup Sayoc
15fe52a04b [TechDraw] Simplify retrievement of user preferences
for all TechDraw files
2023-04-10 23:34:05 -04:00
Benjamin Bræstrup Sayoc
2e12a8fad2 [TechDraw] Improve readability of DrawPage.cpp 2023-04-05 14:35:30 -04:00
wandererfan
271e3c6b8a [TD]Allow balloons to be attached to non-part views 2023-01-13 12:15:33 -05:00
wandererfan
12db3618df [TD]remove obsolete log messages 2023-01-13 12:15:33 -05:00
Uwe
1ddd8b8a92 [skip ci] [TD] fix a typo as reported by the CI 2023-01-09 15:47:40 +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
wandererfan
da06fc45a2 [TD]add extensions for drag and drop 2022-12-27 19:43:44 -05:00
Uwe
03a3ae8cd8 [TD] DrawD* - DrawT*: remove unused includes - part 2/2
- also sort includes
- also additions to precompiled header
2022-10-08 17:21:26 +02:00
wandererfan
f337a0f9d4 [TD]fix PrintAll output to printer 2022-09-12 19:20:07 -04:00
wandererfan
acf17905ed [TD]CI clang warnings 2022-09-05 17:48:38 -04:00
Wanderer Fan
74cdc6db61 [TD]code clean ups
- QtConcurrent include and CMake for Win

- include clean up dvp, dvs, dvd

- variable names and nested if clean up

- remove debug code
2022-08-18 09:34:32 -04:00
Wanderer Fan
54ce3d0fc3 [TD]fix redraw does not paint all views 2022-07-28 09:16:03 -04:00
Uwe
31bc9f3913 [TD] remove some more superfluous nullptr checks 2022-07-20 02:53:48 +02:00
Uwe
93796e2d92 [TD] App: remove some superfluous nullptr checks 2022-07-19 02:03:50 +02:00
wmayer
a99be14233 TD: modernize C++11
* use nullptr
2022-03-23 19:26:14 +01:00
Wanderer Fan
aa4ba37a6c [TD]fix update suppression logic 2022-03-16 09:31:29 -04:00
Wanderer Fan
cec898c6b3 [TD]prevent touched but must be execute on DrawPage 2022-01-02 09:48:38 -05:00
Tomas Pavlicek
c7cc7fa0fd TechDraw - Balloon updates 2021-10-03 13:43:53 +02:00
Aapo
72d003f102 [TD] Make DrawViewSpreadSheet respect DrawPage::redrawCommand() update mechanism. 2020-12-05 00:50:20 +02:00
wmayer
b25dee58d5 Coverity: Uninitialized scalar/pointer field 2020-07-20 17:34:30 +02:00
wandererfan
e80c576241 [TD]Centralize preference getters 2020-04-24 11:13:49 -04:00
donovaly
fa40b50565 [TD] reduce scaling increment
see https://forum.freecadweb.org/viewtopic.php?f=35&t=42780
2020-01-26 19:30:02 -05:00
luz.paz
cbdba0b5bb TD: fix header uniformity
This PR fixes header uniformity across all TechDraw WB.
2019-12-21 09:57:45 -05:00
wandererfan
5bb659e7e2 [TD]Transition to on demand page updates ph1 2019-10-23 14:19:52 -04:00
wandererfan
b2d8eeeb65 [TD]Allow forced redraw of Page 2019-08-29 21:03:39 -04:00
wandererfan
5bed53f858 [TD]Add parameters to control drawing update 2019-08-29 21:03:39 -04: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
044fe79549 SVG Refactor - minor cleanups 2019-06-11 15:46:46 -04:00
wandererfan
a0ea8b656b Fix Balloon Next Index Persistance
- next sequential number for balloon on Page was
  not being preserved across save/restore
2019-05-25 18:44:35 +02:00
Franck Jullien
9d24d19ee1 [TD] Rewrite balloon placing method
When clicking on balloon command, cursor is changing to balloon cursor.
It means user is ready to place a balloon (anywhere on the page).
Balloon object is not created until user click somewhere.

Balloon command can be aborted pressing escape or when page view lost
focus (in other words, when user clic somewhere else than the page).
2019-05-21 08:37:05 -04:00
wandererfan
408ac94416 Fix handling of orphan objects during Page delete 2019-04-26 06:36:56 -04:00
wandererfan
afe21f739c Add default parameter for Page Scale 2019-04-05 19:35:26 -04:00
Franck Jullien
b5613b2bd8 TechDraw: add Balloons 2019-04-01 23:24:17 +02:00
wandererfan
5a26558a9d Fix out of scope warnings
- Links within TD were not set to Global scope. This caused
  problems when a Page was in a container, but Views were not
  in the container.
2019-01-22 10:15:04 -02:00
wmayer
b0247d184e Replace Base::Exception with appropriate subclass 2018-11-14 19:42:10 +01:00
wmayer
833c2c601e add missing newlines 2018-06-09 11:47:12 +02:00