![]() |
Sayonara Player
|
Public Types | |
enum | SelectionType { Rows =0, Columns, Items } |
Public Member Functions | |
DirectoryTreeView (QWidget *parent=nullptr) | |
QModelIndex | search (const QString &search_term) |
QString | directory_name (const QModelIndex &index) |
QString | directory_name_origin (const QModelIndex &index) |
QModelIndexList | selected_items () const |
MetaDataList | selected_metadata () const |
QStringList | selected_paths () const |
QMimeData * | dragable_mimedata () const override |
LibraryId | library_id (const QModelIndex &index) const |
virtual void | showEvent (QShowEvent *e) override |
virtual void | set_search_model (SearchableModelInterface *model) final |
virtual QModelIndex | model_index (int row, int col, const QModelIndex &parent=QModelIndex()) const override final |
virtual int | row_count (const QModelIndex &parent=QModelIndex()) const override final |
virtual int | column_count (const QModelIndex &parent=QModelIndex()) const override final |
virtual QItemSelectionModel * | selection_model () const override final |
virtual void | set_current_index (int idx) override final |
bool | is_minisearcher_active () const |
void | set_mini_searcher_padding (int padding) |
Protected Types | |
enum | SearchDirection : unsigned char { First, Next, Prev } |
enum | ReleaseReason : char { Dropped, Destroyed } |
Protected Member Functions | |
void | keyPressEvent (QKeyEvent *event) override |
void | mousePressEvent (QMouseEvent *event) override |
void | mouseMoveEvent (QMouseEvent *event) override |
void | dragEnterEvent (QDragEnterEvent *event) override |
void | dragLeaveEvent (QDragLeaveEvent *event) override |
void | dragMoveEvent (QDragMoveEvent *event) override |
void | dropEvent (QDropEvent *event) override |
int | index_by_model_index (const QModelIndex &idx) const override |
QModelIndex | model_index_by_index (int idx) const override |
void | select_match (const QString &str, SearchDirection direction) override |
bool | has_drag_label () const override |
QString | drag_label () const override |
void | skin_changed () override |
void | language_changed () override |
void | handle_sayonara_drop (const CustomMimeData *mimedata, const QString &target_dir) |
virtual QModelIndex | match_index (const QString &str, SearchDirection direction) const |
void | handle_key_press (QKeyEvent *e) override |
void | select_rows (const IndexSet &indexes, int min_col=-1, int max_col=-1) |
void | select_row (int row) |
void | select_columns (const IndexSet &indexes, int min_row=-1, int max_row=-1) |
void | select_column (int col) |
void | select_items (const IndexSet &indexes) |
void | select_item (int item) |
void | select_all () |
void | clear_selection () |
int | min_selected_item () const |
virtual void | set_selection_type (SelectionViewInterface::SelectionType type) |
SelectionViewInterface::SelectionType | selection_type () const |
virtual IndexSet | indexes_by_model_indexes (const QModelIndexList &indexes) const |
virtual QModelIndexList | model_indexes_by_indexes (const IndexSet &indexes) const |
virtual void | drag_pressed (const QPoint &p) final |
virtual QDrag * | drag_moving (const QPoint &p) final |
virtual void | drag_released (ReleaseReason reason) |
virtual bool | is_valid_drag_position (const QPoint &p) const |
virtual QPixmap | drag_pixmap () const |
Protected Attributes | |
Settings * | _settings =nullptr |