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
39993e27
Commit
39993e27
authored
Jun 10, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue in auto panning while moving in EDA_DRAW_PANEL::OnMouseLeaving()
parent
00adc67d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
HOW_TO_CONTRIBUTE.txt
HOW_TO_CONTRIBUTE.txt
+1
-1
drawpanel.cpp
common/drawpanel.cpp
+18
-8
page_layout_reader.cpp
common/page_layout_reader.cpp
+1
-1
No files found.
HOW_TO_CONTRIBUTE.txt
View file @
39993e27
...
...
@@ -15,7 +15,7 @@ Contribute to KiCad (under Linux)
cd ~/
bzr branch lp:kicad kicad_john
4) Read coding_style_policy.pd
t
, in <kicad_sources>/Documentation,
4) Read coding_style_policy.pd
f
, in <kicad_sources>/Documentation,
and other docs.
5) Modify/add source code.
...
...
common/drawpanel.cpp
View file @
39993e27
...
...
@@ -830,16 +830,26 @@ void EDA_DRAW_PANEL::OnMouseLeaving( wxMouseEvent& event )
if
(
!
m_enableAutoPan
||
!
m_requestAutoPan
||
m_ignoreMouseEvents
)
return
;
// Auto pan if mouse has left the client window
// Auto pan when mouse has left the client window
// Ensure the cross_hair position is updated,
// because it will be used to center the screen.
// We use a position inside the client window
wxSize
size
=
GetClientSize
();
wxPoint
cross_hair_pos
=
event
.
GetPosition
();
cross_hair_pos
.
x
=
std
::
min
(
cross_hair_pos
.
x
,
size
.
x
);
cross_hair_pos
.
y
=
std
::
min
(
cross_hair_pos
.
y
,
size
.
x
);
cross_hair_pos
.
x
=
std
::
max
(
cross_hair_pos
.
x
,
0
);
cross_hair_pos
.
y
=
std
::
max
(
cross_hair_pos
.
y
,
0
);
INSTALL_UNBUFFERED_DC
(
dc
,
this
);
cross_hair_pos
.
x
=
dc
.
DeviceToLogicalX
(
cross_hair_pos
.
x
);
cross_hair_pos
.
y
=
dc
.
DeviceToLogicalY
(
cross_hair_pos
.
y
);
GetScreen
()
->
SetCrossHairPosition
(
cross_hair_pos
);
if
(
size
.
x
<=
event
.
GetX
()
||
event
.
GetX
()
<
0
||
size
.
y
<=
event
.
GetY
()
||
event
.
GetY
()
<
0
)
{
wxCommandEvent
cmd
(
wxEVT_COMMAND_MENU_SELECTED
,
ID_POPUP_ZOOM_CENTER
);
cmd
.
SetEventObject
(
this
);
GetEventHandler
()
->
ProcessEvent
(
cmd
);
}
event
.
Skip
();
}
...
...
common/page_layout_reader.cpp
View file @
39993e27
...
...
@@ -579,7 +579,7 @@ void WORKSHEET_LAYOUT::SetLayout()
if
(
fullFileName
.
IsEmpty
()
||
!
wxFileExists
(
fullFileName
)
)
{
#if 0
if( !fullFileName.IsEmpty()
&& !wxFileExists( fullFileName )
)
if( !fullFileName.IsEmpty() )
{
wxLogMessage( wxT("Page layout file <%s> not found"),
fullFileName.GetData() );
...
...
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