Пример #1
0
/*****************************************************************************
 * DragSortableListView::RemoveSelected
 *****************************************************************************/
void
DragSortableListView::RemoveSelected()
{
    BList items;
    for ( int32 i = 0; BListItem* item = ItemAt( CurrentSelection( i ) ); i++ )
        items.AddItem( (void*)item );
    RemoveItemList( items );
}
Пример #2
0
// RemoveSelected
void
DragSortableListView::RemoveSelected()
{
//	if (fFocusedIndex >= 0)
//		return;

	BList items;
	for (int32 i = 0; BListItem* item = ItemAt(CurrentSelection(i)); i++)
		items.AddItem((void*)item);
	RemoveItemList(items);
}
Пример #3
0
void
AudioListView::RemoveSelected()
{
	BList indices;
	GetSelectedItems(indices);
	int32 index = CurrentSelection() - 1;

	DeselectAll();

	if (indices.CountItems() > 0)
		RemoveItemList(indices);

	if (CountItems() > 0) {
		if (index < 0)
			index = 0;

		Select(index);
	}
}