#ifndef GLOBAL_H #define GLOBAL_H #include #include #include enum MessageDialogType { type_information = 0, type_question, type_warning }; enum MessageDialogBtn { btn_Null = 0, btn_Yes, btn_No }; enum DateTimeWidgetState { realTime, historical }; enum TimeUnit { TU_Year = 1, //yyyy TU_Month, //yyyy/M/1 TU_Day, //M/d TU_Hour, //M/d/hh TU_Minute_30, //hh:mm TU_Minute_20, //hh:mm TU_Minute_15, //hh:mm TU_Minute_10, //hh:mm TU_Minute_5, //hh:mm TU_Minute_3, //hh:mm TU_Minute_1, //hh:mm TU_Second_30, //hh:mm:ss TU_Second_10, //hh:mm:ss TU_Second_1, //hh:mm:ss TU_MSecond_500, //mm:ss:z TU_MSecond_100, //mm:ss:z TU_MSecond_50, //mm:ss:z TU_MSecond_10 //mm:ss:z }; extern MessageDialogBtn g_msgDlgBtn; extern QHash g_globalColor; extern QHash g_timeUnit; void initializeGlobalVariable(); #endif