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
6b8bc98d
Commit
6b8bc98d
authored
Mar 04, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed in libedit: import symbol not working.
parent
52631fc5
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
178 additions
and
965 deletions
+178
-965
libframe.cpp
eeschema/libframe.cpp
+1
-1
symbedit.cpp
eeschema/symbedit.cpp
+20
-10
wxEeschemaStruct.h
include/wxEeschemaStruct.h
+1
-1
kicad.mo
internat/fr/kicad.mo
+0
-0
kicad.po
internat/fr/kicad.po
+156
-953
No files found.
eeschema/libframe.cpp
View file @
6b8bc98d
...
...
@@ -528,7 +528,7 @@ void WinEDA_LibeditFrame::Process_Special_Functions( wxCommandEvent& event )
case
ID_LIBEDIT_IMPORT_BODY_BUTT
:
SetToolID
(
id
,
wxCURSOR_ARROW
,
_
(
"Import"
)
);
LoadOneSymbol
(
&
dc
);
LoadOneSymbol
(
);
SetToolID
(
0
,
wxCURSOR_ARROW
,
wxEmptyString
);
break
;
...
...
eeschema/symbedit.cpp
View file @
6b8bc98d
...
...
@@ -28,12 +28,13 @@ static bool CompareSymbols( LibEDA_BaseStruct* DEntryRef,
/* Variables locales */
/***********************************************
****
/
void
WinEDA_LibeditFrame
::
LoadOneSymbol
(
wxDC
*
DC
)
/***********************************************
****
/
/***********************************************/
void
WinEDA_LibeditFrame
::
LoadOneSymbol
(
void
)
/***********************************************/
/* Read a component shape file and add data (graphic items) to the current
/* Read a component shape file
(a symbol file *.sym )
and add data (graphic items) to the current
* component.
* a symbol file *.sym has the same format as a library, and contains only one symbol
*/
{
int
NumOfParts
;
...
...
@@ -44,11 +45,12 @@ void WinEDA_LibeditFrame::LoadOneSymbol( wxDC* DC )
FILE
*
ImportFile
;
wxString
msg
;
if
(
CurrentDrawItem
)
return
;
if
(
CurrentLibEntry
==
NULL
)
return
;
if
(
CurrentDrawItem
&&
CurrentDrawItem
->
m_Flags
)
// a command is in progress
return
;
DrawPanel
->
m_IgnoreMouseEvents
=
TRUE
;
mask
=
wxT
(
"*"
)
+
g_SymbolExtBuffer
;
...
...
@@ -116,13 +118,21 @@ void WinEDA_LibeditFrame::LoadOneSymbol( wxDC* DC )
DrawEntry
=
DrawEntry
->
Next
();
}
// Remove duplicated drawings:
SuppressDuplicateDrawItem
(
CurrentLibEntry
);
// crear flags
DrawEntry
=
CurrentLibEntry
->
m_Drawings
;
while
(
DrawEntry
)
{
DrawEntry
->
m_Flags
=
0
;
DrawEntry
->
m_Selected
=
0
;
DrawEntry
=
DrawEntry
->
Next
();
}
GetScreen
()
->
SetModify
();
// Move (and place ) the new draw items:
HandleBlockBegin
(
DC
,
-
1
,
GetScreen
()
->
m_Curseur
);
HandleBlockEnd
(
DC
);
RedrawActiveWindow
(
DC
,
TRUE
);
DrawPanel
->
Refresh
();
}
PQFreeFunc
(
Entries
,
(
void
(
*
)
(
void
*
)
)
FreeLibraryEntry
);
...
...
include/wxEeschemaStruct.h
View file @
6b8bc98d
...
...
@@ -446,7 +446,7 @@ private:
void
GraphicItemBeginDraw
(
wxDC
*
DC
);
void
StartMoveDrawSymbol
(
wxDC
*
DC
);
void
EndDrawGraphicItem
(
wxDC
*
DC
);
void
LoadOneSymbol
(
wxDC
*
DC
);
void
LoadOneSymbol
(
);
void
SaveOneSymbol
();
void
EditGraphicSymbol
(
wxDC
*
DC
,
LibEDA_BaseStruct
*
DrawItem
);
void
EditSymbolText
(
wxDC
*
DC
,
LibEDA_BaseStruct
*
DrawItem
);
...
...
internat/fr/kicad.mo
View file @
6b8bc98d
No preview for this file type
internat/fr/kicad.po
View file @
6b8bc98d
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