DiagramDesigner/common/frontend/graphics_items.h

29 lines
543 B
C
Raw Normal View History

2026-03-13 08:31:37 +08:00
#ifndef GRAPHICS_ITEMS_H
#define GRAPHICS_ITEMS_H
/*********图元********/
#include <QGraphicsItem>
// 句柄标签
enum HandleTag {
H_none = 0,
H_leftTop,
H_top,
H_rightTop,
H_right,
H_rightBottom,
H_bottom,
H_leftBottom,
H_left,
H_rotate_leftTop,
H_rotate_rightTop,
H_rotate_rightBottom,
H_rotate_leftBottom,
H_edit,
H_textCaption = 40, // 标题文本
H_textCurrent, // 电流
H_textVoltage, // 电压
H_connect = 50 // 连接操作点
};
#endif