Refactor PD Pattern Tasks ui files

All files contain the same add/remove buttons and a feature list.

These common elements are moved into the TaskTransformedParameters.ui file.
The same goes for the common OK Button that is used in a MultiTransform.

The ui files for the patterns only contain their distinctive
parameters. And the common ui files contain an empy widget that will
be filled with the respective parameter widgets from the patterns.
This commit is contained in:
André Althaus
2024-02-17 10:40:04 +01:00
parent c4daf256b2
commit 5139182dbe
7 changed files with 158 additions and 437 deletions

View File

@@ -7,47 +7,25 @@
<x>0</x>
<y>0</y>
<width>270</width>
<height>339</height>
<height>188</height>
</rect>
</property>
<property name="windowTitle">
<string notr="true">Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QPushButton" name="buttonAddFeature">
<property name="text">
<string>Add feature</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="buttonRemoveFeature">
<property name="text">
<string>Remove feature</string>
</property>
<property name="checkable">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QListWidget" name="listWidgetFeatures">
<property name="toolTip">
<string>List can be reordered by dragging</string>
</property>
<property name="dragDropMode">
<enum>QAbstractItemView::InternalMove</enum>
</property>
</widget>
</item>
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
@@ -184,27 +162,6 @@
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QPushButton" name="buttonOK">
<property name="text">
<string>OK</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="checkBoxUpdateView">
<property name="text">
<string>Update view</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
</layout>
</widget>
<customwidgets>
@@ -221,49 +178,11 @@
</customwidget>
</customwidgets>
<tabstops>
<tabstop>buttonAddFeature</tabstop>
<tabstop>buttonRemoveFeature</tabstop>
<tabstop>listWidgetFeatures</tabstop>
<tabstop>comboDirection</tabstop>
<tabstop>checkReverse</tabstop>
<tabstop>spinLength</tabstop>
<tabstop>spinOccurrences</tabstop>
<tabstop>buttonOK</tabstop>
<tabstop>checkBoxUpdateView</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>buttonAddFeature</sender>
<signal>clicked(bool)</signal>
<receiver>buttonRemoveFeature</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>70</x>
<y>21</y>
</hint>
<hint type="destinationlabel">
<x>198</x>
<y>21</y>
</hint>
</hints>
</connection>
<connection>
<sender>buttonRemoveFeature</sender>
<signal>clicked(bool)</signal>
<receiver>buttonAddFeature</receiver>
<slot>setDisabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>198</x>
<y>21</y>
</hint>
<hint type="destinationlabel">
<x>70</x>
<y>21</y>
</hint>
</hints>
</connection>
</connections>
<connections/>
</ui>