2016-05-10 15:57:21 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 CERN
|
|
|
|
* @author Tomasz Wlostowski <tomasz.wlostowski@cern.ch>
|
|
|
|
*
|
|
|
|
* 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 <class_board.h>
|
|
|
|
#include <class_module.h>
|
2018-01-29 20:58:58 +00:00
|
|
|
#include <pcb_edit_frame.h>
|
2016-05-10 15:57:21 +00:00
|
|
|
#include <tool/tool_manager.h>
|
|
|
|
#include <view/view.h>
|
|
|
|
#include <board_commit.h>
|
|
|
|
#include <tools/pcb_tool.h>
|
2018-09-17 13:14:23 +00:00
|
|
|
#include <tools/pcb_actions.h>
|
2018-10-12 06:17:15 +00:00
|
|
|
#include <connectivity/connectivity_data.h>
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-11-28 14:31:56 +00:00
|
|
|
#include <functional>
|
|
|
|
using namespace std::placeholders;
|
|
|
|
|
2017-09-28 16:38:54 +00:00
|
|
|
#include "pcb_draw_panel_gal.h"
|
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
BOARD_COMMIT::BOARD_COMMIT( PCB_TOOL* aTool )
|
|
|
|
{
|
2016-06-16 10:19:07 +00:00
|
|
|
m_toolMgr = aTool->GetManager();
|
|
|
|
m_editModules = aTool->EditingModules();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-10-31 11:03:37 +00:00
|
|
|
BOARD_COMMIT::BOARD_COMMIT( EDA_DRAW_FRAME* aFrame )
|
2016-06-16 10:19:07 +00:00
|
|
|
{
|
|
|
|
m_toolMgr = aFrame->GetToolManager();
|
|
|
|
m_editModules = aFrame->IsType( FRAME_PCB_MODULE_EDITOR );
|
2016-05-10 15:57:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
BOARD_COMMIT::~BOARD_COMMIT()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2018-04-09 19:56:27 +00:00
|
|
|
void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool aSetDirtyBit )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
|
|
|
// Objects potentially interested in changes:
|
|
|
|
PICKED_ITEMS_LIST undoList;
|
2018-09-30 10:36:18 +00:00
|
|
|
KIGFX::VIEW* view = m_toolMgr->GetView();
|
|
|
|
BOARD* board = (BOARD*) m_toolMgr->GetModel();
|
|
|
|
PCB_BASE_FRAME* frame = (PCB_BASE_FRAME*) m_toolMgr->GetEditFrame();
|
|
|
|
auto connectivity = board->GetConnectivity();
|
|
|
|
std::set<EDA_ITEM*> savedModules;
|
|
|
|
std::vector<BOARD_ITEM*> itemsToDeselect;
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-06-16 10:19:07 +00:00
|
|
|
if( Empty() )
|
|
|
|
return;
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-06-16 10:19:07 +00:00
|
|
|
for( COMMIT_LINE& ent : m_changes )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
2016-08-18 14:28:04 +00:00
|
|
|
int changeType = ent.m_type & CHT_TYPE;
|
|
|
|
int changeFlags = ent.m_type & CHT_FLAGS;
|
2016-06-20 09:21:37 +00:00
|
|
|
BOARD_ITEM* boardItem = static_cast<BOARD_ITEM*>( ent.m_item );
|
|
|
|
|
2016-06-16 10:19:07 +00:00
|
|
|
// Module items need to be saved in the undo buffer before modification
|
|
|
|
if( m_editModules )
|
|
|
|
{
|
2016-06-20 09:20:22 +00:00
|
|
|
// Be sure that we are storing a module
|
|
|
|
if( ent.m_item->Type() != PCB_MODULE_T )
|
|
|
|
ent.m_item = ent.m_item->GetParent();
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-06-20 09:20:22 +00:00
|
|
|
// We have not saved the module yet, so let's create an entry
|
|
|
|
if( savedModules.count( ent.m_item ) == 0 )
|
|
|
|
{
|
|
|
|
if( !ent.m_copy )
|
|
|
|
{
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( changeType != CHT_MODIFY ); // too late to make a copy..
|
2016-06-20 09:20:22 +00:00
|
|
|
ent.m_copy = ent.m_item->Clone();
|
|
|
|
}
|
|
|
|
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( ent.m_item->Type() == PCB_MODULE_T );
|
|
|
|
wxASSERT( ent.m_copy->Type() == PCB_MODULE_T );
|
2016-12-09 11:04:32 +00:00
|
|
|
|
2017-03-03 19:26:18 +00:00
|
|
|
if( aCreateUndoEntry )
|
2017-03-03 12:41:41 +00:00
|
|
|
{
|
|
|
|
ITEM_PICKER itemWrapper( ent.m_item, UR_CHANGED );
|
|
|
|
itemWrapper.SetLink( ent.m_copy );
|
|
|
|
undoList.PushItem( itemWrapper );
|
|
|
|
frame->SaveCopyInUndoList( undoList, UR_CHANGED );
|
|
|
|
}
|
2016-06-20 09:21:37 +00:00
|
|
|
|
2016-06-20 09:20:22 +00:00
|
|
|
savedModules.insert( ent.m_item );
|
2016-06-20 09:21:37 +00:00
|
|
|
static_cast<MODULE*>( ent.m_item )->SetLastEditTime();
|
2016-06-20 09:20:22 +00:00
|
|
|
}
|
|
|
|
}
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-08-18 14:28:04 +00:00
|
|
|
switch( changeType )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
|
|
|
case CHT_ADD:
|
|
|
|
{
|
2016-06-16 10:19:07 +00:00
|
|
|
if( !m_editModules )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
2017-03-03 12:41:41 +00:00
|
|
|
if( aCreateUndoEntry )
|
2017-03-03 19:26:18 +00:00
|
|
|
{
|
|
|
|
undoList.PushItem( ITEM_PICKER( boardItem, UR_NEW ) );
|
|
|
|
}
|
2016-08-18 14:28:04 +00:00
|
|
|
|
2016-11-04 21:29:47 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
2018-03-05 15:37:39 +00:00
|
|
|
board->Add( boardItem ); // handles connectivity
|
2016-08-18 14:28:04 +00:00
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2016-08-18 14:28:04 +00:00
|
|
|
// modules inside modules are not supported yet
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( boardItem->Type() != PCB_MODULE_T );
|
2016-08-18 14:28:04 +00:00
|
|
|
|
2017-09-22 15:17:38 +00:00
|
|
|
boardItem->SetParent( board->m_Modules.GetFirst() );
|
2018-03-05 15:37:39 +00:00
|
|
|
|
2016-11-04 21:29:47 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
2016-08-18 14:28:04 +00:00
|
|
|
board->m_Modules->Add( boardItem );
|
2016-05-10 15:57:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
view->Add( boardItem );
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case CHT_REMOVE:
|
|
|
|
{
|
2017-03-03 12:41:41 +00:00
|
|
|
if( !m_editModules && aCreateUndoEntry )
|
2016-06-20 09:21:37 +00:00
|
|
|
undoList.PushItem( ITEM_PICKER( boardItem, UR_DELETED ) );
|
2018-09-26 12:41:14 +00:00
|
|
|
|
2016-06-16 10:20:56 +00:00
|
|
|
switch( boardItem->Type() )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
2016-06-16 10:20:56 +00:00
|
|
|
// Module items
|
|
|
|
case PCB_PAD_T:
|
|
|
|
case PCB_MODULE_EDGE_T:
|
|
|
|
case PCB_MODULE_TEXT_T:
|
2018-09-15 23:30:10 +00:00
|
|
|
// This level can only handle module items when editing modules
|
2016-06-16 10:20:56 +00:00
|
|
|
if( !m_editModules )
|
|
|
|
break;
|
|
|
|
|
|
|
|
if( boardItem->Type() == PCB_MODULE_TEXT_T )
|
|
|
|
{
|
|
|
|
TEXTE_MODULE* text = static_cast<TEXTE_MODULE*>( boardItem );
|
|
|
|
|
2018-09-15 23:30:10 +00:00
|
|
|
// don't allow deletion of Reference or Value
|
|
|
|
if( text->GetType() != TEXTE_MODULE::TEXT_is_DIVERS )
|
|
|
|
break;
|
2016-06-16 10:20:56 +00:00
|
|
|
}
|
|
|
|
|
2018-09-15 23:30:10 +00:00
|
|
|
view->Remove( boardItem );
|
2016-06-16 10:20:56 +00:00
|
|
|
|
2018-09-15 23:30:10 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
|
|
|
{
|
|
|
|
MODULE* module = static_cast<MODULE*>( boardItem->GetParent() );
|
|
|
|
wxASSERT( module && module->Type() == PCB_MODULE_T );
|
|
|
|
module->Delete( boardItem );
|
2016-06-16 10:20:56 +00:00
|
|
|
}
|
|
|
|
|
2018-09-15 23:30:10 +00:00
|
|
|
board->m_Status_Pcb = 0; // it is done in the legacy view (ratsnest perhaps?)
|
|
|
|
|
2016-06-16 10:20:56 +00:00
|
|
|
break;
|
|
|
|
|
2016-06-20 09:21:37 +00:00
|
|
|
// Board items
|
2016-06-16 10:20:56 +00:00
|
|
|
case PCB_LINE_T: // a segment not on copper layers
|
|
|
|
case PCB_TEXT_T: // a text on a layer
|
|
|
|
case PCB_TRACE_T: // a track segment (segment on a copper layer)
|
|
|
|
case PCB_VIA_T: // a via (like track segment on a copper layer)
|
|
|
|
case PCB_DIMENSION_T: // a dimension (graphic item)
|
|
|
|
case PCB_TARGET_T: // a target (graphic item)
|
|
|
|
case PCB_MARKER_T: // a marker used to show something
|
2018-09-29 17:58:31 +00:00
|
|
|
case PCB_SEGZONE_T: // SEG_ZONE items are now deprecated
|
2016-06-16 10:20:56 +00:00
|
|
|
case PCB_ZONE_AREA_T:
|
2018-09-30 10:36:18 +00:00
|
|
|
itemsToDeselect.push_back( boardItem );
|
|
|
|
|
2016-06-16 10:20:56 +00:00
|
|
|
view->Remove( boardItem );
|
2016-08-18 14:28:04 +00:00
|
|
|
|
2016-11-04 21:29:47 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
2016-08-18 14:28:04 +00:00
|
|
|
board->Remove( boardItem );
|
|
|
|
|
2016-06-16 10:20:56 +00:00
|
|
|
break;
|
|
|
|
|
2016-06-20 09:21:37 +00:00
|
|
|
case PCB_MODULE_T:
|
|
|
|
{
|
2018-10-10 09:59:20 +00:00
|
|
|
itemsToDeselect.push_back( boardItem );
|
|
|
|
|
2016-06-20 09:21:37 +00:00
|
|
|
// There are no modules inside a module yet
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( !m_editModules );
|
2016-06-20 09:21:37 +00:00
|
|
|
|
|
|
|
MODULE* module = static_cast<MODULE*>( boardItem );
|
|
|
|
view->Remove( module );
|
2018-09-17 13:14:23 +00:00
|
|
|
module->ClearFlags();
|
|
|
|
|
2016-11-04 21:29:47 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
2018-03-05 15:37:39 +00:00
|
|
|
board->Remove( module ); // handles connectivity
|
2016-06-20 09:21:37 +00:00
|
|
|
|
|
|
|
// Clear flags to indicate, that the ratsnest, list of nets & pads are not valid anymore
|
|
|
|
board->m_Status_Pcb = 0;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
|
2016-06-16 10:20:56 +00:00
|
|
|
default: // other types do not need to (or should not) be handled
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( false );
|
2016-06-16 10:20:56 +00:00
|
|
|
break;
|
|
|
|
}
|
2018-09-26 12:41:14 +00:00
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
case CHT_MODIFY:
|
|
|
|
{
|
2017-03-03 12:41:41 +00:00
|
|
|
if( !m_editModules && aCreateUndoEntry )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
|
|
|
ITEM_PICKER itemWrapper( boardItem, UR_CHANGED );
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( ent.m_copy );
|
2016-05-10 15:57:21 +00:00
|
|
|
itemWrapper.SetLink( ent.m_copy );
|
|
|
|
undoList.PushItem( itemWrapper );
|
|
|
|
}
|
|
|
|
|
2017-10-31 08:14:03 +00:00
|
|
|
if( ent.m_copy )
|
|
|
|
connectivity->MarkItemNetAsDirty( static_cast<BOARD_ITEM*>( ent.m_copy ) );
|
|
|
|
|
2017-03-22 13:43:10 +00:00
|
|
|
connectivity->Update( boardItem );
|
2017-10-31 08:14:03 +00:00
|
|
|
view->Update( boardItem );
|
|
|
|
|
|
|
|
// if no undo entry is needed, the copy would create a memory leak
|
|
|
|
if( !aCreateUndoEntry )
|
|
|
|
delete ent.m_copy;
|
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
|
|
|
default:
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( false );
|
2016-05-10 15:57:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-26 12:41:14 +00:00
|
|
|
// Removing an item should trigger the unselect action
|
|
|
|
// but only after all items are removed otherwise we can get
|
|
|
|
// flickering depending on the system
|
2018-09-30 10:36:18 +00:00
|
|
|
if( itemsToDeselect.size() > 0 )
|
|
|
|
m_toolMgr->RunAction( PCB_ACTIONS::unselectItems, true, &itemsToDeselect );
|
2018-09-26 12:41:14 +00:00
|
|
|
|
2017-03-03 12:41:41 +00:00
|
|
|
if( !m_editModules && aCreateUndoEntry )
|
2016-05-10 15:57:21 +00:00
|
|
|
frame->SaveCopyInUndoList( undoList, UR_UNSPECIFIED );
|
|
|
|
|
2016-11-28 14:31:56 +00:00
|
|
|
if( TOOL_MANAGER* toolMgr = frame->GetToolManager() )
|
|
|
|
toolMgr->PostEvent( { TC_MESSAGE, TA_MODEL_CHANGE, AS_GLOBAL } );
|
|
|
|
|
2017-06-29 18:39:11 +00:00
|
|
|
if ( !m_editModules )
|
2017-09-28 16:38:54 +00:00
|
|
|
{
|
2017-09-29 09:40:10 +00:00
|
|
|
auto panel = static_cast<PCB_DRAW_PANEL_GAL*>( frame->GetGalCanvas() );
|
2017-06-29 18:39:11 +00:00
|
|
|
connectivity->RecalculateRatsnest();
|
2018-12-30 19:17:00 +00:00
|
|
|
connectivity->ClearDynamicRatsnest();
|
2017-09-28 16:38:54 +00:00
|
|
|
panel->RedrawRatsnest();
|
|
|
|
}
|
2017-06-29 18:39:11 +00:00
|
|
|
|
2018-04-09 19:56:27 +00:00
|
|
|
if( aSetDirtyBit )
|
|
|
|
frame->OnModify();
|
|
|
|
|
2016-09-19 10:08:07 +00:00
|
|
|
frame->UpdateMsgPanel();
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-06-16 10:19:07 +00:00
|
|
|
clear();
|
2016-05-10 15:57:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
EDA_ITEM* BOARD_COMMIT::parentObject( EDA_ITEM* aItem ) const
|
|
|
|
{
|
|
|
|
switch( aItem->Type() )
|
|
|
|
{
|
|
|
|
case PCB_PAD_T:
|
|
|
|
case PCB_MODULE_EDGE_T:
|
|
|
|
case PCB_MODULE_TEXT_T:
|
|
|
|
return aItem->GetParent();
|
|
|
|
default:
|
|
|
|
return aItem;
|
|
|
|
}
|
|
|
|
|
|
|
|
return aItem;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void BOARD_COMMIT::Revert()
|
|
|
|
{
|
|
|
|
PICKED_ITEMS_LIST undoList;
|
|
|
|
KIGFX::VIEW* view = m_toolMgr->GetView();
|
2016-06-16 10:19:58 +00:00
|
|
|
BOARD* board = (BOARD*) m_toolMgr->GetModel();
|
2017-03-22 13:43:10 +00:00
|
|
|
auto connectivity = board->GetConnectivity();
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-06-21 15:35:30 +00:00
|
|
|
for( auto it = m_changes.rbegin(); it != m_changes.rend(); ++it )
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
2016-06-21 15:35:30 +00:00
|
|
|
COMMIT_LINE& ent = *it;
|
2016-06-16 10:19:58 +00:00
|
|
|
BOARD_ITEM* item = static_cast<BOARD_ITEM*>( ent.m_item );
|
|
|
|
BOARD_ITEM* copy = static_cast<BOARD_ITEM*>( ent.m_copy );
|
2017-12-14 16:07:44 +00:00
|
|
|
int changeType = ent.m_type & CHT_TYPE;
|
|
|
|
int changeFlags = ent.m_type & CHT_FLAGS;
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2017-12-14 16:07:44 +00:00
|
|
|
switch( changeType )
|
2016-06-16 10:19:58 +00:00
|
|
|
{
|
2016-06-21 14:54:14 +00:00
|
|
|
case CHT_ADD:
|
2017-12-14 16:07:44 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
|
|
|
break;
|
2016-06-21 14:54:14 +00:00
|
|
|
|
|
|
|
view->Remove( item );
|
2017-03-22 13:43:10 +00:00
|
|
|
connectivity->Remove( item );
|
2017-12-14 16:07:44 +00:00
|
|
|
board->Remove( item );
|
2016-06-21 14:54:14 +00:00
|
|
|
break;
|
|
|
|
|
|
|
|
case CHT_REMOVE:
|
2017-12-14 16:07:44 +00:00
|
|
|
if( !( changeFlags & CHT_DONE ) )
|
|
|
|
break;
|
|
|
|
|
2016-06-21 14:54:14 +00:00
|
|
|
if( item->Type() == PCB_MODULE_T )
|
|
|
|
{
|
|
|
|
MODULE* newModule = static_cast<MODULE*>( item );
|
2016-11-28 14:31:56 +00:00
|
|
|
newModule->RunOnChildren( std::bind( &EDA_ITEM::ClearFlags, _1, SELECTED ) );
|
2016-06-21 14:54:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
view->Add( item );
|
2017-03-22 13:43:10 +00:00
|
|
|
connectivity->Add( item );
|
2017-12-14 16:07:44 +00:00
|
|
|
board->Add( item );
|
2016-06-21 14:54:14 +00:00
|
|
|
break;
|
|
|
|
|
2016-06-16 10:19:58 +00:00
|
|
|
case CHT_MODIFY:
|
2016-05-10 15:57:21 +00:00
|
|
|
{
|
2016-06-16 10:19:58 +00:00
|
|
|
view->Remove( item );
|
2017-03-22 13:43:10 +00:00
|
|
|
connectivity->Remove( item );
|
2016-06-21 14:54:14 +00:00
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
item->SwapData( copy );
|
2016-06-21 14:54:14 +00:00
|
|
|
item->ClearFlags( SELECTED );
|
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
// Update all pads/drawings/texts, as they become invalid
|
|
|
|
// for the VIEW after SwapData() called for modules
|
|
|
|
if( item->Type() == PCB_MODULE_T )
|
|
|
|
{
|
|
|
|
MODULE* newModule = static_cast<MODULE*>( item );
|
2016-11-28 14:31:56 +00:00
|
|
|
newModule->RunOnChildren( std::bind( &EDA_ITEM::ClearFlags, _1, SELECTED ) );
|
2016-05-10 15:57:21 +00:00
|
|
|
}
|
2016-06-16 10:19:58 +00:00
|
|
|
|
2016-05-10 15:57:21 +00:00
|
|
|
view->Add( item );
|
2017-03-22 13:43:10 +00:00
|
|
|
connectivity->Add( item );
|
2016-06-20 09:25:40 +00:00
|
|
|
delete copy;
|
2016-06-16 10:19:58 +00:00
|
|
|
break;
|
|
|
|
}
|
2016-05-10 15:57:21 +00:00
|
|
|
|
2016-06-16 10:19:58 +00:00
|
|
|
default:
|
2017-10-19 07:49:09 +00:00
|
|
|
wxASSERT( false );
|
2016-05-10 15:57:21 +00:00
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2016-06-16 10:19:58 +00:00
|
|
|
|
2017-06-29 18:39:11 +00:00
|
|
|
if ( !m_editModules )
|
|
|
|
connectivity->RecalculateRatsnest();
|
2016-06-21 14:54:14 +00:00
|
|
|
|
2016-06-16 10:19:58 +00:00
|
|
|
clear();
|
2016-05-10 15:57:21 +00:00
|
|
|
}
|