Commit f6959c03 authored by Maciej Suminski's avatar Maciej Suminski

Comments.

parent 40ee66f8
...@@ -114,7 +114,8 @@ void VIEW::Remove( VIEW_ITEM* aItem ) ...@@ -114,7 +114,8 @@ void VIEW::Remove( VIEW_ITEM* aItem )
if( aItem->viewRequiredUpdate() != VIEW_ITEM::NONE ) // prevent from updating a removed item if( aItem->viewRequiredUpdate() != VIEW_ITEM::NONE ) // prevent from updating a removed item
{ {
std::vector<VIEW_ITEM*>::iterator item = std::find( m_needsUpdate.begin(), m_needsUpdate.end(), aItem ); std::vector<VIEW_ITEM*>::iterator item = std::find( m_needsUpdate.begin(),
m_needsUpdate.end(), aItem );
if( item != m_needsUpdate.end() ) if( item != m_needsUpdate.end() )
m_needsUpdate.erase( item ); m_needsUpdate.erase( item );
......
...@@ -114,9 +114,13 @@ public: ...@@ -114,9 +114,13 @@ public:
*/ */
void AddMenuItem( const TOOL_ACTION& aAction ); void AddMenuItem( const TOOL_ACTION& aAction );
// TODO comments ///> Event sent after an item is selected.
const TOOL_EVENT SelectedEvent; const TOOL_EVENT SelectedEvent;
///> Event sent after an item is deselected.
const TOOL_EVENT DeselectedEvent; const TOOL_EVENT DeselectedEvent;
///> Event sent after selection is cleared.
const TOOL_EVENT ClearedEvent; const TOOL_EVENT ClearedEvent;
private: private:
......
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