Source license, coding policy, and documentation fixes.
* Add more missing source code licenses. * Fix coding policy violations (tabs and trailing white space) in Python scripting code. * Add stable release policy to full documentation build.
This commit is contained in:
parent
045f7f0d4d
commit
f86eb756af
3
Doxyfile
3
Doxyfile
|
@ -645,7 +645,8 @@ WARN_LOGFILE =
|
||||||
# directories like "/usr/src/myproject". Separate the files or directories
|
# directories like "/usr/src/myproject". Separate the files or directories
|
||||||
# with spaces.
|
# with spaces.
|
||||||
|
|
||||||
INPUT = Documentation/development/road-map.md \
|
INPUT = Documentation/development/stable-release-policy.md \
|
||||||
|
Documentation/development/road-map.md \
|
||||||
kicad \
|
kicad \
|
||||||
pcbnew \
|
pcbnew \
|
||||||
cvpcb \
|
cvpcb \
|
||||||
|
|
|
@ -1,3 +1,26 @@
|
||||||
|
#
|
||||||
|
# This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2013-2014 KiCad Developers, see change_log.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
|
||||||
|
#
|
||||||
|
|
||||||
# This python script wizard creates a FPC connector
|
# This python script wizard creates a FPC connector
|
||||||
# for Surface Mounted Technology
|
# for Surface Mounted Technology
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,28 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
|
#
|
||||||
|
# This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
|
#
|
||||||
|
# Copyright (C) 2012-2014 KiCad Developers, see change_log.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
|
||||||
|
#
|
||||||
|
|
||||||
from pcbnew import *
|
from pcbnew import *
|
||||||
|
|
||||||
class TouchSliderWizard(FootprintWizardPlugin):
|
class TouchSliderWizard(FootprintWizardPlugin):
|
||||||
|
|
|
@ -1,3 +1,27 @@
|
||||||
|
/*
|
||||||
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
|
* Copyright (C) 2007-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 polygon_test_point_inside.cpp
|
* @file polygon_test_point_inside.cpp
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,6 +1,26 @@
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/*
|
||||||
// Name: polygon_test_point_inside.h
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
*
|
||||||
|
* Copyright (C) 2007-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
|
* Copyright (C) 2007-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
|
||||||
|
*/
|
||||||
|
|
||||||
#ifndef __WXWINDOWS__
|
#ifndef __WXWINDOWS__
|
||||||
// define here wxPoint if we want to compile outside wxWidgets
|
// define here wxPoint if we want to compile outside wxWidgets
|
||||||
|
|
|
@ -1,3 +1,27 @@
|
||||||
|
/*
|
||||||
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012-2014 Jean-Pierre Charras, jp.charras at wanadoo.fr
|
||||||
|
* Copyright (C) 2012-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 polygons_defs.h
|
* file polygons_defs.h
|
||||||
* definitions to use boost::polygon in KiCad.
|
* definitions to use boost::polygon in KiCad.
|
||||||
|
|
|
@ -1,43 +1,67 @@
|
||||||
|
/*
|
||||||
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2012 NBEE Embedded Systems, Miguel Angel Ajo <miguelangel@nbee.es>
|
||||||
|
* Copyright (C) 1992-2012 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
|
||||||
|
* 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
|
||||||
|
*/
|
||||||
|
|
||||||
/* DLIST python iteration code, to allow standard iteration over DLIST */
|
/* DLIST python iteration code, to allow standard iteration over DLIST */
|
||||||
|
|
||||||
%extend DLIST
|
%extend DLIST
|
||||||
{
|
{
|
||||||
%pythoncode
|
%pythoncode
|
||||||
{
|
{
|
||||||
class DLISTIter:
|
class DLISTIter:
|
||||||
def __init__(self,aList):
|
def __init__(self,aList):
|
||||||
self.last = aList # last item is the start of list
|
self.last = aList # last item is the start of list
|
||||||
|
|
||||||
def next(self): # get the next item
|
def next(self): # get the next item
|
||||||
|
|
||||||
item = self.last
|
item = self.last
|
||||||
try:
|
try:
|
||||||
item = item.Get()
|
item = item.Get()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if item is None: # if the item is None, then finish the iteration
|
if item is None: # if the item is None, then finish the iteration
|
||||||
raise StopIteration
|
raise StopIteration
|
||||||
else:
|
else:
|
||||||
ret = None
|
ret = None
|
||||||
|
|
||||||
# first item in list has "Get" as a DLIST
|
# first item in list has "Get" as a DLIST
|
||||||
try:
|
try:
|
||||||
ret = self.last.Get()
|
ret = self.last.Get()
|
||||||
except:
|
except:
|
||||||
ret = self.last # next items do not..
|
ret = self.last # next items do not..
|
||||||
|
|
||||||
self.last = self.last.Next()
|
self.last = self.last.Next()
|
||||||
|
|
||||||
# when the iterated object can be casted down in inheritance, just do it..
|
# when the iterated object can be casted down in inheritance, just do it..
|
||||||
|
|
||||||
if 'Cast' in dir(ret):
|
if 'Cast' in dir(ret):
|
||||||
ret = ret.Cast()
|
ret = ret.Cast()
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
def __iter__(self):
|
def __iter__(self):
|
||||||
return self.DLISTIter(self)
|
return self.DLISTIter(self)
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -88,17 +88,17 @@ public:
|
||||||
{
|
{
|
||||||
|
|
||||||
def __eq__(self,other):
|
def __eq__(self,other):
|
||||||
return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
|
return self.x==other.x and self.y==other.y and self.width==other.width and self.height==other.height
|
||||||
def __str__(self): return str(self.Get())
|
def __str__(self): return str(self.Get())
|
||||||
def __repr__(self): return 'wxRect'+str(self.Get())
|
def __repr__(self): return 'wxRect'+str(self.Get())
|
||||||
def __len__(self): return len(self.Get())
|
def __len__(self): return len(self.Get())
|
||||||
def __getitem__(self, index): return self.Get()[index]
|
def __getitem__(self, index): return self.Get()[index]
|
||||||
def __setitem__(self, index, val):
|
def __setitem__(self, index, val):
|
||||||
if index == 0: self.SetX(val)
|
if index == 0: self.SetX(val)
|
||||||
elif index == 1: self.SetY(val)
|
elif index == 1: self.SetY(val)
|
||||||
elif index == 2: self.SetWidth(val)
|
elif index == 2: self.SetWidth(val)
|
||||||
elif index == 3: self.SetHeight(val)
|
elif index == 3: self.SetHeight(val)
|
||||||
else: raise IndexError
|
else: raise IndexError
|
||||||
def __nonzero__(self): return self.Get() != (0,0,0,0)
|
def __nonzero__(self): return self.Get() != (0,0,0,0)
|
||||||
__safe_for_unpickling__ = True
|
__safe_for_unpickling__ = True
|
||||||
}
|
}
|
||||||
|
@ -134,20 +134,20 @@ public:
|
||||||
|
|
||||||
%pythoncode
|
%pythoncode
|
||||||
{
|
{
|
||||||
def Scale(self,xscale,yscale):
|
def Scale(self,xscale,yscale):
|
||||||
return wxSize(self.x*xscale,self.y*yscale)
|
return wxSize(self.x*xscale,self.y*yscale)
|
||||||
def __eq__(self,other):
|
def __eq__(self,other):
|
||||||
return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
|
return self.GetWidth()==other.GetWidth() and self.GetHeight()==other.GetHeight()
|
||||||
def __str__(self): return str(self.Get())
|
def __str__(self): return str(self.Get())
|
||||||
def __repr__(self): return 'wxSize'+str(self.Get())
|
def __repr__(self): return 'wxSize'+str(self.Get())
|
||||||
def __len__(self): return len(self.Get())
|
def __len__(self): return len(self.Get())
|
||||||
def __getitem__(self, index): return self.Get()[index]
|
def __getitem__(self, index): return self.Get()[index]
|
||||||
def __setitem__(self, index, val):
|
def __setitem__(self, index, val):
|
||||||
if index == 0: self.SetWidth(val)
|
if index == 0: self.SetWidth(val)
|
||||||
elif index == 1: self.SetHeight(val)
|
elif index == 1: self.SetHeight(val)
|
||||||
else: raise IndexError
|
else: raise IndexError
|
||||||
def __nonzero__(self): return self.Get() != (0,0)
|
def __nonzero__(self): return self.Get() != (0,0)
|
||||||
__safe_for_unpickling__ = True
|
__safe_for_unpickling__ = True
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -167,7 +167,7 @@ public:
|
||||||
|
|
||||||
void Set(long x, long y) { self->x = x; self->y = y; }
|
void Set(long x, long y) { self->x = x; self->y = y; }
|
||||||
PyObject* Get()
|
PyObject* Get()
|
||||||
{
|
{
|
||||||
PyObject* tup = PyTuple_New(2);
|
PyObject* tup = PyTuple_New(2);
|
||||||
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
|
PyTuple_SET_ITEM(tup, 0, PyInt_FromLong(self->x));
|
||||||
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
|
PyTuple_SET_ITEM(tup, 1, PyInt_FromLong(self->y));
|
||||||
|
@ -298,5 +298,3 @@ public:
|
||||||
$result = wxArrayString2PyList($1);
|
$result = wxArrayString2PyList($1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue