![]() |
Sayonara Player
|
Public Types | |
| enum | SelectionType { Rows =0, Columns, Items } |
Signals | |
| void | sig_double_clicked (int row) |
| void | sig_delete_tracks (const IndexSet &rows) |
Public Member Functions | |
| PlaylistView (PlaylistPtr pl, QWidget *parent=nullptr) | |
| void | goto_row (int row) |
| void | scroll_up () |
| void | scroll_down () |
| void | remove_cur_selected_rows () |
| void | delete_cur_selected_tracks () |
| void | dropEventFromOutside (QDropEvent *event) |
| called from GUI_Playlist when data has not been dropped directly into the view widget. Insert on first row then More... | |
| 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) |
| IndexSet | selected_items () const |
| void | show_info () |
| Show the Info dialogs' info tab. | |
| void | show_lyrics () |
| Show the Info dialogs' lyrics tab. | |
| void | show_edit () |
| Show the tag editor. | |
| void | info_dialog_closed () |
| this function should not be called from outside. This function is triggered when the info dialog was closed. | |
Public Slots | |
| void | clear () |
Protected Types | |
| enum | SearchDirection : unsigned char { First, Next, Prev } |
Protected Member Functions | |
| int | index_by_model_index (const QModelIndex &idx) const override |
| QModelIndex | model_index_by_index (int idx) const override |
| virtual void | select_match (const QString &str, SearchDirection direction) |
| 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 |
Private Types | |
| enum | ReleaseReason : char { Dropped, Destroyed } |
| void PlaylistView::dropEventFromOutside | ( | QDropEvent * | event | ) |
called from GUI_Playlist when data has not been dropped directly into the view widget. Insert on first row then
| event |
1.8.14