21 #ifndef SAYONARASELECTIONVIEW_H 22 #define SAYONARASELECTIONVIEW_H 24 #include "Utils/Pimpl.h" 25 #include <QModelIndex> 30 class QAbstractItemView;
32 class QItemSelectionModel;
44 enum class SelectionType
51 virtual IndexSet selectedItems()
const;
57 void selectRows(
const IndexSet& rows,
int minimumColumn=-1,
int maximumColumn=-1);
58 void selectColumns(
const IndexSet& columns,
int minimumRow=-1,
int maximumRow=-1);
59 void selectItems(
const IndexSet& indexes);
62 virtual SelectionViewInterface::SelectionType selectionType()
const;
64 virtual int mapModelIndexToIndex(
const QModelIndex& idx)
const=0;
67 IndexSet mapModelIndexesToIndexes(
const QModelIndexList& indexes)
const;
71 virtual bool handleKeyPress(QKeyEvent* e);
74 #endif // SAYONARASELECTIONVIEW_H The SayonaraSelectionView class.
Definition: SelectionView.h:39
Definition: typedefs.h:32
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: Set.h:35
Definition: EngineUtils.h:33