Commit 9cd1fdd9 authored by jean-pierre charras's avatar jean-pierre charras

Fix minor issue under wxWidgets 2.9.3 in DRC dialog display.

More work about code refactoring in connect.cpp
parent d5ea4750
...@@ -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 )
......
This diff is collapsed.
///////////////////////////////////////////////////////////////////////////// /**
* @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);
......
...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment