Loading...
Searching...
No Matches
JS::ModuleLibraryHandler Class Referencefinal
Inheritance diagram for JS::ModuleLibraryHandler:
Public Member Functions | |
| QSet< QString > | acceptedFiles () const noexcept override |
| bool | add (const QString &path) |
| std::function< void()> | asyncAddPath (std::string_view path) override |
| bool | onDoubleClick (const QString &path, const score::DocumentContext &ctx) override |
Public Member Functions inherited from Library::LibraryInterface | |
| virtual QSet< QString > | acceptedMimeTypes () const noexcept |
| virtual QWidget * | previewWidget (const QString &path, QWidget *parent) const noexcept |
| virtual QWidget * | previewWidget (const Process::Preset &preset, QWidget *parent) const noexcept |
| virtual void | setup (ProcessesItemModel &model, const score::GUIApplicationContext &ctx) |
| virtual void | addPath (std::string_view) |
| virtual void | removePath (std::string_view) |
| virtual std::optional< ProcessEntry > | scanPath (std::string_view path) |
| virtual bool | onDrop (const QMimeData &mime, int row, int column, const QDir &parent) |
Public Member Functions inherited from score::InterfaceBase | |
| virtual InterfaceKey | interfaceKey () const noexcept=0 |
| Identifies an interface uniquely. | |
Public Attributes | |
| JS::PanelDelegate * | panel {} |
Member Function Documentation
◆ acceptedFiles()
|
inlineoverridevirtualnoexcept |
Reimplemented from Library::LibraryInterface.
◆ asyncAddPath()
|
inlineoverridevirtual |
Called on a worker thread during async scanning. Return a non-empty function to accept the file; that function will be invoked on the GUI thread (the "commit" phase). Only for handlers whose commit does not touch the ProcessesItemModel tree (e.g. the QML module panel, the preset library): tree insertions must go through scanPath so they are published with correct signals. Default implementation defers everything to addPath on the GUI thread.
Reimplemented from Library::LibraryInterface.
◆ onDoubleClick()
|
inlineoverridevirtual |
Reimplemented from Library::LibraryInterface.
The documentation for this class was generated from the following file:
Public Member Functions inherited from