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
cfb67ec4
Commit
cfb67ec4
authored
Dec 07, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed debug printfs
parent
11e5d288
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
21 deletions
+0
-21
controle.cpp
pcbnew/controle.cpp
+0
-21
No files found.
pcbnew/controle.cpp
View file @
cfb67ec4
...
...
@@ -223,9 +223,6 @@ BOARD_ITEM* WinEDA_BasePcbFrame::PcbGeneralLocateAndDisplay( int aHotKeyCode )
void
WinEDA_BasePcbFrame
::
GeneralControle
(
wxDC
*
DC
,
wxPoint
Mouse
)
/*****************************************************************/
{
D
(
printf
(
"GeneralControle x=%d, y=%d
\n
"
,
m_CurrentScreen
->
m_Curseur
.
x
,
m_CurrentScreen
->
m_Curseur
.
y
);)
wxSize
delta
;
int
zoom
=
GetScreen
()
->
GetZoom
();
wxPoint
curpos
,
oldpos
;
...
...
@@ -259,13 +256,8 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
SetTitle
(
GetScreen
()
->
m_FileName
);
}
D
(
printf
(
"GeneralControleA Mouse.x=%d, Mouse.y=%d
\n
"
,
Mouse
.
x
,
Mouse
.
y
);)
curpos
=
DrawPanel
->
CursorRealPosition
(
Mouse
);
D
(
printf
(
"GeneralControleB curpos.x=%d, curpos.y=%d
\n
"
,
curpos
.
x
,
curpos
.
y
);)
oldpos
=
GetScreen
()
->
m_Curseur
;
delta
.
x
=
(
int
)
round
(
(
double
)
GetScreen
()
->
GetGrid
().
x
/
zoom
);
...
...
@@ -276,12 +268,6 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
if
(
delta
.
y
<=
0
)
delta
.
y
=
1
;
#if 0 && defined(DEBUG)
printf( "delta.x=%d delta.y=%d grid.x=%d, grid.y=%d, zoom=%d\n",
delta.x, delta.y, GetScreen()->GetGrid().x, GetScreen()->GetGrid().y, zoom );
#endif
switch
(
g_KeyPressed
)
{
case
EDA_PANNING_UP_KEY
:
...
...
@@ -348,16 +334,9 @@ void WinEDA_BasePcbFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
break
;
}
D
(
printf
(
"GeneralControle2 x=%d, y=%d
\n
"
,
m_CurrentScreen
->
m_Curseur
.
x
,
m_CurrentScreen
->
m_Curseur
.
y
);)
/* Put cursor in new position, according to the zoom keys (if any) */
GetScreen
()
->
m_Curseur
=
curpos
;
D
(
printf
(
"GeneralControle3 x=%d, y=%d
\n
"
,
m_CurrentScreen
->
m_Curseur
.
x
,
m_CurrentScreen
->
m_Curseur
.
y
);)
/* Put cursor on grid or a pad centre if requested
* But if the tool DELETE is active the cursor is left off grid
* this is better to reach items to delete off grid
...
...
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