#!D:\IDE\Anaconda3\envs\Microscope_Scan python
# -*- coding: UTF-8 -*-
"""
 @Author: Administrator
 @FileName: Settings.py
 @DateTime: 2025/5/16 13:19
 @SoftWare: PyCharm
 @Author  ：xsh
"""
from PyQt5 import Qt
import math
SIGNAL_CONNECTION_TYPE: Qt.Qt.ConnectionType = Qt.Qt.ConnectionType(Qt.Qt.AutoConnection | Qt.Qt.UniqueConnection)
DEFAULT_AUTO_SCAN_CODE: str = '#'
IsDebug: bool = True
"""前端显示模式  调试界面是否显示图像"""
HeadEndShowMode: dict[str, object] = {'DEBUG_SHOW': True}
"""玻片宽度和高度   以玻片在载玻台上的方向为基准   单位 mm """
# GlobalMutex                         : Qt.QMutex = Qt.QMutex()
LEICA_MM_STEP                       : int   = 262728          #
MAX_SLIDE_WIDTH                     : float = 45.00
MAX_SLIDE_HEIGHT                    : float = 25.00
RECODE_FAILURE                      : int   = 0               #
RECODE_SUCCEED                      : int   = 1               #
RECODE_WARNING                      : int   = 2               #
RECODE_CHANGED                      : int   = 3               #
RECODE_JUMPING                      : int   = 4               #
CODE_SUCCESS                        : int   = 200             #
CODE_FAILURE                        : int   = 500             #
CODE_WARNING                        : int   = 201             #
PROCESS_EVENT_DELAY                 : int   = 100             #
DEFAULT_IMAGE_W                     : int   = 2048            #
DEFAULT_IMAGE_H                     : int   = 2048            #
RESPONSE_IMAGE_W                    : int   = 512             #
RESPONSE_IMAGE_H                    : int   = 512             #
AXIS_STATUS_REGISTER_0              : int   = 0               #
AXIS_STATUS_REGISTER_1              : int   = 1               #
AXIS_STATUS_REGISTER_2              : int   = 2               #
AXIS_STATUS_REGISTER_3              : int   = 3               #
AXIS_STATUS_REGISTER_4              : int   = 4               #
READONLY_AXIS_STATUS_REGISTER_0     : int   = 0               #
READONLY_AXIS_STATUS_REGISTER_1     : int   = 1               #
READONLY_AXIS_STATUS_REGISTER_2     : int   = 2               #
READONLY_AXIS_STATUS_REGISTER_3     : int   = 3               #
READONLY_AXIS_STATUS_REGISTER_4     : int   = 4               #
READONLY_AXIS_STATUS_REGISTER_5     : int   = 5               #



SCANNING_ERROR                      : str = '扫描错误'
SCANNING_COMPLETE                   : str = '扫描完成'
EXIT_TEST_SCANNING                  : str = '退出测试'
TEST_SCANNING_COMPLETE              : str = '扫描完成'

EN_SCANNING_ERROR                      : str = 'Scanning ERROR'
EN_SCANNING_COMPLETE                   : str = 'Scanning Complete'
EN_EXIT_TEST_SCANNING                  : str = 'Exit Test Scanning'
EN_TEST_SCANNING_COMPLETE              : str = 'Test Scanning Complete'