Commit 32886c50 authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Configure: Remove unused configuration.

Showing with 0 additions and 108 deletions
+0 -108
...@@ -121,15 +121,6 @@ class ConfigureWindow(PamhyrDialog): ...@@ -121,15 +121,6 @@ class ConfigureWindow(PamhyrDialog):
) )
def setup_data(self): def setup_data(self):
# # 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))
self.set_line_edit_text("lineEdit_max_listing",
str(self._config.max_listing))
# Backup # Backup
self.set_check_box("checkBox_backup", self._config.backup_enable) self.set_check_box("checkBox_backup", self._config.backup_enable)
self.set_line_edit_text("lineEdit_backup_path", self.set_line_edit_text("lineEdit_backup_path",
...@@ -170,12 +161,6 @@ class ConfigureWindow(PamhyrDialog): ...@@ -170,12 +161,6 @@ class ConfigureWindow(PamhyrDialog):
"lineEdit_backup_path", f[0] "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]
# )
# ),
} }
for button in buttons: for button in buttons:
...@@ -185,15 +170,6 @@ class ConfigureWindow(PamhyrDialog): ...@@ -185,15 +170,6 @@ 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
# self._config.meshing_tool = self.get_line_edit_text(
# "lineEdit_meshing_tool")
# Const
self._config.segment = self.get_line_edit_text("lineEdit_segment")
self._config.max_listing = self.get_line_edit_text(
"lineEdit_max_listing")
# Backup # Backup
self._config.backup_enable = self.get_check_box("checkBox_backup") self._config.backup_enable = self.get_check_box("checkBox_backup")
self._config.backup_path = self.get_line_edit_text( self._config.backup_path = self.get_line_edit_text(
......
...@@ -113,70 +113,6 @@ ...@@ -113,70 +113,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<widget class="QWidget" name="tab_constant">
<attribute name="title">
<string>Constants</string>
</attribute>
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<layout class="QVBoxLayout" name="verticalLayout_3">
<item>
<widget class="QLabel" name="label_2">
<property name="text">
<string>Segment number</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_3">
<property name="text">
<string>Listing maximum size</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<widget class="QLineEdit" name="lineEdit_segment">
<property name="text">
<string>1000</string>
</property>
</widget>
</item>
<item>
<widget class="QLineEdit" name="lineEdit_max_listing">
<property name="text">
<string>500000</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<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_backup"> <widget class="QWidget" name="tab_backup">
<property name="enabled"> <property name="enabled">
<bool>false</bool> <bool>false</bool>
......
...@@ -178,16 +178,6 @@ class Config(SQL): ...@@ -178,16 +178,6 @@ class Config(SQL):
id += 1 id += 1
def _load(self): def _load(self):
# Meshing tool
v = self.execute("SELECT value FROM data WHERE key='meshing_tool'")
self.meshing_tool = v[0]
# Const
v = self.execute("SELECT value FROM data WHERE key='segment'")
self.segment = int(v[0])
v = self.execute("SELECT value FROM data WHERE key='max_listing'")
self.max_listing = int(v[0])
# Backup # Backup
v = self.execute("SELECT value FROM data WHERE key='backup_enable'") v = self.execute("SELECT value FROM data WHERE key='backup_enable'")
self.backup_enable = v[0] == "True" self.backup_enable = v[0] == "True"
...@@ -259,9 +249,6 @@ class Config(SQL): ...@@ -259,9 +249,6 @@ class Config(SQL):
def _save(self): def _save(self):
data = { data = {
"segment": self.segment,
"meshing_tool": self.meshing_tool,
"max_listing": self.max_listing,
"backup_enable": self.backup_enable, "backup_enable": self.backup_enable,
"backup_path": self.backup_path, "backup_path": self.backup_path,
"backup_frequence": self.backup_frequence, "backup_frequence": self.backup_frequence,
...@@ -302,13 +289,6 @@ class Config(SQL): ...@@ -302,13 +289,6 @@ class Config(SQL):
new._cmd_solver = f""""@install_dir/mage/mage{ext}" @args @input""" new._cmd_solver = f""""@install_dir/mage/mage{ext}" @args @input"""
self._solvers.append(new) self._solvers.append(new)
# Meshing tool
self.meshing_tool = ""
# Const
self.segment = 1000
self.max_listing = 500000
# Backup # Backup
self.backup_enable = True self.backup_enable = True
self.backup_path = "" self.backup_path = ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment