29 #ifndef PLAYLISTVIEW_H_ 30 #define PLAYLISTVIEW_H_ 32 #include "GUI/Helper/SearchableWidget/SearchableView.h" 33 #include "GUI/Helper/Dragable/Dragable.h" 34 #include "GUI/InfoDialog/InfoDialogContainer.h" 35 #include "Helper/Playlist/PlaylistFwd.h" 36 #include "Helper/MetaData/MetaDataFwd.h" 56 void sig_double_clicked(
int row);
57 void sig_left_tab_clicked();
58 void sig_right_tab_clicked();
59 void sig_time_changed();
68 void goto_row(
int row);
72 int get_num_rows()
const;
73 void remove_cur_selected_rows();
74 void delete_cur_selected_tracks();
95 QAction* _bookmarks_action=
nullptr;
97 int _async_drop_index;
103 void set_delegate_max_width(
int n_items);
106 void clear_drag_drop_lines(
int row);
107 int calc_drag_drop_line(QPoint pos);
108 void handle_drop(QDropEvent* event);
109 void handle_inner_drag_drop(
int row,
bool copy);
113 void contextMenuEvent(QContextMenuEvent* e)
override;
119 void dragLeaveEvent(QDragLeaveEvent* event)
override;
120 void dragEnterEvent(QDragEnterEvent* event)
override;
121 void dragMoveEvent(QDragMoveEvent* event)
override;
122 void dropEvent(QDropEvent* event)
override;
124 void mousePressEvent(QMouseEvent* event)
override;
125 void mouseMoveEvent(QMouseEvent* event)
override;
126 void mouseDoubleClickEvent(QMouseEvent* event)
override;
128 void keyPressEvent(QKeyEvent *event)
override;
129 void resizeEvent(QResizeEvent *e)
override;
130 void selectionChanged (
const QItemSelection & selected,
const QItemSelection & deselected )
override;
132 MD::Interpretation get_metadata_interpretation()
const override;
134 QMimeData* get_mimedata()
const override;
138 void handle_async_drop(
bool success);
139 void rating_changed(
int rating);
143 int get_index_by_model_index(
const QModelIndex& idx)
const override;
144 QModelIndex get_model_index_by_index(
int idx)
const override;
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:35
void dropEventFromOutside(QDropEvent *event)
called from GUI_Playlist when data has not been dropped directly into the view widget. Insert on first row then
Definition: PlaylistItemDelegate.h:29
Definition: PlaylistView.h:48
The Dragable class.
Definition: Dragable.h:37
std::shared_ptr< AbstractPlaylist > PlaylistPtr
PlaylistPtr Playlist Pointer (only used internally)
Definition: PlaylistFwd.h:27
The SayonaraLoadingBar class.
Definition: SayonaraLoadingBar.h:33
Definition: SearchableView.h:77
A set structure. Inherited from std::set with some useful methods. For integer and String this set is...
Definition: AbstractPlaylist.h:37
Definition: PlaylistItemModel.h:47