2024-12-03 20:07:25 +08:00
|
|
|
/**
|
|
|
|
|
*\file movingSelector.h
|
|
|
|
|
*
|
|
|
|
|
*\brief 用来实现图元移动的selector
|
|
|
|
|
*
|
|
|
|
|
*\author dsc
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef MOVINGSELECTOR_H
|
|
|
|
|
#define MOVINGSELECTOR_H
|
|
|
|
|
|
|
|
|
|
#include "baseSelector.h"
|
|
|
|
|
|
|
|
|
|
class MovingSelector : public BaseSelector
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
2025-02-06 16:36:50 +08:00
|
|
|
explicit MovingSelector(FixedPortsModel* model,QObject *parent = 0);
|
2024-12-03 20:07:25 +08:00
|
|
|
virtual ~MovingSelector();
|
|
|
|
|
|
2024-12-07 17:24:36 +08:00
|
|
|
void updateConnectLine(QList<QGraphicsItem *>);
|
2024-12-03 20:07:25 +08:00
|
|
|
public:
|
|
|
|
|
void mousePressEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
void mouseMoveEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
void mouseReleaseEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|