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
9214f584
Commit
9214f584
authored
May 20, 2011
by
Marco Serantoni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MacOSX: Complete support for wxOverlay (
http://trac.wxwidgets.org/ticket/12894
)
parent
34e4ec5c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
13 deletions
+32
-13
zoom.cpp
common/zoom.cpp
+0
-12
controle.cpp
eeschema/controle.cpp
+20
-0
editrack.cpp
pcbnew/editrack.cpp
+2
-1
moduleframe.cpp
pcbnew/moduleframe.cpp
+10
-0
No files found.
common/zoom.cpp
View file @
9214f584
...
...
@@ -22,20 +22,8 @@ void EDA_DRAW_FRAME::RedrawScreen( const wxPoint& aCenterPoint, bool aWarpPointe
{
AdjustScrollBars
(
aCenterPoint
);
#if !defined(__WXMAC__)
/* DrawPanel->Refresh() is not used here because the redraw is delayed and the mouse
* events (from MoveCursorToCrossHair ot others) during this delay create problems: the
* mouse cursor position is false in calculations. TODO: see exactly how the mouse
* creates problems when moving during refresh use Refresh() and update() do not change
* problems
*/
INSTALL_DC
(
dc
,
DrawPanel
);
DrawPanel
->
SetClipBox
(
dc
);
DrawPanel
->
ReDraw
(
&
dc
,
true
);
#else
DrawPanel
->
Refresh
();
DrawPanel
->
Update
();
#endif
/* Move the mouse cursor to the on grid graphic cursor position */
if
(
aWarpPointer
)
...
...
eeschema/controle.cpp
View file @
9214f584
...
...
@@ -221,8 +221,18 @@ void SCH_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int aH
if
(
DrawPanel
->
IsMouseCaptured
()
)
{
#ifdef USE_WX_OVERLAY
wxDCOverlay
oDC
(
DrawPanel
->
m_overlay
,
(
wxWindowDC
*
)
aDC
);
oDC
.
Clear
();
DrawPanel
->
m_mouseCaptureCallback
(
DrawPanel
,
aDC
,
aPosition
,
false
);
#else
DrawPanel
->
m_mouseCaptureCallback
(
DrawPanel
,
aDC
,
aPosition
,
true
);
#endif
}
#ifdef USE_WX_OVERLAY
else
DrawPanel
->
m_overlay
.
Reset
();
#endif
}
if
(
aHotKey
)
...
...
@@ -294,8 +304,18 @@ void LIB_EDIT_FRAME::GeneralControl( wxDC* aDC, const wxPoint& aPosition, int aH
if
(
DrawPanel
->
IsMouseCaptured
()
)
{
#ifdef USE_WX_OVERLAY
wxDCOverlay
oDC
(
DrawPanel
->
m_overlay
,
(
wxWindowDC
*
)
aDC
);
oDC
.
Clear
();
DrawPanel
->
m_mouseCaptureCallback
(
DrawPanel
,
aDC
,
aPosition
,
false
);
#else
DrawPanel
->
m_mouseCaptureCallback
(
DrawPanel
,
aDC
,
aPosition
,
true
);
#endif
}
#ifdef USE_WX_OVERLAY
else
DrawPanel
->
m_overlay
.
Reset
();
#endif
}
if
(
aHotKey
)
...
...
pcbnew/editrack.cpp
View file @
9214f584
...
...
@@ -688,6 +688,7 @@ void ShowNewTrackWhenMovingCursor( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPo
if
(
showTrackClearanceMode
!=
DO_NOT_SHOW_CLEARANCE
)
DisplayOpt
.
ShowTrackClearanceMode
=
SHOW_CLEARANCE_ALWAYS
;
#ifndef USE_WX_OVERLAY
/* Erase old track */
if
(
aErase
)
{
...
...
@@ -705,7 +706,7 @@ void ShowNewTrackWhenMovingCursor( EDA_DRAW_PANEL* aPanel, wxDC* aDC, const wxPo
color
);
}
}
#endif
// MacOSX seems to need this.
if
(
g_CurrentTrackList
.
GetCount
()
==
0
)
return
;
...
...
pcbnew/moduleframe.cpp
View file @
9214f584
...
...
@@ -387,8 +387,18 @@ void WinEDA_ModuleEditFrame::GeneralControl( wxDC* aDC, const wxPoint& aPosition
if
(
DrawPanel
->
IsMouseCaptured
()
)
{
#ifdef USE_WX_OVERLAY
wxDCOverlay
oDC
(
DrawPanel
->
m_overlay
,
(
wxWindowDC
*
)
aDC
);
oDC
.
Clear
();
DrawPanel
->
m_mouseCaptureCallback
(
DrawPanel
,
aDC
,
aPosition
,
false
);
#else
DrawPanel
->
m_mouseCaptureCallback
(
DrawPanel
,
aDC
,
aPosition
,
true
);
#endif
}
#ifdef USE_WX_OVERLAY
else
DrawPanel
->
m_overlay
.
Reset
();
#endif
}
if
(
aHotKey
)
...
...
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