Commit Graph

112 Commits

Author SHA1 Message Date
wmayer
5b3bf97f2b Gui: [skip ci] replace getNormalizedPosition() with normalizePixelPos() 2021-11-02 19:06:12 +01:00
wmayer
bec3c797a8 Gui: [skip ci] add method NavigationStyle::getNormalizedPosition() to reduce code duplication 2021-11-02 15:57:54 +01:00
wmayer
0b802eb717 Gui: [skip ci] add method NavigationStyle::handleKeyboardEvent() to achieve consistent handling and reduce code duplication 2021-11-02 15:32:20 +01:00
wmayer
1c93d3ee15 Gui: [skip ci] add method NavigationStyle::syncModifierKeys() to reduce code duplication 2021-11-02 14:52:22 +01:00
uLeonis
96f2ba2cb5 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
luz paz
cb58706e80 Fix various typos [skip ci]
Found via `codespell v2.1.dev0`  
```
codespell -q 3 -L aci,ake,aline,alle,alledges,alocation,als,ang,anid,apoints,ba,beginn,behaviour,bloaded,byteorder,calculater,cancelled,cancelling,cas,cascade,centimetre,childs,colour,colours,commen,connexion,currenty,dof,doubleclick,dum,eiter,elemente,ende,feld,finde,findf,freez,hist,iff,indicies,initialisation,initialise,initialised,initialises,initialisiert,ist,kilometre,lod,mantatory,methode,metres,millimetre,modell,nd,noe,normale,normaly,nto,numer,oder,orgin,orginx,orginy,ot,pard,pres,programm,que,recurrance,rougly,seperator,serie,sinc,strack,substraction,te,thist,thru,tread,uint,unter,vertexes,wallthickness,whitespaces -S ./.git,*.po,*.ts,./ChangeLog.txt,./src/3rdParty,./src/Mod/Assembly/App/opendcm,./src/CXX,./src/zipios++,./src/Base/swig*,./src/Mod/Robot/App/kdl_cp,./src/Mod/Import/App/SCL,./src/WindowsInstaller,./src/Doc/FreeCAD.uml
```
2020-12-12 08:07:47 +01:00
wmayer
0eba78d400 Gui: [skip ci] support of bitmasks for enum RotationCenterMode 2020-11-29 11:43:51 +01:00
wmayer
5e83aa8848 Gui: [skip ci] in user settings offer combo box to choose between rotation modes 2020-11-28 22:12:25 +01:00
wmayer
4c9eca5623 Gui: [skip ci] replace dragAtCursor with new enum value WindowCenter 2020-11-28 17:31:42 +01:00
wmayer
c582e8a085 Gui: [skip ci] implement new RotationCenterMode called BoundingBoxCenter 2020-11-27 15:12:10 +01:00
luz paz
298c677873 Gui: Fix header uniformity, whitespace, and doxygen fixes 2020-11-26 10:14:56 +01:00
wmayer
daa2590672 Gui: add SoTimerSensor.h to PCH 2020-09-04 10:36:13 +02:00
wmayer
4b7e64381c Gui: avoid code duplication in NavigationStyle and remove superfluous doZoom_wheel method 2020-08-22 18:44:47 +02:00
DeepSOIC
b200801ebc Gui: use SoMouseWheelEvent in navigation styles 2020-08-22 17:15:02 +02:00
wmayer
dc65b055e5 LGTM: [skip ci] fix: Empty branch of conditional
An empty block after a conditional can be a sign of an omission and can decrease maintainability of the code.
Such blocks should contain an explanatory comment to aid future maintainers.
2020-07-26 15:49:14 +02:00
wmayer
b50b21576e core system
force strict ISO C++ (-Wpedantic)
TODO: still a lot of variadic macros are not valid ISO C++
2019-09-18 01:01:14 +02:00
wmayer
f581d5c8cb PVS: V560 A part of conditional expression is always true 2019-02-17 13:56:48 +01:00
wmayer
ff6ed27ba9 replace boolean to check for inside/outside cutting with enum values 2018-09-18 18:25:51 +02:00
wmayer
4686f27f64 fix -Wimplicit-fallthrough 2018-08-19 12:35:57 +02:00
wmayer
d4987d088f add option to drag at cursor instead of view center 2018-07-25 22:36:35 +02:00
wmayer
d3ef6905ff + add option to switch off precompiled header 2018-07-25 20:17:11 +02:00
wmayer
3b957a12b5 various minor changes:
+ whitespace improvement
+ code cleanup
2017-11-21 17:51:22 +01:00
Kunda
19f8fd4c10 source typo fixes pt5
+ cleaning up some more non-short-URLs
Issue #2914
2017-03-04 13:07:13 -03:00
wmayer
f944ab3846 replace deprecated auto_ptr with unique_ptr 2016-09-22 13:01:20 +02:00
wmayer
f19d424d8b fix -Wextra in FreeCADGui 2016-09-21 20:54:52 +02:00
wmayer
0824c5fd3c fix Coverity issues 2016-08-21 14:03:02 +02:00
DeepSOIC
93d5cf3f98 Gui: Selection: pick radius support 2016-08-10 18:46:45 +02:00
wmayer
ff060d4f1f + fix possible crash inside NavigationStyleP::viewAnimationCB if viewer has no camera node 2016-07-14 17:14:10 +02:00
wmayer
3af29639c6 + various minor fixes, whitespaces improvements 2016-03-23 23:28:56 +01:00
wmayer
3f79dfffb6 + allow to get user friendly names for navigation styles 2016-03-10 18:37:48 +01:00
Yorik van Havre
83f87ba3ea Turned Zoom At Cursor option True by default - fixes #2371 2016-02-26 13:51:39 -03:00
Mateusz Skowroński
7d0e892d36 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
cd2db00f22 QString::fromAscii() is obsolete in Qt5. Replace it with fromLatin1().
This change is Qt4/Qt5 neutral.
2016-01-05 16:07:25 +01:00
Alexander Golubev
80941aa0e0 Gui & Mod/Sketcher: use fabs() instead abs()
Warnings was like:
src/Mod/Sketcher/Gui/DrawSketchHandler.cpp|350 col 28| warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value]
Also see:
http://forum.freecadweb.org/viewtopic.php?t=10920
http://forum.freecadweb.org/viewtopic.php?f=10&t=5258
2015-08-29 18:35:54 +02:00
DeepSOIC
ed6af74a78 Navigation: fix unable to deselect after editing a sketch
After editing a sketch, it was impossible to deselect the just-edited
sketch by clicking empty space (gesture navigation).
2015-06-24 17:27:07 +02:00
wmayer
8e0110a18e + fix various things 2015-03-31 23:08:12 +02:00
DeepSOIC
4f5747ebef New navigation style: GestureNavigationStyle 2015-03-31 21:49:01 +02:00
wmayer
7149cce90f + fixes #0000957: Sketch view problem when go to edit 2014-12-27 17:50:37 +01:00
Stefan Tröger
eb7f1bf3e5 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
72cab0c002 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
Ian Rees
c10ddae02f Bugs in mouse panning when viewport is "portrait" orientation 2014-07-29 12:58:39 +02:00
wmayer
23ebb99827 Call releaseMouseModel() in stopSelection() of navigation style 2013-07-03 15:04:47 +02:00
wmayer
20c57d3a33 Use rubberband for box selection 2013-07-02 10:04:33 +02:00
wmayer
941dcbf6fc Implement drag-at-cursor 2013-05-14 14:53:13 +02:00
jriegel
b9584f2c9a setting defaults for zoom invert and zoom step for Werners fix of #894
- inverse is now default
- 0.2 is zoom step default
expecting lots of flaming :)
2012-12-20 19:49:17 +01:00
wmayer
6d9539fb42 0000894: Invert mouse Zoom for CAD mouse model 2012-11-29 14:35:42 +01:00
wmayer
bea2c3b7a7 Add optional argument moveToCenter (by default false) to avoid to move camera when using standard views 2012-07-09 13:38:21 +02:00
wmayer
c3d84e9bf8 0000772: Navigation style suggestion - do not change cursor location when you are controling view 2012-07-07 00:28:03 +02:00
wmayer
32d38561c8 Add a sensitivity value to improve issue #0000772 2012-07-06 18:47:11 +02:00
wmayer
efcd60ce0f Add a method to sync internal button stages after mouse selection 2012-06-26 13:59:16 +02:00