mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Add negate buttons to the Tags, People, Location and Equipment filters. Currently, if nothing is entered the filter is ignored whether negate is on or off. One might think about filtering all dives without tags, etc. instead. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
362 lines
9.4 KiB
XML
362 lines
9.4 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>349</height>
|
|
</rect>
|
|
</property>
|
|
<property name="windowTitle">
|
|
<string>Form</string>
|
|
</property>
|
|
<layout class="QGridLayout" name="gridLayout">
|
|
<item row="0" column="0">
|
|
<widget class="QLabel" name="filterText">
|
|
<property name="text">
|
|
<string/>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="2" colspan="6">
|
|
<widget class="QLineEdit" name="tags"/>
|
|
</item>
|
|
<item row="1" column="2">
|
|
<widget class="QLabel" name="label_3">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="0">
|
|
<widget class="QLabel" name="label_8">
|
|
<property name="text">
|
|
<string>People</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="7">
|
|
<widget class="QLabel" name="label_13">
|
|
<property name="text">
|
|
<string>Max</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="8" column="0">
|
|
<widget class="QLabel" name="label_7">
|
|
<property name="text">
|
|
<string>Tags</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="6">
|
|
<widget class="QDoubleSpinBox" name="minWaterTemp"/>
|
|
</item>
|
|
<item row="2" column="7">
|
|
<widget class="QLabel" name="label_16">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="2">
|
|
<widget class="QLabel" name="label_12">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</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="4" column="2">
|
|
<widget class="QLabel" name="label_17">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="3" column="8">
|
|
<widget class="QDoubleSpinBox" name="maxWaterTemp"/>
|
|
</item>
|
|
<item row="2" column="0">
|
|
<widget class="QLabel" name="label_5">
|
|
<property name="text">
|
|
<string>Visibility</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="2">
|
|
<widget class="QLabel" name="label_14">
|
|
<property name="text">
|
|
<string>Min</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="7">
|
|
<widget class="QLabel" name="label_15">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="2" colspan="6">
|
|
<widget class="QLineEdit" name="location"/>
|
|
</item>
|
|
<item row="11" column="0">
|
|
<widget class="QLabel" name="labelEquipment">
|
|
<property name="text">
|
|
<string>Equipment</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="4" column="6">
|
|
<widget class="QDoubleSpinBox" name="minAirTemp"/>
|
|
</item>
|
|
<item row="4" column="8">
|
|
<widget class="QDoubleSpinBox" name="maxAirTemp"/>
|
|
</item>
|
|
<item row="11" column="2" colspan="6">
|
|
<widget class="QLineEdit" name="equipment"/>
|
|
</item>
|
|
<item row="3" column="0">
|
|
<widget class="QLabel" name="label_11">
|
|
<property name="text">
|
|
<string>Water Temp</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="2" colspan="6">
|
|
<widget class="QLineEdit" name="people"/>
|
|
</item>
|
|
<item row="4" column="7">
|
|
<widget class="QLabel" name="label_18">
|
|
<property name="text">
|
|
<string>Max</string>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="0">
|
|
<widget class="QLabel" name="label_9">
|
|
<property name="text">
|
|
<string>Location</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="2" column="8">
|
|
<widget class="StarWidget" name="maxVisibility" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="2" column="6">
|
|
<widget class="StarWidget" name="minVisibility" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="6">
|
|
<widget class="StarWidget" name="minRating" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="1" column="8">
|
|
<widget class="StarWidget" name="maxRating" native="true">
|
|
<property name="sizePolicy">
|
|
<sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
|
|
<horstretch>0</horstretch>
|
|
<verstretch>0</verstretch>
|
|
</sizepolicy>
|
|
</property>
|
|
<property name="focusPolicy">
|
|
<enum>Qt::TabFocus</enum>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="2">
|
|
<widget class="QCheckBox" name="logged">
|
|
<property name="text">
|
|
<string>Logged</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="7" column="6">
|
|
<widget class="QCheckBox" name="planned">
|
|
<property name="text">
|
|
<string>Planned</string>
|
|
</property>
|
|
<property name="checked">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="5" column="7">
|
|
<widget class="QTimeEdit" name="fromTime"/>
|
|
</item>
|
|
<item row="5" column="2" colspan="5">
|
|
<widget class="QDateTimeEdit" name="fromDate">
|
|
<property name="calendarPopup">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="2" colspan="5">
|
|
<widget class="QDateTimeEdit" name="toDate">
|
|
<property name="calendarPopup">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="6" column="7">
|
|
<widget class="QTimeEdit" name="toTime"/>
|
|
</item>
|
|
<item row="0" column="3">
|
|
<widget class="QToolButton" name="close">
|
|
<property name="toolTip">
|
|
<string>Close and reset filters</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:filter-close</normaloff>:filter-close</iconset>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="0" column="2">
|
|
<widget class="QToolButton" name="clear">
|
|
<property name="toolTip">
|
|
<string>Reset filters</string>
|
|
</property>
|
|
<property name="icon">
|
|
<iconset>
|
|
<normaloff>:edit-clear-icon</normaloff>:edit-clear-icon</iconset>
|
|
</property>
|
|
<property name="autoRaise">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="8" column="8">
|
|
<widget class="QToolButton" name="tagsNegate">
|
|
<property name="text">
|
|
<string>¬</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="9" column="8">
|
|
<widget class="QToolButton" name="peopleNegate">
|
|
<property name="text">
|
|
<string>¬</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="10" column="8">
|
|
<widget class="QToolButton" name="locationNegate">
|
|
<property name="text">
|
|
<string>¬</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</item>
|
|
<item row="11" column="8">
|
|
<widget class="QToolButton" name="equipmentNegate">
|
|
<property name="text">
|
|
<string>¬</string>
|
|
</property>
|
|
<property name="checkable">
|
|
<bool>true</bool>
|
|
</property>
|
|
</widget>
|
|
</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>fromDate</tabstop>
|
|
<tabstop>fromTime</tabstop>
|
|
<tabstop>toDate</tabstop>
|
|
<tabstop>toTime</tabstop>
|
|
<tabstop>logged</tabstop>
|
|
<tabstop>planned</tabstop>
|
|
<tabstop>tags</tabstop>
|
|
<tabstop>people</tabstop>
|
|
<tabstop>location</tabstop>
|
|
<tabstop>equipment</tabstop>
|
|
</tabstops>
|
|
<resources/>
|
|
<connections/>
|
|
</ui>
|