mirror of https://gitlab.com/pamhyr/pamhyr2
Config: Disable meshing tools tab and add some self documentation for solver command line.
parent
134c66d51c
commit
07798bbf46
|
|
@ -119,9 +119,9 @@ class ConfigureWindow(PamhyrDialog):
|
||||||
)
|
)
|
||||||
|
|
||||||
def setup_data(self):
|
def setup_data(self):
|
||||||
# Meshing_Tool
|
# # Meshing_Tool
|
||||||
self.set_line_edit_text("lineEdit_meshing_tool",
|
# self.set_line_edit_text("lineEdit_meshing_tool",
|
||||||
self._config.meshing_tool)
|
# self._config.meshing_tool)
|
||||||
|
|
||||||
# Const
|
# Const
|
||||||
self.set_line_edit_text("lineEdit_segment", str(self._config.segment))
|
self.set_line_edit_text("lineEdit_segment", str(self._config.segment))
|
||||||
|
|
@ -168,12 +168,12 @@ class ConfigureWindow(PamhyrDialog):
|
||||||
"lineEdit_backup_path", f[0]
|
"lineEdit_backup_path", f[0]
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
"pushButton_meshing_tool": lambda: self.file_dialog(
|
# "pushButton_meshing_tool": lambda: self.file_dialog(
|
||||||
select_file=True,
|
# select_file=True,
|
||||||
callback=lambda f: self.set_line_edit_text(
|
# callback=lambda f: self.set_line_edit_text(
|
||||||
"lineEdit_meshing_tool", f[0]
|
# "lineEdit_meshing_tool", f[0]
|
||||||
)
|
# )
|
||||||
),
|
# ),
|
||||||
}
|
}
|
||||||
|
|
||||||
for button in buttons:
|
for button in buttons:
|
||||||
|
|
@ -183,9 +183,9 @@ class ConfigureWindow(PamhyrDialog):
|
||||||
# Solvers
|
# Solvers
|
||||||
self._config.solvers = self.solver_table_model._data.copy()
|
self._config.solvers = self.solver_table_model._data.copy()
|
||||||
|
|
||||||
# Meshing_Tool
|
# # Meshing_Tool
|
||||||
self._config.meshing_tool = self.get_line_edit_text(
|
# self._config.meshing_tool = self.get_line_edit_text(
|
||||||
"lineEdit_meshing_tool")
|
# "lineEdit_meshing_tool")
|
||||||
|
|
||||||
# Const
|
# Const
|
||||||
self._config.segment = self.get_line_edit_text("lineEdit_segment")
|
self._config.segment = self.get_line_edit_text("lineEdit_segment")
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,9 @@
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>Dialog</string>
|
<string>Dialog</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="locale">
|
||||||
|
<locale language="English" country="Europe"/>
|
||||||
|
</property>
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
<layout class="QVBoxLayout" name="verticalLayout">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
|
|
@ -103,6 +106,12 @@
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="2">
|
<item row="0" column="2">
|
||||||
<widget class="QLabel" name="label_8">
|
<widget class="QLabel" name="label_8">
|
||||||
|
<property name="toolTip">
|
||||||
|
<string><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></string>
|
||||||
|
</property>
|
||||||
|
<property name="whatsThis">
|
||||||
|
<string/>
|
||||||
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Command line</string>
|
<string>Command line</string>
|
||||||
</property>
|
</property>
|
||||||
|
|
|
||||||
|
|
@ -113,58 +113,6 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QWidget" name="tab_mesh">
|
|
||||||
<property name="autoFillBackground">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
<attribute name="title">
|
|
||||||
<string>Meshing tool</string>
|
|
||||||
</attribute>
|
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
|
||||||
<item row="0" column="0">
|
|
||||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
|
||||||
<item>
|
|
||||||
<layout class="QHBoxLayout" name="horizontalLayout_7">
|
|
||||||
<item>
|
|
||||||
<widget class="QLabel" name="label_6">
|
|
||||||
<property name="text">
|
|
||||||
<string>Meshing tool path</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QLineEdit" name="lineEdit_meshing_tool"/>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<widget class="QPushButton" name="pushButton_meshing_tool">
|
|
||||||
<property name="text">
|
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
<property name="icon">
|
|
||||||
<iconset>
|
|
||||||
<normaloff>ressources/open.png</normaloff>ressources/open.png</iconset>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
<item>
|
|
||||||
<spacer name="verticalSpacer">
|
|
||||||
<property name="orientation">
|
|
||||||
<enum>Qt::Vertical</enum>
|
|
||||||
</property>
|
|
||||||
<property name="sizeHint" stdset="0">
|
|
||||||
<size>
|
|
||||||
<width>20</width>
|
|
||||||
<height>40</height>
|
|
||||||
</size>
|
|
||||||
</property>
|
|
||||||
</spacer>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</item>
|
|
||||||
</layout>
|
|
||||||
</widget>
|
|
||||||
<widget class="QWidget" name="tab_constant">
|
<widget class="QWidget" name="tab_constant">
|
||||||
<attribute name="title">
|
<attribute name="title">
|
||||||
<string>Constants</string>
|
<string>Constants</string>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue