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
638decaf
Commit
638decaf
authored
Feb 01, 2013
by
Jacobo Aragunde Perez
Committed by
jean-pierre charras
Feb 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit fixes for bugs #1108773 and #1110651 and a bug fix improvement for #1101718 and #1102381.
parent
85562b45
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
9 deletions
+25
-9
files-io.cpp
eeschema/files-io.cpp
+4
-0
libarch.cpp
eeschema/libarch.cpp
+1
-4
schframe.cpp
eeschema/schframe.cpp
+1
-2
prjconfig.cpp
kicad/prjconfig.cpp
+19
-3
No files found.
eeschema/files-io.cpp
View file @
638decaf
...
...
@@ -174,6 +174,8 @@ void SCH_EDIT_FRAME::Save_File( wxCommandEvent& event )
}
break
;
}
UpdateTitle
();
}
...
...
@@ -477,6 +479,8 @@ void SCH_EDIT_FRAME::OnSaveProject( wxCommandEvent& aEvent )
SaveEEFile
(
screen
);
CreateArchiveLibraryCacheFile
();
UpdateTitle
();
}
...
...
eeschema/libarch.cpp
View file @
638decaf
...
...
@@ -46,10 +46,7 @@
bool
SCH_EDIT_FRAME
::
CreateArchiveLibraryCacheFile
()
{
wxFileName
fn
;
SCH_SCREENS
ScreenList
;
fn
=
ScreenList
.
GetFirst
()
->
GetFileName
();
wxFileName
fn
=
GetScreen
()
->
GetFileName
();
fn
.
SetName
(
fn
.
GetName
()
+
wxT
(
"-cache"
)
);
fn
.
SetExt
(
SchematicLibraryFileExtension
);
...
...
eeschema/schframe.cpp
View file @
638decaf
...
...
@@ -514,8 +514,7 @@ double SCH_EDIT_FRAME::BestZoom()
wxString
SCH_EDIT_FRAME
::
GetUniqueFilenameForCurrentSheet
()
{
SCH_SCREENS
ScreenList
;
wxFileName
fn
=
ScreenList
.
GetFirst
()
->
GetFileName
();
wxFileName
fn
=
GetScreen
()
->
GetFileName
();
#ifndef KICAD_GOST
wxString
filename
=
fn
.
GetName
();
...
...
kicad/prjconfig.cpp
View file @
638decaf
...
...
@@ -39,6 +39,7 @@
#include <vector>
#include <build_version.h>
#include <wx/dir.h>
#include <wx/filename.h>
#include <wx/stdpaths.h>
...
...
@@ -177,10 +178,25 @@ void KICAD_MANAGER_FRAME::OnLoadProject( wxCommandEvent& event )
if
(
newProject
)
{
if
(
!
m_ProjectFileName
.
GetFullPath
().
EndsWith
(
g_KicadPrjFilenameExtension
)
)
m_ProjectFileName
.
SetExt
(
ProjectFileExtension
);
// Check if the project directory is empty
wxDir
directory
(
m_ProjectFileName
.
GetPath
()
);
if
(
directory
.
HasFiles
()
)
{
m_ProjectFileName
.
SetFullName
(
m_ProjectFileName
.
GetFullPath
()
+
g_KicadPrjFilenameExtension
);
wxString
msg
=
_
(
"The selected directory is not empty. "
"We recommend you create projects in their own clean directory.
\n\n
"
"Do you want to create a new empty directory for the project?"
);
if
(
IsOK
(
this
,
msg
)
)
{
// Append a new directory with the same name of the project file
// and try to create it
m_ProjectFileName
.
AppendDir
(
m_ProjectFileName
.
GetName
()
);
if
(
!
wxMkdir
(
m_ProjectFileName
.
GetPath
()
)
)
// There was a problem, undo
m_ProjectFileName
.
RemoveLastDir
();
}
}
if
(
event
.
GetId
()
==
ID_NEW_PROJECT
)
...
...
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