Commit Graph

44 Commits

Author SHA1 Message Date
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
wwmayer
7b0a23337c Gui: Prepare for clang-format (#16051)
* Gui: Prepare for clang-format

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2024-09-02 17:48:55 +02:00
mos
037fbbc5c5 removed deprecaded functions
.

.
2024-02-26 17:38:01 +01:00
wmayer
6beace8da6 Gui: modernize C++: use default member init 2023-08-23 19:51:44 +02:00
wmayer
888a33917d Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02: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
andrea
7886d3cbf4 Remove unused code into GUI 2022-07-17 03:53:11 +02:00
wmayer
1178df06b4 Gui: modernize C++11
* use nullptr
2022-03-23 18:41:21 +01:00
Uwe
3e6e711e06 [Gui] MDIView: remove unused includes 2022-03-05 02:10:24 +01:00
wmayer
ba2341de33 Gui: fix compiler warnings: [-Wunused-parameter] 2021-09-14 16:42:30 +02:00
Yorik van Havre
b84c2c7f09 Merge pull request #4178 from uLeonis/master
[v0.20][Gui] Consolidate Std view modes
2021-09-09 12:22:27 +02:00
Chris Hennes
098d7b9aee [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
uLeonis
cbe1050441 MeasureDistance
- Abort mode via ESCAPE added

BoxZoom, BoxSelection and BoxElementSelection
- Change the cursor to give the user feedback about active mode.
- Abort mode via ESCAPE
2020-12-21 17:32:33 +01:00
triplus
66527b2c4f Fix for build failure on Ubuntu 16.04 2019-03-31 11:32:06 +02:00
wmayer
9a835dcafc fix mouse selection for high DPI screens 2019-03-14 19:51:44 +01:00
wmayer
644cfa06bb replace boolean to check for inside/outside cutting with enum values 2018-09-18 18:25:51 +02: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
wmayer
4686997786 fix more Coverity issues 2016-08-17 21:55:00 +02:00
wmayer
9f6e75eccb + fix bug in PolyPickerSelection to get an updated rendering content when changing to Image mode 2016-04-29 18:13:25 +02:00
wmayer
e404c33e0f + rename BrushSelection class to FreehandSelection 2016-04-29 17:43:43 +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
wmayer
21435326d2 + fix broken PolyPickerSelection 2015-07-02 14:51:38 +02:00
wmayer
5699fd911b + fix broken brush selection 2015-05-01 02:08:06 +02:00
wmayer
c1492bf5a0 + whitespacee/typo fixes 2015-04-30 23:16:57 +02:00
wmayer
8857f9825f + fix various rendering problems 2014-11-04 18:56:05 +01:00
wmayer
3da4ede31d + add new render type to 3d viewer 2014-11-03 23:09:38 +01:00
Stefan Tröger
cccfe3d554 Adopt mouse selection to quarter widget
Quarter Widget soes not allow to switch of multisampling on the fly, therefore we need to use glgraphicsitem instead of direct opengl xor rendering for mouse selection
2014-09-23 10:11:11 +02:00
Stefan Tröger
512a2b94d2 Adaption of FreeCAD to QuarterWidget
-removes all soqtviewer references
-create a quarter adaptor class which implements missing functionality
-adopts freecad code to make use of SoRenderManager and changed View3DInventorViewer  interface
2014-09-23 10:11:11 +02:00
wmayer
422cadb757 + do not try to use framebuffer objects when it's not supported on the system 2014-08-28 15:35:17 +02:00
wmayer
7481237fdf + fix transparency issue, disable sample buffers when using front buffer 2014-05-09 19:20:30 +02:00
wmayer
018ead2be3 + draw additional dashed line in brush tool 2014-02-17 15:27:59 +01:00
wmayer
e6b5261cf0 Call releaseMouseModel() in stopSelection() of navigation style 2013-07-03 15:04:47 +02:00
wmayer
b737eeb52d Use rubberband for box selection 2013-07-02 10:04:33 +02:00
wmayer
72e87be90d Move GL painting of Rubberband into pimpl class 2013-05-03 17:03:00 +02:00
wmayer
2f2b2e8a1b Add framebuffer support to Inventor viewer 2013-05-02 17:37:56 +02:00
wmayer
ef1a3312f1 Add a GLPainter class to do all the OpenGL drawing stuff 2013-04-27 19:24:39 +02:00
wmayer
db1edf0702 Implement a more user-friendly selection tool 2013-04-26 17:13:20 +02:00
wmayer
e5ea1b5265 Show popup menu on mouse button release to avoid problems with navigation style 2012-08-15 13:18:19 +02:00
wmayer
2c54c3cedc 0000353: Graphical selection 2012-04-28 17:49:49 +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