From f6959c039c92cc57204d0700ce2ec2290436bd39 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Tue, 18 Mar 2014 11:04:52 +0100 Subject: [PATCH] Comments. --- common/view/view.cpp | 3 ++- pcbnew/tools/selection_tool.h | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/common/view/view.cpp b/common/view/view.cpp index b28b0a1c32..ba070b2786 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -114,7 +114,8 @@ void VIEW::Remove( VIEW_ITEM* aItem ) if( aItem->viewRequiredUpdate() != VIEW_ITEM::NONE ) // prevent from updating a removed item { - std::vector::iterator item = std::find( m_needsUpdate.begin(), m_needsUpdate.end(), aItem ); + std::vector::iterator item = std::find( m_needsUpdate.begin(), + m_needsUpdate.end(), aItem ); if( item != m_needsUpdate.end() ) m_needsUpdate.erase( item ); diff --git a/pcbnew/tools/selection_tool.h b/pcbnew/tools/selection_tool.h index 9ef61fbd4b..7072c89655 100644 --- a/pcbnew/tools/selection_tool.h +++ b/pcbnew/tools/selection_tool.h @@ -114,9 +114,13 @@ public: */ void AddMenuItem( const TOOL_ACTION& aAction ); - // TODO comments + ///> Event sent after an item is selected. const TOOL_EVENT SelectedEvent; + + ///> Event sent after an item is deselected. const TOOL_EVENT DeselectedEvent; + + ///> Event sent after selection is cleared. const TOOL_EVENT ClearedEvent; private: