 |
Sayonara Player
|
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"
52 void sigDeleteClicked();
53 void sigPlayClicked();
54 void sigPlayNewTabClicked();
55 void sigPlayNextClicked();
56 void sigAppendClicked();
57 void sigEnterPressed();
58 void sigImportRequested(LibraryId lib_id,
const QStringList& files,
const QString& targetDirectory);
60 void sigRenameRequested(
const QString& old_name,
const QString& newName);
61 void sigRenameByExpressionRequested(
const QString& oldName,
const QString& expression);
63 void sigCopyToLibraryRequested(LibraryId libraryId);
64 void sigMoveToLibraryRequested(LibraryId libraryId);
72 QStringList selectedPaths()
const;
74 void setParentDirectory(
const QString& dir);
75 QString parentDirectory()
const;
78 void initContextMenu();
81 void renameFileClicked();
82 void renameFileByTagClicked();
85 void contextMenuEvent(QContextMenuEvent* event)
override;
87 void dragEnterEvent(QDragEnterEvent* event)
override;
88 void dragMoveEvent(QDragMoveEvent* event)
override;
89 void dropEvent(QDropEvent* event)
override;
91 void skinChanged()
override;
94 int mapModelIndexToIndex(
const QModelIndex& idx)
const override;
102 QWidget* getParentWidget()
override;
106 #endif // FILELISTVIEW_H
QStringList pathlist() const override
Returns a list of paths. This is only used if has_metadata() returns false.
Definition: typedefs.h:33
Definition: LibraryInfoAccessor.h:36
MetaDataList infoDialogData() const override
get the metadata that should be used for the info dialog So for lists, the selected tracks are used h...
An interface class needed when implementing a library plugin.
Definition: LocalLibraryWatcher.h:31
The FileListView class.
Definition: FileListView.h:47
The Info class.
Definition: LibraryInfo.h:38
An interface used to abstract the usage of the info dialog. An implementing class has to return the i...
Definition: InfoDialogContainer.h:64
bool hasMetadata() const override
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist
The Dragable class.
Definition: Dragable.h:61
MD::Interpretation metadataInterpretation() const override
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums whil...