#ifndef MAIN_H #define MAIN_H #include #include #include "machine/machine.h" #define BLOCK_MM 300 //每块对应的毫米数 #define MACHINE_NUM 255 //连接机器最大数量值 //语言 enum Language { chinese = 1, english = 2 }; #ifdef _IN_MAIN_CPP QList g_machineList; QTranslator *g_pTranslator; #else extern QList g_machineList; extern QTranslator *g_pTranslator; #endif #endif // MAIN_H