Commit Graph

43 Commits

Author SHA1 Message Date
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
Adrian Insaurralde
a862071e3e Fix spnav not enabled by default on linux after #19226 and #19407 2025-02-17 23:58:13 -03:00
Chris Hennes
9986dfe4f2 Gui: Disable spacemouse init if not legacy 2025-02-06 16:49:18 -05:00
Stephen Hurd
a8ecf5c517 Fix compile on FreeBSD with spnav
If spnav is installed on a FreeBSD system, it will be detected,
but the build will fail.  With this change, it both builds
successfully and works on FreeBSD.
2024-12-01 10:40:30 +01:00
Chris Hennes
e52ef2a525 GUI: Update MacOS detection macros
For GUI-specific things use Q_OS_MACOS, and for other things use
Q_OS_APPLE.
2024-08-12 11:34:39 -04:00
wmayer
c016f1c1fb Gui: modernize C++: use equals default 2023-08-20 18:12:43 +02:00
luzpaz
50a0fd6777 Gui: convert indentations to spaces 2023-01-23 16:06:40 +01: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
Uwe
c23a30b916 [Gui] remove unnecessary Boolean comparisons 2022-06-19 15:17:01 +02:00
Uwe
b9777464c3 [Gui] Expression: remove unused includes 2022-03-02 05:00:21 +01:00
Chris Hennes
50c7ee36bf [GUI] Remove code for Qt < 5.9 2021-04-02 10:10:37 +02:00
luz paz
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
e3c30e7481 Gui: [skip ci] support to remap motion data array of space mouse 2020-10-12 14:11:53 +02:00
wmayer
cbb5f99ade PVS: V730 Not all members of a class are initialized inside the constructor 2020-07-18 10:59:27 +02:00
wmayer
725ffe5217 Fix several compiler warnings:
fix -Wunused-parameter
fix -Winconsistent-missing-override
fix -Wsometimes-uninitialized
2019-04-08 15:04:07 +02:00
Torsten Sadowski
0d3c670785 Use std::vector to copy Spacemouse data from helper class to Application 2019-03-17 10:03:41 +01:00
Torsten Sadowski
46aa5fb0ad x11EventFilter must be overridden for Qt4 2019-03-17 10:03:20 +01:00
Torsten Sadowski
e987801096 Fixed compilation of 3Dconnexion/libspacenav wit Qt4 2019-03-17 10:02:56 +01:00
Torsten Sadowski
48b305cd75 The platform dependant stuff is in different files chosen by the build system. Building on Linux/Qt5 works without libspacenav, with the X11 interface and the polling interface. All run. Spacemouse works with the polling interface and should work with the X11 interface under a real X system. 2019-03-17 10:00:49 +01:00
Torsten Sadowski
2acb6996b8 Spacemouse platform dependent code is moved to different classes. Compiles and works for Linux 2019-03-17 10:00:24 +01:00
Torsten Sadowski
b7fbbd97be X11 independant implementation for USB SpaceNavigator, works with Wayland 2019-03-17 09:59:58 +01:00
wmayer
86df253842 Qt5: fix build failure if spacenav is not used under Linux 2018-09-17 16:41:14 +02:00
wmayer
adfdec3b9d re-arrange headers to fix build failure with Qt4 2018-09-17 14:02:29 +02:00
Ian Rees
e7a5bd0aad SpaceNavigator on Linux: rearrange #includes 2018-09-17 12:43:24 +02:00
Ian Rees
d63e29c3bc Replace Q_OS_UNIX with Q_OS_LINUX for spacenav 2018-09-17 12:43:24 +02:00
Ian Rees
39b27ab9e3 Port SpaceNavigator support on Linux to Qt5 2018-09-17 12:43:24 +02:00
wmayer
6d49383093 Initial support of SpaceMouse Plus XT 2018-09-15 14:53:48 +02:00
wmayer
57e71e5d55 port C++ code to Qt5 2016-12-13 14:22:59 +01:00
wmayer
1cdee20953 Qt4/Qt5 neutral changes:
+ replace Q_WS_WIN with Q_OS_WIN
+ replace Q_WS_X11 with Q_OS_LINUX
+ replace Q_WS_MACX with Q_OS_MACX
+ set explicit cast to HWND
2016-12-12 14:09:21 +01:00
wmayer
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
Ian Rees
b555a70eac Added some logging to Windows 3Dconnexion handler 2016-04-10 13:01:14 +12:00
Ian Rees
b5688aade5 Tidy logging (+whitespace) in Mac 3Dconnexion 2016-01-23 19:23:11 +13:00
wmayer
ebb1ca3b36 + improve whitespaces 2015-04-01 13:17:26 +02:00
Torsten Sadowski
75070b1810 Builds and runs with or without 3Dconnexion.framework on Mac
Moved on top of a clean master
2015-04-01 12:30:07 +02:00
wmayer
70a1124a1d + re-enable check for active window for spaceball events 2015-03-23 19:44:04 +01:00
wmayer
f2d8fc91ec + issue #0001970: Spaceball 5000 USB no longer works in Windows 7 in 0.15 dev versions 2015-02-21 18:46:06 +01:00
Michael G. Hansen
9419259ff6 1659: 3dconnexion space navigator moves view even when FreeCAD is not the active application
Check whether the freecad window is active before relaying the space navigator events.
2014-08-19 15:46:52 +02:00
wmayer
490f041717 + fixes #0001477: Spaceball becomes uncontrollable for large FreeCAD Documnets on X11 (spacenav) 2014-03-18 11:27:52 +01:00
wmayer
2d172cde0b 0000818: [PATCH] added new page to Customize dialog for space navigator 2012-09-06 14:09:43 +02:00
wmayer
57b633f21f 0000818: [PATCH] added new page to Customize dialog for space navigator 2012-08-30 11:31:46 +02:00
wmayer
20ffe1f866 0000787: Patch for Space navigator support on windows 2012-07-06 13:02:09 +02:00
wmayer
012e50c524 + Thomas Anderson's patch for spacenav
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5242 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
2011-12-09 11:29:51 +00: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