Commit Graph

57 Commits

Author SHA1 Message Date
Benjamin Nauck
3fc0831116 Drawing: Use std::numeric_limits and std::numbers instead of defines 2025-03-29 13:32:38 +01:00
Benjamin Nauck
265b58c034 Mod: Use new addObject<T>(...) using regex 2025-02-10 18:35:38 +01:00
wmayer
4263ab1937 C++: replace deprecated vsprintf and sprintf
With future C++ compilers the methods vsprintf and sprintf are declared as deprecated due to security issues.
They are replaced with the secure counterpart of the fmt library

Fixes the compiler warnings -Wdeprecated-declarations
2024-04-03 10:04:56 +02:00
wmayer
1f51aba1dc Drawing: use of TaskDialog::addTaskBox 2024-03-26 15:57:20 +01:00
pre-commit-ci[bot]
e92ed45df9 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2023-09-12 13:02:35 -04:00
wmayer
ee0dd92233 Drawing: Apply clang format 2023-09-10 12:37:47 +02:00
Uwe
62ed7ae5a3 [Drawing] Gui: remove unused headers
- also some sorting
- also enable precompiled header
2022-12-10 05:59:51 +01:00
mosfet80
c86f0ce670 Remove old msc ver. Freecad 0.20 require 64 bit and windows 7 or higher. For this reason, msc libraries less than 1800 will no longer be used. (#7036)
* remove msc<1800
2022-06-28 00:42:33 +02:00
mosfet80
c48a569696 Boost version <=1.60 is never used in freecad 0.20 (#7038)
* Boost version 1.60 is never used in freecad 0.20
2022-06-24 02:20:26 +02:00
wmayer
1b4c23eeea Drawing: modernize C++11
* use nullptr
2022-03-23 19:26:15 +01:00
wmayer
8f786ea6ef Gui: Optimize includes to reduce compile time 2022-03-07 20:29:18 +01:00
Uwe
95edb2be56 [Drawing] use predefined M_PI 2022-01-07 21:52:24 +01:00
wmayer
c162037476 LGTM: [skip ci] fix: Large object passed by value 2020-07-24 18:32:31 +02:00
wmayer
560e13c5f2 Coverity: Unchecked return value 2020-07-20 17:34:30 +02:00
wmayer
d6169d6478 boost: fix for boost < 1.60 2020-06-15 19:38:39 +02:00
wmayer
730154a684 boost 1.73.0: The practice of declaring the Bind placeholders (_1, _2, ...) in the global namespace is deprecated 2020-06-12 17:51:33 +02:00
wmayer
8fdb29c842 Mod: [skip ci] implementation classes don't inherit from UI classes any more 2020-01-10 16:19:35 +01:00
wmayer
23bc00e1a1 PVS: V1024 The 'file' stream is checked for EOF before reading from it, but is not checked after reading. Potential use of invalid data 2019-03-13 13:34:45 +01:00
wmayer
4accbb257c Fix scan coverity issues:
CID 184299:  Null pointer dereferences  (FORWARD_NULL)
CID 184297:  Error handling issues  (UNCAUGHT_EXCEPT)
CID 184296:  Uninitialized members  (UNINIT_CTOR)
CID 184292:  Uninitialized members  (UNINIT_CTOR)
2018-11-13 13:20:16 +01:00
wmayer
36271b4052 move from deprecated boost.signals to boost.signals2 library 2018-10-30 19:09:03 +01:00
Markus Lampert
e13c09235f Changed all catch types to references for polymorphic exceptions. 2018-08-08 15:45:30 +02:00
Unknown
e3eca59173 Misc. typo fixes
Various workbenches
2017-12-23 14:30:30 +01:00
wmayer
712966ff50 rename method from remObject to removeObject to be more readable 2017-09-13 18:57:38 +02:00
wmayer
06da15e643 + add convenience method recomputeFeature()
+ make method recompute() protected
2016-11-06 17:16:50 +01:00
wmayer
677ec6cd30 fix coverity issues 2016-10-08 17:43:30 +02:00
wmayer
81ddb1c6c0 fix -Wextra & -Wdeprecated in Drawing 2016-09-22 15:29:10 +02:00
wmayer
24d466473a fix Coverity issues 2016-08-21 14:44:14 +02:00
wmayer
a0e7780fbd + fix crashes in ortho view panel 2016-01-13 17:40:20 +01:00
wmayer
f6023d36d2 + rework BoundingBox class and its Python binding 2015-10-11 00:18:53 +02:00
wmayer
6b3340e7b5 + include missing header files 2015-07-01 13:02:29 +02:00
wmayer
a6994aac4b + fix linker error with MSVC 2012 2015-02-28 12:42:27 +01:00
wmayer
f746297edf + fix linker error with MSVC 2015-01-25 12:22:04 +01:00
Sebastian Hoogen
7485b6c36c round the drawing view projection direction
before calculating the necessary view rotation to anticipate the
rounding that happens on saving and reloading the file. fixes #1909
2015-01-24 23:37:38 +01:00
wmayer
553ddff9c1 + fix undo/redo issues with ortho views 2015-01-03 22:39:07 +01:00
wmayer
537c04a11e + fixes #0001670: Orthographic projection: scale/position is empty when unchecking 'Auto scale/position' 2014-12-30 19:14:07 +01:00
jriegel
d0d832896a Merge remote-tracking branch 'refs/remotes/origin/jriegel/NewWinBuild' into jriegel/review-NewLibPack
Conflicts:
	src/3rdParty/salomesmesh/CMakeLists.txt
2014-08-27 15:39:00 +02:00
Michael G. Hansen
784e52ddb6 Fix bug 1643: Projections are always added to the first drawing page 2014-08-19 15:07:02 +02:00
jriegel
13d1d5be6e Fix for VC11, should be backwards compatible 2014-08-13 21:01:27 +02:00
jriegel
248d8013d3 fix some warnings 2014-01-12 16:25:47 +01:00
jriegel
94754186e7 Fix for Windows 2014-01-12 16:21:07 +01:00
j-dowsett
1a24de3b8a Rewrite of OrthoViews. Detect page size and titleblock from tags in SVG template. Separation of logic from GUI. Much improved logic. No longer uses python to manipulate views - calls C++ methods directly. Can now support more views, and axonometric views in any position. 2014-01-10 11:33:34 +00:00
j-dowsett
69d7506b2a Added manual scaling to axonometric view 2013-12-15 11:26:54 +00:00
j-dowsett
79b51af1c3 Correctly identify standard template files 2013-12-15 11:26:54 +00:00
j-dowsett
572d4faf07 Correctly enables/disables axonometric tab when axonometric view added/removed. 2013-12-15 11:26:54 +00:00
j-dowsett
5ada742f7e Fixed overwriting of axo view when ortho views changed. 2013-12-15 11:26:54 +00:00
j-dowsett
7ee2d974a9 Fix to axonometric projection for objects not centred at y = 0 2013-12-15 11:26:53 +00:00
j-dowsett
db78317777 Added functionality for axonometric views in orthogrpahic projection tool 2013-12-15 11:26:53 +00:00
wmayer
8a94ba885c Fix critical warnings 2012-06-13 18:49:10 +02:00
wmayer
82edf65cb1 Fix build error with VC++ 2012-02-21 11:11:57 +01:00
wmayer
0256f79fd4 New functions added to orhto views (Joe Dowsett) 2012-02-20 20:53:54 +01:00