2 #include <Inspector/InspectorWidgetFactoryInterface.hpp>
4 #include <score/plugins/Interface.hpp>
5 #include <score/tools/SafeCast.hpp>
7 #include <score_lib_process_export.h>
12 class InspectorWidgetDelegate;
16 struct DocumentContext;
26 virtual QWidget* makeProcess(
28 QWidget* parent)
const
32 virtual void addButtons(
34 QBoxLayout* layout, QWidget* parent)
const;
38 QWidget* parent)
const;
42 QWidget* parent)
const final override;
43 bool matches(
const InspectedObjects& objects)
const final override;
48 QWidget* widg, QWidget* parent)
const;
51 template <
typename Process_T,
typename W
idget_T>
57 QWidget* parent)
const override
59 auto w =
new Widget_T{safe_cast<const Process_T&>(process), doc,
nullptr};
61 return wrap(process, doc, w, parent);
66 return dynamic_cast<const Process_T*
>(&process);
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: ObjectMatches.hpp:6
Definition: DocumentContext.hpp:18