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
82d8faeb
Commit
82d8faeb
authored
Apr 10, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eeschema: library order when loading libs fixed (i hope)
parent
9f7ca344
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
273 additions
and
262 deletions
+273
-262
eelibs_read_libraryfiles.cpp
eeschema/eelibs_read_libraryfiles.cpp
+5
-3
wxEeschemaStruct.h
include/wxEeschemaStruct.h
+268
-259
No files found.
eeschema/eelibs_read_libraryfiles.cpp
View file @
82d8faeb
...
@@ -164,8 +164,7 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
...
@@ -164,8 +164,7 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
else
else
msg
+=
_
(
" error!"
);
msg
+=
_
(
" error!"
);
frame
->
PrintMsg
(
msg
);
frame
->
PrintMsg
(
msg
);
}
}
// reorder the linked list to match the order filename list:
// reorder the linked list to match the order filename list:
int
NumOfLibs
;
int
NumOfLibs
;
...
@@ -186,7 +185,8 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
...
@@ -186,7 +185,8 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
{
{
if
(
jj
>=
NumOfLibs
)
if
(
jj
>=
NumOfLibs
)
break
;
break
;
lib
=
FindLibrary
(
g_LibName_List
[
ii
]
);
fn
=
g_LibName_List
[
ii
];
lib
=
FindLibrary
(
fn
.
GetName
()
);
if
(
lib
)
if
(
lib
)
{
{
lib
->
m_Flags
=
1
;
lib
->
m_Flags
=
1
;
...
@@ -212,7 +212,9 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
...
@@ -212,7 +212,9 @@ void LoadLibraries (WinEDA_DrawFrame* frame)
MyFree
(
libs
);
MyFree
(
libs
);
for
(
lib
=
g_LibraryList
;
lib
!=
NULL
;
lib
=
lib
->
m_Pnext
)
for
(
lib
=
g_LibraryList
;
lib
!=
NULL
;
lib
=
lib
->
m_Pnext
)
{
lib
->
m_Flags
=
0
;
lib
->
m_Flags
=
0
;
}
}
}
...
...
include/wxEeschemaStruct.h
View file @
82d8faeb
...
@@ -106,6 +106,7 @@ public:
...
@@ -106,6 +106,7 @@ public:
m_CurrentField
=
aCurrentField
;
m_CurrentField
=
aCurrentField
;
}
}
DrawSheetPath
*
GetSheet
();
DrawSheetPath
*
GetSheet
();
SCH_SCREEN
*
GetScreen
()
const
;
SCH_SCREEN
*
GetScreen
()
const
;
...
@@ -152,7 +153,7 @@ public:
...
@@ -152,7 +153,7 @@ public:
bool
mouseWarp
);
bool
mouseWarp
);
/* Cross probing with pcbnew */
/* Cross probing with pcbnew */
void
SendMessageToPCBNEW
(
EDA_BaseStruct
*
objectToSync
,
void
SendMessageToPCBNEW
(
EDA_BaseStruct
*
objectToSync
,
SCH_COMPONENT
*
LibItem
);
SCH_COMPONENT
*
LibItem
);
/* netlist generation */
/* netlist generation */
...
@@ -169,6 +170,7 @@ public:
...
@@ -169,6 +170,7 @@ public:
// Functions used for hierarchy handling
// Functions used for hierarchy handling
void
InstallPreviousSheet
();
void
InstallPreviousSheet
();
void
InstallNextScreen
(
DrawSheetStruct
*
Sheet
);
void
InstallNextScreen
(
DrawSheetStruct
*
Sheet
);
/** Function GetUniqueFilenameForCurrentSheet
/** Function GetUniqueFilenameForCurrentSheet
* @return a filename that can be used in plot and print functions
* @return a filename that can be used in plot and print functions
* for the current screen anad sheet path.
* for the current screen anad sheet path.
...
@@ -179,7 +181,7 @@ public:
...
@@ -179,7 +181,7 @@ public:
* and has no extension.
* and has no extension.
* However if filename is too long name is <sheet filename>-<sheet number>
* However if filename is too long name is <sheet filename>-<sheet number>
*/
*/
wxString
GetUniqueFilenameForCurrentSheet
(
);
wxString
GetUniqueFilenameForCurrentSheet
(
);
/**
/**
* Function SetSheetNumberAndCount
* Function SetSheetNumberAndCount
...
@@ -208,7 +210,8 @@ public:
...
@@ -208,7 +210,8 @@ public:
* @param aSetFielsAttributeToVisible = true to set the footprint field flag to visible
* @param aSetFielsAttributeToVisible = true to set the footprint field flag to visible
* @return bool - true if success, else true.
* @return bool - true if success, else true.
*/
*/
bool
ProcessStuffFile
(
FILE
*
aFilename
,
bool
aSetFielsAttributeToVisible
);
bool
ProcessStuffFile
(
FILE
*
aFilename
,
bool
aSetFielsAttributeToVisible
);
bool
SaveEEFile
(
SCH_SCREEN
*
screen
,
int
FileSave
);
bool
SaveEEFile
(
SCH_SCREEN
*
screen
,
int
FileSave
);
SCH_SCREEN
*
CreateNewScreen
(
SCH_SCREEN
*
OldScreen
,
int
TimeStamp
);
SCH_SCREEN
*
CreateNewScreen
(
SCH_SCREEN
*
OldScreen
,
int
TimeStamp
);
...
@@ -301,13 +304,19 @@ public:
...
@@ -301,13 +304,19 @@ public:
private
:
private
:
void
StartMoveSheet
(
DrawSheetStruct
*
sheet
,
wxDC
*
DC
);
void
StartMoveSheet
(
DrawSheetStruct
*
sheet
,
wxDC
*
DC
);
Hierarchical_PIN_Sheet_Struct
*
Create_PinSheet
(
DrawSheetStruct
*
Sheet
,
wxDC
*
DC
);
Hierarchical_PIN_Sheet_Struct
*
Create_PinSheet
(
DrawSheetStruct
*
Sheet
,
wxDC
*
DC
);
void
Edit_PinSheet
(
Hierarchical_PIN_Sheet_Struct
*
SheetLabel
,
wxDC
*
DC
);
void
Edit_PinSheet
(
Hierarchical_PIN_Sheet_Struct
*
SheetLabel
,
void
StartMove_PinSheet
(
Hierarchical_PIN_Sheet_Struct
*
SheetLabel
,
wxDC
*
DC
);
wxDC
*
DC
);
void
Place_PinSheet
(
Hierarchical_PIN_Sheet_Struct
*
SheetLabel
,
wxDC
*
DC
);
void
StartMove_PinSheet
(
Hierarchical_PIN_Sheet_Struct
*
SheetLabel
,
wxDC
*
DC
);
void
Place_PinSheet
(
Hierarchical_PIN_Sheet_Struct
*
SheetLabel
,
wxDC
*
DC
);
Hierarchical_PIN_Sheet_Struct
*
Import_PinSheet
(
DrawSheetStruct
*
Sheet
,
wxDC
*
DC
);
Hierarchical_PIN_Sheet_Struct
*
Import_PinSheet
(
DrawSheetStruct
*
Sheet
,
wxDC
*
DC
);
public
:
public
:
void
DeleteSheetLabel
(
bool
aRedraw
,
Hierarchical_PIN_Sheet_Struct
*
aSheetLabelToDel
);
void
DeleteSheetLabel
(
bool
aRedraw
,
Hierarchical_PIN_Sheet_Struct
*
aSheetLabelToDel
);
private
:
private
:
...
@@ -430,7 +439,7 @@ private:
...
@@ -430,7 +439,7 @@ private:
int
noMsg
=
0
);
int
noMsg
=
0
);
void
DisplayCmpDoc
(
const
wxString
&
Name
);
void
DisplayCmpDoc
(
const
wxString
&
Name
);
void
InstallLibeditFrame
(
);
void
InstallLibeditFrame
(
);
// General editing
// General editing
public
:
public
:
...
@@ -459,7 +468,7 @@ private:
...
@@ -459,7 +468,7 @@ private:
void
GraphicItemBeginDraw
(
wxDC
*
DC
);
void
GraphicItemBeginDraw
(
wxDC
*
DC
);
void
StartMoveDrawSymbol
(
wxDC
*
DC
);
void
StartMoveDrawSymbol
(
wxDC
*
DC
);
void
EndDrawGraphicItem
(
wxDC
*
DC
);
void
EndDrawGraphicItem
(
wxDC
*
DC
);
void
LoadOneSymbol
(
);
void
LoadOneSymbol
(
);
void
SaveOneSymbol
();
void
SaveOneSymbol
();
void
EditGraphicSymbol
(
wxDC
*
DC
,
LibEDA_BaseStruct
*
DrawItem
);
void
EditGraphicSymbol
(
wxDC
*
DC
,
LibEDA_BaseStruct
*
DrawItem
);
void
EditSymbolText
(
wxDC
*
DC
,
LibEDA_BaseStruct
*
DrawItem
);
void
EditSymbolText
(
wxDC
*
DC
,
LibEDA_BaseStruct
*
DrawItem
);
...
...
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