添加Pantone 认证摸底测试面板UI
This commit is contained in:
@@ -21,6 +21,8 @@ from app.views.panels import side_panels as _sp
|
||||
from app.views.panels import cct_panel as _ccp
|
||||
from app.views.panels import main_layout as _main
|
||||
from app.views.panels import ai_image_panel as _aip
|
||||
from app.views.panels import single_step_panel as _ssp
|
||||
from app.views.panels import pantone_baseline_panel as _pbp
|
||||
from app.views import panel_manager as PM
|
||||
from app.logging_setup import setup_logging, attach_gui_handler
|
||||
|
||||
@@ -200,6 +202,10 @@ class PQAutomationApp:
|
||||
self.create_local_dimming_panel()
|
||||
# 创建 AI 图片对话面板
|
||||
self.create_ai_image_panel()
|
||||
# # 创建单步调试面板
|
||||
# self.create_single_step_panel()
|
||||
# 创建 Pantone 认证摸底测试面板
|
||||
self.create_pantone_baseline_panel()
|
||||
# 创建测试类型选择区域
|
||||
self.create_test_type_frame()
|
||||
# 创建操作按钮区域
|
||||
@@ -324,6 +330,14 @@ class PQAutomationApp:
|
||||
toggle_ai_image_panel = _aip.toggle_ai_image_panel
|
||||
reload_ai_image_list = _aip.reload_ai_image_list
|
||||
|
||||
# ---- 单步调试面板 ----
|
||||
create_single_step_panel = _ssp.create_single_step_panel
|
||||
toggle_single_step_panel = _ssp.toggle_single_step_panel
|
||||
|
||||
# ---- Pantone 认证摸底测试面板 ----
|
||||
create_pantone_baseline_panel = _pbp.create_pantone_baseline_panel
|
||||
toggle_pantone_baseline_panel = _pbp.toggle_pantone_baseline_panel
|
||||
|
||||
# ---- 单步调试面板(统一实现,委托到 side_panels 模块) ----
|
||||
_toggle_debug_panel = _sp._toggle_debug_panel
|
||||
toggle_screen_debug_panel = _sp.toggle_screen_debug_panel
|
||||
@@ -503,7 +517,13 @@ class PQAutomationApp:
|
||||
def change_test_type(self, test_type):
|
||||
"""切换测试类型"""
|
||||
# 切换测试类型时,自动隐藏日志面板和 Local Dimming 面板
|
||||
if self.current_panel in ("log", "local_dimming", "ai_image"):
|
||||
if self.current_panel in (
|
||||
"log",
|
||||
"local_dimming",
|
||||
"ai_image",
|
||||
"single_step",
|
||||
"pantone_baseline",
|
||||
):
|
||||
self.hide_all_panels()
|
||||
self._save_cct_params_before_test_type_switch()
|
||||
self._apply_current_test_type(test_type)
|
||||
|
||||
Reference in New Issue
Block a user