mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 19:41:30 +00:00
19f6e8810c
The idea of this new widget is to be able to filter more types of data, while keeping it simple and extending the feature set to something that was impossible with the old implementation. While the old implementation had 4 panels that you could use to filter specific tags / people / types of dives the new one will let you filter by visibility, temperature people, name, equipment, etc, in a more natural way than the old one. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
260 lines
6.9 KiB
XML
260 lines
6.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<ui version="4.0">
|
|
<class>FilterWidget2</class>
|
|
<widget class="QWidget" name="FilterWidget2">
|
|
<property name="geometry">
|
|
<rect>
|
|
<x>0</x>
|
|
<y>0</y>
|
|
<width>510</width>
|
|
<height>320</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="3" column="1">
|
|
<widget class="QLabel" name="label_12">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="4">
|
|
<widget class="StarWidget" name="maxVisibility" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="2">
|
|
<widget class="QDoubleSpinBox" name="minWaterTemp"/>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<widget class="StarWidget" name="minVisibility" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="0">
|
|
<widget class="QLabel" name="label_7">
|
|
<property name="text">
|
|
<string>Tags</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="0">
|
|
<widget class="QLabel" name="label">
|
|
<property name="text">
|
|
<string> Rating</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="2">
|
|
<widget class="StarWidget" name="minRating" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="0">
|
|
<widget class="QLabel" name="label_8">
|
|
<property name="text">
|
|
<string>People</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="3">
|
|
<widget class="QLabel" name="label_13">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="1">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="1" colspan="4">
|
|
<widget class="QLineEdit" name="tags"/>
|
|
</item>
|
|
<item row="11" column="1" colspan="4">
|
|
<widget class="QCheckBox" name="invertFilter">
|
|
<property name="toolTip">
|
|
<string>Display dives that will not match the search, only applies to tags, people, location and equipment</string>
|
|
</property>
|
|
<property name="text">
|
|
<string>Invert filter</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="3">
|
|
<widget class="QLabel" name="label_16">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="1" colspan="4">
|
|
<widget class="QDateTimeEdit" name="from"/>
|
|
</item>
|
|
<item row="8" column="1" colspan="4">
|
|
<widget class="QLineEdit" name="people"/>
|
|
</item>
|
|
<item row="1" column="4">
|
|
<widget class="StarWidget" name="maxRating" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="4">
|
|
<widget class="QDoubleSpinBox" name="maxWaterTemp"/>
|
|
</item>
|
|
<item row="10" column="0">
|
|
<widget class="QLabel" name="label_10">
|
|
<property name="text">
|
|
<string>Equipment</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="3">
|
|
<widget class="QLabel" name="label_15">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="0">
|
|
<widget class="QLabel" name="label_9">
|
|
<property name="text">
|
|
<string>Location</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="1" colspan="4">
|
|
<widget class="QLineEdit" name="location"/>
|
|
</item>
|
|
<item row="6" column="1" colspan="4">
|
|
<widget class="QDateTimeEdit" name="to"/>
|
|
</item>
|
|
<item row="10" column="1" colspan="4">
|
|
<widget class="QLineEdit" name="equipment"/>
|
|
</item>
|
|
<item row="5" column="0">
|
|
<widget class="QLabel" name="label_4">
|
|
<property name="text">
|
|
<string>From</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="0">
|
|
<widget class="QLabel" name="label_6">
|
|
<property name="text">
|
|
<string>To</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>Visibility</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_11">
|
|
<property name="text">
|
|
<string>Water Temp</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="1">
|
|
<widget class="QLabel" name="label_14">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="0">
|
|
<widget class="QLabel" name="label_2">
|
|
<property name="text">
|
|
<string>Air Temp</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="1">
|
|
<widget class="QLabel" name="label_17">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="3">
|
|
<widget class="QLabel" name="label_18">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="2">
|
|
<widget class="QDoubleSpinBox" name="minAirTemp"/>
|
|
</item>
|
|
<item row="4" column="4">
|
|
<widget class="QDoubleSpinBox" name="maxAirTemp"/>
|
|
</item>
|
|
</layout>
|
|
</widget>
|
|
<customwidgets>
|
|
<customwidget>
|
|
<class>StarWidget</class>
|
|
<extends>QWidget</extends>
|
|
<header location="global">desktop-widgets/starwidget.h</header>
|
|
<container>1</container>
|
|
</customwidget>
|
|
</customwidgets>
|
|
<tabstops>
|
|
<tabstop>minRating</tabstop>
|
|
<tabstop>maxRating</tabstop>
|
|
<tabstop>minVisibility</tabstop>
|
|
<tabstop>maxVisibility</tabstop>
|
|
<tabstop>from</tabstop>
|
|
<tabstop>to</tabstop>
|
|
<tabstop>tags</tabstop>
|
|
<tabstop>people</tabstop>
|
|
<tabstop>location</tabstop>
|
|
<tabstop>equipment</tabstop>
|
|
<tabstop>invertFilter</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|