6#include <phosphorlayoutapi_export.h>
82 const QSize& canvas = {})
override;
96 QVector<ILayoutSource*> m_sources;
102 QHash<ILayoutSource*, std::pair<QMetaObject::Connection, QMetaObject::Connection>> m_connections;
Aggregates multiple ILayoutSource implementations behind one ILayoutSource interface.
Definition CompositeLayoutSource.h:39
void clearSources()
Drop every child source (without deleting — sources are borrowed).
QVector< LayoutPreview > availableLayouts() const override
Enumerate every layout this source can render.
void setSources(QVector< ILayoutSource * > sources)
Replace the child-source set in one shot.
void addSource(ILayoutSource *source)
Append a child source to the aggregation.
void removeSource(ILayoutSource *source)
Remove source from the aggregation.
void clearSourcesSilent()
Drop every child source WITHOUT emitting contentsChanged.
LayoutPreview previewAt(const QString &id, int windowCount=DefaultPreviewWindowCount, const QSize &canvas={}) override
Produce a fully-realised preview for one layout entry.
CompositeLayoutSource(QObject *parent=nullptr)
~CompositeLayoutSource() override
Abstract producer of LayoutPreview values.
Definition ILayoutSource.h:48
Definition AlgorithmMetadata.h:10
Renderer-ready snapshot of one layout entry (manual zone layout OR autotile algorithm result).
Definition LayoutPreview.h:44