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
3918d3f0
Commit
3918d3f0
authored
Feb 21, 2015
by
Mark Roszko
Committed by
jean-pierre charras
Feb 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Eeschema code cleanup and coverity fixes.
parent
d1d1e2b5
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
472 additions
and
479 deletions
+472
-479
3d_draw_helper_functions.cpp
3d-viewer/3d_draw_helper_functions.cpp
+1
-1
cairo_gal.cpp
common/gal/cairo/cairo_gal.cpp
+1
-1
CMakeLists.txt
eeschema/CMakeLists.txt
+0
-1
annotate.cpp
eeschema/annotate.cpp
+1
-1
backanno.cpp
eeschema/backanno.cpp
+1
-1
component_references_lister.cpp
eeschema/component_references_lister.cpp
+1
-1
eelibs_read_libraryfiles.cpp
eeschema/eelibs_read_libraryfiles.cpp
+0
-42
netform.cpp
eeschema/netform.cpp
+1
-0
netlist.h
eeschema/netlist.h
+2
-424
sch_reference_list.h
eeschema/sch_reference_list.h
+453
-0
sch_sheet_path.cpp
eeschema/sch_sheet_path.cpp
+1
-1
sch_text.cpp
eeschema/sch_text.cpp
+4
-3
schframe.cpp
eeschema/schframe.cpp
+1
-0
magnetic_tracks_functions.cpp
pcbnew/magnetic_tracks_functions.cpp
+5
-3
No files found.
3d-viewer/3d_draw_helper_functions.cpp
View file @
3918d3f0
...
...
@@ -304,7 +304,7 @@ void EDA_3D_CANVAS::Draw3DGrid( double aGriSizeMM )
glEnd
();
}
if
(
delta
>
xsize
/
2
)
if
(
delta
>
xsize
/
2
.0
f
)
break
;
}
...
...
common/gal/cairo/cairo_gal.cpp
View file @
3918d3f0
...
...
@@ -956,7 +956,7 @@ void CAIRO_GAL::blitCursor( wxBufferedDC& clientDC )
}
// Store pixels that are going to be overpainted
VECTOR2D
cursorScreen
=
ToScreen
(
cursorPosition
)
-
cursorSize
/
2
;
VECTOR2D
cursorScreen
=
ToScreen
(
cursorPosition
)
-
cursorSize
/
2
.0
f
;
cursorSave
.
Blit
(
0
,
0
,
cursorSize
,
cursorSize
,
&
clientDC
,
cursorScreen
.
x
,
cursorScreen
.
y
);
// Draw the cursor
...
...
eeschema/CMakeLists.txt
View file @
3918d3f0
...
...
@@ -88,7 +88,6 @@ set( EESCHEMA_SRCS
edit_component_in_schematic.cpp
edit_bitmap.cpp
edit_label.cpp
eelibs_read_libraryfiles.cpp
eeredraw.cpp
eeschema.cpp
eeschema_config.cpp
...
...
eeschema/annotate.cpp
View file @
3918d3f0
...
...
@@ -33,7 +33,7 @@
#include <confirm.h>
#include <wxEeschemaStruct.h>
#include <
net
list.h>
#include <
sch_reference_
list.h>
#include <class_library.h>
#include <sch_component.h>
#include <lib_pin.h>
...
...
eeschema/backanno.cpp
View file @
3918d3f0
...
...
@@ -40,7 +40,7 @@
#include <general.h>
#include <sch_sheet_path.h>
#include <sch_component.h>
#include <
net
list.h>
#include <
sch_reference_
list.h>
#include <dsnlexer.h>
#include <ptree.h>
...
...
eeschema/component_references_lister.cpp
View file @
3918d3f0
...
...
@@ -36,7 +36,7 @@
#include <fctsys.h>
#include <kicad_string.h>
#include <wxEeschemaStruct.h>
#include <
net
list.h>
#include <
sch_reference_
list.h>
#include <sch_component.h>
...
...
eeschema/eelibs_read_libraryfiles.cpp
deleted
100644 → 0
View file @
d1d1e2b5
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2007 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2014 KiCad Developers, see CHANGELOG.TXT for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, you may find one here:
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* or you may search the http://www.gnu.org website for the version 2 license,
* or you may write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
*/
/**
* @file eelibs_read_libraryfiles.cpp
* @brief Functions to handle reading component library files.
*/
#include <fctsys.h>
#include <kiway.h>
#include <confirm.h>
#include <macros.h>
#include <pgm_base.h>
#include <wxEeschemaStruct.h>
#include <general.h>
#include <class_library.h>
#include <wildcards_and_files_ext.h>
#include <html_messagebox.h>
eeschema/netform.cpp
View file @
3918d3f0
...
...
@@ -36,6 +36,7 @@
#include <wxEeschemaStruct.h>
#include <netlist.h>
#include <sch_reference_list.h>
#include <class_netlist_object.h>
#include <class_library.h>
#include <lib_pin.h>
...
...
eeschema/netlist.h
View file @
3918d3f0
This diff is collapsed.
Click to expand it.
eeschema/sch_reference_list.h
0 → 100644
View file @
3918d3f0
This diff is collapsed.
Click to expand it.
eeschema/sch_sheet_path.cpp
View file @
3918d3f0
...
...
@@ -35,7 +35,7 @@
#include <class_sch_screen.h>
#include <sch_item_struct.h>
#include <
net
list.h>
#include <
sch_reference_
list.h>
#include <class_library.h>
#include <sch_sheet.h>
#include <sch_sheet_path.h>
...
...
eeschema/sch_text.cpp
View file @
3918d3f0
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2009 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-2011 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 2015 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 2015 Wayne Stambaugh <stambaughw@verizon.net>
* Copyright (C) 1992-2015 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
@@ -558,7 +559,7 @@ bool SCH_TEXT::IsSelectStateChanged( const wxRect& aRect )
if
(
aRect
.
Contains
(
m_Pos
)
)
SetFlags
(
SELECTED
);
else
Set
Flags
(
SELECTED
);
Clear
Flags
(
SELECTED
);
return
previousState
!=
IsSelected
();
}
...
...
eeschema/schframe.cpp
View file @
3918d3f0
...
...
@@ -52,6 +52,7 @@
#include <hotkeys.h>
#include <eeschema_config.h>
#include <sch_sheet.h>
#include <sch_sheet_path.h>
#include <invoke_sch_dialog.h>
#include <dialogs/dialog_schematic_find.h>
...
...
pcbnew/magnetic_tracks_functions.cpp
View file @
3918d3f0
...
...
@@ -2,7 +2,7 @@
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2009-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-201
2
KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-201
5
KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
...
...
@@ -280,14 +280,16 @@ bool Magnetize( PCB_EDIT_FRAME* frame, int aCurrentTool, wxSize aGridSize,
if
(
currTrack
->
Type
()
!=
PCB_VIA_T
||
(
currTrack
->
GetStart
()
!=
track
->
GetStart
()
&&
currTrack
->
GetStart
()
!=
track
->
GetEnd
()
))
{
if
(
distStart
<=
currTrack
->
GetWidth
()
/
2
)
double
max_dist
=
currTrack
->
GetWidth
()
/
2.0
f
;
if
(
distStart
<=
max_dist
)
{
// D(printf("nearest end is start\n");)
*
curpos
=
track
->
GetStart
();
return
true
;
}
if
(
distEnd
<=
currTrack
->
GetWidth
()
/
2
)
if
(
distEnd
<=
max_dist
)
{
// D(printf("nearest end is end\n");)
*
curpos
=
track
->
GetEnd
();
...
...
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