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
Expand all
Hide 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 diff is collapsed.
Click to expand it.
pcbnew/xchgmod.cpp
View file @
aa541fcb
...
@@ -327,7 +327,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleId( wxCommandEvent& event )
...
@@ -327,7 +327,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleId( wxCommandEvent& event )
*/
*/
{
{
wxString
msg
;
wxString
msg
;
MODULE
*
Pt
Module
,
*
PtBack
;
MODULE
*
Module
,
*
PtBack
;
bool
change
=
FALSE
;
bool
change
=
FALSE
;
wxString
newmodulename
=
m_NewModule
->
GetValue
();
wxString
newmodulename
=
m_NewModule
->
GetValue
();
wxString
value
,
lib_reference
;
// pour memo Reflib et value de reference
wxString
value
,
lib_reference
;
// pour memo Reflib et value de reference
...
@@ -362,26 +362,26 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleId( wxCommandEvent& event )
...
@@ -362,26 +362,26 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleId( wxCommandEvent& event )
* Change_1_Module() modifie le dernier module de la liste
* Change_1_Module() modifie le dernier module de la liste
*/
*/
Pt
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
for
(
;
PtModule
!=
NULL
;
PtModule
=
Pt
Module
->
Next
()
)
for
(
;
Module
!=
NULL
;
Module
=
Module
->
Next
()
)
{
{
if
(
Pt
Module
->
Next
()
==
NULL
)
if
(
Module
->
Next
()
==
NULL
)
break
;
break
;
}
}
/* Ici
Pt
Module pointe le dernier module de la liste */
/* Ici Module pointe le dernier module de la liste */
for
(
;
(
BOARD
*
)
PtModule
!=
m_Parent
->
GetBoard
();
Pt
Module
=
PtBack
)
for
(
;
Module
&&
((
BOARD
*
)
Module
!=
m_Parent
->
GetBoard
());
Module
=
PtBack
)
{
{
MODULE
*
module
;
MODULE
*
module
;
PtBack
=
Pt
Module
->
Back
();
PtBack
=
Module
->
Back
();
if
(
lib_reference
.
CmpNoCase
(
Pt
Module
->
m_LibRef
)
!=
0
)
if
(
lib_reference
.
CmpNoCase
(
Module
->
m_LibRef
)
!=
0
)
continue
;
continue
;
if
(
check_module_value
)
if
(
check_module_value
)
{
{
if
(
value
.
CmpNoCase
(
Pt
Module
->
m_Value
->
m_Text
)
!=
0
)
if
(
value
.
CmpNoCase
(
Module
->
m_Value
->
m_Text
)
!=
0
)
continue
;
continue
;
}
}
module
=
Change_1_Module
(
Pt
Module
,
newmodulename
.
GetData
(),
ShowErr
);
module
=
Change_1_Module
(
Module
,
newmodulename
.
GetData
(),
ShowErr
);
if
(
module
)
if
(
module
)
change
=
TRUE
;
change
=
TRUE
;
else
if
(
ShowErr
)
else
if
(
ShowErr
)
...
@@ -408,7 +408,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
...
@@ -408,7 +408,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
* - memes netnames pour pads de meme nom
* - memes netnames pour pads de meme nom
*/
*/
{
{
MODULE
*
Pt
Module
,
*
PtBack
;
MODULE
*
Module
,
*
PtBack
;
bool
change
=
FALSE
;
bool
change
=
FALSE
;
int
ShowErr
=
5
;
// Affiche 5 messages d'err maxi
int
ShowErr
=
5
;
// Affiche 5 messages d'err maxi
...
@@ -422,18 +422,18 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
...
@@ -422,18 +422,18 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
* Change_1_Module() modifie le dernier module de la liste
* Change_1_Module() modifie le dernier module de la liste
*/
*/
Pt
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
Module
=
m_Parent
->
GetBoard
()
->
m_Modules
;
for
(
;
PtModule
!=
NULL
;
PtModule
=
Pt
Module
->
Next
()
)
for
(
;
Module
!=
NULL
;
Module
=
Module
->
Next
()
)
{
{
if
(
Pt
Module
->
Next
()
==
NULL
)
if
(
Module
->
Next
()
==
NULL
)
break
;
break
;
}
}
/* Ici
Pt
Module pointe le dernier module de la liste */
/* Ici Module pointe le dernier module de la liste */
for
(
;
(
BOARD
*
)
PtModule
!=
m_Parent
->
GetBoard
();
Pt
Module
=
PtBack
)
for
(
;
Module
&&
((
BOARD
*
)
Module
!=
m_Parent
->
GetBoard
());
Module
=
PtBack
)
{
{
PtBack
=
Pt
Module
->
Back
();
PtBack
=
Module
->
Back
();
if
(
Change_1_Module
(
PtModule
,
Pt
Module
->
m_LibRef
.
GetData
(),
ShowErr
)
)
if
(
Change_1_Module
(
Module
,
Module
->
m_LibRef
.
GetData
(),
ShowErr
)
)
change
=
TRUE
;
change
=
TRUE
;
else
if
(
ShowErr
)
else
if
(
ShowErr
)
ShowErr
--
;
ShowErr
--
;
...
@@ -448,7 +448,7 @@ void WinEDA_ExchangeModuleFrame::Change_ModuleAll( wxCommandEvent& event )
...
@@ -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
)
const
wxString
&
new_module
,
bool
ShowError
)
/*******************************************************************/
/*******************************************************************/
...
@@ -467,18 +467,18 @@ MODULE* WinEDA_ExchangeModuleFrame::Change_1_Module( MODULE* PtModule,
...
@@ -467,18 +467,18 @@ MODULE* WinEDA_ExchangeModuleFrame::Change_1_Module( MODULE* PtModule,
MODULE
*
NewModule
;
MODULE
*
NewModule
;
wxString
Line
;
wxString
Line
;
if
(
Pt
Module
==
NULL
)
if
(
Module
==
NULL
)
return
NULL
;
return
NULL
;
wxBusyCursor
dummy
;
wxBusyCursor
dummy
;
/* Memorisation des parametres utiles de l'ancien module */
/* Memorisation des parametres utiles de l'ancien module */
oldnamecmp
=
Pt
Module
->
m_LibRef
;
oldnamecmp
=
Module
->
m_LibRef
;
namecmp
=
new_module
;
namecmp
=
new_module
;
/* Chargement du module */
/* Chargement du module */
Line
.
Printf
(
_
(
"Change module %s (%s) "
),
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
);
m_WinMsg
->
WriteText
(
Line
);
namecmp
.
Trim
(
TRUE
);
namecmp
.
Trim
(
TRUE
);
...
@@ -490,14 +490,14 @@ MODULE* WinEDA_ExchangeModuleFrame::Change_1_Module( MODULE* PtModule,
...
@@ -490,14 +490,14 @@ MODULE* WinEDA_ExchangeModuleFrame::Change_1_Module( MODULE* PtModule,
return
NULL
;
return
NULL
;
}
}
if
(
Pt
Module
==
m_CurrentModule
)
if
(
Module
==
m_CurrentModule
)
m_CurrentModule
=
NewModule
;
m_CurrentModule
=
NewModule
;
m_WinMsg
->
WriteText
(
wxT
(
"Ok
\n
"
)
);
m_WinMsg
->
WriteText
(
wxT
(
"Ok
\n
"
)
);
/* Effacement a l'ecran de l'ancien module */
/* 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 */
/* Affichage du nouveau module */
NewModule
->
Draw
(
m_Parent
->
DrawPanel
,
m_DC
,
GR_OR
);
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