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
9cd1fdd9
Commit
9cd1fdd9
authored
Oct 31, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix minor issue under wxWidgets 2.9.3 in DRC dialog display.
More work about code refactoring in connect.cpp
parent
d5ea4750
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
130 additions
and
209 deletions
+130
-209
class_track.h
pcbnew/class_track.h
+1
-0
connect.cpp
pcbnew/connect.cpp
+95
-195
dialog_drc.cpp
pcbnew/dialogs/dialog_drc.cpp
+28
-7
drc.cpp
pcbnew/drc.cpp
+6
-7
No files found.
pcbnew/class_track.h
View file @
9cd1fdd9
...
@@ -63,6 +63,7 @@ protected:
...
@@ -63,6 +63,7 @@ protected:
public
:
public
:
BOARD_ITEM
*
start
;
// pointers to a connected item (pad or track)
BOARD_ITEM
*
start
;
// pointers to a connected item (pad or track)
BOARD_ITEM
*
end
;
BOARD_ITEM
*
end
;
std
::
vector
<
TRACK
*>
m_TracksConnected
;
// list of other tracks connected to me
int
m_Param
;
// Auxiliary variable ( used in some computations )
int
m_Param
;
// Auxiliary variable ( used in some computations )
...
...
pcbnew/connect.cpp
View file @
9cd1fdd9
This diff is collapsed.
Click to expand it.
pcbnew/dialogs/dialog_drc.cpp
View file @
9cd1fdd9
/////////////////////////////////////////////////////////////////////////////
/**
* @file dialog_drc.cpp
// Name: dialog_drc.cpp
*/
// Author: jean-pierre Charras
// Licence: GPL
/////////////////////////////////////////////////////////////////////////////
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2011 Jean-Pierre Charras, jaen-pierre.charras@gipsa-lab.inpg.com
* Copyright (C) 2004-2011 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
*/
#include "fctsys.h"
#include "fctsys.h"
#include "dialog_drc.h"
#include "dialog_drc.h"
...
@@ -153,7 +173,8 @@ void DIALOG_DRC_CONTROL::OnStartdrcClick( wxCommandEvent& event )
...
@@ -153,7 +173,8 @@ void DIALOG_DRC_CONTROL::OnStartdrcClick( wxCommandEvent& event )
// run all the tests, with no UI at this time.
// run all the tests, with no UI at this time.
m_Messages
->
Clear
();
m_Messages
->
Clear
();
wxSafeYield
();
// Allows time slice to refresh the m_Messages window
m_Messages
->
Refresh
();
wxYield
();
// Allows time slice to refresh the m_Messages window
m_tester
->
m_pcb
->
m_Status_Pcb
=
0
;
// Force full connectivity and ratsnest recalculations
m_tester
->
m_pcb
->
m_Status_Pcb
=
0
;
// Force full connectivity and ratsnest recalculations
m_tester
->
RunTests
(
m_Messages
);
m_tester
->
RunTests
(
m_Messages
);
...
...
pcbnew/drc.cpp
View file @
9cd1fdd9
...
@@ -180,7 +180,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
...
@@ -180,7 +180,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
if
(
aMessages
)
if
(
aMessages
)
{
{
aMessages
->
AppendText
(
_
(
"Compile ratsnest...
\n
"
)
);
aMessages
->
AppendText
(
_
(
"Compile ratsnest...
\n
"
)
);
wxSafeYield
();
aMessages
->
Refresh
();
}
}
m_mainWindow
->
Compile_Ratsnest
(
NULL
,
true
);
m_mainWindow
->
Compile_Ratsnest
(
NULL
,
true
);
...
@@ -209,7 +209,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
...
@@ -209,7 +209,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
if
(
aMessages
)
if
(
aMessages
)
{
{
aMessages
->
AppendText
(
_
(
"Pad clearances...
\n
"
)
);
aMessages
->
AppendText
(
_
(
"Pad clearances...
\n
"
)
);
wxSafeYield
();
aMessages
->
Refresh
();
}
}
testPad2Pad
();
testPad2Pad
();
...
@@ -219,9 +219,8 @@ void DRC::RunTests( wxTextCtrl* aMessages )
...
@@ -219,9 +219,8 @@ void DRC::RunTests( wxTextCtrl* aMessages )
if
(
aMessages
)
if
(
aMessages
)
{
{
aMessages
->
AppendText
(
_
(
"Track clearances...
\n
"
)
);
aMessages
->
AppendText
(
_
(
"Track clearances...
\n
"
)
);
wxSafeYield
();
aMessages
->
Refresh
();
}
}
testTracks
();
testTracks
();
// Before testing segments and unconnected, refill all zones:
// Before testing segments and unconnected, refill all zones:
...
@@ -229,7 +228,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
...
@@ -229,7 +228,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
if
(
aMessages
)
if
(
aMessages
)
{
{
aMessages
->
AppendText
(
_
(
"Fill zones...
\n
"
)
);
aMessages
->
AppendText
(
_
(
"Fill zones...
\n
"
)
);
wxSafeYield
();
aMessages
->
Refresh
();
}
}
m_mainWindow
->
Fill_All_Zones
(
false
);
m_mainWindow
->
Fill_All_Zones
(
false
);
...
@@ -238,7 +237,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
...
@@ -238,7 +237,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
if
(
aMessages
&&
m_doZonesTest
)
if
(
aMessages
&&
m_doZonesTest
)
{
{
aMessages
->
AppendText
(
_
(
"Test zones...
\n
"
)
);
aMessages
->
AppendText
(
_
(
"Test zones...
\n
"
)
);
wxSafeYield
();
aMessages
->
Refresh
();
}
}
testZones
(
m_doZonesTest
);
testZones
(
m_doZonesTest
);
...
@@ -249,7 +248,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
...
@@ -249,7 +248,7 @@ void DRC::RunTests( wxTextCtrl* aMessages )
if
(
aMessages
)
if
(
aMessages
)
{
{
aMessages
->
AppendText
(
_
(
"Unconnected pads...
\n
"
)
);
aMessages
->
AppendText
(
_
(
"Unconnected pads...
\n
"
)
);
wxSafeYield
();
aMessages
->
Refresh
();
}
}
testUnconnected
();
testUnconnected
();
...
...
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