2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_MOTION_MANAGE_WIDGET_H
|
|
|
|
#define DUST3D_MOTION_MANAGE_WIDGET_H
|
2018-10-02 04:59:30 +00:00
|
|
|
#include <QWidget>
|
2018-10-25 00:19:38 +00:00
|
|
|
#include "document.h"
|
2018-10-02 04:59:30 +00:00
|
|
|
#include "motionlistwidget.h"
|
|
|
|
|
|
|
|
class MotionManageWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void registerDialog(QWidget *widget);
|
|
|
|
void unregisterDialog(QWidget *widget);
|
|
|
|
public:
|
2018-10-25 00:19:38 +00:00
|
|
|
MotionManageWidget(const Document *document, QWidget *parent=nullptr);
|
2018-10-02 04:59:30 +00:00
|
|
|
protected:
|
|
|
|
virtual QSize sizeHint() const;
|
|
|
|
public slots:
|
|
|
|
void showAddMotionDialog();
|
|
|
|
void showMotionDialog(QUuid motionId);
|
|
|
|
private:
|
2018-10-25 00:19:38 +00:00
|
|
|
const Document *m_document = nullptr;
|
2018-10-02 04:59:30 +00:00
|
|
|
MotionListWidget *m_motionListWidget = nullptr;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|