21 #ifndef SEARCHABLEVIEW_H 22 #define SEARCHABLEVIEW_H 24 #include "GUI/Helper/SearchableWidget/SayonaraSelectionView.h" 25 #include "Helper/Pimpl.h" 32 class QItemSelectionModel;
45 enum class SearchDirection : unsigned char
58 virtual QModelIndex get_index(
int row,
int col,
const QModelIndex& parent=QModelIndex())
const override final;
59 virtual int get_row_count(
const QModelIndex& parent=QModelIndex())
const override final;
60 virtual int get_column_count(
const QModelIndex& parent=QModelIndex())
const override final;
62 virtual QItemSelectionModel* get_selection_model()
const override final;
63 virtual void set_current_index(
int idx)
override final;
65 bool is_minisearcher_active()
const;
68 QModelIndex get_match_index(
const QString& str, SearchDirection direction)
const;
69 void select_match(
const QString& str, SearchDirection direction);
72 void handleKeyPress(QKeyEvent* e);
76 template<
typename AbstractView>
89 void keyPressEvent(QKeyEvent* e)
override 92 AbstractView::keyPressEvent(e);
100 #endif // SEARCHABLEVIEW_H Definition: AbstractSearchModel.h:34
Definition: SearchableView.h:77
The SayonaraSelectionView class.
Definition: SayonaraSelectionView.h:40
The SearchViewInterface class.
Definition: SearchableView.h:39