| 
    KiCad PCB EDA Suite
    
   | 
 
Structure to keep VIEW_CONTROLS settings for easy store/restore operations. More...
#include <view_controls.h>
Public Member Functions | |
| VC_SETTINGS () | |
| void | Reset () | 
| Restore the default settings.   | |
Public Attributes | |
| bool | m_showCursor | 
| Flag determining the cursor visibility.   | |
| VECTOR2D | m_forcedPosition | 
| Forced cursor position (world coordinates).   | |
| bool | m_forceCursorPosition | 
| Is the forced cursor position enabled.   | |
| bool | m_cursorCaptured | 
| Should the cursor be locked within the parent window area.   | |
| bool | m_snappingEnabled | 
| Should the cursor snap to grid or move freely.   | |
| bool | m_grabMouse | 
| Flag for grabbing the mouse cursor.   | |
| bool | m_focusFollowSchPcb | 
| Flag for automatic focus switching between Schematic and PCB editors.   | |
| bool | m_autoPanEnabled | 
| Flag for turning on autopanning.   | |
| bool | m_autoPanSettingEnabled | 
| Flag for turning on autopanning.   | |
| float | m_autoPanMargin | 
| Distance from cursor to VIEW edge when panning is active.   | |
| float | m_autoPanSpeed | 
| How fast is panning when in auto mode.   | |
| float | m_autoPanAcceleration | 
| How fast does panning accelerate when approaching the window boundary.   | |
| bool | m_warpCursor | 
| If the cursor is allowed to be warped.   | |
| bool | m_horizontalPan | 
| Enable horizontal panning with the horizontal scroll/trackpad input.   | |
| bool | m_zoomAcceleration | 
| Enable the accelerating zoom controller.   | |
| int | m_zoomSpeed | 
| Zoom speed for the non-accelerating zoom controller.   | |
| bool | m_zoomSpeedAuto | 
| When true, ignore zoom_speed and pick a platform-specific default.   | |
| int | m_scrollModifierZoom | 
| What modifier key to enable zoom with the (vertical) scroll wheel.   | |
| int | m_scrollModifierPanH | 
| What modifier key to enable horizontal pan with the (vertical) scroll wheel.   | |
| int | m_scrollModifierPanV | 
| What modifier key to enable vertical with the (vertical) scroll wheel.   | |
| int | m_motionPanModifier | 
| What modifier key pans the view when the mouse moves with it held.   | |
| MOUSE_DRAG_ACTION | m_dragLeft | 
| MOUSE_DRAG_ACTION | m_dragMiddle | 
| MOUSE_DRAG_ACTION | m_dragRight | 
| bool | m_lastKeyboardCursorPositionValid | 
| Is last cursor motion event coming from keyboard arrow cursor motion action.   | |
| long | m_lastKeyboardCursorCommand | 
| ACTIONS::CURSOR_UP, ACTIONS::CURSOR_DOWN, etc.   | |
| VECTOR2D | m_lastKeyboardCursorPosition | 
| Position of the above event.   | |
| bool | m_scrollReverseZoom | 
| Whether to invert the scroll wheel movement for zoom.   | |
| bool | m_scrollReversePanH | 
| Whether to invert the scroll wheel movement for horizontal pan.   | |
Structure to keep VIEW_CONTROLS settings for easy store/restore operations.
Definition at line 42 of file view_controls.h.
      
  | 
  inline | 
Definition at line 44 of file view_controls.h.
References Reset().
| void VC_SETTINGS::Reset | ( | ) | 
Restore the default settings.
Definition at line 58 of file view_controls.cpp.
References ACTIONS::CURSOR_NONE, m_autoPanAcceleration, m_autoPanEnabled, m_autoPanMargin, m_autoPanSettingEnabled, m_autoPanSpeed, m_cursorCaptured, m_dragLeft, m_dragMiddle, m_dragRight, m_focusFollowSchPcb, m_forceCursorPosition, m_grabMouse, m_horizontalPan, m_lastKeyboardCursorCommand, m_lastKeyboardCursorPosition, m_lastKeyboardCursorPositionValid, m_motionPanModifier, m_scrollModifierPanH, m_scrollModifierPanV, m_scrollModifierZoom, m_scrollReversePanH, m_scrollReverseZoom, m_showCursor, m_snappingEnabled, m_warpCursor, m_zoomAcceleration, m_zoomSpeed, m_zoomSpeedAuto, NONE, and PAN.
| float KIGFX::VC_SETTINGS::m_autoPanAcceleration | 
How fast does panning accelerate when approaching the window boundary.
Definition at line 86 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_autoPanEnabled | 
Flag for turning on autopanning.
Definition at line 74 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().
| float KIGFX::VC_SETTINGS::m_autoPanMargin | 
Distance from cursor to VIEW edge when panning is active.
Definition at line 80 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_autoPanSettingEnabled | 
Flag for turning on autopanning.
Definition at line 77 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| float KIGFX::VC_SETTINGS::m_autoPanSpeed | 
How fast is panning when in auto mode.
Definition at line 83 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_cursorCaptured | 
Should the cursor be locked within the parent window area.
Definition at line 62 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().
| MOUSE_DRAG_ACTION KIGFX::VC_SETTINGS::m_dragLeft | 
Definition at line 115 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| MOUSE_DRAG_ACTION KIGFX::VC_SETTINGS::m_dragMiddle | 
Definition at line 116 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| MOUSE_DRAG_ACTION KIGFX::VC_SETTINGS::m_dragRight | 
Definition at line 117 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_focusFollowSchPcb | 
Flag for automatic focus switching between Schematic and PCB editors.
Definition at line 71 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_forceCursorPosition | 
Is the forced cursor position enabled.
Definition at line 59 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), TOOL_MANAGER::DispatchContextMenu(), Reset(), COMMON_TOOLS::ResetLocalCoords(), and TOOL_MANAGER::saveViewControls().
| VECTOR2D KIGFX::VC_SETTINGS::m_forcedPosition | 
Forced cursor position (world coordinates).
Definition at line 56 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), TOOL_MANAGER::DispatchContextMenu(), COMMON_TOOLS::ResetLocalCoords(), and TOOL_MANAGER::saveViewControls().
| bool KIGFX::VC_SETTINGS::m_grabMouse | 
Flag for grabbing the mouse cursor.
Definition at line 68 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_horizontalPan | 
Enable horizontal panning with the horizontal scroll/trackpad input.
Definition at line 92 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| long KIGFX::VC_SETTINGS::m_lastKeyboardCursorCommand | 
ACTIONS::CURSOR_UP, ACTIONS::CURSOR_DOWN, etc.
Definition at line 123 of file view_controls.h.
Referenced by SCH_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), and Reset().
| VECTOR2D KIGFX::VC_SETTINGS::m_lastKeyboardCursorPosition | 
Position of the above event.
Definition at line 126 of file view_controls.h.
Referenced by SCH_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), and Reset().
| bool KIGFX::VC_SETTINGS::m_lastKeyboardCursorPositionValid | 
Is last cursor motion event coming from keyboard arrow cursor motion action.
Definition at line 120 of file view_controls.h.
Referenced by SCH_MOVE_TOOL::doMoveSelection(), SYMBOL_EDITOR_MOVE_TOOL::doMoveSelection(), and Reset().
| int KIGFX::VC_SETTINGS::m_motionPanModifier | 
What modifier key pans the view when the mouse moves with it held.
Definition at line 113 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| int KIGFX::VC_SETTINGS::m_scrollModifierPanH | 
What modifier key to enable horizontal pan with the (vertical) scroll wheel.
Definition at line 107 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| int KIGFX::VC_SETTINGS::m_scrollModifierPanV | 
What modifier key to enable vertical with the (vertical) scroll wheel.
Definition at line 110 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| int KIGFX::VC_SETTINGS::m_scrollModifierZoom | 
What modifier key to enable zoom with the (vertical) scroll wheel.
Definition at line 104 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_scrollReversePanH | 
Whether to invert the scroll wheel movement for horizontal pan.
Definition at line 133 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_scrollReverseZoom | 
Whether to invert the scroll wheel movement for zoom.
Definition at line 130 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_showCursor | 
Flag determining the cursor visibility.
Definition at line 53 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_snappingEnabled | 
Should the cursor snap to grid or move freely.
Definition at line 65 of file view_controls.h.
Referenced by Reset().
| bool KIGFX::VC_SETTINGS::m_warpCursor | 
If the cursor is allowed to be warped.
Definition at line 89 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_zoomAcceleration | 
Enable the accelerating zoom controller.
Definition at line 95 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| int KIGFX::VC_SETTINGS::m_zoomSpeed | 
Zoom speed for the non-accelerating zoom controller.
Definition at line 98 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().
| bool KIGFX::VC_SETTINGS::m_zoomSpeedAuto | 
When true, ignore zoom_speed and pick a platform-specific default.
Definition at line 101 of file view_controls.h.
Referenced by EDA_DRAW_PANEL_GAL::GetVcSettings(), and Reset().