#ifndef CONSTANTS_H #define CONSTANTS_H /*********常量定义********/ namespace Constants { const double SCENE_WIDTH = 800; const double SCENE_HEIGHT = 600; const int EDITOR_ITEM_WIDTH = 150; const int EDITOR_ITEM_HEIGHT = 80; const int EDITOR_BUS_HEIGHT = 10; const int V_DIAGRAM_SPACING = 80; const int H_DIAGRAM_SPACING = 80; const int TRANSFORMER_LEVEL = 999; // 层级结构中变压器所处层级 } #endif