2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_POSE_MANAGE_WIDGET_H
|
|
|
|
#define DUST3D_POSE_MANAGE_WIDGET_H
|
2018-09-21 07:10:18 +00:00
|
|
|
#include <QWidget>
|
2018-10-25 00:19:38 +00:00
|
|
|
#include "document.h"
|
2018-09-21 07:10:18 +00:00
|
|
|
#include "poselistwidget.h"
|
|
|
|
|
|
|
|
class PoseManageWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void registerDialog(QWidget *widget);
|
|
|
|
void unregisterDialog(QWidget *widget);
|
|
|
|
public:
|
2018-10-25 00:19:38 +00:00
|
|
|
PoseManageWidget(const Document *document, QWidget *parent=nullptr);
|
2018-09-21 07:10:18 +00:00
|
|
|
PoseListWidget *poseListWidget();
|
|
|
|
protected:
|
|
|
|
virtual QSize sizeHint() const;
|
|
|
|
public slots:
|
|
|
|
void showAddPoseDialog();
|
|
|
|
void showPoseDialog(QUuid poseId);
|
|
|
|
private:
|
2018-10-25 00:19:38 +00:00
|
|
|
const Document *m_document = nullptr;
|
2018-09-21 07:10:18 +00:00
|
|
|
PoseListWidget *m_poseListWidget = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|