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
5c3b480a
Commit
5c3b480a
authored
Aug 20, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
center PCBNEW parts on screen when tracking clicks and parts from EESCHEMA
parent
6acce67a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
388 additions
and
361 deletions
+388
-361
change_log.txt
change_log.txt
+5
-1
controle.cpp
pcbnew/controle.cpp
+7
-3
zoom.cpp
share/zoom.cpp
+376
-357
No files found.
change_log.txt
View file @
5c3b480a
...
...
@@ -20,6 +20,10 @@ email address.
in PCBNEW when there is more than one click candidate at the same mouse
or cursor coordinates. COLLECTOR not committed yet.
* More beautification.
* The mouse click and part synchronization from EESCHEMA to PCBNEW would
track fine but would not always position the PCBNEW part on screen. Now
we center it unconditionally. No change was made in the reverse direction
since that code uses the long established Find support.
2007-Aug-14 UPDATE Dick Hollenbeck <dick@softplc.com>
...
...
pcbnew/controle.cpp
View file @
5c3b480a
...
...
@@ -31,8 +31,10 @@ void RemoteCommand( const char* cmdline )
{
char
line
[
1024
];
wxString
msg
;
char
*
idcmd
,
*
text
;
char
*
idcmd
;
char
*
text
;
WinEDA_PcbFrame
*
frame
=
EDA_Appl
->
m_PcbFrame
;
MODULE
*
module
;
strncpy
(
line
,
cmdline
,
sizeof
(
line
)
-
1
);
msg
=
CONV_FROM_UTF8
(
line
);
...
...
@@ -48,7 +50,7 @@ void RemoteCommand( const char* cmdline )
{
msg
=
CONV_FROM_UTF8
(
text
);
MODULE
*
module
=
ReturnModule
(
frame
->
m_Pcb
,
msg
);
module
=
ReturnModule
(
frame
->
m_Pcb
,
msg
);
msg
.
Printf
(
_
(
"Locate module %s %s"
),
msg
.
GetData
(),
module
?
wxT
(
"Ok"
)
:
wxT
(
"not found"
)
);
...
...
@@ -68,7 +70,6 @@ void RemoteCommand( const char* cmdline )
if
(
idcmd
&&
strcmp
(
idcmd
,
"$PIN:"
)
==
0
)
{
wxString
pinName
,
modName
;
MODULE
*
module
;
D_PAD
*
pad
=
NULL
;
int
netcode
=
-
1
;
...
...
@@ -112,6 +113,9 @@ void RemoteCommand( const char* cmdline )
msg
.
Printf
(
_
(
"Locate Pin %s (module %s)"
),
pinName
.
GetData
(),
modName
.
GetData
()
);
frame
->
Affiche_Message
(
msg
);
}
if
(
module
)
// center the module on screen.
frame
->
Recadre_Trace
(
false
);
}
...
...
share/zoom.cpp
View file @
5c3b480a
This diff is collapsed.
Click to expand it.
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