From b903a803e52f7934e9e24e136a7ac48114cc8ce0 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Thu, 16 Aug 2007 01:13:12 +0000 Subject: [PATCH] move, rotate, swap layer, and drag now also signal EESCHEMA for cursor synchronization --- pcbnew/hotkeys.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pcbnew/hotkeys.cpp b/pcbnew/hotkeys.cpp index 768d14011f..4204e2f261 100644 --- a/pcbnew/hotkeys.cpp +++ b/pcbnew/hotkeys.cpp @@ -192,7 +192,19 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, if( module == NULL ) break; - GetScreen()->m_CurrentItem = module; + /* I'd like to make sending to EESCHEMA edge triggered, but the + simple mouse click on a module when the arrow icon is in play + does not set m_CurrentItem at this time, nor does a mouse click + when the local ratsnest icon is in play set m_CurrentItem, and these + actions also call SendMessageToEESCHEMA(). + if( GetScreen()->m_CurrentItem != module ) + */ + { + // Send the module via socket to EESCHEMA's search facility. + SendMessageToEESCHEMA( module ); + + GetScreen()->m_CurrentItem = module; + } switch( hotkey ) { @@ -215,6 +227,7 @@ void WinEDA_PcbFrame::OnHotKey( wxDC* DC, int hotkey, } module->Display_Infos( this ); + break; } }