#ifndef DUST3D_APPLICATION_COMPONENT_PREVIEW_GRID_WIDGET_H_ #define DUST3D_APPLICATION_COMPONENT_PREVIEW_GRID_WIDGET_H_ #include #include #include #include "preview_grid_view.h" class ComponentListModel; class Document; class SkeletonComponent; class ComponentPreviewGridWidget: public PreviewGridView { public: ComponentPreviewGridWidget(Document *document, QWidget *parent=nullptr); ComponentListModel *componentListModel(); std::vector getSelectedComponents() const; std::vector getSelectedComponentIds() const; std::vector getSelectedPartIds() const; private: std::unique_ptr m_componentListModel; Document *m_document = nullptr; }; #endif