Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
61a76b29
Commit
61a76b29
authored
Feb 06, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Plain Diff
Merged fix for wrong snapping.
parents
45f55fb8
0f026bbe
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
wx_view_controls.cpp
common/view/wx_view_controls.cpp
+1
-1
view_controls.h
include/view/view_controls.h
+1
-1
wx_view_controls.h
include/view/wx_view_controls.h
+7
-0
No files found.
common/view/wx_view_controls.cpp
View file @
61a76b29
...
...
@@ -229,7 +229,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
void
WX_VIEW_CONTROLS
::
SetGrabMouse
(
bool
aEnabled
)
{
m_grabMouse
=
aEnabled
;
VIEW_CONTROLS
::
SetGrabMouse
(
aEnabled
)
;
if
(
aEnabled
)
m_parentPanel
->
CaptureMouse
();
...
...
include/view/view_controls.h
View file @
61a76b29
...
...
@@ -60,7 +60,7 @@ public:
*
* @param aEnabled says whether the opion should be enabled or disabled.
*/
void
SetSnapping
(
bool
aEnabled
)
v
irtual
v
oid
SetSnapping
(
bool
aEnabled
)
{
m_snappingEnabled
=
aEnabled
;
}
...
...
include/view/wx_view_controls.h
View file @
61a76b29
...
...
@@ -58,6 +58,13 @@ public:
void
onEnter
(
wxMouseEvent
&
WXUNUSED
(
aEvent
)
);
void
onTimer
(
wxTimerEvent
&
WXUNUSED
(
aEvent
)
);
///> @copydoc VIEW_CONTROLS::SetSnapping()
void
SetSnapping
(
bool
aEnabled
)
{
VIEW_CONTROLS
::
SetSnapping
(
aEnabled
);
updateCursor
();
}
/**
* Function SetGrabMouse()
* Enables/disables mouse cursor grabbing (limits the movement field only to the panel area).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment