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
aa541fcb
Commit
aa541fcb
authored
Feb 15, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed: bug 2602865 (change module crashes pcbnew)
parent
c0b31f92
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5671 additions
and
5711 deletions
+5671
-5711
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+5646
-5686
xchgmod.cpp
pcbnew/xchgmod.cpp
+25
-25
No files found.
internat/fr/kicad.mo
View file @
aa541fcb
No preview for this file type
internat/fr/kicad.po
View file @
aa541fcb
This source diff could not be displayed because it is too large. You can
view the blob
instead.
pcbnew/xchgmod.cpp
View file @
aa541fcb
...
...
@@ -327,7 +327,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleId( wxCommandEvent& event )
*/
{
wxString
msg
;
MODULE
*
Pt
Module
,
*
PtBack
;
MODULE
*
Module
,
*
PtBack
;
bool
change
=
FALSE
;
wxString
newmodulename
=
m_NewModule
->
GetValue
();
wxString
value
,
lib_reference
;
// pour memo Reflib et value de reference
...
...
@@ -362,26 +362,26 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleId( wxCommandEvent& event )
* Change_1_Module() modifie le dernier module de la liste
*/
Pt
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
for
(
;
PtModule
!=
NULL
;
PtModule
=
Pt
Module
->
Next
()
)
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
for
(
;
Module
!=
NULL
;
Module
=
Module
->
Next
()
)
{
if
(
Pt
Module
->
Next
()
==
NULL
)
if
(
Module
->
Next
()
==
NULL
)
break
;
}
/* Ici
Pt
Module pointe le dernier module de la liste */
for
(
;
(
BOARD
*
)
PtModule
!=
m_Parent
->
GetBoard
();
Pt
Module
=
PtBack
)
/* Ici Module pointe le dernier module de la liste */
for
(
;
Module
&&
((
BOARD
*
)
Module
!=
m_Parent
->
GetBoard
());
Module
=
PtBack
)
{
MODULE
*
module
;
PtBack
=
Pt
Module
->
Back
();
if
(
lib_reference
.
CmpNoCase
(
Pt
Module
->
m_LibRef
)
!=
0
)
PtBack
=
Module
->
Back
();
if
(
lib_reference
.
CmpNoCase
(
Module
->
m_LibRef
)
!=
0
)
continue
;
if
(
check_module_value
)
{
if
(
value
.
CmpNoCase
(
Pt
Module
->
m_Value
->
m_Text
)
!=
0
)
if
(
value
.
CmpNoCase
(
Module
->
m_Value
->
m_Text
)
!=
0
)
continue
;
}
module
=
Change_1_Module
(
Pt
Module
,
newmodulename
.
GetData
(),
ShowErr
);
module
=
Change_1_Module
(
Module
,
newmodulename
.
GetData
(),
ShowErr
);
if
(
module
)
change
=
TRUE
;
else
if
(
ShowErr
)
...
...
@@ -408,7 +408,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
* - memes netnames pour pads de meme nom
*/
{
MODULE
*
Pt
Module
,
*
PtBack
;
MODULE
*
Module
,
*
PtBack
;
bool
change
=
FALSE
;
int
ShowErr
=
5
;
// Affiche 5 messages d'err maxi
...
...
@@ -422,18 +422,18 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
* Change_1_Module() modifie le dernier module de la liste
*/
Pt
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
for
(
;
PtModule
!=
NULL
;
PtModule
=
Pt
Module
->
Next
()
)
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
for
(
;
Module
!=
NULL
;
Module
=
Module
->
Next
()
)
{
if
(
Pt
Module
->
Next
()
==
NULL
)
if
(
Module
->
Next
()
==
NULL
)
break
;
}
/* Ici
Pt
Module pointe le dernier module de la liste */
for
(
;
(
BOARD
*
)
PtModule
!=
m_Parent
->
GetBoard
();
Pt
Module
=
PtBack
)
/* Ici Module pointe le dernier module de la liste */
for
(
;
Module
&&
((
BOARD
*
)
Module
!=
m_Parent
->
GetBoard
());
Module
=
PtBack
)
{
PtBack
=
Pt
Module
->
Back
();
if
(
Change_1_Module
(
PtModule
,
Pt
Module
->
m_LibRef
.
GetData
(),
ShowErr
)
)
PtBack
=
Module
->
Back
();
if
(
Change_1_Module
(
Module
,
Module
->
m_LibRef
.
GetData
(),
ShowErr
)
)
change
=
TRUE
;
else
if
(
ShowErr
)
ShowErr
--
;
...
...
@@ -448,7 +448,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
/******************************************************************/
MODULE
*
WinEDA_ExchangeModuleFrame
::
Change_1_Module
(
MODULE
*
Pt
Module
,
MODULE
*
WinEDA_ExchangeModuleFrame
::
Change_1_Module
(
MODULE
*
Module
,
const
wxString
&
new_module
,
bool
ShowError
)
/*******************************************************************/
...
...
@@ -467,18 +467,18 @@ MODULE* WinEDA_ExchangeModuleFrame::Change_1_Module( MODULE* PtModule,
MODULE
*
NewModule
;
wxString
Line
;
if
(
Pt
Module
==
NULL
)
if
(
Module
==
NULL
)
return
NULL
;
wxBusyCursor
dummy
;
/* Memorisation des parametres utiles de l'ancien module */
oldnamecmp
=
Pt
Module
->
m_LibRef
;
oldnamecmp
=
Module
->
m_LibRef
;
namecmp
=
new_module
;
/* Chargement du module */
Line
.
Printf
(
_
(
"Change module %s (%s) "
),
Pt
Module
->
m_Reference
->
m_Text
.
GetData
(),
oldnamecmp
.
GetData
()
);
Module
->
m_Reference
->
m_Text
.
GetData
(),
oldnamecmp
.
GetData
()
);
m_WinMsg
->
WriteText
(
Line
);
namecmp
.
Trim
(
TRUE
);
...
...
@@ -490,14 +490,14 @@ MODULE* WinEDA_ExchangeModuleFrame::Change_1_Module( MODULE* PtModule,
return
NULL
;
}
if
(
Pt
Module
==
m_CurrentModule
)
if
(
Module
==
m_CurrentModule
)
m_CurrentModule
=
NewModule
;
m_WinMsg
->
WriteText
(
wxT
(
"Ok
\n
"
)
);
/* Effacement a l'ecran de l'ancien module */
Pt
Module
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_XOR
);
Module
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_XOR
);
m_Parent
->
Exchange_Module
(
this
,
Pt
Module
,
NewModule
);
m_Parent
->
Exchange_Module
(
this
,
Module
,
NewModule
);
/* Affichage du nouveau module */
NewModule
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
...
...
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