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
6d151312
Commit
6d151312
authored
Sep 10, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more missing D()->DBG() changes.
parent
08e79755
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
24 additions
and
24 deletions
+24
-24
dialog_edit_component_in_schematic.cpp
eeschema/dialogs/dialog_edit_component_in_schematic.cpp
+6
-6
dialog_edit_libentry_fields_in_lib.cpp
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
+6
-6
eeschema_config.cpp
eeschema/eeschema_config.cpp
+3
-3
lib_field.cpp
eeschema/lib_field.cpp
+1
-1
netform.cpp
eeschema/netform.cpp
+2
-2
template_fieldnames.cpp
eeschema/template_fieldnames.cpp
+2
-2
class_aperture_macro.cpp
gerbview/class_aperture_macro.cpp
+1
-1
rs274x.cpp
gerbview/rs274x.cpp
+3
-3
No files found.
eeschema/dialogs/dialog_edit_component_in_schematic.cpp
View file @
6d151312
...
...
@@ -188,7 +188,7 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC( wxWindow
void
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC
::
OnListItemDeselected
(
wxListEvent
&
event
)
{
D
(
printf
(
"OnListItemDeselected()
\n
"
);
)
D
BG
(
printf
(
"OnListItemDeselected()
\n
"
);
)
if
(
!
m_skipCopyFromPanel
)
{
...
...
@@ -200,7 +200,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnListItemDeselected( wxListEvent& even
void
DIALOG_EDIT_COMPONENT_IN_SCHEMATIC
::
OnListItemSelected
(
wxListEvent
&
event
)
{
D
(
printf
(
"OnListItemSelected()
\n
"
);
)
D
BG
(
printf
(
"OnListItemSelected()
\n
"
);
)
// remember the selected row, statically
s_SelectedRow
=
event
.
GetIndex
();
...
...
@@ -448,7 +448,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::moveUpButtonHandler( wxCommandEvent& ev
// and in the fieldListCtrl
SCH_FIELD
tmp
=
m_FieldsBuf
[
fieldNdx
-
1
];
D
(
printf
(
"tmp.m_Text=
\"
%s
\"
tmp.m_Name=
\"
%s
\"\n
"
,
D
BG
(
printf
(
"tmp.m_Text=
\"
%s
\"
tmp.m_Name=
\"
%s
\"\n
"
,
TO_UTF8
(
tmp
.
GetText
()
),
TO_UTF8
(
tmp
.
GetName
(
false
)
)
);
)
m_FieldsBuf
[
fieldNdx
-
1
]
=
m_FieldsBuf
[
fieldNdx
];
...
...
@@ -866,12 +866,12 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyOptionsToPanel()
if
(
mirror
==
CMP_MIRROR_X
)
{
mirrorRadioBox
->
SetSelection
(
1
);
D
(
printf
(
"mirror=X,1
\n
"
);
)
D
BG
(
printf
(
"mirror=X,1
\n
"
);
)
}
else
if
(
mirror
==
CMP_MIRROR_Y
)
{
mirrorRadioBox
->
SetSelection
(
2
);
D
(
printf
(
"mirror=Y,2
\n
"
);
)
D
BG
(
printf
(
"mirror=Y,2
\n
"
);
)
}
else
mirrorRadioBox
->
SetSelection
(
0
);
...
...
@@ -891,7 +891,7 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::copyOptionsToPanel()
// Show the "Parts Locked" option?
if
(
!
m_LibEntry
||
!
m_LibEntry
->
UnitsLocked
()
)
{
D
(
printf
(
"partsAreLocked->false
\n
"
);
)
D
BG
(
printf
(
"partsAreLocked->false
\n
"
);
)
partsAreLockedLabel
->
Show
(
false
);
}
...
...
eeschema/dialogs/dialog_edit_libentry_fields_in_lib.cpp
View file @
6d151312
...
...
@@ -472,7 +472,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers()
// fixed fields:
for
(
int
i
=
0
;
i
<
MANDATORY_FIELDS
;
++
i
)
{
D
(
printf
(
"add fixed:%s
\n
"
,
TO_UTF8
(
cmpFields
[
i
].
GetName
()
)
);
)
D
BG
(
printf
(
"add fixed:%s
\n
"
,
TO_UTF8
(
cmpFields
[
i
].
GetName
()
)
);
)
m_FieldsBuf
.
push_back
(
cmpFields
[
i
]
);
}
...
...
@@ -497,7 +497,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers()
// values from the component will be set.
if
(
!
libField
)
{
D
(
printf
(
"add template:%s
\n
"
,
TO_UTF8
(
it
->
m_Name
)
);
)
D
BG
(
printf
(
"add template:%s
\n
"
,
TO_UTF8
(
it
->
m_Name
)
);
)
fld
.
SetName
(
it
->
m_Name
);
fld
.
SetText
(
it
->
m_Value
);
// empty? ok too.
...
...
@@ -509,7 +509,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers()
}
else
{
D
(
printf
(
"match template:%s
\n
"
,
TO_UTF8
(
libField
->
GetName
()
)
);
)
D
BG
(
printf
(
"match template:%s
\n
"
,
TO_UTF8
(
libField
->
GetName
()
)
);
)
fld
=
*
libField
;
// copy values from component, m_Name too
}
...
...
@@ -525,7 +525,7 @@ void DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::initBuffers()
if
(
!
buf
)
{
D
(
printf
(
"add cmp:%s
\n
"
,
TO_UTF8
(
cmp
->
GetName
()
)
);
)
D
BG
(
printf
(
"add cmp:%s
\n
"
,
TO_UTF8
(
cmp
->
GetName
()
)
);
)
m_FieldsBuf
.
push_back
(
*
cmp
);
}
}
...
...
@@ -721,11 +721,11 @@ bool DIALOG_EDIT_LIBENTRY_FIELDS_IN_LIB::copyPanelToSelectedField()
if
(
field
.
GetId
()
>=
MANDATORY_FIELDS
)
{
wxString
name
=
fieldNameTextCtrl
->
GetValue
();
D
(
printf
(
"name:%s
\n
"
,
TO_UTF8
(
name
)
);
)
D
BG
(
printf
(
"name:%s
\n
"
,
TO_UTF8
(
name
)
);
)
field
.
SetName
(
name
);
}
D
(
printf
(
"setname:%s
\n
"
,
TO_UTF8
(
field
.
GetName
()
)
);
)
D
BG
(
printf
(
"setname:%s
\n
"
,
TO_UTF8
(
field
.
GetName
()
)
);
)
setRowItem
(
fieldNdx
,
field
);
// update fieldListCtrl
...
...
eeschema/eeschema_config.cpp
View file @
6d151312
...
...
@@ -292,7 +292,7 @@ void SCH_EDIT_FRAME::OnSetOptions( wxCommandEvent& event )
for
(
unsigned
i
=
0
;
i
<
tfnames
.
size
();
++
i
)
{
D
(
printf
(
"dlg.SetFieldName(%d, '%s')
\n
"
,
i
,
TO_UTF8
(
tfnames
[
i
].
m_Name
)
);)
D
BG
(
printf
(
"dlg.SetFieldName(%d, '%s')
\n
"
,
i
,
TO_UTF8
(
tfnames
[
i
].
m_Name
)
);)
dlg
.
SetFieldName
(
i
,
tfnames
[
i
].
m_Name
);
}
...
...
@@ -680,7 +680,7 @@ void SCH_EDIT_FRAME::LoadSettings()
catch
(
IO_ERROR
&
e
)
{
// @todo show error msg
D
(
printf
(
"templatefieldnames parsing error: '%s'
\n
"
,
D
BG
(
printf
(
"templatefieldnames parsing error: '%s'
\n
"
,
TO_UTF8
(
e
.
errorText
)
);
)
}
}
...
...
@@ -751,7 +751,7 @@ void SCH_EDIT_FRAME::SaveSettings()
m_TemplateFieldNames
.
Format
(
&
sf
,
0
);
D
(
printf
(
"saving formatted template fieldnames:'%s'
\n
"
,
sf
.
GetString
().
c_str
()
);)
D
BG
(
printf
(
"saving formatted template fieldnames:'%s'
\n
"
,
sf
.
GetString
().
c_str
()
);)
wxString
record
=
FROM_UTF8
(
sf
.
GetString
().
c_str
()
);
record
.
Replace
(
wxT
(
"
\n
"
),
wxT
(
""
),
true
);
// strip all newlines
...
...
eeschema/lib_field.cpp
View file @
6d151312
...
...
@@ -640,7 +640,7 @@ void LIB_FIELD::SetName( const wxString& aName )
// Besides, m_id is a relic that is untrustworthy now.
if
(
m_id
>=
0
&&
m_id
<
MANDATORY_FIELDS
)
{
D
(
printf
(
"trying to set a MANDATORY_FIELD's name
\n
"
);)
D
BG
(
printf
(
"trying to set a MANDATORY_FIELD's name
\n
"
);)
return
;
}
...
...
eeschema/netform.cpp
View file @
6d151312
...
...
@@ -417,7 +417,7 @@ bool SCH_EDIT_FRAME::WriteNetListFile( int aFormat, const wxString& aFullFileNam
wxFileName
tmpFile
=
aFullFileName
;
tmpFile
.
SetExt
(
INTERMEDIATE_NETLIST_EXT
);
D
(
printf
(
"tmpFile:'%s'
\n
"
,
TO_UTF8
(
tmpFile
.
GetFullPath
()
)
);)
D
BG
(
printf
(
"tmpFile:'%s'
\n
"
,
TO_UTF8
(
tmpFile
.
GetFullPath
()
)
);)
ret
=
helper
.
WriteGENERICNetList
(
tmpFile
.
GetFullPath
()
);
if
(
!
ret
)
...
...
@@ -435,7 +435,7 @@ bool SCH_EDIT_FRAME::WriteNetListFile( int aFormat, const wxString& aFullFileNam
tmpFile
.
GetFullPath
(),
aFullFileName
);
D
(
printf
(
"commandLine:'%s'
\n
"
,
TO_UTF8
(
commandLine
)
);)
D
BG
(
printf
(
"commandLine:'%s'
\n
"
,
TO_UTF8
(
commandLine
)
);)
ProcessExecute
(
commandLine
,
wxEXEC_SYNC
);
...
...
eeschema/template_fieldnames.cpp
View file @
6d151312
...
...
@@ -151,7 +151,7 @@ int TEMPLATES::AddTemplateFieldName( const TEMPLATE_FIELDNAME& aFieldName )
{
if
(
m_Fields
[
i
].
m_Name
==
aFieldName
.
m_Name
)
{
D
(
printf
(
"inserting template fieldname:'%s' at %d
\n
"
,
D
BG
(
printf
(
"inserting template fieldname:'%s' at %d
\n
"
,
TO_UTF8
(
aFieldName
.
m_Name
),
i
);
)
m_Fields
[
i
]
=
aFieldName
;
...
...
@@ -159,7 +159,7 @@ int TEMPLATES::AddTemplateFieldName( const TEMPLATE_FIELDNAME& aFieldName )
}
}
// D(printf("appending template fieldname:'%s'\n", aFieldName.m_Name.utf8_str() );)
// D
BG
(printf("appending template fieldname:'%s'\n", aFieldName.m_Name.utf8_str() );)
// the name is legal and not previously added to the config container, append
// it and return its index within the container.
...
...
gerbview/class_aperture_macro.cpp
View file @
6d151312
...
...
@@ -409,7 +409,7 @@ void AM_PRIMITIVE::DrawBasicShape( GERBER_DRAW_ITEM* aParent,
case
AMP_UNKNOWN
:
default
:
D
(
printf
(
"AM_PRIMITIVE::DrawBasicShape() err: unknown prim id %d
\n
"
,
primitive_id
)
);
D
BG
(
printf
(
"AM_PRIMITIVE::DrawBasicShape() err: unknown prim id %d
\n
"
,
primitive_id
)
);
break
;
}
}
...
...
gerbview/rs274x.cpp
View file @
6d151312
...
...
@@ -167,7 +167,7 @@ bool GERBER_IMAGE::ExecuteRS274XCommand( int command,
if
(
m_GerbMetric
)
conv_scale
/=
25.4
;
// D( printf( "%22s: Command <%c%c>\n", __func__, (command >> 8) & 0xFF, command & 0xFF ); )
// D
BG
( printf( "%22s: Command <%c%c>\n", __func__, (command >> 8) & 0xFF, command & 0xFF ); )
switch
(
command
)
{
...
...
@@ -521,7 +521,7 @@ bool GERBER_IMAGE::ExecuteRS274XCommand( int command,
m_ImageNegative
=
true
;
else
m_ImageNegative
=
false
;
D
(
printf
(
"%22s: IMAGE_POLARITY m_ImageNegative=%s
\n
"
,
__func__
,
D
BG
(
printf
(
"%22s: IMAGE_POLARITY m_ImageNegative=%s
\n
"
,
__func__
,
m_ImageNegative
?
"true"
:
"false"
);
)
break
;
...
...
@@ -531,7 +531,7 @@ bool GERBER_IMAGE::ExecuteRS274XCommand( int command,
else
GetLayerParams
().
m_LayerNegative
=
false
;
D
(
printf
(
"%22s: LAYER_POLARITY m_LayerNegative=%s
\n
"
,
__func__
,
D
BG
(
printf
(
"%22s: LAYER_POLARITY m_LayerNegative=%s
\n
"
,
__func__
,
GetLayerParams
().
m_LayerNegative
?
"true"
:
"false"
);
)
break
;
...
...
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