From 9840275af64351f313849fe076c2c03188bf7347 Mon Sep 17 00:00:00 2001 From: Torsten Sadowski Date: Sun, 11 Nov 2018 23:27:07 +0100 Subject: [PATCH] Copyright notices added --- src/Gui/3Dconnexion/GuiNativeEventCommon.h | 22 ++++++++++++ src/Gui/3Dconnexion/GuiNativeEventLinux.cpp | 24 +++++++++++-- src/Gui/3Dconnexion/GuiNativeEventLinux.h | 22 ++++++++++++ .../3Dconnexion/GuiNativeEventLinuxX11.cpp | 34 ++++++++++++------- src/Gui/3Dconnexion/GuiNativeEventLinuxX11.h | 22 ++++++++++++ src/Gui/3Dconnexion/GuiNativeEventMac.cpp | 25 ++++++++++++-- src/Gui/3Dconnexion/GuiNativeEventMac.h | 22 ++++++++++++ src/Gui/3Dconnexion/GuiNativeEventWin32.cpp | 21 ++++++++++++ src/Gui/3Dconnexion/GuiNativeEventWin32.h | 22 ++++++++++++ src/Gui/3Dconnexion/GuiRawInputEventFilter.h | 22 ++++++++++++ 10 files changed, 218 insertions(+), 18 deletions(-) diff --git a/src/Gui/3Dconnexion/GuiNativeEventCommon.h b/src/Gui/3Dconnexion/GuiNativeEventCommon.h index acf901059e..dbce8d4e02 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventCommon.h +++ b/src/Gui/3Dconnexion/GuiNativeEventCommon.h @@ -1,3 +1,25 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + Q_OBJECT public: GuiNativeEvent(GUIApplicationNativeEventAware *app); diff --git a/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp b/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp index eb3f607d1d..3f877d8fec 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventLinux.cpp @@ -1,6 +1,24 @@ - /* -Implementation by Torsten Sadowski 2018 - */ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ #include "GuiNativeEventLinux.h" diff --git a/src/Gui/3Dconnexion/GuiNativeEventLinux.h b/src/Gui/3Dconnexion/GuiNativeEventLinux.h index f5621948c2..0156312700 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventLinux.h +++ b/src/Gui/3Dconnexion/GuiNativeEventLinux.h @@ -1,3 +1,25 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + #ifndef GUINATIVEEVENT_H #define GUINATIVEEVENT_H diff --git a/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp b/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp index 02cce7b814..c5b50102ca 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.cpp @@ -1,6 +1,24 @@ - /* -Implementation by Torsten Sadowski 2018 - */ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ #include "SpaceballEvent.h" #include @@ -57,16 +75,6 @@ void Gui::GuiNativeEvent::initSpaceball(QMainWindow *window) mainApp->setSpaceballPresent(true); #if QT_VERSION >= 0x050000 - //static auto evFilter( [](void *msg, long *result){ - // Q_UNUSED(result); - // auto inst(dynamic_cast(QApplication::instance())); - // if (inst) { - // return inst->nativeEvent->xcbEventFilter(static_cast(msg)); - // } else { - // return false; - // } - // } ); - //mainApp->installNativeEventFilter(new Gui::RawInputEventFilter(evFilter)); mainApp->installNativeEventFilter(new Gui::RawInputEventFilter(&xcbEventFilter)); #endif // #if QT_VERSION >= 0x050000 } diff --git a/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.h b/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.h index 1a0632e701..3e5cd773c3 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.h +++ b/src/Gui/3Dconnexion/GuiNativeEventLinuxX11.h @@ -1,3 +1,25 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + #ifndef GUINATIVEEVENT_H #define GUINATIVEEVENT_H diff --git a/src/Gui/3Dconnexion/GuiNativeEventMac.cpp b/src/Gui/3Dconnexion/GuiNativeEventMac.cpp index 45bcfc3e46..2a3e6e1c76 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventMac.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventMac.cpp @@ -1,11 +1,32 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + /* Development tools and related technology provided under license from 3Dconnexion. (c) 1992 - 2012 3Dconnexion. All rights reserved */ /* -Implementation by Torsten Sadowski 2015 -with special thanks to marcxs for making the first steps +With special thanks to marcxs for making the first steps */ #include "GuiNativeEventMac.h" diff --git a/src/Gui/3Dconnexion/GuiNativeEventMac.h b/src/Gui/3Dconnexion/GuiNativeEventMac.h index b6effb7b43..9e69e596a4 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventMac.h +++ b/src/Gui/3Dconnexion/GuiNativeEventMac.h @@ -1,3 +1,25 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + #ifndef GUINATIVEEVENT_H #define GUINATIVEEVENT_H diff --git a/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp b/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp index 12cffc8bf6..aaf44c337f 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp +++ b/src/Gui/3Dconnexion/GuiNativeEventWin32.cpp @@ -1,3 +1,24 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ /* Development tools and related technology provided under license from 3Dconnexion. diff --git a/src/Gui/3Dconnexion/GuiNativeEventWin32.h b/src/Gui/3Dconnexion/GuiNativeEventWin32.h index 7155f61778..4eba6b8ed8 100644 --- a/src/Gui/3Dconnexion/GuiNativeEventWin32.h +++ b/src/Gui/3Dconnexion/GuiNativeEventWin32.h @@ -1,3 +1,25 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + #ifndef GUINATIVEEVENT_H #define GUINATIVEEVENT_H diff --git a/src/Gui/3Dconnexion/GuiRawInputEventFilter.h b/src/Gui/3Dconnexion/GuiRawInputEventFilter.h index 8e4255dbe9..cfc5a94a1e 100644 --- a/src/Gui/3Dconnexion/GuiRawInputEventFilter.h +++ b/src/Gui/3Dconnexion/GuiRawInputEventFilter.h @@ -1,3 +1,25 @@ +/*************************************************************************** + * Copyright (c) 2018 Torsten Sadowski * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + #ifndef GUIRAWNATIVEINPUTEVENTFILTER_H #define GUIRAWNATIVEINPUTEVENTFILTER_H