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
b3fd915f
Commit
b3fd915f
authored
May 30, 2012
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add translation to static file filters, comments
parent
b68fa7cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
wildcards_and_files_ext.cpp
common/wildcards_and_files_ext.cpp
+1
-1
files.cpp
pcbnew/files.cpp
+6
-2
No files found.
common/wildcards_and_files_ext.cpp
View file @
b3fd915f
...
@@ -55,7 +55,7 @@ const wxString SchematicFileWildcard( _( "KiCad schematic files (*.sch)|*.sch" )
...
@@ -55,7 +55,7 @@ const wxString SchematicFileWildcard( _( "KiCad schematic files (*.sch)|*.sch" )
const
wxString
NetlistFileWildcard
(
_
(
"KiCad netlist files (*.net)|*.net"
)
);
const
wxString
NetlistFileWildcard
(
_
(
"KiCad netlist files (*.net)|*.net"
)
);
const
wxString
GerberFileWildcard
(
_
(
"Gerber files (*.pho)|*.pho"
)
);
const
wxString
GerberFileWildcard
(
_
(
"Gerber files (*.pho)|*.pho"
)
);
const
wxString
LegacyPcbFileWildcard
(
_
(
"KiCad printed circuit board files (*.brd)|*.brd"
)
);
const
wxString
LegacyPcbFileWildcard
(
_
(
"KiCad printed circuit board files (*.brd)|*.brd"
)
);
const
wxString
EaglePcbFileWildcard
(
_
(
"Eagle
printed circuit board
files (*.brd)|*.brd"
)
);
const
wxString
EaglePcbFileWildcard
(
_
(
"Eagle
ver. 6.x XML PCB
files (*.brd)|*.brd"
)
);
const
wxString
PcbFileWildcard
(
_
(
"KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb"
)
);
const
wxString
PcbFileWildcard
(
_
(
"KiCad s-expr printed circuit board files (*.kicad_pcb)|*.kicad_pcb"
)
);
const
wxString
FootprintLibFileWildcard
(
_
(
"KiCad footprint library file (*.mod)|*.mod"
)
);
const
wxString
FootprintLibFileWildcard
(
_
(
"KiCad footprint library file (*.mod)|*.mod"
)
);
const
wxString
PdfFileWildcard
(
_
(
"Portable document format files (*.pdf)|*.pdf"
)
);
const
wxString
PdfFileWildcard
(
_
(
"Portable document format files (*.pdf)|*.pdf"
)
);
...
...
pcbnew/files.cpp
View file @
b3fd915f
...
@@ -172,6 +172,10 @@ the changes?" ) ) )
...
@@ -172,6 +172,10 @@ the changes?" ) ) )
IO_MGR
::
PCB_FILE_T
pluginType
=
IO_MGR
::
LEGACY
;
IO_MGR
::
PCB_FILE_T
pluginType
=
IO_MGR
::
LEGACY
;
// This is a subset of all PLUGINs which are trusted to be able to
// load a BOARD. Order is subject to change as KICAD plugin matures.
// User may occasionally use the wrong pluging to load a *.brd file,
// but eventually *.kicad_pcb will be more common than legacy *.brd files.
static
const
struct
{
static
const
struct
{
const
wxString
&
filter
;
const
wxString
&
filter
;
IO_MGR
::
PCB_FILE_T
pluginType
;
IO_MGR
::
PCB_FILE_T
pluginType
;
...
@@ -187,12 +191,12 @@ the changes?" ) ) )
...
@@ -187,12 +191,12 @@ the changes?" ) ) )
wxString
path
=
wxGetCwd
();
wxString
path
=
wxGetCwd
();
wxString
fileFilters
;
wxString
fileFilters
;
for
(
unsigned
i
=
0
;
i
<
DIM
(
loaders
);
++
i
)
for
(
unsigned
i
=
0
;
i
<
DIM
(
loaders
);
++
i
)
{
{
if
(
i
>
0
)
if
(
i
>
0
)
fileFilters
+=
wxChar
(
'|'
);
fileFilters
+=
wxChar
(
'|'
);
fileFilters
+=
loaders
[
i
].
filter
;
fileFilters
+=
wxGetTranslation
(
loaders
[
i
].
filter
)
;
}
}
if
(
aForceFileDialog
&&
fileName
.
FileExists
()
)
if
(
aForceFileDialog
&&
fileName
.
FileExists
()
)
...
...
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