From 07798bbf469530b10802a06b70f0607df4292113 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby Date: Tue, 9 Jan 2024 10:53:49 +0100 Subject: [PATCH] Config: Disable meshing tools tab and add some self documentation for solver command line. --- src/View/Configure/Window.py | 24 ++++++------ src/View/ui/ConfigureAddSolverDialog.ui | 9 +++++ src/View/ui/ConfigureDialog.ui | 52 ------------------------- 3 files changed, 21 insertions(+), 64 deletions(-) diff --git a/src/View/Configure/Window.py b/src/View/Configure/Window.py index f380e868..14ba0442 100644 --- a/src/View/Configure/Window.py +++ b/src/View/Configure/Window.py @@ -119,9 +119,9 @@ class ConfigureWindow(PamhyrDialog): ) def setup_data(self): - # Meshing_Tool - self.set_line_edit_text("lineEdit_meshing_tool", - self._config.meshing_tool) + # # Meshing_Tool + # self.set_line_edit_text("lineEdit_meshing_tool", + # self._config.meshing_tool) # Const self.set_line_edit_text("lineEdit_segment", str(self._config.segment)) @@ -168,12 +168,12 @@ class ConfigureWindow(PamhyrDialog): "lineEdit_backup_path", f[0] ) ), - "pushButton_meshing_tool": lambda: self.file_dialog( - select_file=True, - callback=lambda f: self.set_line_edit_text( - "lineEdit_meshing_tool", f[0] - ) - ), + # "pushButton_meshing_tool": lambda: self.file_dialog( + # select_file=True, + # callback=lambda f: self.set_line_edit_text( + # "lineEdit_meshing_tool", f[0] + # ) + # ), } for button in buttons: @@ -183,9 +183,9 @@ class ConfigureWindow(PamhyrDialog): # Solvers self._config.solvers = self.solver_table_model._data.copy() - # Meshing_Tool - self._config.meshing_tool = self.get_line_edit_text( - "lineEdit_meshing_tool") + # # Meshing_Tool + # self._config.meshing_tool = self.get_line_edit_text( + # "lineEdit_meshing_tool") # Const self._config.segment = self.get_line_edit_text("lineEdit_segment") diff --git a/src/View/ui/ConfigureAddSolverDialog.ui b/src/View/ui/ConfigureAddSolverDialog.ui index c6219577..336f125d 100644 --- a/src/View/ui/ConfigureAddSolverDialog.ui +++ b/src/View/ui/ConfigureAddSolverDialog.ui @@ -13,6 +13,9 @@ Dialog + + + @@ -103,6 +106,12 @@ + + <html><head/><body><p>Command line format, for input formater (optional), solver execution and output formater (optional). This format can use some replacement values like:</p><p>- <span style=" font-style:italic;">@install_dir</span>: The Pamhyr2 install path</p><p>- <span style=" font-style:italic;">@path</span>: The associate path</p><p>- <span style=" font-style:italic;">@input</span>: Solver input data (depend of solver type)</p><p>-<span style=" font-style:italic;"> @output</span>: Solver output data (depend of solver type)</p><p>- <span style=" font-style:italic;">@dir</span>: The working dir at solver execution</p><p>- <span style=" font-style:italic;">@args</span>: Solver arguments and additional arguments defined on solver parameters</p></body></html> + + + + Command line diff --git a/src/View/ui/ConfigureDialog.ui b/src/View/ui/ConfigureDialog.ui index bbde334e..ca54d07d 100644 --- a/src/View/ui/ConfigureDialog.ui +++ b/src/View/ui/ConfigureDialog.ui @@ -113,58 +113,6 @@ - - - false - - - Meshing tool - - - - - - - - - - Meshing tool path - - - - - - - - - - - - - - ressources/open.pngressources/open.png - - - - - - - - - Qt::Vertical - - - - 20 - 40 - - - - - - - - Constants