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
Adrian Insaurralde
9966806eda
Fix spnav not enabled by default on linux after #19226 and #19407
2025-02-17 23:58:13 -03:00
Chris Hennes
c8a4d44cf2
Gui: Disable spacemouse init if not legacy
2025-02-06 16:49:18 -05:00
Stephen Hurd
9749a07130
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
ea9f0c7a67
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
888a33917d
Gui: modernize C++: use equals default
2023-08-20 18:12:43 +02:00
luzpaz
c32381ec77
Gui: convert indentations to spaces
2023-01-23 16:06:40 +01: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
Uwe
0828d769e8
[Gui] remove unnecessary Boolean comparisons
2022-06-19 15:17:01 +02:00
Uwe
a8c679c370
[Gui] Expression: remove unused includes
2022-03-02 05:00:21 +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
wmayer
e0a531258a
Gui: [skip ci] support to remap motion data array of space mouse
2020-10-12 14:11:53 +02:00
wmayer
4807fd3b33
PVS: V730 Not all members of a class are initialized inside the constructor
2020-07-18 10:59:27 +02:00
wmayer
881b04a979
Fix several compiler warnings:
...
fix -Wunused-parameter
fix -Winconsistent-missing-override
fix -Wsometimes-uninitialized
2019-04-08 15:04:07 +02:00
Torsten Sadowski
f88474454d
Use std::vector to copy Spacemouse data from helper class to Application
2019-03-17 10:03:41 +01:00
Torsten Sadowski
020fb993b8
x11EventFilter must be overridden for Qt4
2019-03-17 10:03:20 +01:00
Torsten Sadowski
8e48d58bcc
Fixed compilation of 3Dconnexion/libspacenav wit Qt4
2019-03-17 10:02:56 +01:00
Torsten Sadowski
535f4cb161
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
35fec577c1
Spacemouse platform dependent code is moved to different classes. Compiles and works for Linux
2019-03-17 10:00:24 +01:00
Torsten Sadowski
0435211582
X11 independant implementation for USB SpaceNavigator, works with Wayland
2019-03-17 09:59:58 +01:00
wmayer
07e9fd7b03
Qt5: fix build failure if spacenav is not used under Linux
2018-09-17 16:41:14 +02:00
wmayer
aedf42b9df
re-arrange headers to fix build failure with Qt4
2018-09-17 14:02:29 +02:00
Ian Rees
d7e970a255
SpaceNavigator on Linux: rearrange #includes
2018-09-17 12:43:24 +02:00
Ian Rees
7699b43c71
Replace Q_OS_UNIX with Q_OS_LINUX for spacenav
2018-09-17 12:43:24 +02:00
Ian Rees
c609e43166
Port SpaceNavigator support on Linux to Qt5
2018-09-17 12:43:24 +02:00
wmayer
8070462118
Initial support of SpaceMouse Plus XT
2018-09-15 14:53:48 +02:00
wmayer
5096f55ccb
port C++ code to Qt5
2016-12-13 14:22:59 +01:00
wmayer
a34c441373
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
1e6dcabefc
fix -Wextra in FreeCADGui
2016-09-21 20:54:52 +02:00
Ian Rees
8b9f9c4685
Added some logging to Windows 3Dconnexion handler
2016-04-10 13:01:14 +12:00
Ian Rees
5402fbb007
Tidy logging (+whitespace) in Mac 3Dconnexion
2016-01-23 19:23:11 +13:00
wmayer
63d390bc69
+ improve whitespaces
2015-04-01 13:17:26 +02:00
Torsten Sadowski
b5ac41d44c
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
2e9423fd11
+ re-enable check for active window for spaceball events
2015-03-23 19:44:04 +01:00
wmayer
503459ac2b
+ 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
e2cd67e99b
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
40ce4edcb1
+ fixes #0001477 : Spaceball becomes uncontrollable for large FreeCAD Documnets on X11 (spacenav)
2014-03-18 11:27:52 +01:00
wmayer
cfc2e5aa78
0000818: [PATCH] added new page to Customize dialog for space navigator
2012-09-06 14:09:43 +02:00
wmayer
a1313961c0
0000818: [PATCH] added new page to Customize dialog for space navigator
2012-08-30 11:31:46 +02:00
wmayer
fbb17d1b8b
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