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
ef0f1fcd
Commit
ef0f1fcd
authored
Jul 22, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcbnew: in append board function: new board name set to <oldboardname>-append.brd
parent
a75998a1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
5 deletions
+13
-5
files.cpp
pcbnew/files.cpp
+13
-5
No files found.
pcbnew/files.cpp
View file @
ef0f1fcd
...
@@ -210,9 +210,6 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append )
...
@@ -210,9 +210,6 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append )
DisplayInfo
(
this
,
_
(
"This file was created by an older version of PCBnew. It will be stored in the new file format when you save this file again."
));
DisplayInfo
(
this
,
_
(
"This file was created by an older version of PCBnew. It will be stored in the new file format when you save this file again."
));
}
}
SetTitle
(
GetScreen
()
->
m_FileName
);
SetLastProject
(
GetScreen
()
->
m_FileName
);
// Reload the corresponding configuration file:
// Reload the corresponding configuration file:
wxSetWorkingDirectory
(
wxPathOnly
(
GetScreen
()
->
m_FileName
)
);
wxSetWorkingDirectory
(
wxPathOnly
(
GetScreen
()
->
m_FileName
)
);
if
(
Append
)
if
(
Append
)
...
@@ -234,13 +231,24 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append )
...
@@ -234,13 +231,24 @@ int WinEDA_PcbFrame::LoadOnePcbFile( const wxString& FullFileName, bool Append )
GetScreen
()
->
ClrModify
();
GetScreen
()
->
ClrModify
();
/* If append option: change the initial board name to <oldname>-append.brd */
if
(
Append
)
if
(
Append
)
{
{
wxString
new_filename
=
GetScreen
()
->
m_FileName
.
BeforeLast
(
'.'
);
if
(
!
new_filename
.
EndsWith
(
wxT
(
"-append"
))
)
new_filename
+=
wxT
(
"-append"
);
new_filename
+=
PcbExtBuffer
;
GetScreen
()
->
SetModify
();
GetScreen
()
->
SetModify
();
GetScreen
()
->
m_FileName
.
Printf
(
wxT
(
"%s%cboard_append%s"
),
GetScreen
()
->
m_FileName
=
new_filename
;
wxGetCwd
().
GetData
(),
DIR_SEP
,
PcbExtBuffer
.
GetData
()
);
}
}
GetScreen
()
->
m_FileName
.
Replace
(
WIN_STRING_DIR_SEP
,
UNIX_STRING_DIR_SEP
);
SetTitle
(
GetScreen
()
->
m_FileName
);
SetLastProject
(
GetScreen
()
->
m_FileName
);
/* Rebuild the new pad list (for drc and ratsnet control ...) */
/* Rebuild the new pad list (for drc and ratsnet control ...) */
build_liste_pads
();
build_liste_pads
();
...
...
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