21 #ifndef PLAYLISTTABBAR_H 22 #define PLAYLISTTABBAR_H 24 #include "PlaylistMenuEntry.h" 25 #include "Utils/Pimpl.h" 42 void sig_open_file(
int tab_idx);
43 void sig_open_dir(
int tab_idx);
45 void sig_tab_reset(
int tab_idx);
46 void sig_tab_save(
int tab_idx);
47 void sig_tab_save_as(
int tab_idx,
const QString& name);
48 void sig_tab_save_to_file(
int tab_idx,
const QString& filename);
49 void sig_tab_rename(
int tab_idx,
const QString& name);
50 void sig_tab_clear(
int tab_idx);
52 void sig_tab_delete(
int tab_idx);
53 void sig_cur_idx_changed(
int tab_idx);
54 void sig_add_tab_clicked();
55 void sig_metadata_dropped(
int tab_idx,
const MetaDataList& v_md);
56 void sig_files_dropped(
int tab_idx,
const QStringList& files);
60 explicit TabBar(QWidget *parent=
nullptr);
63 void show_menu_items(MenuEntries entries);
64 void setTabsClosable(
bool b);
66 bool was_drag_from_playlist()
const;
67 int get_drag_origin_tab()
const;
70 void mousePressEvent(QMouseEvent* e)
override;
71 void wheelEvent(QWheelEvent* e)
override;
72 void dragEnterEvent(QDragEnterEvent* e)
override;
73 void dragMoveEvent(QDragMoveEvent* e)
override;
74 void dragLeaveEvent(QDragLeaveEvent* e)
override;
75 void dropEvent(QDropEvent* e)
override;
77 void init_shortcuts();
80 void open_file_pressed();
81 void open_dir_pressed();
84 void save_as_pressed();
85 void save_to_file_pressed();
87 void delete_pressed();
89 void close_others_pressed();
90 void rename_pressed();
94 #endif // PLAYLISTTABBAR_H
The PlaylistTabBar class.
Definition: PlaylistTabBar.h:35
Definition: Playlist.h:32