aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/filterwidget2.ui
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-27 23:09:30 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-29 16:13:03 -0700
commit581eb1f563df9e7fa72371d936521e0bd55d9f18 (patch)
treeb269b6566f85aadcc0951fc8d40a0cbd2cdbf7e5 /desktop-widgets/filterwidget2.ui
parent2f5223035a9d43b933b0baf64823dab84b5d8cea (diff)
downloadsubsurface-581eb1f563df9e7fa72371d936521e0bd55d9f18.tar.gz
filter: create a primitive "create filter preset" dialog
The dialog asks the user for a name and warns if the name already exists, i.e. an old filter preset will be overwritten. Possibly, this should contain an auto-completion facility in the case that the user wants to overwrite old presets. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/filterwidget2.ui')
-rw-r--r--desktop-widgets/filterwidget2.ui58
1 files changed, 39 insertions, 19 deletions
diff --git a/desktop-widgets/filterwidget2.ui b/desktop-widgets/filterwidget2.ui
index f6b3d65f6..ca5d7693a 100644
--- a/desktop-widgets/filterwidget2.ui
+++ b/desktop-widgets/filterwidget2.ui
@@ -58,7 +58,7 @@
<item row="0" column="2" colspan="3">
<layout class="QHBoxLayout" name="titleLineLayout">
<item alignment="Qt::AlignLeft">
- <widget class="QToolButton" name="clear">
+ <widget class="QToolButton" name="addConstraintButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -66,19 +66,39 @@
</sizepolicy>
</property>
<property name="text">
- <string>Reset</string>
+ <string>Add constraint</string>
</property>
- <property name="icon">
- <iconset>
- <normaloff>:edit-clear-icon</normaloff>:edit-clear-icon</iconset>
+ </widget>
+ </item>
+ <item>
+ <spacer name="titleLineSpacer1">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
</property>
- <property name="toolButtonStyle">
- <enum>Qt::ToolButtonTextBesideIcon</enum>
+ </spacer>
+ </item>
+ <item>
+ <widget class="QToolButton" name="addSetButton">
+ <property name="sizePolicy">
+ <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+ <horstretch>0</horstretch>
+ <verstretch>0</verstretch>
+ </sizepolicy>
+ </property>
+ <property name="text">
+ <string>Save set</string>
</property>
</widget>
</item>
+ <item>
+ <spacer name="titleLineSpacer2">
+ <property name="orientation">
+ <enum>Qt::Horizontal</enum>
+ </property>
+ </spacer>
+ </item>
<item alignment="Qt::AlignLeft">
- <widget class="QToolButton" name="close">
+ <widget class="QToolButton" name="clear">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -86,11 +106,11 @@
</sizepolicy>
</property>
<property name="text">
- <string>Close</string>
+ <string>Reset</string>
</property>
<property name="icon">
<iconset>
- <normaloff>:filter-close</normaloff>:filter-close</iconset>
+ <normaloff>:edit-clear-icon</normaloff>:edit-clear-icon</iconset>
</property>
<property name="toolButtonStyle">
<enum>Qt::ToolButtonTextBesideIcon</enum>
@@ -98,7 +118,7 @@
</widget>
</item>
<item alignment="Qt::AlignLeft">
- <widget class="QToolButton" name="addConstraintButton">
+ <widget class="QToolButton" name="close">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
@@ -106,16 +126,16 @@
</sizepolicy>
</property>
<property name="text">
- <string>Add constraint</string>
+ <string>Close</string>
</property>
- </widget>
- </item>
- <item>
- <spacer name="titleLineSpacer">
- <property name="orientation">
- <enum>Qt::Horizontal</enum>
+ <property name="icon">
+ <iconset>
+ <normaloff>:filter-close</normaloff>:filter-close</iconset>
</property>
- </spacer>
+ <property name="toolButtonStyle">
+ <enum>Qt::ToolButtonTextBesideIcon</enum>
+ </property>
+ </widget>
</item>
</layout>
</item>