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
4fd912c3
Commit
4fd912c3
authored
May 09, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fixes and enhancement
parent
93ac159e
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
335 additions
and
20 deletions
+335
-20
dialog_lib_edit_pin.cpp
eeschema/dialogs/dialog_lib_edit_pin.cpp
+2
-2
dialog_plot_schematic_PS_base.cpp
eeschema/dialogs/dialog_plot_schematic_PS_base.cpp
+1
-1
dialog_plot_schematic_PS_base.fbp
eeschema/dialogs/dialog_plot_schematic_PS_base.fbp
+310
-1
dialog_plot_schematic_PS_base.h
eeschema/dialogs/dialog_plot_schematic_PS_base.h
+2
-2
loadcmp.cpp
pcbnew/loadcmp.cpp
+20
-14
No files found.
eeschema/dialogs/dialog_lib_edit_pin.cpp
View file @
4fd912c3
...
...
@@ -15,10 +15,10 @@ wxSize DIALOG_LIB_EDIT_PIN::s_LastSize;
DIALOG_LIB_EDIT_PIN
::
DIALOG_LIB_EDIT_PIN
(
wxWindow
*
parent
,
LIB_PIN
*
aPin
)
:
DIALOG_LIB_EDIT_PIN_BASE
(
parent
)
{
// Creates a dummy pin to show on a panel, ins
s
ide this dialog:
// Creates a dummy pin to show on a panel, inside this dialog:
m_dummyPin
=
new
LIB_PIN
(
*
aPin
);
// m_dummyPin changes do not propa
rag
te to other pins of the current lib component,
// m_dummyPin changes do not propa
ga
te to other pins of the current lib component,
// so set parent to null and clear flags
m_dummyPin
->
SetParent
(
NULL
);
m_dummyPin
->
ClearFlags
();
...
...
eeschema/dialogs/dialog_plot_schematic_PS_base.cpp
View file @
4fd912c3
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Sep 8
2010)
// C++ code generated with wxFormBuilder (version
Nov 17
2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
eeschema/dialogs/dialog_plot_schematic_PS_base.fbp
View file @
4fd912c3
This diff is collapsed.
Click to expand it.
eeschema/dialogs/dialog_plot_schematic_PS_base.h
View file @
4fd912c3
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version
Sep 8
2010)
// C++ code generated with wxFormBuilder (version
Nov 17
2010)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
...
...
@@ -55,7 +55,7 @@ class DIALOG_PLOT_SCHEMATIC_PS_BASE : public wxDialog
public
:
DIALOG_PLOT_SCHEMATIC_PS_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Plot Post
sript"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
387
,
365
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
DIALOG_PLOT_SCHEMATIC_PS_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Plot Post
Script"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
387
,
365
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_PLOT_SCHEMATIC_PS_BASE
();
};
...
...
pcbnew/loadcmp.cpp
View file @
4fd912c3
...
...
@@ -3,13 +3,11 @@
/**********************************************/
#include "fctsys.h"
#include "gr_basic.h"
#include "common.h"
#include "class_drawpanel.h"
#include "confirm.h"
#include "eda_doc.h"
#include "kicad_string.h"
#include "gestfich.h"
#include "dialog_get_component.h"
#include "appl_wxstruct.h"
...
...
@@ -17,7 +15,6 @@
#include "wxPcbStruct.h"
#include "module_editor_frame.h"
#include "dialog_helpers.h"
#include "richio.h"
#include "filter_reader.h"
#include "footprint_info.h"
...
...
@@ -86,7 +83,7 @@ MODULE* PCB_BASE_FRAME::Load_Module_From_Library( const wxString& library, wxDC*
wxString
ModuleName
,
keys
;
static
wxArrayString
HistoryList
;
static
wxString
lastCommponentName
;
bool
AllowWildSeach
=
TRUE
;
bool
AllowWildSeach
=
true
;
/* Ask for a component name or key words */
DIALOG_GET_COMPONENT
dlg
(
this
,
GetComponentDialogPosition
(),
HistoryList
,
...
...
@@ -147,7 +144,7 @@ MODULE* PCB_BASE_FRAME::Load_Module_From_Library( const wxString& library, wxDC*
return
NULL
;
/* Cancel command. */
}
else
module
=
Get_Librairie_Module
(
library
,
ModuleName
,
TRUE
);
module
=
Get_Librairie_Module
(
library
,
ModuleName
,
true
);
}
GetScreen
()
->
SetCrossHairPosition
(
curspos
);
...
...
@@ -197,7 +194,7 @@ MODULE* PCB_BASE_FRAME::Get_Librairie_Module( const wxString& aLibraryFullFilena
const
wxString
&
aModuleName
,
bool
aDisplayMessageError
)
{
int
F
ound
=
0
;
int
f
ound
=
0
;
wxFileName
fn
;
char
*
Line
;
wxString
Name
;
...
...
@@ -261,8 +258,8 @@ MODULE* PCB_BASE_FRAME::Get_Librairie_Module( const wxString& aLibraryFullFilena
}
/* Reading the list of modules in the library. */
F
ound
=
0
;
while
(
!
F
ound
&&
reader
.
ReadLine
()
)
f
ound
=
0
;
while
(
!
f
ound
&&
reader
.
ReadLine
()
)
{
Line
=
reader
.
Line
();
if
(
strnicmp
(
Line
,
"$MODULE"
,
6
)
==
0
)
...
...
@@ -278,15 +275,15 @@ MODULE* PCB_BASE_FRAME::Get_Librairie_Module( const wxString& aLibraryFullFilena
msg
=
FROM_UTF8
(
Line
);
if
(
msg
.
CmpNoCase
(
aModuleName
)
==
0
)
{
F
ound
=
1
;
break
;
/*
F
ound! */
f
ound
=
1
;
break
;
/*
f
ound! */
}
}
}
}
/* Read library. */
while
(
F
ound
&&
reader
.
ReadLine
()
)
while
(
f
ound
&&
reader
.
ReadLine
()
)
{
Line
=
reader
.
Line
();
if
(
Line
[
0
]
!=
'$'
)
...
...
@@ -365,8 +362,8 @@ wxString PCB_BASE_FRAME::Select_1_Module_From_List( EDA_DRAW_FRAME* aWindow,
MList
.
ReadFootprintFiles
(
libnames_list
);
wxArrayString
footprint_names_list
;
/* Create list of modules if search by keyword. */
if
(
!
aKeyWord
.
IsEmpty
()
)
if
(
!
aKeyWord
.
IsEmpty
()
)
// Create a list of modules found by keyword.
{
for
(
unsigned
ii
=
0
;
ii
<
MList
.
GetCount
();
ii
++
)
{
...
...
@@ -374,7 +371,16 @@ wxString PCB_BASE_FRAME::Select_1_Module_From_List( EDA_DRAW_FRAME* aWindow,
footprint_names_list
.
Add
(
MList
.
GetItem
(
ii
).
m_Module
);
}
}
else
else
if
(
!
aMask
.
IsEmpty
()
)
// Create a list of modules found by pattern
{
for
(
unsigned
ii
=
0
;
ii
<
MList
.
GetCount
();
ii
++
)
{
wxString
&
candidate
=
MList
.
GetItem
(
ii
).
m_Module
;
if
(
WildCompareString
(
aMask
,
candidate
,
false
)
)
footprint_names_list
.
Add
(
candidate
);
}
}
else
// Create the full list of modules
for
(
unsigned
ii
=
0
;
ii
<
MList
.
GetCount
();
ii
++
)
footprint_names_list
.
Add
(
MList
.
GetItem
(
ii
).
m_Module
);
...
...
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