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
79139b65
Commit
79139b65
authored
May 29, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed bugs 587176 and 587175
parent
4a11fb36
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
edit_component_in_schematic.cpp
eeschema/edit_component_in_schematic.cpp
+1
-0
kicad.cpp
kicad/kicad.cpp
+1
-0
kicad.h
kicad/kicad.h
+2
-0
prjconfig.cpp
kicad/prjconfig.cpp
+11
-2
tree_project_frame.cpp
kicad/tree_project_frame.cpp
+1
-1
No files found.
eeschema/edit_component_in_schematic.cpp
View file @
79139b65
...
@@ -369,6 +369,7 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
...
@@ -369,6 +369,7 @@ void WinEDA_SchematicFrame::EditComponentFootprint( SCH_COMPONENT* Cmp, wxDC* DC
return
;
return
;
SCH_FIELD
*
TextField
=
Cmp
->
GetField
(
FOOTPRINT
);
SCH_FIELD
*
TextField
=
Cmp
->
GetField
(
FOOTPRINT
);
message
=
TextField
->
m_Text
;
if
(
Get_Message
(
_
(
"Footprint"
),
_
(
"Component footprint"
),
message
,
this
)
)
if
(
Get_Message
(
_
(
"Footprint"
),
_
(
"Component footprint"
),
message
,
this
)
)
return
;
// edition cancelled by user.
return
;
// edition cancelled by user.
...
...
kicad/kicad.cpp
View file @
79139b65
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include "build_version.h"
#include "build_version.h"
const
wxString
g_KicadPrjFilenameExtension
(
wxT
(
".pro"
)
);
/* Import functions */
/* Import functions */
char
*
GetFileName
(
char
*
FullPathName
);
char
*
GetFileName
(
char
*
FullPathName
);
...
...
kicad/kicad.h
View file @
79139b65
...
@@ -15,6 +15,8 @@
...
@@ -15,6 +15,8 @@
#include "wxstruct.h"
#include "wxstruct.h"
#include "appl_wxstruct.h"
#include "appl_wxstruct.h"
extern
const
wxString
g_KicadPrjFilenameExtension
;
class
RIGHT_KM_FRAME
;
class
RIGHT_KM_FRAME
;
class
TREEPROJECTFILES
;
class
TREEPROJECTFILES
;
class
TREE_PROJECT_FRAME
;
class
TREE_PROJECT_FRAME
;
...
...
kicad/prjconfig.cpp
View file @
79139b65
...
@@ -27,7 +27,7 @@ void WinEDA_MainFrame::CreateNewProject( const wxString PrjFullFileName )
...
@@ -27,7 +27,7 @@ void WinEDA_MainFrame::CreateNewProject( const wxString PrjFullFileName )
wxFileName
newProjectName
=
PrjFullFileName
;
wxFileName
newProjectName
=
PrjFullFileName
;
/* Init default config filename */
/* Init default config filename */
filename
=
wxGetApp
().
FindLibraryPath
(
wxT
(
"kicad
.pro"
)
);
filename
=
wxGetApp
().
FindLibraryPath
(
wxT
(
"kicad
"
)
+
g_KicadPrjFilenameExtension
);
/* Check if file kicad.pro exist in template directory */
/* Check if file kicad.pro exist in template directory */
if
(
wxFileName
::
FileExists
(
filename
)
)
if
(
wxFileName
::
FileExists
(
filename
)
)
...
@@ -86,7 +86,16 @@ void WinEDA_MainFrame::OnLoadProject( wxCommandEvent& event )
...
@@ -86,7 +86,16 @@ void WinEDA_MainFrame::OnLoadProject( wxCommandEvent& event )
m_ProjectFileName
=
dlg
.
GetPath
();
m_ProjectFileName
=
dlg
.
GetPath
();
if
(
event
.
GetId
()
==
ID_NEW_PROJECT
)
if
(
event
.
GetId
()
==
ID_NEW_PROJECT
)
{
// Ensure project filename extension is .pro
wxString
fullname
=
m_ProjectFileName
.
GetFullPath
();
if
(
!
fullname
.
EndsWith
(
g_KicadPrjFilenameExtension
)
)
{
fullname
+=
g_KicadPrjFilenameExtension
;
m_ProjectFileName
.
SetFullName
(
fullname
);
}
CreateNewProject
(
m_ProjectFileName
.
GetFullPath
()
);
CreateNewProject
(
m_ProjectFileName
.
GetFullPath
()
);
}
SetLastProject
(
m_ProjectFileName
.
GetFullPath
()
);
SetLastProject
(
m_ProjectFileName
.
GetFullPath
()
);
}
}
...
@@ -98,7 +107,7 @@ void WinEDA_MainFrame::OnLoadProject( wxCommandEvent& event )
...
@@ -98,7 +107,7 @@ void WinEDA_MainFrame::OnLoadProject( wxCommandEvent& event )
wxString
filename
=
m_ProjectFileName
.
GetFullName
();
wxString
filename
=
m_ProjectFileName
.
GetFullName
();
wxString
nameless_prj
=
NAMELESS_PROJECT
;
wxString
nameless_prj
=
NAMELESS_PROJECT
;
nameless_prj
+=
wxT
(
".pro"
)
;
nameless_prj
+=
g_KicadPrjFilenameExtension
;
if
(
!
m_ProjectFileName
.
FileExists
()
&&
!
filename
.
IsSameAs
(
nameless_prj
))
if
(
!
m_ProjectFileName
.
FileExists
()
&&
!
filename
.
IsSameAs
(
nameless_prj
))
{
{
DisplayError
(
this
,
_
(
"Kicad project file <"
)
+
DisplayError
(
this
,
_
(
"Kicad project file <"
)
+
...
...
kicad/tree_project_frame.cpp
View file @
79139b65
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
/* Note about the tree project build process:
/* Note about the tree project build process:
* Building the tree project can be *very* long if there are a lot of subdirectories
* Building the tree project can be *very* long if there are a lot of subdirectories
* in the working directory.
* in the working directory.
* Unfornately, this happens easily if the project file *.pro is in the home directory
* Unfor
tu
nately, this happens easily if the project file *.pro is in the home directory
* So the tree project is built "on demand":
* So the tree project is built "on demand":
* First the tree is built from the current directory and shows files and subdirs.
* First the tree is built from the current directory and shows files and subdirs.
* > First level subdirs trees are built (i.e subdirs contents are not read)
* > First level subdirs trees are built (i.e subdirs contents are not read)
...
...
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