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
e5db75a2
Commit
e5db75a2
authored
Feb 21, 2010
by
emmedics4
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
OSX: file opening sanity checks
parent
b5bef0f2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
1 deletion
+19
-1
cvpcb.cpp
cvpcb/cvpcb.cpp
+3
-0
eeschema.cpp
eeschema/eeschema.cpp
+5
-0
gerbview.cpp
gerbview/gerbview.cpp
+5
-0
pcbnew.cpp
pcbnew/pcbnew.cpp
+6
-1
No files found.
cvpcb/cvpcb.cpp
View file @
e5db75a2
...
...
@@ -43,6 +43,9 @@ void WinEDA_App::MacOpenFile(const wxString &fileName) {
wxString
oldPath
;
WinEDA_CvpcbFrame
*
frame
=
((
WinEDA_CvpcbFrame
*
)
GetTopWindow
());
if
(
!
filename
.
FileExists
())
return
;
if
(
frame
->
m_NetlistFileName
.
DirExists
()
)
oldPath
=
frame
->
m_NetlistFileName
.
GetPath
();
...
...
eeschema/eeschema.cpp
View file @
e5db75a2
...
...
@@ -104,7 +104,12 @@ IMPLEMENT_APP( WinEDA_App )
* http://wiki.wxwidgets.org/WxMac-specific_topics
*/
void
WinEDA_App
::
MacOpenFile
(
const
wxString
&
fileName
)
{
wxFileName
filename
=
fileName
;
WinEDA_SchematicFrame
*
frame
=
((
WinEDA_SchematicFrame
*
)
GetTopWindow
());
if
(
!
filename
.
FileExists
())
return
;
frame
->
LoadOneEEProject
(
fileName
,
false
);
}
...
...
gerbview/gerbview.cpp
View file @
e5db75a2
...
...
@@ -62,7 +62,12 @@ IMPLEMENT_APP( WinEDA_App )
* http://wiki.wxwidgets.org/WxMac-specific_topics
*/
void
WinEDA_App
::
MacOpenFile
(
const
wxString
&
fileName
)
{
wxFileName
filename
=
fileName
;
WinEDA_GerberFrame
*
frame
=
((
WinEDA_GerberFrame
*
)
GetTopWindow
());
if
(
!
filename
.
FileExists
())
return
;
frame
->
LoadOneGerberFile
(
fileName
,
FALSE
);
}
...
...
pcbnew/pcbnew.cpp
View file @
e5db75a2
...
...
@@ -75,7 +75,12 @@ IMPLEMENT_APP( WinEDA_App )
* http://wiki.wxwidgets.org/WxMac-specific_topics
*/
void
WinEDA_App
::
MacOpenFile
(
const
wxString
&
fileName
)
{
WinEDA_PcbFrame
*
frame
=
((
WinEDA_PcbFrame
*
)
GetTopWindow
());;
wxFileName
filename
=
fileName
;
WinEDA_PcbFrame
*
frame
=
((
WinEDA_PcbFrame
*
)
GetTopWindow
());
if
(
!
filename
.
FileExists
())
return
;
frame
->
LoadOnePcbFile
(
fileName
,
FALSE
);
}
...
...
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