2012-12-18 17:50:00 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
2022-02-13 13:26:20 +00:00
|
|
|
* Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
|
2012-12-18 17:50:00 +00:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
2007-05-06 16:03:28 +00:00
|
|
|
|
* KIWAY Milestone A): Make major modules into DLL/DSOs.
! The initial testing of this commit should be done using a Debug build so that
all the wxASSERT()s are enabled. Also, be sure and keep enabled the
USE_KIWAY_DLLs option. The tree won't likely build without it. Turning it
off is senseless anyways. If you want stable code, go back to a prior version,
the one tagged with "stable".
* Relocate all functionality out of the wxApp derivative into more finely
targeted purposes:
a) DLL/DSO specific
b) PROJECT specific
c) EXE or process specific
d) configuration file specific data
e) configuration file manipulations functions.
All of this functionality was blended into an extremely large wxApp derivative
and that was incompatible with the desire to support multiple concurrently
loaded DLL/DSO's ("KIFACE")s and multiple concurrently open projects.
An amazing amount of organization come from simply sorting each bit of
functionality into the proper box.
* Switch to wxConfigBase from wxConfig everywhere except instantiation.
* Add classes KIWAY, KIFACE, KIFACE_I, SEARCH_STACK, PGM_BASE, PGM_KICAD,
PGM_SINGLE_TOP,
* Remove "Return" prefix on many function names.
* Remove obvious comments from CMakeLists.txt files, and from else() and endif()s.
* Fix building boost for use in a DSO on linux.
* Remove some of the assumptions in the CMakeLists.txt files that windows had
to be the host platform when building windows binaries.
* Reduce the number of wxStrings being constructed at program load time via
static construction.
* Pass wxConfigBase* to all SaveSettings() and LoadSettings() functions so that
these functions are useful even when the wxConfigBase comes from another
source, as is the case in the KICAD_MANAGER_FRAME.
* Move the setting of the KIPRJMOD environment variable into class PROJECT,
so that it can be moved into a project variable soon, and out of FP_LIB_TABLE.
* Add the KIWAY_PLAYER which is associated with a particular PROJECT, and all
its child wxFrames and wxDialogs now have a Kiway() member function which
returns a KIWAY& that that window tree branch is in support of. This is like
wxWindows DNA in that child windows get this member with proper value at time
of construction.
* Anticipate some of the needs for milestones B) and C) and make code
adjustments now in an effort to reduce work in those milestones.
* No testing has been done for python scripting, since milestone C) has that
being largely reworked and re-thought-out.
2014-03-20 00:42:08 +00:00
|
|
|
#include <project.h>
|
2021-09-14 22:45:14 +00:00
|
|
|
#include <kiface_base.h>
|
2012-01-23 04:33:36 +00:00
|
|
|
#include <confirm.h>
|
2018-01-29 20:58:58 +00:00
|
|
|
#include <pcb_edit_frame.h>
|
2020-01-13 01:44:19 +00:00
|
|
|
#include <pcbnew_settings.h>
|
2013-04-25 16:29:35 +00:00
|
|
|
#include <reporter.h>
|
2018-02-09 18:00:13 +00:00
|
|
|
#include <bitmaps.h>
|
2018-12-10 19:34:08 +00:00
|
|
|
#include <tool/tool_manager.h>
|
2019-08-12 21:17:25 +00:00
|
|
|
#include <tools/pcb_actions.h>
|
2018-10-12 06:17:15 +00:00
|
|
|
#include <connectivity/connectivity_data.h>
|
2012-02-16 20:03:33 +00:00
|
|
|
#include <wildcards_and_files_ext.h>
|
2022-12-13 20:47:28 +00:00
|
|
|
#include <widgets/std_bitmap_button.h>
|
2019-11-17 12:58:38 +00:00
|
|
|
#include <netlist_reader/pcb_netlist.h>
|
|
|
|
#include <netlist_reader/board_netlist_updater.h>
|
2020-05-31 21:42:04 +00:00
|
|
|
#include <project/project_file.h> // LAST_PATH_TYPE
|
2022-12-13 20:47:28 +00:00
|
|
|
#include <dialog_import_netlist.h>
|
2022-09-03 18:29:02 +00:00
|
|
|
#include <widgets/wx_html_report_panel.h>
|
2021-06-07 07:26:13 +00:00
|
|
|
#include <wx/filedlg.h>
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2013-02-02 17:39:59 +00:00
|
|
|
|
2019-05-28 23:23:58 +00:00
|
|
|
void PCB_EDIT_FRAME::InstallNetlistFrame()
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2019-08-03 03:03:03 +00:00
|
|
|
wxString netlistName = GetLastPath( LAST_PATH_NETLIST );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
DIALOG_IMPORT_NETLIST dlg( this, netlistName );
|
2007-05-06 16:03:28 +00:00
|
|
|
|
2013-02-02 17:39:59 +00:00
|
|
|
dlg.ShowModal();
|
2011-03-22 17:58:58 +00:00
|
|
|
|
2019-08-03 03:03:03 +00:00
|
|
|
SetLastPath( LAST_PATH_NETLIST, netlistName );
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
bool DIALOG_IMPORT_NETLIST::m_matchByUUID = false;
|
2019-11-17 15:37:32 +00:00
|
|
|
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
DIALOG_IMPORT_NETLIST::DIALOG_IMPORT_NETLIST( PCB_EDIT_FRAME* aParent,
|
|
|
|
wxString& aNetlistFullFilename )
|
|
|
|
: DIALOG_IMPORT_NETLIST_BASE( aParent ),
|
2018-02-28 09:44:22 +00:00
|
|
|
m_parent( aParent ),
|
2019-10-01 16:42:38 +00:00
|
|
|
m_netlistPath( aNetlistFullFilename ),
|
2018-12-10 19:34:08 +00:00
|
|
|
m_initialized( false ),
|
|
|
|
m_runDragCommand( false )
|
2008-03-22 18:08:44 +00:00
|
|
|
{
|
2019-10-01 16:42:38 +00:00
|
|
|
m_NetlistFilenameCtrl->SetValue( m_netlistPath );
|
2021-03-08 02:59:07 +00:00
|
|
|
m_browseButton->SetBitmap( KiBitmap( BITMAPS::small_folder ) );
|
2018-02-28 09:44:22 +00:00
|
|
|
|
2020-05-06 01:43:37 +00:00
|
|
|
auto cfg = m_parent->GetPcbNewSettings();
|
2020-01-13 01:44:19 +00:00
|
|
|
|
|
|
|
m_cbUpdateFootprints->SetValue( cfg->m_NetlistDialog.update_footprints );
|
|
|
|
m_cbDeleteShortingTracks->SetValue( cfg->m_NetlistDialog.delete_shorting_tracks );
|
|
|
|
m_cbDeleteExtraFootprints->SetValue( cfg->m_NetlistDialog.delete_extra_footprints );
|
|
|
|
|
2020-03-01 19:20:31 +00:00
|
|
|
m_matchByTimestamp->SetSelection( m_matchByUUID ? 0 : 1 );
|
2015-07-24 18:49:47 +00:00
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
m_MessageWindow->SetLabel( _("Changes To Be Applied") );
|
2020-01-13 01:44:19 +00:00
|
|
|
m_MessageWindow->SetVisibleSeverities( cfg->m_NetlistDialog.report_filter );
|
2021-02-25 15:05:26 +00:00
|
|
|
m_MessageWindow->SetFileName( Prj().GetProjectPath() + wxT( "report.txt" ) );
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2022-02-13 13:26:20 +00:00
|
|
|
SetupStandardButtons( { { wxID_OK, _( "Load and Test Netlist" ) },
|
|
|
|
{ wxID_CANCEL, _( "Close" ) },
|
|
|
|
{ wxID_APPLY, _( "Update PCB" ) } } );
|
2018-02-28 09:44:22 +00:00
|
|
|
|
2020-11-16 11:16:44 +00:00
|
|
|
finishDialogSettings();
|
2018-02-28 09:44:22 +00:00
|
|
|
|
|
|
|
m_initialized = true;
|
2007-05-06 16:03:28 +00:00
|
|
|
}
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
DIALOG_IMPORT_NETLIST::~DIALOG_IMPORT_NETLIST()
|
2013-06-19 16:11:12 +00:00
|
|
|
{
|
2020-03-01 19:20:31 +00:00
|
|
|
m_matchByUUID = m_matchByTimestamp->GetSelection() == 0;
|
2019-11-17 15:37:32 +00:00
|
|
|
|
2021-09-18 17:30:58 +00:00
|
|
|
PCBNEW_SETTINGS* cfg = m_parent->GetPcbNewSettings();
|
2020-01-13 01:44:19 +00:00
|
|
|
|
2020-03-01 19:20:31 +00:00
|
|
|
cfg->m_NetlistDialog.report_filter = m_MessageWindow->GetVisibleSeverities();
|
|
|
|
cfg->m_NetlistDialog.update_footprints = m_cbUpdateFootprints->GetValue();
|
|
|
|
cfg->m_NetlistDialog.delete_shorting_tracks = m_cbDeleteShortingTracks->GetValue();
|
|
|
|
cfg->m_NetlistDialog.delete_extra_footprints = m_cbDeleteExtraFootprints->GetValue();
|
2018-12-10 19:34:08 +00:00
|
|
|
|
|
|
|
if( m_runDragCommand )
|
2019-08-12 21:17:25 +00:00
|
|
|
{
|
|
|
|
KIGFX::VIEW_CONTROLS* controls = m_parent->GetCanvas()->GetViewControls();
|
|
|
|
controls->SetCursorPosition( controls->GetMousePosition() );
|
|
|
|
m_parent->GetToolManager()->RunAction( PCB_ACTIONS::move, true );
|
|
|
|
}
|
2013-06-19 16:11:12 +00:00
|
|
|
}
|
2013-04-28 20:20:40 +00:00
|
|
|
|
Modular KiCad Blueprint Milestone B), major portions:
*) When kicad.exe closes a project, close any open KIFACEs so that they cannot
get disassociated from their true PROJECT.
*) Allow loading eeschema library editor from kicad.exe
*) Allow loading pcbnew library editor from kicad.exe
*) Rename LIB_COMPONENT to LIB_PART.
*) Add class PART_LIBS, and PART_LIB.
*) Make PART_LIBS non-global, i.e. PROJECT specific.
*) Implement "data on demand" for PART_LIBS
*) Implement "data on demand" for schematic SEARCH_STACK.
*) Use RSTRINGs to retain eeschema editor's notion of last library and part being edited.
*) Get rid of library search on every SCH_COMPONENT::Draw() call, instead use
a weak pointer.
*) Remove all chdir() calls so projects don't need to be CWD.
*) Romove APPEND support from OpenProjectFiles().
*) Make OpenProjectFiles() robust, even for creating new projects.
*) Load EESCHEMA colors in the KIWAY::OnKiwayStart() rather in window open,
and save them in the .eeschema config file, not in the project file.
*) Fix bug with wxDir() while accessing protected dirs in kicad.exe
*) Consolidate template copying into PROJECT class, not in kicad.exe source.
*) Generally untangle eeschema, making its libraries not global but rather
held in the PROJECT.
2014-08-13 20:28:54 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::onBrowseNetlistFiles( wxCommandEvent& event )
|
2007-05-06 16:03:28 +00:00
|
|
|
{
|
2018-02-28 09:44:22 +00:00
|
|
|
wxString dirPath = wxFileName( Prj().GetProjectFullName() ).GetPath();
|
Modular KiCad Blueprint Milestone B), major portions:
*) When kicad.exe closes a project, close any open KIFACEs so that they cannot
get disassociated from their true PROJECT.
*) Allow loading eeschema library editor from kicad.exe
*) Allow loading pcbnew library editor from kicad.exe
*) Rename LIB_COMPONENT to LIB_PART.
*) Add class PART_LIBS, and PART_LIB.
*) Make PART_LIBS non-global, i.e. PROJECT specific.
*) Implement "data on demand" for PART_LIBS
*) Implement "data on demand" for schematic SEARCH_STACK.
*) Use RSTRINGs to retain eeschema editor's notion of last library and part being edited.
*) Get rid of library search on every SCH_COMPONENT::Draw() call, instead use
a weak pointer.
*) Remove all chdir() calls so projects don't need to be CWD.
*) Romove APPEND support from OpenProjectFiles().
*) Make OpenProjectFiles() robust, even for creating new projects.
*) Load EESCHEMA colors in the KIWAY::OnKiwayStart() rather in window open,
and save them in the .eeschema config file, not in the project file.
*) Fix bug with wxDir() while accessing protected dirs in kicad.exe
*) Consolidate template copying into PROJECT class, not in kicad.exe source.
*) Generally untangle eeschema, making its libraries not global but rather
held in the PROJECT.
2014-08-13 20:28:54 +00:00
|
|
|
|
2019-08-03 03:03:03 +00:00
|
|
|
wxString filename = m_parent->GetLastPath( LAST_PATH_NETLIST );
|
2010-04-23 14:46:00 +00:00
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
if( !filename.IsEmpty() )
|
2010-04-23 14:46:00 +00:00
|
|
|
{
|
2018-02-28 09:44:22 +00:00
|
|
|
wxFileName fn = filename;
|
|
|
|
dirPath = fn.GetPath();
|
|
|
|
filename = fn.GetFullName();
|
2010-04-23 14:46:00 +00:00
|
|
|
}
|
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
wxFileDialog FilesDialog( this, _( "Select Netlist" ), dirPath, filename,
|
2017-11-12 00:31:38 +00:00
|
|
|
NetlistFileWildcard(), wxFD_DEFAULT_STYLE | wxFD_FILE_MUST_EXIST );
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2009-04-24 07:36:36 +00:00
|
|
|
if( FilesDialog.ShowModal() != wxID_OK )
|
|
|
|
return;
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2010-04-23 14:46:00 +00:00
|
|
|
m_NetlistFilenameCtrl->SetValue( FilesDialog.GetPath() );
|
2022-02-13 13:26:20 +00:00
|
|
|
onFilenameChanged( false );
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2022-02-13 13:26:20 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
|
|
|
|
void DIALOG_IMPORT_NETLIST::onImportNetlist( wxCommandEvent& event )
|
2022-02-13 13:26:20 +00:00
|
|
|
{
|
|
|
|
onFilenameChanged( true );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::onUpdatePCB( wxCommandEvent& event )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2018-02-28 09:44:22 +00:00
|
|
|
wxFileName fn = m_NetlistFilenameCtrl->GetValue();
|
2015-09-01 09:13:22 +00:00
|
|
|
|
|
|
|
if( !fn.IsOk() )
|
|
|
|
{
|
2021-09-18 17:30:58 +00:00
|
|
|
wxMessageBox( _( "Please choose a valid netlist file." ) );
|
2015-09-01 09:13:22 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
if( !fn.FileExists() )
|
|
|
|
{
|
2020-11-26 15:43:48 +00:00
|
|
|
wxMessageBox( _( "The netlist file does not exist." ) );
|
2015-09-01 09:13:22 +00:00
|
|
|
return;
|
|
|
|
}
|
2013-04-25 16:29:35 +00:00
|
|
|
|
2020-11-26 15:43:48 +00:00
|
|
|
m_MessageWindow->SetLabel( _( "Changes Applied to PCB" ) );
|
|
|
|
loadNetlist( false );
|
2013-04-25 16:29:35 +00:00
|
|
|
|
2022-02-13 13:26:20 +00:00
|
|
|
m_sdbSizerCancel->SetDefault();
|
2022-02-13 16:29:05 +00:00
|
|
|
m_sdbSizerCancel->SetFocus();
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::OnFilenameKillFocus( wxFocusEvent& event )
|
2018-02-28 09:44:22 +00:00
|
|
|
{
|
2019-09-30 17:41:19 +00:00
|
|
|
event.Skip();
|
2018-02-28 09:44:22 +00:00
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::onFilenameChanged( bool aLoadNetlist )
|
2007-06-05 12:10:51 +00:00
|
|
|
{
|
2018-02-28 09:44:22 +00:00
|
|
|
if( m_initialized )
|
|
|
|
{
|
|
|
|
wxFileName fn = m_NetlistFilenameCtrl->GetValue();
|
2019-10-01 16:42:38 +00:00
|
|
|
|
2018-02-28 09:44:22 +00:00
|
|
|
if( fn.IsOk() )
|
|
|
|
{
|
|
|
|
if( fn.FileExists() )
|
|
|
|
{
|
2019-10-01 16:42:38 +00:00
|
|
|
m_netlistPath = m_NetlistFilenameCtrl->GetValue();
|
2022-02-13 13:26:20 +00:00
|
|
|
|
|
|
|
if( aLoadNetlist )
|
|
|
|
loadNetlist( true );
|
2018-02-28 09:44:22 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
m_MessageWindow->Clear();
|
|
|
|
REPORTER& reporter = m_MessageWindow->Reporter();
|
2020-03-04 09:48:18 +00:00
|
|
|
reporter.Report( _( "The netlist file does not exist." ), RPT_SEVERITY_ERROR );
|
2018-02-28 09:44:22 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2007-06-05 12:10:51 +00:00
|
|
|
}
|
|
|
|
|
2008-03-22 18:08:44 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::OnMatchChanged( wxCommandEvent& event )
|
2018-02-28 09:44:22 +00:00
|
|
|
{
|
|
|
|
if( m_initialized )
|
|
|
|
loadNetlist( true );
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::OnOptionChanged( wxCommandEvent& event )
|
2018-02-28 09:44:22 +00:00
|
|
|
{
|
|
|
|
if( m_initialized )
|
|
|
|
loadNetlist( true );
|
|
|
|
}
|
|
|
|
|
2007-06-05 12:10:51 +00:00
|
|
|
|
2022-12-13 20:47:28 +00:00
|
|
|
void DIALOG_IMPORT_NETLIST::loadNetlist( bool aDryRun )
|
2018-02-28 09:44:22 +00:00
|
|
|
{
|
|
|
|
wxString netlistFileName = m_NetlistFilenameCtrl->GetValue();
|
|
|
|
wxFileName fn = netlistFileName;
|
|
|
|
|
|
|
|
if( !fn.IsOk() || !fn.FileExists() )
|
|
|
|
return;
|
|
|
|
|
|
|
|
m_MessageWindow->Clear();
|
|
|
|
REPORTER& reporter = m_MessageWindow->Reporter();
|
|
|
|
|
|
|
|
wxBusyCursor busy;
|
|
|
|
|
|
|
|
wxString msg;
|
2021-06-16 22:35:00 +00:00
|
|
|
msg.Printf( _( "Reading netlist file '%s'.\n" ), netlistFileName );
|
2020-03-04 09:48:18 +00:00
|
|
|
reporter.ReportHead( msg, RPT_SEVERITY_INFO );
|
2018-02-28 09:44:22 +00:00
|
|
|
|
2020-03-01 19:20:31 +00:00
|
|
|
if( m_matchByTimestamp->GetSelection() == 1 )
|
2020-12-18 01:44:16 +00:00
|
|
|
msg = _( "Using reference designators to match symbols and footprints.\n" );
|
2019-03-07 13:59:32 +00:00
|
|
|
else
|
2020-12-18 01:44:16 +00:00
|
|
|
msg = _( "Using tstamps (unique IDs) to match symbols and footprints.\n" );
|
2018-02-28 09:44:22 +00:00
|
|
|
|
2020-03-04 09:48:18 +00:00
|
|
|
reporter.ReportHead( msg, RPT_SEVERITY_INFO );
|
2018-02-28 09:44:22 +00:00
|
|
|
m_MessageWindow->SetLazyUpdate( true ); // Use lazy update to speed the creation of the report
|
|
|
|
// (the window is not updated for each message)
|
2020-03-01 19:20:31 +00:00
|
|
|
m_matchByUUID = m_matchByTimestamp->GetSelection() == 0;
|
|
|
|
|
2019-04-18 02:10:56 +00:00
|
|
|
NETLIST netlist;
|
|
|
|
|
2020-03-01 19:20:31 +00:00
|
|
|
netlist.SetFindByTimeStamp( m_matchByUUID );
|
2019-04-18 02:10:56 +00:00
|
|
|
netlist.SetReplaceFootprints( m_cbUpdateFootprints->GetValue() );
|
|
|
|
|
|
|
|
if( !m_parent->ReadNetlistFromFile( netlistFileName, netlist, reporter ) )
|
|
|
|
return;
|
2018-02-28 09:44:22 +00:00
|
|
|
|
2019-04-18 02:10:56 +00:00
|
|
|
BOARD_NETLIST_UPDATER updater( m_parent, m_parent->GetBoard() );
|
|
|
|
updater.SetReporter ( &reporter );
|
|
|
|
updater.SetIsDryRun( aDryRun );
|
2020-03-01 19:20:31 +00:00
|
|
|
updater.SetLookupByTimestamp( m_matchByUUID );
|
2021-05-23 21:21:34 +00:00
|
|
|
updater.SetDeleteUnusedFootprints( m_cbDeleteExtraFootprints->GetValue());
|
2019-04-18 02:10:56 +00:00
|
|
|
updater.SetReplaceFootprints( m_cbUpdateFootprints->GetValue() );
|
|
|
|
updater.UpdateNetlist( netlist );
|
2018-02-28 09:44:22 +00:00
|
|
|
|
|
|
|
// The creation of the report was made without window update: the full page must be displayed
|
|
|
|
m_MessageWindow->Flush( true );
|
2019-04-18 02:10:56 +00:00
|
|
|
|
|
|
|
if( aDryRun )
|
|
|
|
return;
|
|
|
|
|
|
|
|
m_parent->OnNetlistChanged( updater, &m_runDragCommand );
|
2018-02-28 09:44:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|