![]() |
Sayonara Player
|
Public Types | |
| enum | SelectionType { Rows =0, Columns, Items } |
Signals | |
| void | sig_info_clicked () |
| void | sig_delete_clicked () |
| void | sig_play_next_clicked () |
| void | sig_append_clicked () |
Public Member Functions | |
| DirectoryTreeView (QWidget *parent=nullptr) | |
| SearchableFileTreeModel * | get_model () const |
| QModelIndexList | get_selected_rows () const |
| MetaDataList | get_selected_metadata () const |
| QStringList | get_selected_paths () const |
| QMimeData * | get_mimedata () const override |
| int | get_index_by_model_index (const QModelIndex &idx) const override |
| QModelIndex | get_model_index_by_index (int idx) const override |
| virtual void | setSearchModel (SearchModelFunctionality *model) final |
| virtual QModelIndex | get_index (int row, int col, const QModelIndex &parent=QModelIndex()) const override final |
| virtual int | get_row_count (const QModelIndex &parent=QModelIndex()) const override final |
| virtual int | get_column_count (const QModelIndex &parent=QModelIndex()) const override final |
| virtual QItemSelectionModel * | get_selection_model () const override final |
| virtual void | set_current_index (int idx) override final |
| bool | is_minisearcher_active () const |
| SP::Set< int > | get_selected_items () const |
| virtual void | set_selection_type (SayonaraSelectionView::SelectionType type) |
| SayonaraSelectionView::SelectionType | selection_type () const |
| virtual SP::Set< int > | get_indexes_by_model_indexes (const QModelIndexList &idxs) const |
| virtual QModelIndexList | get_model_indexes_by_indexes (const SP::Set< int > &idxs) const |
Protected Types | |
| enum | SearchDirection : unsigned char { First, Next, Prev } |
| enum | ReleaseReason : char { Dropped, Destroyed } |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *e) override |
| void | handleKeyPress (QKeyEvent *e) |
| void | select_rows (const SP::Set< int > &indexes, int min_col=-1, int max_col=-1) |
| void | select_row (int row) |
| void | select_columns (const SP::Set< int > &indexes, int min_row=-1, int max_row=-1) |
| void | select_column (int col) |
| void | select_items (const SP::Set< int > &items) |
| void | select_item (int item) |
| void | select_all () |
| void | clear_selection () |
| int | get_min_selected_item () const |
| virtual void | drag_pressed (const QPoint &p) final |
| virtual QDrag * | drag_moving (const QPoint &p) final |
| virtual void | drag_released (ReleaseReason reason) |
| virtual QPixmap | get_pixmap () const |
Protected Attributes | |
| SelectionType | _selection_type |
1.8.13