21 #ifndef FILELISTVIEW_H
22 #define FILELISTVIEW_H
24 #include "Gui/InfoDialog/InfoDialogContainer.h"
25 #include "Gui/Utils/SearchableWidget/SearchableView.h"
26 #include "Gui/Utils/Widgets/Dragable.h"
28 #include "Utils/Pimpl.h"
46 void sigDeleteClicked();
47 void sigPlayClicked();
48 void sigPlayNewTabClicked();
49 void sigPlayNextClicked();
50 void sigAppendClicked();
51 void sigEnterPressed();
52 void sigImportRequested(LibraryId lib_id,
const QStringList& files,
const QString& targetDirectory);
54 void sigRenameRequested(
const QString& old_name,
const QString& newName);
55 void sigRenameByExpressionRequested(
const QString& oldName,
const QString& expression);
57 void sigCopyToLibraryRequested(LibraryId libraryId);
58 void sigMoveToLibraryRequested(LibraryId libraryId);
64 QModelIndexList selectedRows()
const;
65 QStringList selectedPaths()
const;
67 void setParentDirectory(LibraryId
id,
const QString& dir);
68 QString parentDirectory()
const;
70 void setSearchFilter(
const QString& search_string);
72 QMimeData* dragableMimedata()
const override;
75 void initContextMenu();
78 void renameFileClicked();
79 void renameFileByTagClicked();
82 void contextMenuEvent(QContextMenuEvent* event)
override;
84 void dragEnterEvent(QDragEnterEvent* event)
override;
85 void dragMoveEvent(QDragMoveEvent* event)
override;
86 void dropEvent(QDropEvent* event)
override;
88 void languageChanged()
override;
89 void skinChanged()
override;
92 int mapModelIndexToIndex(
const QModelIndex& idx)
const override;
103 #endif // FILELISTVIEW_H