✨ feat(Settings.py, UI_Settings.py, settings.ui): add checkbox to enable/disable verticalisation of scanned objects The changes add support for verticalising scanned objects before processing them. A new checkbox has been added to the settings UI to enable/disable this feature. 🔧 refactor(SettingManager.py): add default settings dictionary and refactor createInitialSettings method ✨ feat(SettingManager.py): add new settings to the config file if they are not present The `default_settings` dictionary is added to the `SettingManager` class to store the default values for the settings. The `createInitialSettings` method is refactored to use the `default_settings` dictionary to set the initial values of the settings. If new settings are added to the `default_settings` dictionary, they are added to the config file if they are not already present. The `remove_changed` method is added to remove the `has_changed` flag.
106 lines
3.1 KiB
XML
106 lines
3.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>Settings</class>
|
|
<widget class="QMainWindow" name="Settings">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>712</width>
|
|
<height>226</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Préférences</string>
|
|
</property>
|
|
<widget class="QWidget" name="centralwidget">
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="0" column="0">
|
|
<layout class="QGridLayout" name="gridLayout_2">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="discretisation_method_label">
|
|
<property name="text">
|
|
<string>Methode de discretisation</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QLineEdit" name="raw_data_suffix"/>
|
|
</item>
|
|
<item row="0" column="1">
|
|
<widget class="QComboBox" name="discretisation_method"/>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QLineEdit" name="extention"/>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="raw_data_suffix_label">
|
|
<property name="text">
|
|
<string>Suffixe des fichiers de données brutes</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="separator_label">
|
|
<property name="text">
|
|
<string>Separateur de colone</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="discrete_data_suffix_label">
|
|
<property name="text">
|
|
<string>Suffixe des fichiers de données discretisées</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="1">
|
|
<widget class="QLineEdit" name="discrete_data_suffix"/>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="extention_label">
|
|
<property name="text">
|
|
<string>Extensions des fichiers de sorties</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="1">
|
|
<widget class="QCheckBox" name="prettify">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="prettify_label">
|
|
<property name="text">
|
|
<string>Aligner les colones</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1">
|
|
<widget class="QLineEdit" name="separator"/>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="should_verticalise_label">
|
|
<property name="text">
|
|
<string>Mettre l'objet droit</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QCheckBox" name="should_verticalise">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
</widget>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|