pre-commit-ci[bot]
9fe130cd73
All: Reformat according to new standard
2025-11-11 13:49:01 +01:00
Markus Reitböck
a72a0d6405
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
Joao Matos
80d4cf9f40
Gui: Remove QtOpenGL.h.
2025-02-25 23:03:51 +00:00
Joao Matos
c3e5069190
Gui: Cleanup Qt OpenGL usings in QtOpenGL.h.
...
Previously the code defined compatiblity usings in `QtOpenGL.h` header,
which I think was added for backwards compatiblity with previous Qt
OpenGL widgets.
As far as I can tell, this is not necessary anymore, and can be cleaned
up.
2025-02-25 23:03:51 +00:00
DeflateAwning
1e3179e9bc
Find and replace http://freecad.org to https://freecad.org
...
Find and replace:
http:\/\/(.{0,10})freecad
https://$1freecad
Done in all remaining files (after doing it in SVGs in the last commit)
2023-10-29 22:39:22 -06:00
wmayer
888a33917d
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
marioalexis
28e0f5e9ff
Gui: Change SoQtOffscreenRendererPy to new PyCXX extension type
2023-08-20 12:02:17 +02:00
wmayer
e09d8aaba6
Gui: modernize C++: use range-based for loop
2023-08-14 19:42:18 +02:00
Benjamin Bræstrup Sayoc
da2ae719f2
[Everywhere] FileInfo::hasExtension for multiple values ( #9774 )
...
* [Base] Add hasExtension for multiple values
* [Gui] Use hasExtension for multiple values
* [Drawing] Use hasExtension for multiple values
* [Fem] Use hasExtension for multiple values
* [Import] Use hasExtension for multiple values
* [Mesh] Use hasExtension for multiple values
* [Part] Use hasExtension for multiple values
* [TechDraw] Use hasExtension for multiple values
2023-08-07 09:55:19 -06:00
andrea
18e1883284
removed coin<3 references
2023-08-04 21:19:29 -06:00
luzpaz
38a01939e0
Migrate domain name from freecadweb to freecad ( #9352 )
...
* Migrate domain name from freecadweb to freecad
* Migrate src/Mod/Material files
* Migrate Stylesheet related files
* Migrate *.svg files
* Migrate miscellaneous files
* Migrate some build files
* Migrate recently added TD AR_IRAM template files
Closes #6415
2023-04-24 15:19:20 -05:00
vernzimm
1c6aa45fd6
Gui: Add default JPEG save quality ( #7737 )
...
* Update SoFCOffscreenRenderer.cpp
Set jpg screenshot capture to 100% quality vs qimage defaulting to -1
* Add default quality to JPG export
Fixed original version and use quality 90% as compromise between file size and fidelity.
2022-11-10 22:49:28 -06:00
berniev
ae53c9b0a4
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
fd5558f295
Fix several clazy issue:
...
* Using copy-ctor but class SbMatrix/SbViewportRegion has a trivial copy-ctor but non trivial assign operator [-Wclazy-rule-of-two-soft]
2022-07-24 19:38:59 +02:00
Uwe
c40e476a5b
[Gui] remove some more superfluous nullptr checks
2022-07-18 13:15:38 +02:00
wmayer
223de8f60f
cppcoreguidelines-pro-type-union-access
...
According to https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#Ru-pun using union for type-punning is undefined behaviour.
See also https://en.wikipedia.org/wiki/Type_punning#Use_of_union . Replace it with std::memcpy.
2022-06-25 17:17:04 +02:00
wmayer
d5340a82ab
Gui/Mod: replace several reinterpret_cast with static_cast
2022-06-25 11:36:55 +02:00
wmayer
8499e8fba6
Gui: expose SoQtOffscreenRenderer to Python
2022-06-21 12:55:17 +02:00
Zheng, Lei
8bec44934b
Fix mixed line endings
2022-04-26 12:52:55 -05:00
Chris Hennes
5df3dbae6f
Gui: PR6497 move return statement to new line
2022-03-29 12:33:50 -05:00
wmayer
1178df06b4
Gui: modernize C++11
...
* use nullptr
2022-03-23 18:41:21 +01:00
wmayer
e28f2a0c47
Qt: remove some more leftovers of Qt4
2022-03-19 23:27:28 +01:00
Uwe
99191c6679
[Gui] So headers: remove unused includes
...
- also sort out some headers to be used in precompiled headers
- also move a boost header to precompiled headers
2022-03-16 02:01:32 +01:00
wmayer
a87e33258d
Gui: remove support of using deprecated Qt OpenGL API
2022-01-26 14:46:41 +01:00
wmayer
f36126770c
App: harmonize API of App::Application
...
* make getHomePath() static and return a std::string
* make getExecutableName() static and return a std::string
2021-11-04 10:50:09 +01:00
Chris Hennes
098d7b9aee
[GUI] Remove code for Qt < 5.9
2021-04-02 10:10:37 +02:00
luz paz
38815b9550
Gui: Fix header uniformity, whitespace, and doxygen fixes
2020-11-26 10:14:56 +01:00
Zheng, Lei
7e4969f329
Gui: fix screentshot
2020-01-14 15:59:38 +01:00
Zheng, Lei
78ac86abd2
Gui: fix screenshot with opaque background
2020-01-12 18:50:37 +01:00
wmayer
690df49618
fixes #0004103 : Black screen when using rubberband selection
2019-09-17 15:55:05 +02:00
wmayer
2de2edb3ed
fix build failures with newer compiler versions
2019-02-12 13:10:49 +01:00
wmayer
257ec15cff
make workaround with transparent background more reliable
2018-01-12 15:47:40 +01:00
wmayer
9689717d34
workaround to create images with transparent background
2018-01-12 14:36:25 +01:00
wmayer
a9b1356bc7
code reduction w.r.t offscreen rendering
2018-01-07 17:12:50 +01:00
wmayer
292608e466
simplify to define when to use which offscreen rendering method
2018-01-07 15:00:40 +01:00
wmayer
fb7094bf31
use specialized exception classes
2017-04-28 18:49:11 +02:00
wmayer
79f961ee9c
Qt5OpenGL: fix transparency issue with framebuffer objects with old OpenGL API
2017-03-21 20:37:03 +01:00
wmayer
34f277e7bb
Qt5OpenGL: make off-screen renderer working
2017-03-21 20:37:03 +01:00
wmayer
9e42badfaf
move QuarterWidget to QOpenGLWidget
2017-03-21 20:37:03 +01:00
wmayer
1e6dcabefc
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
wmayer
e2398b4b06
fix Coverity issues
2016-08-21 14:03:02 +02:00
Mateusz Skowroński
6942c23895
Qt4's qglobal.h defined TRUE and FALSE. Qt5 does not do it anymore. Replace it with true and false.
...
158f39ec78
This change is Qt4/Qt5 neutral.
2016-01-05 16:43:33 +01:00
Mateusz Skowroński
0695552cff
QString::toAscii() is obsolete in Qt5. Replace it with toLatin1().
...
This change is Qt4/Qt5 neutral.
2016-01-05 16:06:48 +01:00
wmayer
15de65eb71
+ before trying to write out snapshot image check if it's null
2015-05-07 23:07:20 +02:00
wmayer
ce8b810ae0
+ support anti-aliasing in offscreen renderer
2014-11-10 14:10:38 +01:00
Yorik van Havre
4005b199e0
0001102: Updated all links to old freecad homepage and wiki to the new ones
2013-09-15 17:04:42 -03:00
wmayer
8f98348253
Reduce redundant code in View3DInventorViewer class
2013-06-20 16:57:10 +02:00
wmayer
3fbdadaea2
Write current date and version number to MIBA
2012-06-11 11:46:05 +02:00
wmayer
120ca87015
+ unify DLL export defines to namespace names
...
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5000 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-10-10 13:44:52 +00:00