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
d0749a3a
Commit
d0749a3a
authored
Sep 09, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small refactoring.
parent
8a4417ec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
wx_view_controls.cpp
common/view/wx_view_controls.cpp
+1
-2
tool_dispatcher.h
include/tool/tool_dispatcher.h
+1
-1
wx_view_controls.h
include/view/wx_view_controls.h
+2
-2
No files found.
common/view/wx_view_controls.cpp
View file @
d0749a3a
...
@@ -197,8 +197,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
...
@@ -197,8 +197,7 @@ void WX_VIEW_CONTROLS::onTimer( wxTimerEvent& aEvent )
dir
=
m_view
->
ToWorld
(
dir
,
false
);
dir
=
m_view
->
ToWorld
(
dir
,
false
);
m_view
->
SetCenter
(
m_view
->
GetCenter
()
+
dir
*
m_autoPanSpeed
);
m_view
->
SetCenter
(
m_view
->
GetCenter
()
+
dir
*
m_autoPanSpeed
);
wxPaintEvent
redrawEvent
;
m_parentPanel
->
Refresh
();
wxPostEvent
(
m_parentPanel
,
redrawEvent
);
}
}
break
;
break
;
...
...
include/tool/tool_dispatcher.h
View file @
d0749a3a
...
@@ -36,7 +36,7 @@ class TOOL_MANAGER;
...
@@ -36,7 +36,7 @@ class TOOL_MANAGER;
class
PCB_BASE_FRAME
;
class
PCB_BASE_FRAME
;
namespace
KiGfx
{
namespace
KiGfx
{
class
VIEW
;
class
VIEW
;
};
};
/**
/**
...
...
include/view/wx_view_controls.h
View file @
d0749a3a
...
@@ -54,8 +54,8 @@ public:
...
@@ -54,8 +54,8 @@ public:
void
onWheel
(
wxMouseEvent
&
aEvent
);
void
onWheel
(
wxMouseEvent
&
aEvent
);
void
onMotion
(
wxMouseEvent
&
aEvent
);
void
onMotion
(
wxMouseEvent
&
aEvent
);
void
onButton
(
wxMouseEvent
&
aEvent
);
void
onButton
(
wxMouseEvent
&
aEvent
);
void
onEnter
(
wxMouseEvent
&
aEvent
);
void
onEnter
(
wxMouseEvent
&
WXUNUSED
(
aEvent
)
);
void
onTimer
(
wxTimerEvent
&
aEvent
);
void
onTimer
(
wxTimerEvent
&
WXUNUSED
(
aEvent
)
);
/**
/**
* Function SetGrabMouse()
* Function SetGrabMouse()
...
...
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