2022-10-02 19:45:46 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_COMPONENT_PREVIEW_GRID_WIDGET_H_
|
|
|
|
#define DUST3D_APPLICATION_COMPONENT_PREVIEW_GRID_WIDGET_H_
|
|
|
|
|
2022-10-03 00:06:25 +00:00
|
|
|
#include <memory>
|
2022-10-04 11:45:21 +00:00
|
|
|
#include <dust3d/base/uuid.h>
|
2022-10-02 19:45:46 +00:00
|
|
|
#include <QAbstractListModel>
|
|
|
|
#include "preview_grid_view.h"
|
|
|
|
|
|
|
|
class ComponentListModel;
|
|
|
|
class Document;
|
2022-10-04 09:50:39 +00:00
|
|
|
class SkeletonComponent;
|
2022-10-02 19:45:46 +00:00
|
|
|
|
|
|
|
class ComponentPreviewGridWidget: public PreviewGridView
|
|
|
|
{
|
|
|
|
public:
|
2022-10-04 11:45:21 +00:00
|
|
|
ComponentPreviewGridWidget(Document *document, QWidget *parent=nullptr);
|
2022-10-02 19:45:46 +00:00
|
|
|
ComponentListModel *componentListModel();
|
2022-10-04 09:50:39 +00:00
|
|
|
std::vector<const SkeletonComponent *> getSelectedComponents() const;
|
2022-10-04 11:45:21 +00:00
|
|
|
std::vector<dust3d::Uuid> getSelectedComponentIds() const;
|
|
|
|
std::vector<dust3d::Uuid> getSelectedPartIds() const;
|
2022-10-02 19:45:46 +00:00
|
|
|
private:
|
|
|
|
std::unique_ptr<ComponentListModel> m_componentListModel;
|
2022-10-04 11:45:21 +00:00
|
|
|
Document *m_document = nullptr;
|
2022-10-02 19:45:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|