2021-11-18 14:58:01 +00:00
|
|
|
#ifndef DUST3D_APPLICATION_MATERIAL_MANAGE_WIDGET_H_
|
|
|
|
#define DUST3D_APPLICATION_MATERIAL_MANAGE_WIDGET_H_
|
|
|
|
|
|
|
|
#include "material_list_widget.h"
|
2022-10-18 09:35:04 +00:00
|
|
|
#include <QWidget>
|
2018-10-09 02:19:12 +00:00
|
|
|
|
2020-12-19 02:29:24 +00:00
|
|
|
class Document;
|
|
|
|
|
2022-10-18 09:35:04 +00:00
|
|
|
class MaterialManageWidget : public QWidget {
|
2018-10-09 02:19:12 +00:00
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
2022-10-18 09:35:04 +00:00
|
|
|
void registerDialog(QWidget* widget);
|
|
|
|
void unregisterDialog(QWidget* widget);
|
|
|
|
|
2018-10-09 02:19:12 +00:00
|
|
|
public:
|
2022-10-18 09:35:04 +00:00
|
|
|
MaterialManageWidget(const Document* document, QWidget* parent = nullptr);
|
|
|
|
MaterialListWidget* materialListWidget();
|
|
|
|
|
2018-10-09 02:19:12 +00:00
|
|
|
protected:
|
|
|
|
virtual QSize sizeHint() const;
|
|
|
|
public slots:
|
|
|
|
void showAddMaterialDialog();
|
2021-11-18 14:58:01 +00:00
|
|
|
void showMaterialDialog(dust3d::Uuid materialId);
|
2022-10-18 09:35:04 +00:00
|
|
|
|
2018-10-09 02:19:12 +00:00
|
|
|
private:
|
2022-10-18 09:35:04 +00:00
|
|
|
const Document* m_document = nullptr;
|
|
|
|
MaterialListWidget* m_materialListWidget = nullptr;
|
2018-10-09 02:19:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|