2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_GRAPHICS_CONTAINER_WIDGET_H
|
|
|
|
#define DUST3D_GRAPHICS_CONTAINER_WIDGET_H
|
2018-08-27 08:50:40 +00:00
|
|
|
#include <QWidget>
|
|
|
|
#include <QResizeEvent>
|
2018-10-25 07:03:51 +00:00
|
|
|
#include <QMouseEvent>
|
|
|
|
#include <QWheelEvent>
|
|
|
|
#include "modelwidget.h"
|
2018-11-15 14:33:56 +00:00
|
|
|
#include "skeletongraphicswidget.h"
|
2018-08-27 08:50:40 +00:00
|
|
|
|
|
|
|
class GraphicsContainerWidget : public QWidget
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
signals:
|
|
|
|
void containerSizeChanged(QSize size);
|
|
|
|
public:
|
|
|
|
GraphicsContainerWidget();
|
2018-11-15 14:33:56 +00:00
|
|
|
void setGraphicsWidget(SkeletonGraphicsWidget *graphicsWidget);
|
2018-10-25 07:03:51 +00:00
|
|
|
void setModelWidget(ModelWidget *modelWidget);
|
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
|
|
void mouseMoveEvent(QMouseEvent *event) override;
|
|
|
|
void mouseReleaseEvent(QMouseEvent *event) override;
|
|
|
|
void wheelEvent(QWheelEvent *event) override;
|
2018-08-27 08:50:40 +00:00
|
|
|
private:
|
2018-10-25 07:03:51 +00:00
|
|
|
ModelWidget *m_modelWidget = nullptr;
|
2018-11-15 14:33:56 +00:00
|
|
|
SkeletonGraphicsWidget *m_graphicsWidget = nullptr;
|
2018-08-27 08:50:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|