Markus Reitböck
6ef07bb358
Gui: 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-14 09:47:03 +02:00
Jiří Pinkava
c72d3f706b
Remove unused DAGFilter
2025-08-30 17:23:18 -05:00
Max Wilfinger
b7a65220a3
DAGView: Update UI strings for consistency
...
Closes : #22771
2025-08-04 20:12:54 +02:00
Chris Hennes
0cc8460def
GUI: Switch DAGModel to use qreal instead of float
2025-07-24 17:59:09 -05:00
Chris Hennes
c2705c6fc2
Gui: Fix multiplication result converted to larger type
2025-07-21 22:02:15 -05:00
bofdahof
998f4e4d45
Console: rename PascalCase named methods to camelCase
2025-05-06 17:50:21 +02:00
Benjamin Nauck
a882289995
Gui: use contains() and isEmpty() instead of count() where possible
2025-05-03 22:19:51 +02:00
Kacper Donat
b14d3a224b
Misc: Replace dynamic_cast with qobject_cast
2025-04-26 14:23:25 +02:00
Kacper Donat
b300c80b90
Base: Use explicit pointer syntax for freecad_cast ( #20694 )
...
* Base: Use explicit pointer syntax for freecad_cast
This aligns our custom cast with other casts
* All: Use explicit pointer syntax for freecad_cast
2025-04-11 14:11:33 +00:00
Kacper Donat
35a9673a75
Base: Rename Base::freecad_dynamic_cast into freecad_cast
...
This is to make it shorter and easier to use. QT does the same thing
with their qobject_cast.
2025-04-07 10:32:28 -05:00
Chris Hennes
c1ada6bc40
App: Coverity fixes
2025-03-18 15:59:22 +01:00
Benjamin Nauck
8af7f1b043
Gui: Use isBad() instead of comparing types with ==
2025-02-24 08:30:18 +01:00
Andrea
de9bd5e1ce
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
Benjamin Bræstrup Sayoc
f647d4a1eb
Gui: Use QStringLiteral
2025-02-10 18:34:57 +01:00
tritao
65466d580b
Gui: Reorganize the selection files into a top Selection folder.
2025-02-03 17:56:57 +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
wmayer
4143c551bb
DAG: Add method hasRecord() and use it in Model::slotChangeObject
...
to avoid a possible failing assert().
Fixes #17572
2024-11-04 17:56:57 +01:00
Ladislav Michl
e4d304f934
Base: Implement TimeElapsed
...
Some instances of TimeInfo serve the sole purpose of measuring time
duration. Using system time is unfortunate as it returns wall clock,
which is not guaranteed to be monotonic. Replace such a usage with
the new TimeElapsed class based on steady clock.
2024-03-05 12:29:24 +01:00
wmayer
5a153e50ff
Gui: modernize C++: use default member init
2023-08-23 19:51:44 +02:00
wmayer
c016f1c1fb
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
wmayer
2725c3a54f
Gui: modernize C++: use range-based for loop
2023-08-14 19:42:18 +02:00
wmayer
d150fa7164
modernize C++: avoid bind
...
In many cases std::bind() is kept because the code is much simpler
2023-08-08 21:10:16 +02:00
wmayer
68d22d864b
modernize C++: move from boost::bind to std::bind
2023-08-08 17:36:13 +02:00
wmayer
9b29c3a683
Gui: replace slots with member function pointers
2023-02-03 00:21:38 +01:00
Uwe
900ad81b49
[Gui] modernize some UI connections
2023-01-31 22:24:45 +01:00
Uwe
8801836321
[Gui] modernize some UI connections
2023-01-30 18:11:37 -07:00
luz paz
c16e88845b
Gui: fix trailing whitespace
2022-12-02 19:18:54 -06:00
berniev
75acacd1b7
Gui: Use auto and range-based for ( #7481 )
...
* On lines where the variable type is obvious from inspection, avoid repeating the type using auto.
* When possible use a ranged for loop instead of begin() and end() iterators
2022-09-14 13:25:13 -05:00
wmayer
ba8d5ab055
Gui: modernize C++: replace 'typedef' with 'using'
2022-08-29 14:09:18 +02:00
berniev
a909df7f39
Gui: Single arg ctors must be explicit (PR #7369 )
2022-08-24 15:06:03 +02:00
berniev
0c70d45c83
Gui: Use override etc 2
2022-08-09 12:43:23 +02:00
Uwe
3e99d39d05
[Gui] remove some more superfluous nullptr checks
2022-07-18 13:15:38 +02:00
mosfet80
620c273c4e
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
Chris Hennes
bedf920702
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
96adb98f46
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
5587569629
[Gui] DAGView: remove few includes
...
mainly the headers are just sorted
2022-03-08 02:37:35 +01:00
wmayer
1ca7429705
Gui: Optimize includes to reduce compile time
2022-03-07 20:29:18 +01:00
wmayer
f147986fa9
App: Bugfix for NULL-Pointer dereference of Property->getName()
2022-01-16 14:30:51 +01:00
luz paz
4f886b2b8c
Fix various typos and refinements
2022-01-06 20:22:34 +01:00
wmayer
58f33f350d
Gui: fix build failure with C++20
2021-12-01 21:50:00 +01:00
Chris Hennes
50c7ee36bf
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
wmayer
0f31c87cc9
Boost: [skip ci] Fix build warnings from deprecated Boost headers (v1.75)
2020-12-29 15:34:25 +01:00
Mateusz Skowroński
2559f2d29c
Fix build warnings from deprecated Boost headers (they are used internally by Boost). Thanks @wwmayer for the hint.
2020-12-29 10:20:53 +01:00
triplus
de152bf7be
Icon themes DAGView
2020-06-22 11:58:06 +02:00
wmayer
f3b460e42e
boost: fix for boost < 1.60
2020-06-15 19:38:39 +02:00
wmayer
4ec45b545e
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
200c7c7e00
[skip ci] include missing boost header
2020-06-07 17:21:37 +02:00
Zheng, Lei
15944dde60
Gui: change DAG view selection behavior
...
If there is selection, then DAG view will show the owner document of
the resolved selected object instead of the active document.
2019-12-21 15:55:00 +01:00
Zheng, Lei
5a32181b64
Gui: fix DAG view property link update
2019-12-21 15:26:20 +01:00
Zheng, Lei
af4fb7d37f
Gui: fix DAG view icon sync problem
2019-12-21 15:26:09 +01:00