You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/Include/iPlot/iPlotBase/Tools/ZxArrowTool.h

35 lines
733 B
C

#pragma once
#include "ZxCompoundTool.h"
class ZxSimpleTool;
/// 箭头工具.
/// 含单选, 多选, 框选, 编辑, 移动, 右键菜单等
class I_PLOTBASE_EXPORT ZxArrowTool : public ZxCompoundTool
{
Q_OBJECT
public:
ZxArrowTool();
public:
// 针对对象索引调整增加一些接口
// 注意:针对 m_vecSubTools 进行操作
// 交换两个Tool的索引顺序
bool swapTools(ZxSimpleTool* pTool1, ZxSimpleTool* pTool2);
// Tool索引移至最后也就是说遍历时最后一个才检测
bool moveToolToLast(ZxSimpleTool* pTool);
// Tool索引移至最前面也就是说遍历时第一个检测
bool moveToolToFirst(ZxSimpleTool* pTool);
};