Sayonara Player
Public Types | Public Member Functions | Protected Member Functions | List of all members
SelectionViewInterface Class Referenceabstract

The SayonaraSelectionView class. More...

#include <SelectionView.h>

Inheritance diagram for SelectionViewInterface:
SearchableViewInterface SearchableView< View, Model >

Public Types

enum  SelectionType {
  Rows =0,
  Columns,
  Items
}
 

Public Member Functions

virtual IndexSet selectedItems () const
 

Protected Member Functions

 SelectionViewInterface (QAbstractItemView *view)
 
void selectRows (const IndexSet &rows, int minimumColumn=-1, int maximumColumn=-1)
 
void selectColumns (const IndexSet &columns, int minimumRow=-1, int maximumRow=-1)
 
void selectItems (const IndexSet &indexes)
 
void selectAll ()
 
virtual SelectionViewInterface::SelectionType selectionType () const
 
virtual int mapModelIndexToIndex (const QModelIndex &idx) const =0
 
virtual ModelIndexRange mapIndexToModelIndexes (int idx) const =0
 
IndexSet mapModelIndexesToIndexes (const QModelIndexList &indexes) const
 
ModelIndexRanges mapIndexesToModelIndexRanges (const IndexSet &indexes) const
 
virtual bool handleKeyPress (QKeyEvent *e)
 

Detailed Description

The SayonaraSelectionView class.