From cee9ab761079fff063e1300ffcd9c9f67ca45df6 Mon Sep 17 00:00:00 2001 From: jerryjacobs Date: Sat, 9 Jan 2010 17:54:39 +0000 Subject: [PATCH] Applied Torsten PCBNew DRC patch and testcase, update email, update scripts --- AUTHORS.txt | 4 +- common/about_kicad.cpp | 6 +- pcbnew/drc.cpp | 8 +- scripts/kicad-devel | 2 +- scripts/kicad-get-rss | 5 +- share/test-cases/pcbnew/pcbnew-drc-test.brd | 228 ++++++++++++++++++++ 6 files changed, 241 insertions(+), 12 deletions(-) create mode 100644 share/test-cases/pcbnew/pcbnew-drc-test.brd diff --git a/AUTHORS.txt b/AUTHORS.txt index b0850a3cc6..3f23a1444e 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -13,7 +13,7 @@ Saint Martin d'H == Contributors Dick Hollenbeck -Jerry Jacobs +Jerry Jacobs Jonas Diemer KBool Library http://boolean.klaasholwerda.nl/bool.html Rok Markovic @@ -29,7 +29,7 @@ Igor Plyatov == Translators Czech (CZ) Martin KratoÅ¡ka -Dutch (NL) Jerry Jacobs +Dutch (NL) Jerry Jacobs French (FR) Jean-Pierre Charras Polish (PL) Mateusz Skowro¿ski Portuguese (PT) Renie Marquet " diff --git a/common/about_kicad.cpp b/common/about_kicad.cpp index 4b1e46fca4..7be3aea541 100644 --- a/common/about_kicad.cpp +++ b/common/about_kicad.cpp @@ -97,7 +97,7 @@ void InitKiCadAbout( wxAboutDialogInfo& info ) info.SetDescription( description ); /* Set copyright dialog */ - info.SetCopyright( _T( "(C) 1992-2009 KiCad Developers Team" ) ); + info.SetCopyright( _T( "(C) 1992-2010 KiCad Developers Team" ) ); /* Set license dialog */ info.SetLicence( wxString::FromAscii @@ -110,7 +110,7 @@ void InitKiCadAbout( wxAboutDialogInfo& info ) info.AddDeveloper( wxT( "Jean-Pierre Charras " ) ); info.AddDeveloper( SetMsg( wxT( "Dick Hollenbeck " ) ) ); info.AddDeveloper( SetMsg( wxT( "Hauptmech ") ) ); - info.AddDeveloper( SetMsg( wxT( "Jerry Jacobs " ) ) ); + info.AddDeveloper( SetMsg( wxT( "Jerry Jacobs " ) ) ); info.AddDeveloper( SetMsg( wxT( "Jonas Diemer " ) ) ); info.AddDeveloper( SetMsg( wxT( "KBool Library " ) ) ); info.AddDeveloper( SetMsg( wxT( "Lorenzo " ) ) ); @@ -126,7 +126,7 @@ void InitKiCadAbout( wxAboutDialogInfo& info ) /* Add translators */ info.AddTranslator( wxT( "Czech (CZ) Martin KratoÅ¡ka " ) ); - info.AddTranslator( SetMsg( wxT( "Dutch (NL) Jerry Jacobs " ) ) ); + info.AddTranslator( SetMsg( wxT( "Dutch (NL) Jerry Jacobs " ) ) ); info.AddTranslator( SetMsg( wxT( "French (FR) Jean-Pierre Charras " ) ) ); info.AddTranslator( SetMsg( wxT( "Polish (PL) Mateusz SkowroÅ„ski " ) ) ); info.AddTranslator( SetMsg( wxT( "Portuguese (PT) Renie Marquet " ) ) ); diff --git a/pcbnew/drc.cpp b/pcbnew/drc.cpp index 1d917a370e..6f85951fd3 100644 --- a/pcbnew/drc.cpp +++ b/pcbnew/drc.cpp @@ -1402,11 +1402,11 @@ bool DRC::checkClearancePadToPad( D_PAD* aRefPad, D_PAD* aPad ) RotatePoint( &sx, &sy, m_segmAngle ); // True start point coordinate of the equivalent segment - m_spotcx = rel_pos.x + sx; - m_spotcy = rel_pos.y + sy; // pad position / segment origin + m_spotcx = rel_pos.x - sx; + m_spotcy = rel_pos.y - sy; // pad position / segment origin - m_finx = -sx; - m_finy = -sy; // end of segment coordinate + m_finx = - 2 * sx; + m_finy = - 2 * sy; // end of segment coordinate diag = checkClearanceSegmToPad( aPad, segm_width / 2, dist_min ); break; } diff --git a/scripts/kicad-devel b/scripts/kicad-devel index de065cdd0d..a33aa154da 100755 --- a/scripts/kicad-devel +++ b/scripts/kicad-devel @@ -44,7 +44,7 @@ my $no_options = 0; # No options given # Commands ### my $command_silent = '&> /dev/null'; # Nullify stderr and stdout from commands -my $command_cmake = "cmake -DCMAKE_BUILD_TYPE=Debug -DwxWidgets_USE_DEBUG=ON $svn_path_local"; # Where cmake looks for CMakeLists.txt +my $command_cmake = "cmake -DCMAKE_BUILD_TYPE=Debug -DwxWidgets_USE_DEBUG=ON -DKICAD_AUIMANAGER=ON -DKICAD_AUITOOLBAR=ON $svn_path_local"; # Where cmake looks for CMakeLists.txt my $command_svn_update = 'svn update'; # Subversion update command ### diff --git a/scripts/kicad-get-rss b/scripts/kicad-get-rss index 8a24a1479b..58f4144886 100755 --- a/scripts/kicad-get-rss +++ b/scripts/kicad-get-rss @@ -57,8 +57,9 @@ while read LINE do curl -s "$LINE" | \ grep vc_log | \ - sed -e 's/
//' |\
-	sed -e 's/<\/pre><\/td>//'
+	sed -e 's/
//' | \
+	sed -e 's/<\/pre><\/td>//' | \
+	sed -e '/