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
0750a215
Commit
0750a215
authored
Apr 09, 2008
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed bug: forgotten paths when adding lib files when not in the default lib path
parent
03569ca1
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1291 additions
and
1296 deletions
+1291
-1296
change_log.txt
change_log.txt
+8
-0
component_class.h
eeschema/component_class.h
+14
-13
dialog_eeschema_config.cpp
eeschema/dialog_eeschema_config.cpp
+12
-12
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+1257
-1271
No files found.
change_log.txt
View file @
0750a215
...
@@ -5,6 +5,14 @@ Started 2007-June-11
...
@@ -5,6 +5,14 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
Please add newer entries at the top, list the date and your name with
email address.
email address.
2008-Apr-09 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+eeschema
removed bug: forgotten paths when adding lib files when not in the default lib path
Also: adding SCH_COMPONENT.m_PartPerPackageSelections to handle multiple parts per package selection
in a complex hierarchy, but yet, no other code to do that.
2008-Mar-30 UPDATE Jonas Diemer <diemer-at-gmx.de>
2008-Mar-30 UPDATE Jonas Diemer <diemer-at-gmx.de>
================================================================================
================================================================================
+eeschema
+eeschema
...
...
eeschema/component_class.h
View file @
0750a215
...
@@ -37,8 +37,8 @@ enum NumFieldType {
...
@@ -37,8 +37,8 @@ enum NumFieldType {
* component fields are texts attached to the component (not the graphic texts)
* component fields are texts attached to the component (not the graphic texts)
* There are 2 major fields : Reference and Value
* There are 2 major fields : Reference and Value
*/
*/
class
PartTextStruct
:
public
EDA_BaseStruct
class
PartTextStruct
:
public
EDA_BaseStruct
,
,
public
EDA_TextStruct
public
EDA_TextStruct
{
{
public
:
public
:
int
m_Layer
;
int
m_Layer
;
...
@@ -74,7 +74,7 @@ WX_DECLARE_OBJARRAY( DrawSheetPath, ArrayOfSheetLists );
...
@@ -74,7 +74,7 @@ WX_DECLARE_OBJARRAY( DrawSheetPath, ArrayOfSheetLists );
class
SCH_COMPONENT
:
public
SCH_ITEM
class
SCH_COMPONENT
:
public
SCH_ITEM
{
{
public
:
public
:
int
m_Multi
;
/* In multi unit chip - which unit to draw. */
int
m_Multi
;
/* In multi unit chip - which unit to draw. */
wxPoint
m_Pos
;
wxPoint
m_Pos
;
...
@@ -83,13 +83,14 @@ public:
...
@@ -83,13 +83,14 @@ public:
//int m_FlagControlMulti;
//int m_FlagControlMulti;
ArrayOfSheetLists
m_UsedOnSheets
;
ArrayOfSheetLists
m_UsedOnSheets
;
int
m_Convert
;
/* Gestion (management) des mutiples representations (ex: conversion De Morgan) */
int
m_Convert
;
/* Gestion (management) des mutiples representations (ex: conversion De Morgan) */
int
m_Transform
[
2
][
2
];
/* The rotation/mirror transformation matrix. */
int
m_Transform
[
2
][
2
];
/* The rotation/mirror transformation matrix. */
bool
*
m_PinIsDangling
;
// liste des indicateurs de pin non connectee
bool
*
m_PinIsDangling
;
// liste des indicateurs de pin non connectee
wxArrayString
m_Paths
;
// /sheet1/C102, /sh2/sh1/U32 etc.
wxArrayString
m_Paths
;
// /sheet1/C102, /sh2/sh1/U32 etc.
wxArrayString
m_References
;
// C102, U32 etc.
wxArrayString
m_References
;
// C102, U32 etc.
wxString
m_PrefixString
;
/*C, R, U, Q etc - the first character which typically indicates what the component is.
wxArrayString
m_PartPerPackageSelections
;
// "1", "2" etc. when a component has more than 1 partper package
wxString
m_PrefixString
;
/* C, R, U, Q etc - the first character which typically indicates what the component is.
* determined, upon placement, from the library component.
* determined, upon placement, from the library component.
* determined, upon file load, by the first non-digits in the reference fields. */
* determined, upon file load, by the first non-digits in the reference fields. */
...
@@ -103,7 +104,7 @@ public:
...
@@ -103,7 +104,7 @@ public:
}
}
SCH_COMPONENT
*
GenCopy
();
SCH_COMPONENT
*
GenCopy
();
void
SetRotationMiroir
(
int
type
);
void
SetRotationMiroir
(
int
type
);
int
GetRotationMiroir
();
int
GetRotationMiroir
();
wxPoint
GetScreenCoord
(
const
wxPoint
&
coord
);
wxPoint
GetScreenCoord
(
const
wxPoint
&
coord
);
...
@@ -112,7 +113,7 @@ public:
...
@@ -112,7 +113,7 @@ public:
EDA_Rect
GetBoundaryBox
()
const
;
EDA_Rect
GetBoundaryBox
()
const
;
EDA_Rect
GetBoundingBox
();
EDA_Rect
GetBoundingBox
();
const
wxString
&
ReturnFieldName
(
int
aFieldNdx
)
const
;
const
wxString
&
ReturnFieldName
(
int
aFieldNdx
)
const
;
/**
/**
...
@@ -121,7 +122,7 @@ public:
...
@@ -121,7 +122,7 @@ public:
* @param aFieldNdx An index into the array of fields, 0 - FIELD8
* @param aFieldNdx An index into the array of fields, 0 - FIELD8
* @return const wxString& - the field value or wxEmptyString
* @return const wxString& - the field value or wxEmptyString
*/
*/
const
wxString
&
GetFieldValue
(
int
aFieldNdx
)
const
;
const
wxString
&
GetFieldValue
(
int
aFieldNdx
)
const
;
virtual
void
Draw
(
WinEDA_DrawPanel
*
panel
,
virtual
void
Draw
(
WinEDA_DrawPanel
*
panel
,
...
...
eeschema/dialog_eeschema_config.cpp
View file @
0750a215
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Name: dialog_eeschema_config.cpp
// Name: dialog_eeschema_config.cpp
// Purpose:
// Purpose:
// Author: jean-pierre Charras
// Author: jean-pierre Charras
// Modified by:
// Modified by:
// Created: 17/02/2006 21:14:46
// Created: 17/02/2006 21:14:46
// RCS-ID:
// RCS-ID:
// Copyright: License GNU
// Copyright: License GNU
// Licence:
// Licence:
/////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////
// Generated by DialogBlocks (unregistered), 17/02/2006 21:14:46
// Generated by DialogBlocks (unregistered), 17/02/2006 21:14:46
...
@@ -103,7 +103,7 @@ wxString msg;
...
@@ -103,7 +103,7 @@ wxString msg;
m_LibListChanged
=
FALSE
;
m_LibListChanged
=
FALSE
;
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
Create
(
parent
,
id
,
caption
,
pos
,
size
,
style
);
msg
=
_
(
"from "
)
+
g_EDA_Appl
->
m_CurrentOptionFile
;
msg
=
_
(
"from "
)
+
g_EDA_Appl
->
m_CurrentOptionFile
;
SetTitle
(
msg
);
SetTitle
(
msg
);
SetFormatsNetListes
();
SetFormatsNetListes
();
...
@@ -143,7 +143,7 @@ bool KiConfigEeschemaFrame::Create( wxWindow* parent, wxWindowID id, const wxStr
...
@@ -143,7 +143,7 @@ bool KiConfigEeschemaFrame::Create( wxWindow* parent, wxWindowID id, const wxStr
*/
*/
void
KiConfigEeschemaFrame
::
CreateControls
()
void
KiConfigEeschemaFrame
::
CreateControls
()
{
{
SetFont
(
*
g_DialogFont
);
SetFont
(
*
g_DialogFont
);
////@begin KiConfigEeschemaFrame content construction
////@begin KiConfigEeschemaFrame content construction
...
@@ -254,7 +254,7 @@ wxString msg = _("Cmp file Ext: ") + g_NetCmpExtBuffer;
...
@@ -254,7 +254,7 @@ wxString msg = _("Cmp file Ext: ") + g_NetCmpExtBuffer;
msg
=
_
(
"Schematic file Ext: "
)
+
g_SchExtBuffer
;
msg
=
_
(
"Schematic file Ext: "
)
+
g_SchExtBuffer
;
text
=
new
wxStaticText
(
itemDialog1
,
-
1
,
msg
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
text
=
new
wxStaticText
(
itemDialog1
,
-
1
,
msg
,
wxDefaultPosition
,
wxDefaultSize
,
0
);
m_FileExtList
->
Add
(
text
,
0
,
wxALIGN_LEFT
|
wxLEFT
|
wxRIGHT
|
wxADJUST_MINSIZE
,
5
);
m_FileExtList
->
Add
(
text
,
0
,
wxALIGN_LEFT
|
wxLEFT
|
wxRIGHT
|
wxADJUST_MINSIZE
,
5
);
wxArrayString
NetlistNameItems
;
wxArrayString
NetlistNameItems
;
NetlistNameItems
.
Add
(
wxT
(
"Pcbnew"
));
NetlistNameItems
.
Add
(
wxT
(
"Pcbnew"
));
NetlistNameItems
.
Add
(
wxT
(
"OrcadPcb2"
));
NetlistNameItems
.
Add
(
wxT
(
"OrcadPcb2"
));
...
@@ -366,15 +366,15 @@ wxString FullLibName,ShortLibName, Mask;
...
@@ -366,15 +366,15 @@ wxString FullLibName,ShortLibName, Mask;
}
}
Mask
=
wxT
(
"*"
)
+
g_LibExtBuffer
;
Mask
=
wxT
(
"*"
)
+
g_LibExtBuffer
;
wxFileDialog
FilesDialog
(
this
,
_
(
"Library files:"
),
g_RealLibDirBuffer
,
wxFileDialog
FilesDialog
(
this
,
_
(
"Library files:"
),
g_RealLibDirBuffer
,
wxEmptyString
,
Mask
,
wxEmptyString
,
Mask
,
wxFD_DEFAULT_STYLE
|
wxFD_MULTIPLE
);
wxFD_DEFAULT_STYLE
|
wxFD_MULTIPLE
);
FilesDialog
.
ShowModal
();
FilesDialog
.
ShowModal
();
wxArrayString
Filenames
;
wxArrayString
Filenames
;
FilesDialog
.
Get
Filename
s
(
Filenames
);
FilesDialog
.
Get
Path
s
(
Filenames
);
for
(
unsigned
jj
=
0
;
jj
<
Filenames
.
GetCount
();
jj
++
)
for
(
unsigned
jj
=
0
;
jj
<
Filenames
.
GetCount
();
jj
++
)
{
{
FullLibName
=
Filenames
[
jj
];
FullLibName
=
Filenames
[
jj
];
...
@@ -468,7 +468,7 @@ void KiConfigEeschemaFrame::OnSaveCfgClick( wxCommandEvent& event )
...
@@ -468,7 +468,7 @@ void KiConfigEeschemaFrame::OnSaveCfgClick( wxCommandEvent& event )
void
KiConfigEeschemaFrame
::
OnLibPathSelClick
(
wxCommandEvent
&
event
)
void
KiConfigEeschemaFrame
::
OnLibPathSelClick
(
wxCommandEvent
&
event
)
{
{
wxString
path
=
g_RealLibDirBuffer
;
wxString
path
=
g_RealLibDirBuffer
;
bool
select
=
EDA_DirectorySelector
(
_
(
" Default Path for libraries"
),
/* Titre de la fenetre */
bool
select
=
EDA_DirectorySelector
(
_
(
" Default Path for libraries"
),
/* Titre de la fenetre */
path
,
/* Chemin par defaut */
path
,
/* Chemin par defaut */
wxDD_DEFAULT_STYLE
,
wxDD_DEFAULT_STYLE
,
...
@@ -476,7 +476,7 @@ bool select = EDA_DirectorySelector(_(" Default Path for libraries"), /* Titre
...
@@ -476,7 +476,7 @@ bool select = EDA_DirectorySelector(_(" Default Path for libraries"), /* Titre
wxDefaultPosition
);
wxDefaultPosition
);
if
(
!
select
)
return
;
if
(
!
select
)
return
;
m_LibDirCtrl
->
SetValue
(
path
);
m_LibDirCtrl
->
SetValue
(
path
);
}
}
...
...
internat/fr/kicad.mo
View file @
0750a215
No preview for this file type
internat/fr/kicad.po
View file @
0750a215
This diff is collapsed.
Click to expand it.
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