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
1648d7fd
Commit
1648d7fd
authored
Apr 21, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get cross-probing working under the Kiway.
parent
e47a2bc5
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
37 additions
and
0 deletions
+37
-0
kiway.cpp
common/kiway.cpp
+8
-0
cross-probing.cpp
eeschema/cross-probing.cpp
+12
-0
schframe.cpp
eeschema/schframe.cpp
+1
-0
wxEeschemaStruct.h
include/wxEeschemaStruct.h
+2
-0
wxPcbStruct.h
include/wxPcbStruct.h
+2
-0
cross-probing.cpp
pcbnew/cross-probing.cpp
+11
-0
pcbframe.cpp
pcbnew/pcbframe.cpp
+1
-0
No files found.
common/kiway.cpp
View file @
1648d7fd
...
...
@@ -316,7 +316,15 @@ bool KIWAY::ProcessEvent( wxEvent& aEvent )
KIWAY_PLAYER
*
alive
=
Player
(
dest
,
false
);
if
(
alive
)
{
#if 0
// This is still broken, but is the way to go.
return alive->ProcessEvent( aEvent );
#else
alive
->
KiwayMailIn
(
*
mail
);
return
true
;
#endif
}
}
return
false
;
...
...
eeschema/cross-probing.cpp
View file @
1648d7fd
...
...
@@ -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
View file @
1648d7fd
...
...
@@ -1073,3 +1073,4 @@ void SCH_EDIT_FRAME::UpdateTitle()
SetTitle
(
title
);
}
include/wxEeschemaStruct.h
View file @
1648d7fd
...
...
@@ -368,6 +368,8 @@ public:
*/
virtual
void
ExecuteRemoteCommand
(
const
char
*
cmdline
);
void
KiwayMailIn
(
KIWAY_EXPRESS
&
aEvent
);
// virtual overload from KIWAY_PLAYER
void
OnLeftClick
(
wxDC
*
aDC
,
const
wxPoint
&
aPosition
);
void
OnLeftDClick
(
wxDC
*
aDC
,
const
wxPoint
&
aPosition
);
bool
OnRightClick
(
const
wxPoint
&
aPosition
,
wxMenu
*
PopMenu
);
...
...
include/wxPcbStruct.h
View file @
1648d7fd
...
...
@@ -239,6 +239,8 @@ public:
*/
virtual
void
ExecuteRemoteCommand
(
const
char
*
cmdline
);
void
KiwayMailIn
(
KIWAY_EXPRESS
&
aEvent
);
// virtual overload from KIWAY_PLAYER
/**
* Function ToPlotter
* Open a dialog frame to create plot and drill files
...
...
pcbnew/cross-probing.cpp
View file @
1648d7fd
...
...
@@ -211,3 +211,14 @@ void PCB_EDIT_FRAME::SendMessageToEESCHEMA( BOARD_ITEM* aSyncItem )
}
}
#include <kiway_express.h>
void
PCB_EDIT_FRAME
::
KiwayMailIn
(
KIWAY_EXPRESS
&
mail
)
{
// @todo switch on command type
std
::
string
payload
=
mail
.
GetPayload
();
ExecuteRemoteCommand
(
payload
.
c_str
()
);
}
pcbnew/pcbframe.cpp
View file @
1648d7fd
...
...
@@ -1171,3 +1171,4 @@ void PCB_EDIT_FRAME::SetRotationAngle( int aRotationAngle )
m_rotationAngle
=
aRotationAngle
;
}
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