Files
picard/ui/provider_options_caa.ui
Laurent Monin 30635246f6 Add support for 1200 px CAA thumbnail size
- size was stored as index in the combo box
- items were set in .ui, not dynamically built
- QtDesigner doesn't support setting user data to QComboBox items
- compatibility preserved using a trick: any value between 0 and 2 is old way, new way uses -1 and values >= 250
- safe default if value is outside range is read from config file
- fallback on smaller thumbnails if desired size isn't available
2018-02-09 11:00:40 +01:00

144 lines
3.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>CaaOptions</class>
<widget class="QWidget" name="CaaOptions">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>660</width>
<height>194</height>
</rect>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<layout class="QHBoxLayout" name="select_caa_types_group">
<item>
<widget class="QCheckBox" name="restrict_images_types">
<property name="text">
<string>Download only cover art images matching selected types</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="select_caa_types">
<property name="enabled">
<bool>false</bool>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>100</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Select types...</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Only use images of the following size:</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="cb_image_size">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="cb_save_single_front_image">
<property name="text">
<string>Save only one front image as separate file</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_approved_only">
<property name="text">
<string>Download only approved images</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_type_as_filename">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Use the first image type as the filename. This will not change the filename of front images.</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>
<tabstops>
<tabstop>restrict_images_types</tabstop>
<tabstop>select_caa_types</tabstop>
<tabstop>cb_image_size</tabstop>
<tabstop>cb_save_single_front_image</tabstop>
<tabstop>cb_approved_only</tabstop>
<tabstop>cb_type_as_filename</tabstop>
</tabstops>
<resources/>
<connections/>
</ui>