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
561c0180
Commit
561c0180
authored
Mar 27, 2015
by
unknown
Committed by
jean-pierre charras
Mar 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add pin table dialog
parent
ec4d74c9
Changes
15
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
1138 additions
and
0 deletions
+1138
-0
CMakeLists.txt
bitmaps_png/CMakeLists.txt
+1
-0
pin_table.cpp
bitmaps_png/cpp_26/pin_table.cpp
+38
-0
pin_table.svg
bitmaps_png/sources/pin_table.svg
+195
-0
CMakeLists.txt
eeschema/CMakeLists.txt
+2
-0
dialog_lib_edit_pin_table.cpp
eeschema/dialogs/dialog_lib_edit_pin_table.cpp
+563
-0
dialog_lib_edit_pin_table.h
eeschema/dialogs/dialog_lib_edit_pin_table.h
+18
-0
dialog_lib_edit_pin_table_base.cpp
eeschema/dialogs/dialog_lib_edit_pin_table_base.cpp
+46
-0
dialog_lib_edit_pin_table_base.fbp
eeschema/dialogs/dialog_lib_edit_pin_table_base.fbp
+193
-0
dialog_lib_edit_pin_table_base.h
eeschema/dialogs/dialog_lib_edit_pin_table_base.h
+53
-0
eeschema_id.h
eeschema/eeschema_id.h
+1
-0
lib_pin.h
eeschema/lib_pin.h
+3
-0
libeditframe.cpp
eeschema/libeditframe.cpp
+19
-0
libeditframe.h
eeschema/libeditframe.h
+3
-0
tool_lib.cpp
eeschema/tool_lib.cpp
+2
-0
bitmaps.h
include/bitmaps.h
+1
-0
No files found.
bitmaps_png/CMakeLists.txt
View file @
561c0180
...
@@ -446,6 +446,7 @@ set( BMAPS_MID
...
@@ -446,6 +446,7 @@ set( BMAPS_MID
pin_name_to
pin_name_to
pin_number_to
pin_number_to
pin_size_to
pin_size_to
pin_table
pin_to
pin_to
pin
pin
plot
plot
...
...
bitmaps_png/cpp_26/pin_table.cpp
0 → 100644
View file @
561c0180
/* Do not modify this file, it was automatically generated by the
* PNG2cpp CMake script, using a *.png file as input.
*/
#include <bitmaps.h>
static
const
unsigned
char
png
[]
=
{
0x89
,
0x50
,
0x4e
,
0x47
,
0x0d
,
0x0a
,
0x1a
,
0x0a
,
0x00
,
0x00
,
0x00
,
0x0d
,
0x49
,
0x48
,
0x44
,
0x52
,
0x00
,
0x00
,
0x00
,
0x1a
,
0x00
,
0x00
,
0x00
,
0x1a
,
0x08
,
0x06
,
0x00
,
0x00
,
0x00
,
0xa9
,
0x4a
,
0x4c
,
0xce
,
0x00
,
0x00
,
0x01
,
0x53
,
0x49
,
0x44
,
0x41
,
0x54
,
0x48
,
0xc7
,
0xed
,
0x96
,
0x31
,
0x4b
,
0xc3
,
0x40
,
0x14
,
0xc7
,
0xff
,
0x54
,
0x04
,
0x33
,
0x69
,
0x05
,
0xa5
,
0x83
,
0x83
,
0xb8
,
0x09
,
0x99
,
0xeb
,
0x54
,
0x1a
,
0x45
,
0x0a
,
0x82
,
0xa3
,
0x7e
,
0x86
,
0x8a
,
0x4b
,
0x71
,
0x71
,
0x11
,
0xaa
,
0xe2
,
0xa0
,
0x43
,
0x70
,
0x71
,
0x74
,
0xe9
,
0x28
,
0x7e
,
0x0a
,
0xf1
,
0x13
,
0xc4
,
0xcf
,
0xe0
,
0xe8
,
0x66
,
0x45
,
0xa1
,
0xb4
,
0x3d
,
0xef
,
0x1f
,
0xee
,
0xe0
,
0x88
,
0x25
,
0xbe
,
0x23
,
0x35
,
0x3a
,
0x18
,
0xf8
,
0x25
,
0x8f
,
0x24
,
0xe4
,
0x97
,
0x7b
,
0xf7
,
0xde
,
0x25
,
0x50
,
0x4a
,
0xa1
,
0x0c
,
0xbe
,
0x9c
,
0xb8
,
0x07
,
0x66
,
0x2e
,
0x80
,
0x75
,
0xc2
,
0x78
,
0xea
,
0xa2
,
0x6b
,
0x20
,
0x38
,
0x03
,
0x62
,
0x4d
,
0x5f
,
0xa3
,
0x0c
,
0x8c
,
0x63
,
0x5e
,
0x9b
,
0x8a
,
0xc8
,
0x48
,
0x12
,
0x47
,
0x90
,
0x25
,
0x29
,
0x2a
,
0x4b
,
0x77
,
0x66
,
0x24
,
0xe9
,
0x43
,
0x6f
,
0xeb
,
0x75
,
0x95
,
0xf4
,
0x7a
,
0x29
,
0x8c
,
0x1d
,
0x59
,
0x5c
,
0x48
,
0xc4
,
0x79
,
0xb0
,
0xe9
,
0xe2
,
0x83
,
0x47
,
0x83
,
0x81
,
0xb2
,
0x1b
,
0x63
,
0x47
,
0xf6
,
0x76
,
0x0e
,
0x6c
,
0xe9
,
0x63
,
0xe4
,
0xc9
,
0x4a
,
0x2a
,
0xe2
,
0xa4
,
0xdb
,
0xb7
,
0xe6
,
0x28
,
0xb2
,
0x1b
,
0xcf
,
0xe5
,
0xa4
,
0x54
,
0xc2
,
0x8b
,
0x66
,
0xb9
,
0x0c
,
0xd1
,
0xeb
,
0x15
,
0x30
,
0x2f
,
0x4e
,
0xdd
,
0x89
,
0x66
,
0x0d
,
0x18
,
0xad
,
0x7a
,
0xb0
,
0x03
,
0x74
,
0x2e
,
0x81
,
0xaa
,
0x57
,
0x31
,
0x1c
,
0x02
,
0x77
,
0x00
,
0x9a
,
0x02
,
0x3a
,
0x9a
,
0xa1
,
0xa1
,
0xe9
,
0x55
,
0xde
,
0xc7
,
0x41
,
0xd0
,
0xdf
,
0x6e
,
0x34
,
0x1e
,
0xa3
,
0x28
,
0x7a
,
0xf8
,
0x0e
,
0x23
,
0x9b
,
0x2c
,
0x72
,
0x1b
,
0xb6
,
0x0b
,
0xbc
,
0x5b
,
0x01
,
0xe3
,
0x76
,
0xad
,
0xf6
,
0x2c
,
0x95
,
0x88
,
0x44
,
0x96
,
0x39
,
0x60
,
0x73
,
0x49
,
0xdf
,
0x44
,
0x18
,
0x4b
,
0x05
,
0x7f
,
0x4f
,
0x54
,
0x4a
,
0xea
,
0x4a
,
0x2b
,
0x06
,
0x49
,
0x79
,
0x73
,
0x64
,
0x85
,
0x44
,
0xd2
,
0x86
,
0x3d
,
0xad
,
0x54
,
0x86
,
0xfb
,
0x61
,
0xf8
,
0xb4
,
0x17
,
0x86
,
0x49
,
0x1e
,
0x6c
,
0x52
,
0xb7
,
0x61
,
0xff
,
0xd7
,
0x3a
,
0x56
,
0xe0
,
0xc7
,
0x2e
,
0x70
,
0xc4
,
0x74
,
0xe4
,
0xb1
,
0x01
,
0xdc
,
0x14
,
0x5a
,
0xeb
,
0x5a
,
0xc0
,
0xd8
,
0x99
,
0x64
,
0x29
,
0x7e
,
0xe5
,
0x7d
,
0xa0
,
0x25
,
0xb3
,
0xfe
,
0x92
,
0xfc
,
0x86
,
0xe5
,
0x97
,
0xd4
,
0x6d
,
0x58
,
0xae
,
0xda
,
0x8b
,
0x40
,
0x4b
,
0xb8
,
0x72
,
0x67
,
0x59
,
0xf8
,
0xbd
,
0xdf
,
0xad
,
0x9f
,
0xe6
,
0x13
,
0xee
,
0x33
,
0xf3
,
0x74
,
0xce
,
0xbb
,
0x6e
,
0x19
,
0x00
,
0x00
,
0x00
,
0x00
,
0x49
,
0x45
,
0x4e
,
0x44
,
0xae
,
0x42
,
0x60
,
0x82
,
};
const
BITMAP_OPAQUE
pin_table_xpm
[
1
]
=
{{
png
,
sizeof
(
png
),
"pin_table_xpm"
}};
//EOF
bitmaps_png/sources/pin_table.svg
0 → 100644
View file @
561c0180
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc=
"http://purl.org/dc/elements/1.1/"
xmlns:cc=
"http://creativecommons.org/ns#"
xmlns:rdf=
"http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg=
"http://www.w3.org/2000/svg"
xmlns=
"http://www.w3.org/2000/svg"
xmlns:sodipodi=
"http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape=
"http://www.inkscape.org/namespaces/inkscape"
height=
"26"
width=
"26"
version=
"1.1"
id=
"svg2"
inkscape:version=
"0.48.5 r10040"
sodipodi:docname=
"pin_table.svg"
>
<metadata
id=
"metadata87"
>
<rdf:RDF>
<cc:Work
rdf:about=
""
>
<dc:format>
image/svg+xml
</dc:format>
<dc:type
rdf:resource=
"http://purl.org/dc/dcmitype/StillImage"
/>
<dc:title
/>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
pagecolor=
"#ffffff"
bordercolor=
"#666666"
borderopacity=
"1"
objecttolerance=
"10"
gridtolerance=
"10"
guidetolerance=
"10"
inkscape:pageopacity=
"0"
inkscape:pageshadow=
"2"
inkscape:window-width=
"1918"
inkscape:window-height=
"1078"
id=
"namedview85"
showgrid=
"true"
inkscape:snap-grids=
"true"
inkscape:zoom=
"22.961538"
inkscape:cx=
"3.4405358"
inkscape:cy=
"13"
inkscape:window-x=
"1920"
inkscape:window-y=
"0"
inkscape:window-maximized=
"0"
inkscape:current-layer=
"svg2"
>
<inkscape:grid
type=
"xygrid"
id=
"grid3832"
empspacing=
"2"
visible=
"true"
enabled=
"true"
snapvisiblegridlinesonly=
"true"
/>
</sodipodi:namedview>
<defs
id=
"defs4"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 8,11 c 12,0 12,0 12,0"
id=
"path5327"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 8,13 12,0"
id=
"path5329"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 8,15 12,0"
id=
"path5331"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 8,17 12,0"
id=
"path5333"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 8,19 12,0"
id=
"path5335"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 19,10 0,10"
id=
"path5337"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 17,10 0,10"
id=
"path5339"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 15,10 0,10"
id=
"path5341"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 13,10 0,10"
id=
"path5343"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"m 11,10 0,10"
id=
"path5345"
inkscape:connector-curvature=
"0"
/>
<path
style=
"fill:none;stroke:#404040;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d=
"M 9,10 9,20"
id=
"path5347"
inkscape:connector-curvature=
"0"
/>
<rect
style=
"opacity:0.98999999000000005;fill:none;fill-opacity:1;stroke:#000000;stroke-width:2.50000000000000000;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
id=
"rect3768"
width=
"16"
height=
"14"
x=
"6"
y=
"8"
/>
<path
sodipodi:type=
"arc"
style=
"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#800000;stroke-width:2.50000000000000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
id=
"path3003"
sodipodi:cx=
"20"
sodipodi:cy=
"13"
sodipodi:rx=
"4"
sodipodi:ry=
"4"
d=
"m 24,13 a 4,4 0 1 1 -8,0 4,4 0 1 1 8,0 z"
transform=
"matrix(-1,0,0,1,26,-6)"
/>
<path
style=
"fill:none;stroke:#800000;stroke-width:2.50000000000000000;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
d=
"M 11,7 24,7"
id=
"path3771"
inkscape:connector-curvature=
"0"
/>
<g
transform=
"matrix(2.4566,0,0,2.2316,-37.589,-61.022)"
id=
"g17"
>
<rect
height=
"16"
width=
"16"
y=
"0"
x=
"0"
id=
"rect19"
style=
"fill-opacity:0"
/>
</g>
<g
transform=
"matrix(2.6586,0,0,2.1996,5.9761,-10.078)"
id=
"g47"
>
<rect
height=
"16"
width=
"16"
y=
"0"
x=
"0"
id=
"rect49"
style=
"fill-opacity:0"
/>
</g>
<g
id=
"g69"
transform=
"matrix(2.4482476,0,0,2.4295429,2.830298,-7.57155)"
>
<rect
style=
"fill-opacity:0"
id=
"rect71"
x=
"0"
y=
"0"
width=
"16"
height=
"16"
/>
</g>
<g
id=
"g73"
transform=
"matrix(2.4482476,0,0,2.4295429,5.162342,-14.86007)"
>
<rect
style=
"fill-opacity:0"
id=
"rect75"
x=
"0"
y=
"0"
width=
"16"
height=
"16"
/>
</g>
<path
transform=
"matrix(-1,0,0,1,26,6)"
d=
"m 24,13 a 4,4 0 1 1 -8,0 4,4 0 1 1 8,0 z"
sodipodi:ry=
"4"
sodipodi:rx=
"4"
sodipodi:cy=
"13"
sodipodi:cx=
"20"
id=
"path3079"
style=
"fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:#800000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0"
sodipodi:type=
"arc"
/>
<path
inkscape:connector-curvature=
"0"
id=
"path3081"
d=
"m 11,19 13,0"
style=
"fill:none;stroke:#800000;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
/>
</svg>
eeschema/CMakeLists.txt
View file @
561c0180
...
@@ -53,6 +53,8 @@ set( EESCHEMA_DLGS
...
@@ -53,6 +53,8 @@ set( EESCHEMA_DLGS
dialogs/dialog_libedit_options.cpp
dialogs/dialog_libedit_options.cpp
dialogs/dialog_lib_edit_pin.cpp
dialogs/dialog_lib_edit_pin.cpp
dialogs/dialog_lib_edit_pin_base.cpp
dialogs/dialog_lib_edit_pin_base.cpp
dialogs/dialog_lib_edit_pin_table.cpp
dialogs/dialog_lib_edit_pin_table_base.cpp
dialogs/dialog_lib_new_component.cpp
dialogs/dialog_lib_new_component.cpp
dialogs/dialog_lib_new_component_base.cpp
dialogs/dialog_lib_new_component_base.cpp
dialogs/dialog_netlist.cpp
dialogs/dialog_netlist.cpp
...
...
eeschema/dialogs/dialog_lib_edit_pin_table.cpp
0 → 100644
View file @
561c0180
This diff is collapsed.
Click to expand it.
eeschema/dialogs/dialog_lib_edit_pin_table.h
0 → 100644
View file @
561c0180
#include "dialog_lib_edit_pin_table_base.h"
#include "class_library.h"
class
DIALOG_LIB_EDIT_PIN_TABLE
:
public
DIALOG_LIB_EDIT_PIN_TABLE_BASE
{
public
:
DIALOG_LIB_EDIT_PIN_TABLE
(
wxWindow
*
parent
,
LIB_PART
&
aPart
);
~
DIALOG_LIB_EDIT_PIN_TABLE
();
virtual
void
OnColumnHeaderRightClicked
(
wxDataViewEvent
&
aEvent
);
private
:
class
DataViewModel
;
wxObjectDataPtr
<
DataViewModel
>
m_Model
;
};
eeschema/dialogs/dialog_lib_edit_pin_table_base.cpp
0 → 100644
View file @
561c0180
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 5 2014)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "dialog_lib_edit_pin_table_base.h"
///////////////////////////////////////////////////////////////////////////
DIALOG_LIB_EDIT_PIN_TABLE_BASE
::
DIALOG_LIB_EDIT_PIN_TABLE_BASE
(
wxWindow
*
parent
,
wxWindowID
id
,
const
wxString
&
title
,
const
wxPoint
&
pos
,
const
wxSize
&
size
,
long
style
)
:
DIALOG_SHIM
(
parent
,
id
,
title
,
pos
,
size
,
style
)
{
this
->
SetSizeHints
(
wxDefaultSize
,
wxDefaultSize
);
wxBoxSizer
*
top_sizer
;
top_sizer
=
new
wxBoxSizer
(
wxVERTICAL
);
m_Pins
=
new
wxDataViewCtrl
(
this
,
wxID_ANY
,
wxDefaultPosition
,
wxSize
(
-
1
,
-
1
),
wxDV_HORIZ_RULES
|
wxDV_MULTIPLE
|
wxDV_ROW_LINES
|
wxDV_VERT_RULES
|
wxVSCROLL
);
m_Pins
->
SetMinSize
(
wxSize
(
400
,
400
)
);
top_sizer
->
Add
(
m_Pins
,
1
,
wxALL
|
wxEXPAND
,
5
);
m_Buttons
=
new
wxStdDialogButtonSizer
();
m_ButtonsOK
=
new
wxButton
(
this
,
wxID_OK
);
m_Buttons
->
AddButton
(
m_ButtonsOK
);
m_Buttons
->
Realize
();
top_sizer
->
Add
(
m_Buttons
,
0
,
wxEXPAND
|
wxALL
,
5
);
this
->
SetSizer
(
top_sizer
);
this
->
Layout
();
this
->
Centre
(
wxBOTH
);
// Connect Events
this
->
Connect
(
wxID_ANY
,
wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK
,
wxDataViewEventHandler
(
DIALOG_LIB_EDIT_PIN_TABLE_BASE
::
OnColumnHeaderRightClicked
)
);
}
DIALOG_LIB_EDIT_PIN_TABLE_BASE
::~
DIALOG_LIB_EDIT_PIN_TABLE_BASE
()
{
// Disconnect Events
this
->
Disconnect
(
wxID_ANY
,
wxEVT_COMMAND_DATAVIEW_COLUMN_HEADER_RIGHT_CLICK
,
wxDataViewEventHandler
(
DIALOG_LIB_EDIT_PIN_TABLE_BASE
::
OnColumnHeaderRightClicked
)
);
}
eeschema/dialogs/dialog_lib_edit_pin_table_base.fbp
0 → 100644
View file @
561c0180
This diff is collapsed.
Click to expand it.
eeschema/dialogs/dialog_lib_edit_pin_table_base.h
0 → 100644
View file @
561c0180
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 5 2014)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#ifndef __DIALOG_LIB_EDIT_PIN_TABLE_BASE_H__
#define __DIALOG_LIB_EDIT_PIN_TABLE_BASE_H__
#include <wx/artprov.h>
#include <wx/xrc/xmlres.h>
#include <wx/intl.h>
class
DIALOG_SHIM
;
#include "dialog_shim.h"
#include <wx/dataview.h>
#include <wx/gdicmn.h>
#include <wx/font.h>
#include <wx/colour.h>
#include <wx/settings.h>
#include <wx/string.h>
#include <wx/sizer.h>
#include <wx/button.h>
#include <wx/dialog.h>
///////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////
/// Class DIALOG_LIB_EDIT_PIN_TABLE_BASE
///////////////////////////////////////////////////////////////////////////////
class
DIALOG_LIB_EDIT_PIN_TABLE_BASE
:
public
DIALOG_SHIM
{
private
:
protected
:
wxDataViewCtrl
*
m_Pins
;
wxStdDialogButtonSizer
*
m_Buttons
;
wxButton
*
m_ButtonsOK
;
// Virtual event handlers, overide them in your derived class
virtual
void
OnColumnHeaderRightClicked
(
wxDataViewEvent
&
event
)
=
0
;
public
:
DIALOG_LIB_EDIT_PIN_TABLE_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Pin Table"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
431
,
304
),
long
style
=
wxDEFAULT_DIALOG_STYLE
|
wxRESIZE_BORDER
);
~
DIALOG_LIB_EDIT_PIN_TABLE_BASE
();
};
#endif //__DIALOG_LIB_EDIT_PIN_TABLE_BASE_H__
eeschema/eeschema_id.h
View file @
561c0180
...
@@ -199,6 +199,7 @@ enum id_eeschema_frm
...
@@ -199,6 +199,7 @@ enum id_eeschema_frm
ID_DE_MORGAN_NORMAL_BUTT
,
ID_DE_MORGAN_NORMAL_BUTT
,
ID_DE_MORGAN_CONVERT_BUTT
,
ID_DE_MORGAN_CONVERT_BUTT
,
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
ID_LIBEDIT_EDIT_PIN_BY_TABLE
,
ID_LIBEDIT_VIEW_DOC
,
ID_LIBEDIT_VIEW_DOC
,
ID_LIBEDIT_CHECK_PART
,
ID_LIBEDIT_CHECK_PART
,
...
...
eeschema/lib_pin.h
View file @
561c0180
...
@@ -307,6 +307,9 @@ public:
...
@@ -307,6 +307,9 @@ public:
*/
*/
void
SetPartNumber
(
int
aPart
);
void
SetPartNumber
(
int
aPart
);
/** Get the pin part number. */
int
GetPartNumber
()
const
{
return
m_Unit
;
}
/**
/**
* Set the body style (conversion) of the pin.
* Set the body style (conversion) of the pin.
*
*
...
...
eeschema/libeditframe.cpp
View file @
561c0180
...
@@ -51,6 +51,7 @@
...
@@ -51,6 +51,7 @@
#include <dialogs/dialog_lib_edit_text.h>
#include <dialogs/dialog_lib_edit_text.h>
#include <dialogs/dialog_edit_component_in_lib.h>
#include <dialogs/dialog_edit_component_in_lib.h>
#include <dialogs/dialog_libedit_dimensions.h>
#include <dialogs/dialog_libedit_dimensions.h>
#include <dialogs/dialog_lib_edit_pin_table.h>
#include <menus_helpers.h>
#include <menus_helpers.h>
...
@@ -108,6 +109,7 @@ BEGIN_EVENT_TABLE( LIB_EDIT_FRAME, EDA_DRAW_FRAME )
...
@@ -108,6 +109,7 @@ BEGIN_EVENT_TABLE( LIB_EDIT_FRAME, EDA_DRAW_FRAME )
EVT_TOOL
(
ID_DE_MORGAN_CONVERT_BUTT
,
LIB_EDIT_FRAME
::
OnSelectBodyStyle
)
EVT_TOOL
(
ID_DE_MORGAN_CONVERT_BUTT
,
LIB_EDIT_FRAME
::
OnSelectBodyStyle
)
EVT_TOOL
(
ID_LIBEDIT_VIEW_DOC
,
LIB_EDIT_FRAME
::
OnViewEntryDoc
)
EVT_TOOL
(
ID_LIBEDIT_VIEW_DOC
,
LIB_EDIT_FRAME
::
OnViewEntryDoc
)
EVT_TOOL
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
LIB_EDIT_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
LIB_EDIT_FRAME
::
Process_Special_Functions
)
EVT_TOOL
(
ID_LIBEDIT_EDIT_PIN_BY_TABLE
,
LIB_EDIT_FRAME
::
OnOpenPinTable
)
EVT_TOOL
(
ExportPartId
,
LIB_EDIT_FRAME
::
OnExportPart
)
EVT_TOOL
(
ExportPartId
,
LIB_EDIT_FRAME
::
OnExportPart
)
EVT_TOOL
(
CreateNewLibAndSavePartId
,
LIB_EDIT_FRAME
::
OnExportPart
)
EVT_TOOL
(
CreateNewLibAndSavePartId
,
LIB_EDIT_FRAME
::
OnExportPart
)
EVT_TOOL
(
ImportPartId
,
LIB_EDIT_FRAME
::
OnImportPart
)
EVT_TOOL
(
ImportPartId
,
LIB_EDIT_FRAME
::
OnImportPart
)
...
@@ -165,6 +167,7 @@ BEGIN_EVENT_TABLE( LIB_EDIT_FRAME, EDA_DRAW_FRAME )
...
@@ -165,6 +167,7 @@ BEGIN_EVENT_TABLE( LIB_EDIT_FRAME, EDA_DRAW_FRAME )
EVT_UPDATE_UI
(
ID_LIBEDIT_SAVE_CURRENT_LIB
,
LIB_EDIT_FRAME
::
OnUpdateSaveCurrentLib
)
EVT_UPDATE_UI
(
ID_LIBEDIT_SAVE_CURRENT_LIB
,
LIB_EDIT_FRAME
::
OnUpdateSaveCurrentLib
)
EVT_UPDATE_UI
(
ID_LIBEDIT_VIEW_DOC
,
LIB_EDIT_FRAME
::
OnUpdateViewDoc
)
EVT_UPDATE_UI
(
ID_LIBEDIT_VIEW_DOC
,
LIB_EDIT_FRAME
::
OnUpdateViewDoc
)
EVT_UPDATE_UI
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
LIB_EDIT_FRAME
::
OnUpdatePinByPin
)
EVT_UPDATE_UI
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
LIB_EDIT_FRAME
::
OnUpdatePinByPin
)
EVT_UPDATE_UI
(
ID_LIBEDIT_EDIT_PIN_BY_TABLE
,
LIB_EDIT_FRAME
::
OnUpdatePinTable
)
EVT_UPDATE_UI
(
ID_LIBEDIT_SELECT_PART_NUMBER
,
LIB_EDIT_FRAME
::
OnUpdatePartNumber
)
EVT_UPDATE_UI
(
ID_LIBEDIT_SELECT_PART_NUMBER
,
LIB_EDIT_FRAME
::
OnUpdatePartNumber
)
EVT_UPDATE_UI
(
ID_LIBEDIT_SELECT_ALIAS
,
LIB_EDIT_FRAME
::
OnUpdateSelectAlias
)
EVT_UPDATE_UI
(
ID_LIBEDIT_SELECT_ALIAS
,
LIB_EDIT_FRAME
::
OnUpdateSelectAlias
)
EVT_UPDATE_UI
(
ID_DE_MORGAN_NORMAL_BUTT
,
LIB_EDIT_FRAME
::
OnUpdateDeMorganNormal
)
EVT_UPDATE_UI
(
ID_DE_MORGAN_NORMAL_BUTT
,
LIB_EDIT_FRAME
::
OnUpdateDeMorganNormal
)
...
@@ -508,6 +511,11 @@ void LIB_EDIT_FRAME::OnUpdatePinByPin( wxUpdateUIEvent& event )
...
@@ -508,6 +511,11 @@ void LIB_EDIT_FRAME::OnUpdatePinByPin( wxUpdateUIEvent& event )
event
.
Check
(
m_editPinsPerPartOrConvert
);
event
.
Check
(
m_editPinsPerPartOrConvert
);
}
}
void
LIB_EDIT_FRAME
::
OnUpdatePinTable
(
wxUpdateUIEvent
&
event
)
{
LIB_PART
*
part
=
GetCurPart
();
event
.
Enable
(
part
);
}
void
LIB_EDIT_FRAME
::
OnUpdatePartNumber
(
wxUpdateUIEvent
&
event
)
void
LIB_EDIT_FRAME
::
OnUpdatePartNumber
(
wxUpdateUIEvent
&
event
)
{
{
...
@@ -1334,6 +1342,17 @@ void LIB_EDIT_FRAME::OnSelectItem( wxCommandEvent& aEvent )
...
@@ -1334,6 +1342,17 @@ void LIB_EDIT_FRAME::OnSelectItem( wxCommandEvent& aEvent )
}
}
}
}
void
LIB_EDIT_FRAME
::
OnOpenPinTable
(
wxCommandEvent
&
aEvent
)
{
LIB_PART
*
part
=
GetCurPart
();
DIALOG_LIB_EDIT_PIN_TABLE
dlg
(
this
,
*
part
);
if
(
dlg
.
ShowModal
()
==
wxID_CANCEL
)
return
;
return
;
}
bool
LIB_EDIT_FRAME
::
SynchronizePins
()
bool
LIB_EDIT_FRAME
::
SynchronizePins
()
{
{
...
...
eeschema/libeditframe.h
View file @
561c0180
...
@@ -266,6 +266,8 @@ public:
...
@@ -266,6 +266,8 @@ public:
void
OnEditPin
(
wxCommandEvent
&
event
);
void
OnEditPin
(
wxCommandEvent
&
event
);
void
OnSelectItem
(
wxCommandEvent
&
aEvent
);
void
OnSelectItem
(
wxCommandEvent
&
aEvent
);
void
OnOpenPinTable
(
wxCommandEvent
&
aEvent
);
void
OnUpdateSelectTool
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateSelectTool
(
wxUpdateUIEvent
&
aEvent
);
void
OnUpdateEditingPart
(
wxUpdateUIEvent
&
event
);
void
OnUpdateEditingPart
(
wxUpdateUIEvent
&
event
);
void
OnUpdateNotEditingPart
(
wxUpdateUIEvent
&
event
);
void
OnUpdateNotEditingPart
(
wxUpdateUIEvent
&
event
);
...
@@ -274,6 +276,7 @@ public:
...
@@ -274,6 +276,7 @@ public:
void
OnUpdateSaveCurrentLib
(
wxUpdateUIEvent
&
event
);
void
OnUpdateSaveCurrentLib
(
wxUpdateUIEvent
&
event
);
void
OnUpdateViewDoc
(
wxUpdateUIEvent
&
event
);
void
OnUpdateViewDoc
(
wxUpdateUIEvent
&
event
);
void
OnUpdatePinByPin
(
wxUpdateUIEvent
&
event
);
void
OnUpdatePinByPin
(
wxUpdateUIEvent
&
event
);
void
OnUpdatePinTable
(
wxUpdateUIEvent
&
event
);
void
OnUpdatePartNumber
(
wxUpdateUIEvent
&
event
);
void
OnUpdatePartNumber
(
wxUpdateUIEvent
&
event
);
void
OnUpdateDeMorganNormal
(
wxUpdateUIEvent
&
event
);
void
OnUpdateDeMorganNormal
(
wxUpdateUIEvent
&
event
);
void
OnUpdateDeMorganConvert
(
wxUpdateUIEvent
&
event
);
void
OnUpdateDeMorganConvert
(
wxUpdateUIEvent
&
event
);
...
...
eeschema/tool_lib.cpp
View file @
561c0180
...
@@ -209,6 +209,8 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
...
@@ -209,6 +209,8 @@ void LIB_EDIT_FRAME::ReCreateHToolbar()
msg
=
_
(
"Edit pins per part or body style (Use carefully!)"
);
msg
=
_
(
"Edit pins per part or body style (Use carefully!)"
);
m_mainToolBar
->
AddTool
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
wxEmptyString
,
KiBitmap
(
pin2pin_xpm
),
m_mainToolBar
->
AddTool
(
ID_LIBEDIT_EDIT_PIN_BY_PIN
,
wxEmptyString
,
KiBitmap
(
pin2pin_xpm
),
msg
,
wxITEM_CHECK
);
msg
,
wxITEM_CHECK
);
m_mainToolBar
->
AddTool
(
ID_LIBEDIT_EDIT_PIN_BY_TABLE
,
wxEmptyString
,
KiBitmap
(
pin_table_xpm
),
_
(
"Show pin table"
)
);
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
// after adding the buttons to the toolbar, must call Realize() to reflect the changes
m_mainToolBar
->
Realize
();
m_mainToolBar
->
Realize
();
...
...
include/bitmaps.h
View file @
561c0180
...
@@ -415,6 +415,7 @@ EXTERN_BITMAP( pin2pin_xpm )
...
@@ -415,6 +415,7 @@ EXTERN_BITMAP( pin2pin_xpm )
EXTERN_BITMAP
(
pin_name_to_xpm
)
EXTERN_BITMAP
(
pin_name_to_xpm
)
EXTERN_BITMAP
(
pin_number_to_xpm
)
EXTERN_BITMAP
(
pin_number_to_xpm
)
EXTERN_BITMAP
(
pin_size_to_xpm
)
EXTERN_BITMAP
(
pin_size_to_xpm
)
EXTERN_BITMAP
(
pin_table_xpm
)
EXTERN_BITMAP
(
pinorient_right_xpm
)
EXTERN_BITMAP
(
pinorient_right_xpm
)
EXTERN_BITMAP
(
pinorient_left_xpm
)
EXTERN_BITMAP
(
pinorient_left_xpm
)
EXTERN_BITMAP
(
pinorient_up_xpm
)
EXTERN_BITMAP
(
pinorient_up_xpm
)
...
...
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