Support 3 drag vs. select options, and unifiy with other drag prefs.

Fixes https://gitlab.com/kicad/code/kicad/issues/5493
This commit is contained in:
Jeff Young
2021-01-11 11:50:14 +00:00
parent 7134ff2da6
commit 6c648df4c6
17 changed files with 435 additions and 199 deletions
+3 -3
View File
@@ -44,6 +44,8 @@ class VIEW;
///< Action to perform when the mouse is dragged
enum class MOUSE_DRAG_ACTION
{
DRAG_ANY,
DRAG_SELECTED,
SELECT,
ZOOM,
PAN,
@@ -119,10 +121,8 @@ struct VC_SETTINGS
///< What modifier key to enable vertical with the (vertical) scroll wheel.
int m_scrollModifierPanV;
///< What drag action to perform when the middle button is pressed.
MOUSE_DRAG_ACTION m_dragLeft;
MOUSE_DRAG_ACTION m_dragMiddle;
///< What drag action to perform when the right button is pressed.
MOUSE_DRAG_ACTION m_dragRight;
///< Is last cursor motion event coming from keyboard arrow cursor motion action.