21 #ifndef PLAYLISTTABBAR_H 22 #define PLAYLISTTABBAR_H 24 #include "PlaylistMenuEntry.h" 25 #include "GUI/Helper/Shortcuts/ShortcutWidget.h" 40 void sig_open_file(
int tab_idx);
41 void sig_open_dir(
int tab_idx);
43 void sig_tab_reset(
int tab_idx);
44 void sig_tab_save(
int tab_idx);
45 void sig_tab_save_as(
int tab_idx,
const QString& name);
46 void sig_tab_rename(
int tab_idx,
const QString& name);
47 void sig_tab_clear(
int tab_idx);
49 void sig_tab_delete(
int tab_idx);
50 void sig_cur_idx_changed(
int tab_idx);
51 void sig_add_tab_clicked();
52 void sig_metadata_dropped(
int tab_idx,
const MetaDataList& v_md);
59 void show_menu_items(PlaylistMenuEntries entries);
60 void setTabsClosable(
bool b);
62 bool was_drag_from_playlist()
const;
63 int get_drag_origin_tab()
const;
65 QString get_shortcut_text(
const QString &shortcut_identifier)
const override;
71 bool _drag_from_playlist;
76 void mousePressEvent(QMouseEvent* e)
override;
77 void wheelEvent(QWheelEvent* e)
override;
78 void dragEnterEvent(QDragEnterEvent* e)
override;
79 void dragMoveEvent(QDragMoveEvent* e)
override;
80 void dragLeaveEvent(QDragLeaveEvent* e)
override;
81 void dropEvent(QDropEvent* e)
override;
83 void init_shortcuts();
86 void open_file_pressed();
87 void open_dir_pressed();
90 void save_as_pressed();
92 void delete_pressed();
94 void close_others_pressed();
95 void rename_pressed();
98 #endif // PLAYLISTTABBAR_H Definition: PlaylistTabBar.h:32