23 #ifndef PLAYLISTTABBAR_H 24 #define PLAYLISTTABBAR_H 26 #include "PlaylistMenuEntry.h" 27 #include "GUI/Helper/Shortcuts/ShortcutWidget.h" 29 #include <QInputDialog> 31 #include <QMouseEvent> 32 #include <QWheelEvent> 49 void sig_open_file(
int tab_idx);
50 void sig_open_dir(
int tab_idx);
52 void sig_tab_reset(
int tab_idx);
53 void sig_tab_save(
int tab_idx);
54 void sig_tab_save_as(
int tab_idx,
const QString& name);
55 void sig_tab_rename(
int tab_idx,
const QString& name);
56 void sig_tab_clear(
int tab_idx);
58 void sig_tab_delete(
int tab_idx);
59 void sig_cur_idx_changed(
int tab_idx);
60 void sig_add_tab_clicked();
61 void sig_metadata_dropped(
int tab_idx,
const MetaDataList& v_md);
69 void show_menu_items(PlaylistMenuEntries entries);
70 void setTabsClosable(
bool b);
72 bool was_drag_from_playlist()
const;
73 int get_drag_origin_tab()
const;
75 QString get_shortcut_text(
const QString &shortcut_identifier)
const override;
81 bool _drag_from_playlist;
86 void mousePressEvent(QMouseEvent* e)
override;
87 void wheelEvent(QWheelEvent* e)
override;
88 void dragEnterEvent(QDragEnterEvent* e)
override;
89 void dragMoveEvent(QDragMoveEvent* e)
override;
90 void dragLeaveEvent(QDragLeaveEvent* e)
override;
91 void dropEvent(QDropEvent* e)
override;
93 void init_shortcuts();
96 void open_file_pressed();
97 void open_dir_pressed();
100 void save_as_pressed();
101 void clear_pressed();
102 void delete_pressed();
103 void close_pressed();
104 void close_others_pressed();
105 void rename_pressed();
109 #endif // PLAYLISTTABBAR_H Definition: PlaylistTabBar.h:39