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
1e4659bb
Commit
1e4659bb
authored
16 years ago
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gerbview command line support
parent
ad557994
teardrops
master
review
copy-of-subversion-repo
April-2010-release
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
files.cpp
gerbview/files.cpp
+6
-5
gerbview.cpp
gerbview/gerbview.cpp
+2
-1
readgerb.cpp
gerbview/readgerb.cpp
+3
-1
No files found.
gerbview/files.cpp
View file @
1e4659bb
...
...
@@ -125,9 +125,9 @@ int WinEDA_GerberFrame::LoadOneGerberFile( const wxString& FullFileName,
if
(
filename
==
wxEmptyString
)
{
wxString
mask
=
wxT
(
"*"
)
+
g_PhotoFilenameExt
;
mask
+=
wxT
(
";*.gbr;*.gbx;*.lgr;*.ger"
);
filename
=
EDA_FileSelector
(
_
(
"Gerber files:"
),
path
,
/* Chemin par defaut */
wxEmptyString
,
/* nom fichier par defaut */
...
...
@@ -142,9 +142,10 @@ int WinEDA_GerberFrame::LoadOneGerberFile( const wxString& FullFileName,
}
GetScreen
()
->
m_FileName
=
filename
;
wxSetWorkingDirectory
(
path
);
if
(
path
!=
wxEmptyString
)
wxSetWorkingDirectory
(
path
);
ChangeFileNameExt
(
filename
,
g_PenFilenameExt
);
if
(
Read_GERBER_File
(
DC
,
GetScreen
()
->
m_FileName
,
filename
)
)
...
...
This diff is collapsed.
Click to expand it.
gerbview/gerbview.cpp
View file @
1e4659bb
...
...
@@ -70,7 +70,8 @@ bool WinEDA_App::OnInit()
wxString
path
=
wxPathOnly
(
fileName
);
wxSetWorkingDirectory
(
path
);
if
(
path
!=
wxEmptyString
)
wxSetWorkingDirectory
(
path
);
Read_Config
();
...
...
This diff is collapsed.
Click to expand it.
gerbview/readgerb.cpp
View file @
1e4659bb
...
...
@@ -149,7 +149,9 @@ bool WinEDA_GerberFrame::Read_GERBER_File( wxDC* DC,
gerber_layer
->
m_FileName
=
GERBER_FullFileName
;
wxSetWorkingDirectory
(
wxPathOnly
(
GERBER_FullFileName
)
);
wxString
path
=
wxPathOnly
(
GERBER_FullFileName
);
if
(
path
!=
wxEmptyString
)
wxSetWorkingDirectory
(
path
);
wxBusyCursor
show_wait
;
setlocale
(
LC_NUMERIC
,
"C"
);
...
...
This diff is collapsed.
Click to expand it.
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