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;
99 QStringList
pathlist()
const override;
103 #endif // FILELISTVIEW_H An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:61
The FileListView class.
Definition: FileListView.h:37
MD::Interpretation metadataInterpretation() const override
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...
Definition: typedefs.h:32
bool hasMetadata() const override
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist
MetaDataList infoDialogData() const override
get the metadata that should be used for the info dialog So for lists, the selected tracks are used h...
The Dragable class.
Definition: Dragable.h:60
QStringList pathlist() const override
Returns a list of paths. This is only used if has_metadata() returns false.