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
0f026bbe
Commit
0f026bbe
authored
Feb 06, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed snapping item in a wrong spot bug.
parent
1d4c6ad4
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 @
0f026bbe
...
@@ -229,7 +229,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
...
@@ -229,7 +229,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
void
WX_VIEW_CONTROLS
::
SetGrabMouse
(
bool
aEnabled
)
void
WX_VIEW_CONTROLS
::
SetGrabMouse
(
bool
aEnabled
)
{
{
m_grabMouse
=
aEnabled
;
VIEW_CONTROLS
::
SetGrabMouse
(
aEnabled
)
;
if
(
aEnabled
)
if
(
aEnabled
)
m_parentPanel
->
CaptureMouse
();
m_parentPanel
->
CaptureMouse
();
...
...
include/view/view_controls.h
View file @
0f026bbe
...
@@ -60,7 +60,7 @@ public:
...
@@ -60,7 +60,7 @@ public:
*
*
* @param aEnabled says whether the opion should be enabled or disabled.
* @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
;
m_snappingEnabled
=
aEnabled
;
}
}
...
...
include/view/wx_view_controls.h
View file @
0f026bbe
...
@@ -58,6 +58,13 @@ public:
...
@@ -58,6 +58,13 @@ public:
void
onEnter
(
wxMouseEvent
&
WXUNUSED
(
aEvent
)
);
void
onEnter
(
wxMouseEvent
&
WXUNUSED
(
aEvent
)
);
void
onTimer
(
wxTimerEvent
&
WXUNUSED
(
aEvent
)
);
void
onTimer
(
wxTimerEvent
&
WXUNUSED
(
aEvent
)
);
///> @copydoc VIEW_CONTROLS::SetSnapping()
void
SetSnapping
(
bool
aEnabled
)
{
VIEW_CONTROLS
::
SetSnapping
(
aEnabled
);
updateCursor
();
}
/**
/**
* Function SetGrabMouse()
* Function SetGrabMouse()
* Enables/disables mouse cursor grabbing (limits the movement field only to the panel area).
* 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