Picker tool captures cursor by default.
This commit is contained in:
parent
c9837595ef
commit
55b09483df
|
@ -83,6 +83,7 @@ void PICKER_TOOL::reset()
|
|||
{
|
||||
m_cursorSnapping = true;
|
||||
m_cursorVisible = true;
|
||||
m_cursorCapture = true;
|
||||
m_autoPanning = true;
|
||||
|
||||
m_picking = false;
|
||||
|
@ -96,5 +97,6 @@ void PICKER_TOOL::setControls()
|
|||
|
||||
controls->ShowCursor( m_cursorVisible );
|
||||
controls->SetSnapping( m_cursorSnapping );
|
||||
controls->CaptureCursor( m_cursorCapture );
|
||||
controls->SetAutoPan( m_autoPanning );
|
||||
}
|
||||
|
|
|
@ -65,6 +65,12 @@ public:
|
|||
*/
|
||||
inline void SetAutoPanning( bool aEnable ) { m_autoPanning = aEnable; }
|
||||
|
||||
/**
|
||||
* Function SetAutoPanning()
|
||||
* Toggles cursor capture mode for the period when the tool is active.
|
||||
*/
|
||||
inline void SetCursorCapture( bool aEnable ) { m_cursorCapture = aEnable; }
|
||||
|
||||
/**
|
||||
* Function GetPoint()
|
||||
* Returns picked point.
|
||||
|
@ -99,6 +105,7 @@ private:
|
|||
// Tool settings.
|
||||
bool m_cursorSnapping;
|
||||
bool m_cursorVisible;
|
||||
bool m_cursorCapture;
|
||||
bool m_autoPanning;
|
||||
|
||||
///> Optional mouse click event handler.
|
||||
|
|
Loading…
Reference in New Issue