Comments.

This commit is contained in:
Maciej Suminski 2014-03-18 11:04:52 +01:00
parent 40ee66f8c5
commit f6959c039c
2 changed files with 7 additions and 2 deletions

View File

@ -114,7 +114,8 @@ void VIEW::Remove( VIEW_ITEM* aItem )
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() )
m_needsUpdate.erase( item );

View File

@ -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: