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
6393d226
Commit
6393d226
authored
Jan 27, 2015
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Other minor fixes
parent
813efb77
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
25 deletions
+30
-25
dialog_edit_component_in_schematic_fbp.cpp
eeschema/dialogs/dialog_edit_component_in_schematic_fbp.cpp
+3
-3
dialog_edit_component_in_schematic_fbp.fbp
eeschema/dialogs/dialog_edit_component_in_schematic_fbp.fbp
+3
-3
dialog_edit_libentry_fields_in_lib.cpp
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
+1
-1
dialog_edit_libentry_fields_in_lib_base.cpp
eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.cpp
+5
-6
dialog_edit_libentry_fields_in_lib_base.fbp
eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.fbp
+7
-7
dialog_edit_libentry_fields_in_lib_base.h
eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.h
+1
-1
libedit_undo_redo.cpp
eeschema/libedit_undo_redo.cpp
+3
-3
libeditframe.h
eeschema/libeditframe.h
+7
-1
No files found.
eeschema/dialogs/dialog_edit_component_in_schematic_fbp.cpp
View file @
6393d226
...
@@ -149,13 +149,13 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
...
@@ -149,13 +149,13 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
int
m_FieldHJustifyCtrlNChoices
=
sizeof
(
m_FieldHJustifyCtrlChoices
)
/
sizeof
(
wxString
);
int
m_FieldHJustifyCtrlNChoices
=
sizeof
(
m_FieldHJustifyCtrlChoices
)
/
sizeof
(
wxString
);
m_FieldHJustifyCtrl
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Horiz. Justify"
),
wxDefaultPosition
,
wxDefaultSize
,
m_FieldHJustifyCtrlNChoices
,
m_FieldHJustifyCtrlChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_FieldHJustifyCtrl
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Horiz. Justify"
),
wxDefaultPosition
,
wxDefaultSize
,
m_FieldHJustifyCtrlNChoices
,
m_FieldHJustifyCtrlChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_FieldHJustifyCtrl
->
SetSelection
(
2
);
m_FieldHJustifyCtrl
->
SetSelection
(
2
);
bSizerJustification
->
Add
(
m_FieldHJustifyCtrl
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
bSizerJustification
->
Add
(
m_FieldHJustifyCtrl
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
wxString
m_FieldVJustifyCtrlChoices
[]
=
{
_
(
"Bottom"
),
_
(
"Center"
),
_
(
"Top"
)
};
wxString
m_FieldVJustifyCtrlChoices
[]
=
{
_
(
"Bottom"
),
_
(
"Center"
),
_
(
"Top"
)
};
int
m_FieldVJustifyCtrlNChoices
=
sizeof
(
m_FieldVJustifyCtrlChoices
)
/
sizeof
(
wxString
);
int
m_FieldVJustifyCtrlNChoices
=
sizeof
(
m_FieldVJustifyCtrlChoices
)
/
sizeof
(
wxString
);
m_FieldVJustifyCtrl
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Vert. Justify"
),
wxDefaultPosition
,
wxDefaultSize
,
m_FieldVJustifyCtrlNChoices
,
m_FieldVJustifyCtrlChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_FieldVJustifyCtrl
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Vert. Justify"
),
wxDefaultPosition
,
wxDefaultSize
,
m_FieldVJustifyCtrlNChoices
,
m_FieldVJustifyCtrlChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_FieldVJustifyCtrl
->
SetSelection
(
2
);
m_FieldVJustifyCtrl
->
SetSelection
(
2
);
bSizerJustification
->
Add
(
m_FieldVJustifyCtrl
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
bSizerJustification
->
Add
(
m_FieldVJustifyCtrl
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerJustification
,
1
,
wxEXPAND
|
wxBOTTOM
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerJustification
,
1
,
wxEXPAND
|
wxBOTTOM
,
5
);
...
@@ -188,7 +188,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
...
@@ -188,7 +188,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC_FBP(
bSizerStyle
->
Add
(
m_StyleRadioBox
,
1
,
wxEXPAND
|
wxALL
,
5
);
bSizerStyle
->
Add
(
m_StyleRadioBox
,
1
,
wxEXPAND
|
wxALL
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerStyle
,
1
,
wxEXPAND
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerStyle
,
1
,
wxEXPAND
|
wxBOTTOM
,
5
);
wxBoxSizer
*
fieldNameBoxSizer
;
wxBoxSizer
*
fieldNameBoxSizer
;
fieldNameBoxSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
fieldNameBoxSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
...
...
eeschema/dialogs/dialog_edit_component_in_schematic_fbp.fbp
View file @
6393d226
...
@@ -1782,7 +1782,7 @@
...
@@ -1782,7 +1782,7 @@
<property
name=
"permission"
>
none
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"0"
>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT
|wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
...
@@ -1872,7 +1872,7 @@
...
@@ -1872,7 +1872,7 @@
</object>
</object>
<object
class=
"sizeritem"
expanded=
"0"
>
<object
class=
"sizeritem"
expanded=
"0"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT
|wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<object
class=
"wxRadioBox"
expanded=
"0"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
...
@@ -1964,7 +1964,7 @@
...
@@ -1964,7 +1964,7 @@
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND
</property>
<property
name=
"flag"
>
wxEXPAND
|wxBOTTOM
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
...
...
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
View file @
6393d226
...
@@ -266,7 +266,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick( wxCommandEvent& event
...
@@ -266,7 +266,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::OnOKButtonClick( wxCommandEvent& event
/* End unused code */
/* End unused code */
// save old cmp in undo list
// save old cmp in undo list
m_parent
->
SaveCopyInUndoList
(
m_libEntry
,
IS_CHANGED
);
m_parent
->
SaveCopyInUndoList
(
m_libEntry
);
// delete any fields with no name or no value before we copy all of m_FieldsBuf
// delete any fields with no name or no value before we copy all of m_FieldsBuf
// back into the component
// back into the component
...
...
eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.cpp
View file @
6393d226
...
@@ -57,7 +57,7 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
...
@@ -57,7 +57,7 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
m_FieldHJustifyCtrl
->
SetSelection
(
1
);
m_FieldHJustifyCtrl
->
SetSelection
(
1
);
m_FieldHJustifyCtrl
->
SetToolTip
(
_
(
"Select if the component is to be rotated when drawn"
)
);
m_FieldHJustifyCtrl
->
SetToolTip
(
_
(
"Select if the component is to be rotated when drawn"
)
);
bSizerJustify
->
Add
(
m_FieldHJustifyCtrl
,
1
,
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
bSizerJustify
->
Add
(
m_FieldHJustifyCtrl
,
1
,
wx
EXPAND
|
wxALL
,
5
);
wxString
m_FieldVJustifyCtrlChoices
[]
=
{
_
(
"Bottom"
),
_
(
"Center"
),
_
(
"Top"
)
};
wxString
m_FieldVJustifyCtrlChoices
[]
=
{
_
(
"Bottom"
),
_
(
"Center"
),
_
(
"Top"
)
};
int
m_FieldVJustifyCtrlNChoices
=
sizeof
(
m_FieldVJustifyCtrlChoices
)
/
sizeof
(
wxString
);
int
m_FieldVJustifyCtrlNChoices
=
sizeof
(
m_FieldVJustifyCtrlChoices
)
/
sizeof
(
wxString
);
...
@@ -65,10 +65,10 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
...
@@ -65,10 +65,10 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
m_FieldVJustifyCtrl
->
SetSelection
(
0
);
m_FieldVJustifyCtrl
->
SetSelection
(
0
);
m_FieldVJustifyCtrl
->
SetToolTip
(
_
(
"Pick the graphical transformation to be used when displaying the component, if any"
)
);
m_FieldVJustifyCtrl
->
SetToolTip
(
_
(
"Pick the graphical transformation to be used when displaying the component, if any"
)
);
bSizerJustify
->
Add
(
m_FieldVJustifyCtrl
,
1
,
wx
BOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
bSizerJustify
->
Add
(
m_FieldVJustifyCtrl
,
1
,
wx
EXPAND
|
wxALL
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerJustify
,
0
,
wxEXPAND
|
wxBOTTOM
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerJustify
,
1
,
wxEXPAND
|
wxBOTTOM
,
5
);
wxBoxSizer
*
bSizerAspect
;
wxBoxSizer
*
bSizerAspect
;
bSizerAspect
=
new
wxBoxSizer
(
wxHORIZONTAL
);
bSizerAspect
=
new
wxBoxSizer
(
wxHORIZONTAL
);
...
@@ -93,10 +93,10 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
...
@@ -93,10 +93,10 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
int
m_StyleRadioBoxNChoices
=
sizeof
(
m_StyleRadioBoxChoices
)
/
sizeof
(
wxString
);
int
m_StyleRadioBoxNChoices
=
sizeof
(
m_StyleRadioBoxChoices
)
/
sizeof
(
wxString
);
m_StyleRadioBox
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Style:"
),
wxDefaultPosition
,
wxDefaultSize
,
m_StyleRadioBoxNChoices
,
m_StyleRadioBoxChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_StyleRadioBox
=
new
wxRadioBox
(
this
,
wxID_ANY
,
_
(
"Style:"
),
wxDefaultPosition
,
wxDefaultSize
,
m_StyleRadioBoxNChoices
,
m_StyleRadioBoxChoices
,
1
,
wxRA_SPECIFY_COLS
);
m_StyleRadioBox
->
SetSelection
(
0
);
m_StyleRadioBox
->
SetSelection
(
0
);
bSizerAspect
->
Add
(
m_StyleRadioBox
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
,
5
);
bSizerAspect
->
Add
(
m_StyleRadioBox
,
1
,
wxBOTTOM
|
wxRIGHT
|
wxLEFT
|
wxEXPAND
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerAspect
,
0
,
wxEXPAND
|
wxTOP
,
5
);
fieldEditBoxSizer
->
Add
(
bSizerAspect
,
1
,
wxEXPAND
|
wxTOP
|
wxBOTTOM
,
5
);
wxBoxSizer
*
fieldNameBoxSizer
;
wxBoxSizer
*
fieldNameBoxSizer
;
fieldNameBoxSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
fieldNameBoxSizer
=
new
wxBoxSizer
(
wxVERTICAL
);
...
@@ -199,7 +199,6 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
...
@@ -199,7 +199,6 @@ DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE::DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
this
->
SetSizer
(
mainSizer
);
this
->
SetSizer
(
mainSizer
);
this
->
Layout
();
this
->
Layout
();
mainSizer
->
Fit
(
this
);
// Connect Events
// Connect Events
this
->
Connect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
::
OnCloseDialog
)
);
this
->
Connect
(
wxEVT_CLOSE_WINDOW
,
wxCloseEventHandler
(
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
::
OnCloseDialog
)
);
...
...
eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.fbp
View file @
6393d226
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
</property>
<property
name=
"name"
>
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
</property>
<property
name=
"pos"
></property>
<property
name=
"pos"
></property>
<property
name=
"size"
>
-1,-1
</property>
<property
name=
"size"
>
542,529
</property>
<property
name=
"style"
>
wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU
</property>
<property
name=
"style"
>
wxCAPTION|wxCLOSE_BOX|wxDEFAULT_DIALOG_STYLE|wxMAXIMIZE_BOX|wxMINIMIZE_BOX|wxRESIZE_BORDER|wxSYSTEM_MENU
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"subclass"
>
DIALOG_SHIM; dialog_shim.h
</property>
<property
name=
"title"
>
Field Properties
</property>
<property
name=
"title"
>
Field Properties
</property>
...
@@ -494,7 +494,7 @@
...
@@ -494,7 +494,7 @@
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND|wxBOTTOM
</property>
<property
name=
"flag"
>
wxEXPAND|wxBOTTOM
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bSizerJustify
</property>
<property
name=
"name"
>
bSizerJustify
</property>
...
@@ -502,7 +502,7 @@
...
@@ -502,7 +502,7 @@
<property
name=
"permission"
>
none
</property>
<property
name=
"permission"
>
none
</property>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
BOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wx
EXPAND|wxALL
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"1"
>
<object
class=
"wxRadioBox"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
...
@@ -592,7 +592,7 @@
...
@@ -592,7 +592,7 @@
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wx
BOTTOM|wxRIGHT|wxLEFT|wxEXPAND
</property>
<property
name=
"flag"
>
wx
EXPAND|wxALL
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"1"
>
<object
class=
"wxRadioBox"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
...
@@ -684,8 +684,8 @@
...
@@ -684,8 +684,8 @@
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxEXPAND|wxTOP
</property>
<property
name=
"flag"
>
wxEXPAND|wxTOP
|wxBOTTOM
</property>
<property
name=
"proportion"
>
0
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<object
class=
"wxBoxSizer"
expanded=
"1"
>
<property
name=
"minimum_size"
></property>
<property
name=
"minimum_size"
></property>
<property
name=
"name"
>
bSizerAspect
</property>
<property
name=
"name"
>
bSizerAspect
</property>
...
@@ -883,7 +883,7 @@
...
@@ -883,7 +883,7 @@
</object>
</object>
<object
class=
"sizeritem"
expanded=
"1"
>
<object
class=
"sizeritem"
expanded=
"1"
>
<property
name=
"border"
>
5
</property>
<property
name=
"border"
>
5
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT
</property>
<property
name=
"flag"
>
wxBOTTOM|wxRIGHT|wxLEFT
|wxEXPAND
</property>
<property
name=
"proportion"
>
1
</property>
<property
name=
"proportion"
>
1
</property>
<object
class=
"wxRadioBox"
expanded=
"1"
>
<object
class=
"wxRadioBox"
expanded=
"1"
>
<property
name=
"BottomDockable"
>
1
</property>
<property
name=
"BottomDockable"
>
1
</property>
...
...
eeschema/dialogs/dialog_edit_libentry_fields_in_lib_base.h
View file @
6393d226
...
@@ -84,7 +84,7 @@ class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE : public DIALOG_SHIM
...
@@ -84,7 +84,7 @@ class DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE : public DIALOG_SHIM
public
:
public
:
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Field Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
-
1
,
-
1
),
long
style
=
wxCAPTION
|
wxCLOSE_BOX
|
wxDEFAULT_DIALOG_STYLE
|
wxMAXIMIZE_BOX
|
wxMINIMIZE_BOX
|
wxRESIZE_BORDER
|
wxSYSTEM_MENU
);
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
(
wxWindow
*
parent
,
wxWindowID
id
=
wxID_ANY
,
const
wxString
&
title
=
_
(
"Field Properties"
),
const
wxPoint
&
pos
=
wxDefaultPosition
,
const
wxSize
&
size
=
wxSize
(
542
,
529
),
long
style
=
wxCAPTION
|
wxCLOSE_BOX
|
wxDEFAULT_DIALOG_STYLE
|
wxMAXIMIZE_BOX
|
wxMINIMIZE_BOX
|
wxRESIZE_BORDER
|
wxSYSTEM_MENU
);
~
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
();
~
DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB_BASE
();
};
};
...
...
eeschema/libedit_undo_redo.cpp
View file @
6393d226
...
@@ -25,13 +25,13 @@
...
@@ -25,13 +25,13 @@
#include <fctsys.h>
#include <fctsys.h>
#include <class_drawpanel.h>
#include <class_drawpanel.h>
#include <general.h>
//
#include <general.h>
#include <protos.h>
//
#include <protos.h>
#include <libeditframe.h>
#include <libeditframe.h>
#include <class_libentry.h>
#include <class_libentry.h>
void
LIB_EDIT_FRAME
::
SaveCopyInUndoList
(
EDA_ITEM
*
ItemToCopy
,
int
unused_flag
)
void
LIB_EDIT_FRAME
::
SaveCopyInUndoList
(
EDA_ITEM
*
ItemToCopy
)
{
{
LIB_PART
*
CopyItem
;
LIB_PART
*
CopyItem
;
PICKED_ITEMS_LIST
*
lastcmd
;
PICKED_ITEMS_LIST
*
lastcmd
;
...
...
eeschema/libeditframe.h
View file @
6393d226
...
@@ -506,7 +506,13 @@ private:
...
@@ -506,7 +506,13 @@ private:
// General editing
// General editing
public
:
public
:
void
SaveCopyInUndoList
(
EDA_ITEM
*
ItemToCopy
,
int
flag_type_command
=
0
);
/**
* Function SaveCopyInUndoList.
* Create a copy of the current component, and save it in the undo list.
* Because a component in library editor does not a lot of primitives,
* the full data is duplicated. It is not worth to try to optimize this save funtion
*/
void
SaveCopyInUndoList
(
EDA_ITEM
*
ItemToCopy
);
private
:
private
:
void
GetComponentFromUndoList
(
wxCommandEvent
&
event
);
void
GetComponentFromUndoList
(
wxCommandEvent
&
event
);
...
...
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