Hi Herbert, I have to admit I am pretty undecided about this. Usually I am always in favor of patches sent to me. And I agree with you that panning is a bit hard to control right now.
But on the other hand side I know that users don't like too many dialogs to setup things. And especially not about parameters hard to understand. I played around with your patch for quite a while and it's hard to get a feeling on how to setup the best value. Probably this is because the algorithm I use is bad. With or without your patch. I have a cloudy idea of accelerating panning as a function of distance to the screen border and time. And stopping it immediately if the mouse is moved the other direction. But it's just a vague idea. What we can do, as long as there are only vague ideas around, is to define a fixed value to scale it. Probably you have found your favorite scale factor by now. Why not use this as long as there is no better idea? Oliver Am Sonntag, 18. Oktober 2015, 13:44:54 schrieb teiwaz: > Hi Oliver > > for me the hard sensitivity adjustment of the panning is also sometimes > a problem. A little to fast move to the border throws me often to a > complete new region. > > So I took your advice and tried to find a solution: > I factorized the respective statement in IMouse::panCanvas(): > int d = (SENSITIVE_FRAME - pos.x()) * PanSensitivity; > This was a fast and may be not the best solution but it provide > satisfactory results for me. > > I dont think that this is a general solution for everyone, some people > may estimate the severe sensitivity, so I propose to make it adjustable > via a submenu in the main windows View menu. > > I implemented a proposal into a copy of the current version (today, > 11:50) and now send a patch to you together with the sources to add. > Please review the changes and tell me your opinion. > I introduced the files > CPanningSetup.cpp/h, IPanningSetup.ui and a new icon for the Setup > Panning Menu Entry :-) > and I modified > IMouse.cpp/h, CMainWindow.cpp, IMainWindow.ui, CMakeLists.txt > > For lack of a better idea I defined the PanSensitivity factor as a > static variable in IMouse to be able to change its value whenever the > "Setup Panning" menu is instantiated. > > PanSensitivity is 1 by default, so there is no effect without a > different adjustment by the user. > > Herbert > > Am 13.09.2015 um 19:18 schrieb Oliver Eichler: > > Hi Gunther > > > > this is a feature. When drawing a route/track/area a mouse click will > > trigger one of the selected functions. Thus it can't be used to grab > > and move the map. But the automatic panning is not just on/off. The > > more you move the mouse to the border the faster it will get. So you > > can control it yourself with a little fine motion control. > > > > If you think you can do it better have a look at > > > > voidIMouse::panCanvas(constQPoint&pos) > > > > and provide a better code. > > > > HTH > > > > Oliver > > > > Am Sonntag, 13. September 2015, 18:01:51 schrieb teq2: > > > When I start to define a track or a route the map is automatically moved > > > > > > (panning) when I move the mouse to the border of the map window. > > > > > > > > > > > > As I also have some problems with Mouse focus with my installation I > > > > > > would ask the question whether this is a bug or a feature? If this is a > > > > > > feature: can it be disabled? > > > > > > > > > > > > Moving the mouse a bit to fast towards the border of the map results in > > > > > > a very quick panning leading to crashes of qmapshack. > > > > > > > > > > > > Thanks > > > > > > Gunther > > > > -------------------------------------------------------------------------- > > --> > > > -- _______________________________________________ > > > > > > Qlandkartegt-users mailing list > > >
------------------------------------------------------------------------------
_______________________________________________ Qlandkartegt-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qlandkartegt-users
