Lines Matching refs:item
36 bool wxSelectionStore::IsSelected(size_t item) const
38 bool isSel = m_itemsSel.Index(item) != wxNOT_FOUND;
41 // the item is not selected, so we have to inverse the logic
49 bool wxSelectionStore::SelectItem(size_t item, bool select)
51 // search for the item ourselves as like this we get the index where to
53 // of two (adding item to a sorted array requires a search)
54 size_t index = m_itemsSel.IndexForInsert(item);
55 bool isSel = index < m_itemsSel.GetCount() && m_itemsSel[index] == item;
61 m_itemsSel.AddAt(item, index);
105 size_t item;
106 for ( item = 0; item < itemFrom; item++ )
108 if ( selOld.Index(item) == wxNOT_FOUND )
109 m_itemsSel.Add(item);
112 for ( item = itemTo + 1; item < m_count; item++ )
114 if ( selOld.Index(item) == wxNOT_FOUND )
115 m_itemsSel.Add(item);
169 for ( size_t item = itemFrom; item <= itemTo; item++ )
171 if ( SelectItem(item, select) && itemsChanged )
173 itemsChanged->Add(item);
194 void wxSelectionStore::OnItemDelete(size_t item)
197 i = m_itemsSel.IndexForInsert(item);
199 if ( i < count && m_itemsSel[i] == item )
201 // this item itself was in m_itemsSel, remove it from there
211 wxASSERT_MSG( m_itemsSel[i] > item, _T("logic error") );