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
Ryan K
aa9c16f8c9
TechDraw: ActiveView rework ( #22107 )
...
* TechDraw: Rework ActiveView
* Update src/Mod/TechDraw/Gui/TaskActiveView.cpp
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
---------
Co-authored-by: Ryan Kembrey <ryan.kembrey@student.uts >
Co-authored-by: Benjamin Bræstrup Sayoc <benj5378@outlook.com >
2025-06-30 12:04:12 -04: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
Ladislav Michl
0ee3c9f8e6
Base: Drop QString-std::string conversion functions from Tools
...
Convenience helpers function Tools::toStdString and Tools::fromStdString
were implemented for Qt4 or older to perform utf8 aware conversion as
QString::toStdString/QString::fromStdString were using toAscii/fromAscii
internally (see https://dreamswork.github.io/qt4/classQString.html ).
Since Qt5 QString uses toUtf8/fromUTf8, which makes the helper functions
obsolete (see https://doc.qt.io/qt-5/qstring.html#fromStdString ).
2024-12-02 23:30:53 -05:00
WandererFan
a1ff05f382
[TD] Fix win file spec backslash ( fix #16646 ) ( #16689 )
...
* [TD]add method to clean win filespecs
- '\' in strings passed to Python as filespecs is interpreted as
an escape of the following character.
- replace '\' with '/'
* [TD]remove '\' from filespecs before use
2024-09-23 17:40:05 +02:00
wandererfan
ca00ba8ce3
[TD]fix ActiveView image size
2024-06-13 19:25:29 -04:00
wandererfan
b3b9614cbc
[TD]disable crop fields if crop not checked
2024-06-13 19:25:29 -04:00
wmayer
56820718c5
Core: Revert superfluous changes made with PR #9521
2023-10-09 15:06:45 +02:00
AgCaliva
41230a9427
fixing DOMDocument redefinition error 2
2023-09-14 03:50:53 -03:00
wandererfan
414e06d54d
[TD]apply translateLabel after all addObject calls
2023-08-17 19:23:29 -04:00
Chris Hennes
94426e1f54
TD: Translate default labels
2023-08-17 19:23:29 -04:00
Uwe
e92034a187
[skip ci] [TD] only whitespace and sorting
2022-12-12 02:23:22 +01:00
wandererfan
cb06952a79
[TD]fix wrong error message on load
...
- also improve temp file name generation
2022-12-11 19:11:28 -05:00
Uwe
023a37b92c
[TD] Task*, part 1: remove unused includes
...
- also some sorting
2022-12-07 16:15:40 +01:00
wandererfan
ce4ba703d9
[TD]ActiveView from different document
2022-10-18 09:04:28 -04:00
Uwe
e3bf7027a6
[TD] remove redundant nullptr checks
2022-10-03 04:25:33 +02:00
wandererfan
92294c448e
[TD]fix active view on windows
2022-09-13 08:38:32 -04:00
Wanderer Fan
b97c93008e
[TD]simplify ActiveView
...
- remove copyActiveViewToSvgFile
- use bitmap image instead of Svg
- upgrade Task with crop options
2022-09-09 19:58:40 -04:00
wandererfan
acf17905ed
[TD]CI clang warnings
2022-09-05 17:48:38 -04:00
berniev
da9ebc572f
Mod: redundant void 2
2022-08-08 10:27:50 +02:00
Uwe
31bc9f3913
[TD] remove some more superfluous nullptr checks
2022-07-20 02:53:48 +02: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
2e7cb2c3fb
[TD] remove a single-header file
2022-03-25 04:11:53 +01:00
wmayer
a99be14233
TD: modernize C++11
...
* use nullptr
2022-03-23 19:26:14 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
Wanderer Fan
cb280afbc4
[TD]remove redundant edits from 9 Task dialogs
2022-01-22 14:51:20 -05:00
luz paz
1d60dbdc85
[TD] remove Py2 code from TD
2021-04-22 13:08:56 +02:00
luz paz
373e3a68aa
[TD] icon uniformity for ActiveView and FaceCenterLine commands
...
Renamed SVGs, saved as plain svg, updated appropriate areas in the source code
2021-04-05 14:41:30 +02:00
donovaly
b5f57ed2f0
[TD] make pointers to the UI std::unique_ptr
...
as noted in https://github.com/FreeCAD/FreeCAD/pull/4271#discussion_r554673632
the pointer to the UI should be a unique pointer.
This PR does this for all TD dialogs that don't already use a unique_ptr.
2021-01-19 19:24:27 +01:00
luz paz
2befcd9502
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
luz paz
a3cb87b117
TechDraw: Header uniformity and whitespace fixes
2020-11-14 16:59:51 +01:00
wmayer
b25dee58d5
Coverity: Uninitialized scalar/pointer field
2020-07-20 17:34:30 +02:00
donovaly
f520737a28
[TD] sanitize active view dialog
...
- add missing enable slot
- fix size policies
- add missing unit initialization
- add and fix tooltips
2020-03-29 19:30:00 -04:00
donovaly
a3622ee49f
[TD] rename some Draw* elements - try 2
...
as discussed here: https://forum.freecadweb.org/viewtopic.php?p=360042#p360042
2020-01-18 06:57:29 -05:00
donovaly
914edfc2ce
TD renaming tools
...
as discussed in https://forum.freecadweb.org/viewtopic.php?p=344899#p344800
we need a more consistent naming for the Wiki
2019-11-17 08:22:09 -05:00
wmayer
2134086d4c
fix further file names vulnerabilities in TechDraw module
2019-10-03 02:45:38 +02:00
wandererfan
13676bfe57
[TD]Make TD View from ActiveView
2019-08-28 08:38:27 -04:00