dust3d/application/sources/bone_manage_widget.h

35 lines
895 B
C
Raw Normal View History

2022-11-11 12:06:06 +00:00
#ifndef DUST3D_APPLICATION_BONE_MANAGE_WIDGET_H_
#define DUST3D_APPLICATION_BONE_MANAGE_WIDGET_H_
#include <QWidget>
#include <dust3d/base/uuid.h>
class Document;
class BonePreviewGridWidget;
class BonePropertyWidget;
class QPushButton;
class BoneManageWidget : public QWidget {
Q_OBJECT
signals:
void unselectAllOnCanvas();
void selectNodeOnCanvas(const dust3d::Uuid& boneId);
void groupOperationAdded();
public slots:
void selectBoneByBoneId(const dust3d::Uuid& boneId);
void showSelectedBoneProperties();
void showContextMenu(const QPoint& pos);
public:
BoneManageWidget(Document* document, QWidget* parent = nullptr);
private:
Document* m_document = nullptr;
BonePreviewGridWidget* m_bonePreviewGridWidget = nullptr;
QPushButton* m_selectButton = nullptr;
QPushButton* m_propertyButton = nullptr;
void updateToolButtons();
};
#endif