Loading...
Searching...
No Matches
JS::ModuleLibraryHandler Class Referencefinal
Inheritance diagram for JS::ModuleLibraryHandler:
Library::LibraryInterface score::InterfaceBase

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< ProcessEntryscanPath (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::PanelDelegatepanel {}
 

Member Function Documentation

◆ acceptedFiles()

QSet< QString > JS::ModuleLibraryHandler::acceptedFiles ( ) const
inlineoverridevirtualnoexcept

Reimplemented from Library::LibraryInterface.

◆ asyncAddPath()

std::function< void()> JS::ModuleLibraryHandler::asyncAddPath ( std::string_view  path)
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()

bool JS::ModuleLibraryHandler::onDoubleClick ( const QString &  path,
const score::DocumentContext ctx 
)
inlineoverridevirtual

Reimplemented from Library::LibraryInterface.


The documentation for this class was generated from the following file: