11# SPDX-License-Identifier: Apache-2.0
22# Copyright 2026 Ague Samuel Amen
33
4- """Connections for `ui/ui_ide_design2 .ui`.
4+ """Connections for `Ui/Forms/ide_main_window .ui`.
55
66This module intentionally contains only UI loading, widget mapping and signal
77connections to existing methods on the main GUI object.
@@ -77,14 +77,10 @@ def _prime_expected_attrs(self) -> None:
7777
7878def _load_ide_like_ui (self ) -> None :
7979 """Load the new ide-like UI file and set it as central widget."""
80+ from Ui import ui_form_path
81+
8082 loader = QUiLoader ()
81- ui_path = os .path .join (
82- os .path .dirname (os .path .abspath (__file__ )),
83- ".." ,
84- ".." ,
85- "ui" ,
86- "ui_ide_design2.ui" ,
87- )
83+ ui_path = ui_form_path ("ide_main_window.ui" )
8884 ui_file = QFile (os .path .abspath (ui_path ))
8985 if not ui_file .open (QFile .ReadOnly ):
9086 raise RuntimeError (f"Impossible d'ouvrir le fichier UI : { ui_path } " )
@@ -93,7 +89,7 @@ def _load_ide_like_ui(self) -> None:
9389 if loaded is None :
9490 raise RuntimeError (f"Échec du chargement du fichier UI : { ui_path } " )
9591
96- # ui_ide_design2 .ui uses QMainWindow as root. Reuse its central widget.
92+ # ide_main_window .ui uses QMainWindow as root. Reuse its central widget.
9793 if isinstance (loaded , QMainWindow ):
9894 _clear_inline_styles (loaded )
9995 # Preserve status bar authored in the .ui file when available.
0 commit comments