![]() |
KiCad PCB EDA Suite
|
More...Structure to keep VIEW_CONTROLS settings for easy store/restore operations
#include <view_controls.h>
Public Member Functions | |
VC_SETTINGS () | |
void | Reset () |
More... | |
Public Attributes | |
bool | m_showCursor |
More... | |
VECTOR2D | m_forcedPosition |
More... | |
bool | m_forceCursorPosition |
More... | |
bool | m_cursorCaptured |
More... | |
bool | m_snappingEnabled |
More... | |
bool | m_grabMouse |
More... | |
bool | m_autoPanEnabled |
More... | |
bool | m_autoPanSettingEnabled |
More... | |
float | m_autoPanMargin |
More... | |
float | m_autoPanSpeed |
More... | |
bool | m_warpCursor |
More... | |
bool | m_enableMousewheelPan |
More... | |
bool | m_panWithRightButton |
More... | |
bool | m_panWithLeftButton |
More... | |
bool | m_lastKeyboardCursorPositionValid |
More... | |
VECTOR2D | m_lastKeyboardCursorPosition |
More... | |
Structure to keep VIEW_CONTROLS settings for easy store/restore operations
Definition at line 44 of file view_controls.h.
|
inline |
void VC_SETTINGS::Reset | ( | ) |
Restores the default settings
Definition at line 57 of file view_controls.cpp.
References m_autoPanEnabled, m_autoPanMargin, m_autoPanSettingEnabled, m_autoPanSpeed, m_cursorCaptured, m_enableMousewheelPan, m_forceCursorPosition, m_grabMouse, m_lastKeyboardCursorPositionValid, m_panWithLeftButton, m_panWithRightButton, m_showCursor, m_snappingEnabled, and m_warpCursor.
Referenced by TOOL_MANAGER::TOOL_STATE::clear(), and VC_SETTINGS().
bool KIGFX::VC_SETTINGS::m_autoPanEnabled |
Flag for turning on autopanning
Definition at line 73 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::WX_VIEW_CONTROLS::onMotion(), KIGFX::WX_VIEW_CONTROLS::onTimer(), Reset(), and KIGFX::VIEW_CONTROLS::SetAutoPan().
float KIGFX::VC_SETTINGS::m_autoPanMargin |
Distance from cursor to VIEW edge when panning is active
Definition at line 79 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::WX_VIEW_CONTROLS::handleAutoPanning(), KIGFX::WX_VIEW_CONTROLS::onTimer(), Reset(), and KIGFX::VIEW_CONTROLS::SetAutoPanMargin().
bool KIGFX::VC_SETTINGS::m_autoPanSettingEnabled |
Flag for turning on autopanning
Definition at line 76 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::EnableAutoPan(), KIGFX::WX_VIEW_CONTROLS::onMotion(), Reset(), KIGFX::WX_VIEW_CONTROLS::WX_VIEW_CONTROLS(), and KIGFX::WX_VIEW_CONTROLS::~WX_VIEW_CONTROLS().
float KIGFX::VC_SETTINGS::m_autoPanSpeed |
How fast is panning when in auto mode
Definition at line 82 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::WX_VIEW_CONTROLS::onTimer(), Reset(), and KIGFX::VIEW_CONTROLS::SetAutoPanSpeed().
bool KIGFX::VC_SETTINGS::m_cursorCaptured |
Should the cursor be locked within the parent window area
Definition at line 64 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::VIEW_CONTROLS::CaptureCursor(), KIGFX::WX_VIEW_CONTROLS::onLeave(), and Reset().
bool KIGFX::VC_SETTINGS::m_enableMousewheelPan |
Mousewheel (2-finger touchpad) panning
Definition at line 88 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::EnableMousewheelPan(), KIGFX::VIEW_CONTROLS::IsMousewheelPanEnabled(), KIGFX::WX_VIEW_CONTROLS::onWheel(), Reset(), KIGFX::WX_VIEW_CONTROLS::WX_VIEW_CONTROLS(), and KIGFX::WX_VIEW_CONTROLS::~WX_VIEW_CONTROLS().
bool KIGFX::VC_SETTINGS::m_forceCursorPosition |
Is the forced cursor position enabled
Definition at line 61 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), TOOL_MANAGER::DispatchContextMenu(), KIGFX::WX_VIEW_CONTROLS::ForceCursorPosition(), KIGFX::VIEW_CONTROLS::ForceCursorPosition(), KIGFX::VIEW_CONTROLS::ForcedCursorPosition(), KIGFX::WX_VIEW_CONTROLS::GetCursorPosition(), KIGFX::VIEW_CONTROLS::IsCursorPositionForced(), Reset(), and TOOL_MANAGER::saveViewControls().
VECTOR2D KIGFX::VC_SETTINGS::m_forcedPosition |
Forced cursor position (world coordinates)
Definition at line 58 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), TOOL_MANAGER::DispatchContextMenu(), KIGFX::WX_VIEW_CONTROLS::ForceCursorPosition(), KIGFX::VIEW_CONTROLS::ForceCursorPosition(), KIGFX::WX_VIEW_CONTROLS::GetCursorPosition(), and TOOL_MANAGER::saveViewControls().
bool KIGFX::VC_SETTINGS::m_grabMouse |
Flag for grabbing the mouse cursor
Definition at line 70 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), Reset(), KIGFX::WX_VIEW_CONTROLS::SetGrabMouse(), and KIGFX::VIEW_CONTROLS::SetGrabMouse().
VECTOR2D KIGFX::VC_SETTINGS::m_lastKeyboardCursorPosition |
Position of the above event
Definition at line 100 of file view_controls.h.
Referenced by KIGFX::WX_VIEW_CONTROLS::handleAutoPanning(), and KIGFX::WX_VIEW_CONTROLS::SetCursorPosition().
bool KIGFX::VC_SETTINGS::m_lastKeyboardCursorPositionValid |
Is last cursor motion event coming from keyboard arrow cursor motion action
Definition at line 97 of file view_controls.h.
Referenced by KIGFX::WX_VIEW_CONTROLS::handleAutoPanning(), Reset(), KIGFX::WX_VIEW_CONTROLS::SetCursorPosition(), and KIGFX::WX_VIEW_CONTROLS::WX_VIEW_CONTROLS().
bool KIGFX::VC_SETTINGS::m_panWithLeftButton |
Allow panning with the left button in addition to middle
Definition at line 94 of file view_controls.h.
Referenced by KIGFX::WX_VIEW_CONTROLS::onButton(), Reset(), and KIGFX::VIEW_CONTROLS::SetAdditionalPanButtons().
bool KIGFX::VC_SETTINGS::m_panWithRightButton |
Allow panning with the right button in addition to middle
Definition at line 91 of file view_controls.h.
Referenced by KIGFX::WX_VIEW_CONTROLS::onButton(), Reset(), and KIGFX::VIEW_CONTROLS::SetAdditionalPanButtons().
bool KIGFX::VC_SETTINGS::m_showCursor |
Flag determining the cursor visibility
Definition at line 55 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::VIEW_CONTROLS::IsCursorShown(), Reset(), and KIGFX::VIEW_CONTROLS::ShowCursor().
bool KIGFX::VC_SETTINGS::m_snappingEnabled |
Should the cursor snap to grid or move freely
Definition at line 67 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::ApplySettings(), KIGFX::VIEW_CONTROLS::GetCursorPosition(), KIGFX::VIEW_CONTROLS::GetSnappingState(), Reset(), and KIGFX::VIEW_CONTROLS::SetSnapping().
bool KIGFX::VC_SETTINGS::m_warpCursor |
If the cursor is allowed to be warped
Definition at line 85 of file view_controls.h.
Referenced by KIGFX::VIEW_CONTROLS::EnableCursorWarping(), KIGFX::VIEW_CONTROLS::IsCursorWarpingEnabled(), Reset(), KIGFX::WX_VIEW_CONTROLS::WX_VIEW_CONTROLS(), and KIGFX::WX_VIEW_CONTROLS::~WX_VIEW_CONTROLS().