31 lines
741 B
C++
31 lines
741 B
C++
/**
|
||
*\file linkMovingSelector.h
|
||
*
|
||
*\brief 实现连接线移动的selector,与移动movingSelector作区分
|
||
*
|
||
*\author by
|
||
*/
|
||
|
||
#ifndef LINKMOVINGSELECTOR_H
|
||
#define LINKMOVINGSELECTOR_H
|
||
|
||
#include "baseSelector.h"
|
||
|
||
class ElectricConnectLineItem;
|
||
|
||
class LinkMovingSelector : public BaseSelector
|
||
{
|
||
Q_OBJECT
|
||
public:
|
||
explicit LinkMovingSelector(FixedPortsModel* model,QObject *parent = 0);
|
||
virtual ~LinkMovingSelector();
|
||
public:
|
||
void mousePressEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
||
void mouseMoveEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
||
void mouseReleaseEvent(QGraphicsSceneMouseEvent*, DesignerScene*);
|
||
private:
|
||
ElectricConnectLineItem* m_pMovingLine;
|
||
};
|
||
|
||
#endif
|