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
36773d66
Commit
36773d66
authored
Feb 24, 2011
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debug support for BUG 723793
parent
8bde66af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
dialog_edit_libentry_fields_in_lib.cpp
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
+9
-3
lib_field.cpp
eeschema/lib_field.cpp
+4
-4
No files found.
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
View file @
36773d66
...
@@ -712,12 +712,12 @@ bool DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copyPanelToSelectedField()
...
@@ -712,12 +712,12 @@ bool DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copyPanelToSelectedField()
field
.
m_Orient
=
TEXT_ORIENT_HORIZ
;
field
.
m_Orient
=
TEXT_ORIENT_HORIZ
;
// Copy the text justification
// Copy the text justification
GRTextHorizJustifyType
hjustify
[
3
]
=
{
static
const
GRTextHorizJustifyType
hjustify
[
3
]
=
{
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_HJUSTIFY_LEFT
,
GR_TEXT_HJUSTIFY_CENTER
,
GR_TEXT_HJUSTIFY_RIGHT
GR_TEXT_HJUSTIFY_RIGHT
};
};
GRTextVertJustifyType
vjustify
[
3
]
=
{
static
const
GRTextVertJustifyType
vjustify
[
3
]
=
{
GR_TEXT_VJUSTIFY_BOTTOM
,
GR_TEXT_VJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_BOTTOM
,
GR_TEXT_VJUSTIFY_CENTER
,
GR_TEXT_VJUSTIFY_TOP
GR_TEXT_VJUSTIFY_TOP
};
};
...
@@ -734,7 +734,13 @@ bool DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copyPanelToSelectedField()
...
@@ -734,7 +734,13 @@ bool DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copyPanelToSelectedField()
// FieldNameTextCtrl has a tricked value in it for VALUE index, do not copy it back.
// FieldNameTextCtrl has a tricked value in it for VALUE index, do not copy it back.
// It has the "Chip Name" appended.
// It has the "Chip Name" appended.
if
(
field
.
GetId
()
>=
MANDATORY_FIELDS
)
if
(
field
.
GetId
()
>=
MANDATORY_FIELDS
)
field
.
SetName
(
fieldNameTextCtrl
->
GetValue
()
);
{
wxString
name
=
fieldNameTextCtrl
->
GetValue
();
D
(
printf
(
"name:%s
\n
"
,
TO_UTF8
(
name
)
);
)
field
.
SetName
(
name
);
}
D
(
printf
(
"setname:%s
\n
"
,
TO_UTF8
(
field
.
GetName
()
)
);
)
setRowItem
(
fieldNdx
,
field
);
// update fieldListCtrl
setRowItem
(
fieldNdx
,
field
);
// update fieldListCtrl
...
...
eeschema/lib_field.cpp
View file @
36773d66
...
@@ -606,10 +606,10 @@ wxString LIB_FIELD::GetName(bool aTranslate) const
...
@@ -606,10 +606,10 @@ wxString LIB_FIELD::GetName(bool aTranslate) const
default
:
default
:
if
(
m_name
.
IsEmpty
()
)
if
(
m_name
.
IsEmpty
()
)
{
{
if
(
aTranslate
)
if
(
aTranslate
)
name
.
Printf
(
_
(
"Field%d"
),
m_id
);
name
.
Printf
(
_
(
"Field%d"
),
m_id
);
else
else
name
.
Printf
(
wxT
(
"Field%d"
),
m_id
);
name
.
Printf
(
wxT
(
"Field%d"
),
m_id
);
}
}
else
else
name
=
m_name
;
name
=
m_name
;
...
...
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