2024-12-03 20:07:25 +08:00
|
|
|
/**
|
|
|
|
|
*\file rotationSelector.h
|
|
|
|
|
*
|
|
|
|
|
*\brief 用来实现图元旋转的selector
|
|
|
|
|
*
|
|
|
|
|
*\author dsc
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef ROTATIONSELECTOR_H
|
|
|
|
|
#define ROTATIONSELECTOR_H
|
|
|
|
|
|
|
|
|
|
#include "baseSelector.h"
|
|
|
|
|
|
|
|
|
|
class RotationSelector : public BaseSelector
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2025-02-06 16:36:50 +08:00
|
|
|
explicit RotationSelector(FixedPortsModel* model,QObject *parent = 0);
|
2024-12-03 20:07:25 +08:00
|
|
|
virtual ~RotationSelector();
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
void mousePressEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|