DiagramDesigner/common/source/global.cpp

10 lines
437 B
C++
Raw Normal View History

2025-03-28 18:08:21 +08:00
#include "global.h"
2025-07-24 10:01:31 +08:00
const QMap<AbstractItemType,GraphicsItemType> linkType = {
2025-04-09 16:20:34 +08:00
{AIT_motor,GIT_itemRect},{AIT_bus,GIT_bus},
2025-03-28 18:08:21 +08:00
};
2025-07-24 10:01:31 +08:00
//类型转换
const QMap<int,GraphicsItemType> typeToProGraphic = {
2025-10-11 18:51:33 +08:00
{0,GIT_node},{1,GIT_bus},{3,GIT_itemRect},{4,GIT_ctGroup},{6,GIT_ES},{7,GIT_FES},{8,GIT_link},{9,GIT_DS},{10,GIT_DTEDS},{11,GIT_PI},{12,GIT_LA},{13,GIT_cableTer},{14,GIT_cableEnd},{15,GIT_2wTransformer},{16,GIT_3wTransformer}
2025-07-24 10:01:31 +08:00
};