mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
5fae7ce7a0
Include unused tanks in merges of multiple logs into a single dive if the 'Show unused cylinders' preference is enabled. Also rename the preference (in code) to `include_unused_tanks` to reflect the fact that it is already used in more places than just the display (exporting, cloning dives). Simplified the cylinder model to make forced inclusion of unused tanks dependent on use of the model in planner. Leaving the persisted name of the preference as `display_unused_tanks` to avoid resetting this for all users - is there a good way to migrate preference names? Signed-off-by: Michael Keller <github@ike.ch>
98 lines
2.4 KiB
XML
98 lines
2.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>PreferencesEquipment</class>
|
|
<widget class="QWidget" name="PreferencesEquipment">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>621</width>
|
|
<height>523</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QVBoxLayout" name="verticalLayout">
|
|
|
|
<item>
|
|
<widget class="QLabel" name="label_cylinders">
|
|
<property name="enabled">
|
|
<bool>true</bool>
|
|
</property>
|
|
<property name="text">
|
|
<string>CYLINDERS</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
|
|
<item>
|
|
<widget class="QGroupBox" name="groupBox_6">
|
|
<property name="title">
|
|
<string>Default cylinder in the Cylinders table of the Equipment tab</string>
|
|
</property>
|
|
<layout class="QFormLayout" name="formLayout_6">
|
|
<property name="horizontalSpacing">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="verticalSpacing">
|
|
<number>5</number>
|
|
</property>
|
|
<property name="margin">
|
|
<number>5</number>
|
|
</property>
|
|
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="label_11">
|
|
<property name="text">
|
|
<string>Select a default cylinder</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
|
|
<item row="0" column="1">
|
|
<layout class="QHBoxLayout" name="horizontalLayout_3">
|
|
<item>
|
|
<widget class="QComboBox" name="default_cylinder"/>
|
|
</item>
|
|
</layout>
|
|
</item>
|
|
|
|
</layout>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="include_unused_tanks">
|
|
<property name="text">
|
|
<string>Show unused cylinders in the Cylinders table of the Equipment tab and include them in export / copy / merge</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item>
|
|
<widget class="QCheckBox" name="display_default_tank_infos">
|
|
<property name="text">
|
|
<string>Show default cylinder sizes in the cylinders selection of the equipment tab</string>
|
|
</property>
|
|
</widget>
|
|
</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>
|
|
</widget>
|
|
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|