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
a287b16f
Commit
a287b16f
authored
Oct 22, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MsgPanel when saving fix
parent
13a847d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
files.cpp
pcbnew/files.cpp
+17
-11
No files found.
pcbnew/files.cpp
View file @
a287b16f
...
...
@@ -253,13 +253,19 @@ bool WinEDA_PcbFrame::SavePcbFile( const wxString& FileName )
/* Sauvegarde du fichier PCB en format ASCII
*/
{
wxString
old_name
,
FullFileName
,
msg
;
bool
saveok
=
TRUE
;
FILE
*
dest
;
wxString
old_name
;
wxString
FullFileName
;
wxString
upperTxt
;
wxString
lowerTxt
;
wxString
msg
;
bool
saveok
=
TRUE
;
FILE
*
dest
;
if
(
FileName
==
wxEmptyString
)
{
msg
=
wxT
(
"*"
)
+
PcbExtBuffer
;
FullFileName
=
EDA_FileSelector
(
_
(
"Save board files:"
),
wxEmptyString
,
/* Chemin par defaut */
GetScreen
()
->
m_FileName
,
/* nom fichier par defaut */
...
...
@@ -271,6 +277,7 @@ bool WinEDA_PcbFrame::SavePcbFile( const wxString& FileName )
);
if
(
FullFileName
==
wxEmptyString
)
return
FALSE
;
GetScreen
()
->
m_FileName
=
FullFileName
;
}
else
...
...
@@ -321,9 +328,7 @@ bool WinEDA_PcbFrame::SavePcbFile( const wxString& FileName )
GetScreen
()
->
m_FileName
=
FullFileName
;
SetTitle
(
GetScreen
()
->
m_FileName
);
SavePcbFormatAscii
(
dest
);
fclose
(
dest
);
}
...
...
@@ -332,18 +337,19 @@ bool WinEDA_PcbFrame::SavePcbFile( const wxString& FileName )
if
(
saveok
)
{
msg
=
_
(
"Backup file: "
)
+
old_name
;
Affiche_1_Parametre
(
this
,
1
,
msg
,
wxEmptyString
,
CYAN
);
upperTxt
=
_
(
"Backup file: "
)
+
old_name
;
}
if
(
dest
)
msg
=
_
(
"Write B
oard file: "
);
lowerTxt
=
_
(
"Wrote b
oard file: "
);
else
msg
=
_
(
"Failed to create "
);
msg
+=
FullFileName
;
lowerTxt
=
_
(
"Failed to create "
);
lowerTxt
+=
FullFileName
;
Affiche_1_Parametre
(
this
,
1
,
wxEmptyString
,
msg
,
CYAN
);
Affiche_1_Parametre
(
this
,
1
,
upperTxt
,
lowerTxt
,
CYAN
);
g_SaveTime
=
time
(
NULL
);
/* Reset delai pour sauvegarde automatique */
GetScreen
()
->
ClrModify
();
return
TRUE
;
}
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