Refactoring of VIEW/VIEW_ITEM classes:

- Remove dependency of EDA_ITEM on VIEW
- VIEW_ITEM is now a pure virtual interface
This commit is contained in:
Tomasz Włostowski
2016-12-12 16:45:52 +01:00
committed by Maciej Suminski
parent 27a10e8597
commit 1c1f4e9a50
56 changed files with 815 additions and 773 deletions
+7 -1
View File
@@ -253,7 +253,13 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry)
undoList.PushItem( itemWrapper );
}
boardItem->ViewUpdate( KIGFX::VIEW_ITEM::ALL );
if ( boardItem->Type() == PCB_MODULE_T )
{
MODULE* module = static_cast<MODULE*>( boardItem );
module->RunOnChildren( boost::bind( &KIGFX::VIEW::Update, view, _1 ) );
}
view->Update ( boardItem );
ratsnest->Update( boardItem );
break;
}