Loading common/kiway.cpp +8 −0 Original line number Original line Diff line number Diff line Loading @@ -316,7 +316,15 @@ bool KIWAY::ProcessEvent( wxEvent& aEvent ) KIWAY_PLAYER* alive = Player( dest, false ); KIWAY_PLAYER* alive = Player( dest, false ); if( alive ) if( alive ) { #if 0 // This is still broken, but is the way to go. return alive->ProcessEvent( aEvent ); return alive->ProcessEvent( aEvent ); #else alive->KiwayMailIn( *mail ); return true; #endif } } } return false; return false; Loading eeschema/cross-probing.cpp +12 −0 Original line number Original line Diff line number Diff line Loading @@ -180,3 +180,15 @@ void SCH_EDIT_FRAME::SendMessageToPCBNEW( EDA_ITEM* aComponent, SCH_COMPONENT* a } } } } } } #include <kiway_express.h> void SCH_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail ) { // @todo switch on command type std::string payload = mail.GetPayload(); ExecuteRemoteCommand( payload.c_str() ); } eeschema/schframe.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1073,3 +1073,4 @@ void SCH_EDIT_FRAME::UpdateTitle() SetTitle( title ); SetTitle( title ); } } include/wxEeschemaStruct.h +2 −0 Original line number Original line Diff line number Diff line Loading @@ -368,6 +368,8 @@ public: */ */ virtual void ExecuteRemoteCommand( const char* cmdline ); virtual void ExecuteRemoteCommand( const char* cmdline ); void KiwayMailIn( KIWAY_EXPRESS& aEvent ); // virtual overload from KIWAY_PLAYER void OnLeftClick( wxDC* aDC, const wxPoint& aPosition ); void OnLeftClick( wxDC* aDC, const wxPoint& aPosition ); void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition ); void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition ); bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ); bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ); Loading include/wxPcbStruct.h +2 −0 Original line number Original line Diff line number Diff line Loading @@ -239,6 +239,8 @@ public: */ */ virtual void ExecuteRemoteCommand( const char* cmdline ); virtual void ExecuteRemoteCommand( const char* cmdline ); void KiwayMailIn( KIWAY_EXPRESS& aEvent ); // virtual overload from KIWAY_PLAYER /** /** * Function ToPlotter * Function ToPlotter * Open a dialog frame to create plot and drill files * Open a dialog frame to create plot and drill files Loading Loading
common/kiway.cpp +8 −0 Original line number Original line Diff line number Diff line Loading @@ -316,7 +316,15 @@ bool KIWAY::ProcessEvent( wxEvent& aEvent ) KIWAY_PLAYER* alive = Player( dest, false ); KIWAY_PLAYER* alive = Player( dest, false ); if( alive ) if( alive ) { #if 0 // This is still broken, but is the way to go. return alive->ProcessEvent( aEvent ); return alive->ProcessEvent( aEvent ); #else alive->KiwayMailIn( *mail ); return true; #endif } } } return false; return false; Loading
eeschema/cross-probing.cpp +12 −0 Original line number Original line Diff line number Diff line Loading @@ -180,3 +180,15 @@ void SCH_EDIT_FRAME::SendMessageToPCBNEW( EDA_ITEM* aComponent, SCH_COMPONENT* a } } } } } } #include <kiway_express.h> void SCH_EDIT_FRAME::KiwayMailIn( KIWAY_EXPRESS& mail ) { // @todo switch on command type std::string payload = mail.GetPayload(); ExecuteRemoteCommand( payload.c_str() ); }
eeschema/schframe.cpp +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1073,3 +1073,4 @@ void SCH_EDIT_FRAME::UpdateTitle() SetTitle( title ); SetTitle( title ); } }
include/wxEeschemaStruct.h +2 −0 Original line number Original line Diff line number Diff line Loading @@ -368,6 +368,8 @@ public: */ */ virtual void ExecuteRemoteCommand( const char* cmdline ); virtual void ExecuteRemoteCommand( const char* cmdline ); void KiwayMailIn( KIWAY_EXPRESS& aEvent ); // virtual overload from KIWAY_PLAYER void OnLeftClick( wxDC* aDC, const wxPoint& aPosition ); void OnLeftClick( wxDC* aDC, const wxPoint& aPosition ); void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition ); void OnLeftDClick( wxDC* aDC, const wxPoint& aPosition ); bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ); bool OnRightClick( const wxPoint& aPosition, wxMenu* PopMenu ); Loading
include/wxPcbStruct.h +2 −0 Original line number Original line Diff line number Diff line Loading @@ -239,6 +239,8 @@ public: */ */ virtual void ExecuteRemoteCommand( const char* cmdline ); virtual void ExecuteRemoteCommand( const char* cmdline ); void KiwayMailIn( KIWAY_EXPRESS& aEvent ); // virtual overload from KIWAY_PLAYER /** /** * Function ToPlotter * Function ToPlotter * Open a dialog frame to create plot and drill files * Open a dialog frame to create plot and drill files Loading