Files
cantata/gui/playbacksettings.ui
Craig Drummond 599ea8e542 Add a checkbox controlling whether Cantata should apply its replaygain
setting each time it connects to MPD.

Issue #1531
2019-09-01 09:26:32 +01:00

286 lines
9.0 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>PlaybackSettings</class>
<widget class="QWidget" name="PlaybackSettings">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>1487</width>
<height>495</height>
</rect>
</property>
<layout class="QVBoxLayout" name="mainLayout">
<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>
<widget class="QGroupBox" name="stopPlaybackBox">
<property name="title">
<string>Playback</string>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="BuddyLabel" name="label_6b">
<property name="text">
<string>Fadeout on stop:</string>
</property>
<property name="buddy">
<cstring>stopFadeDuration</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="stopFadeDuration">
<property name="specialValueText">
<string>None</string>
</property>
<property name="suffix">
<string> ms</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<widget class="QCheckBox" name="stopOnExit">
<property name="text">
<string>Stop playback on exit</string>
</property>
</widget>
</item>
<item row="2" column="0" colspan="2">
<widget class="QCheckBox" name="inhibitSuspend">
<property name="text">
<string>Inhibit suspend whilst playing</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2">
<widget class="NoteLabel" name="noteLabel">
<property name="text">
<string>If you press and hold the stop button, then a menu will be shown allowing you to choose whether to stop playback now, or after the current track. (The stop button can be enabled in the Interface/Toolbar section)</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="outputBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Output</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="1">
<widget class="QLabel" name="messageLabel">
<property name="text">
<string>&lt;i&gt;Not Connected!&lt;br/&gt;The entries below cannot be modified, as Cantata is not connected to MPD.&lt;/i&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::NoTextInteraction</set>
</property>
</widget>
</item>
<item row="1" column="0" colspan="2">
<layout class="QFormLayout" name="formLayout_2a">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="BuddyLabel" name="crossfadingLabel">
<property name="text">
<string>Crossfade between tracks:</string>
</property>
<property name="buddy">
<cstring>crossfading</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QSpinBox" name="crossfading">
<property name="specialValueText">
<string>None</string>
</property>
<property name="suffix">
<string> s</string>
</property>
<property name="maximum">
<number>20</number>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="BuddyLabel" name="replayGainLabel">
<property name="text">
<string>Replay gain:</string>
</property>
<property name="buddy">
<cstring>replayGain</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<layout class="QHBoxLayout" name="replayGainayout">
<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>
<widget class="QComboBox" name="replayGain"/>
</item>
<item>
<spacer name="replayGainSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::MinimumExpanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="UrlLabel" name="aboutReplayGain" native="true">
<property name="text" stdset="0">
<string>About replay gain</string>
</property>
</widget>
</item>
</layout>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="applyReplayGain">
<property name="text">
<string>Apply setting on connect</string>
</property>
<property name="toolTip">
<string>&lt;p&gt;MPD resets (to the value in its config file) the replaygain mode setting each time it is restarted. Cantata can work-around this by setting MPD to use the value defined here each time Cantata connects to MPD.&lt;/p&gt;</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="BuddyLabel" name="volumeStepLabel">
<property name="text">
<string>Volume step:</string>
</property>
<property name="buddy">
<cstring>volumeStep</cstring>
</property>
<property name="toolTip">
<string>&lt;p&gt;Amount to change volume by when using either the volume control keyboard shortcuts, or the mouse wheel over the toolbar volume control.&lt;/p&gt;</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="volumeStep">
<property name="suffix">
<string> %</string>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>20</number>
</property>
</widget>
</item>
<item row="4" column="0" colspan="2">
<widget class="QLabel" name="outputsViewLabel">
<property name="text">
<string>Use the checkboxes below to control the active outputs.</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="5" column="0" colspan="2">
<widget class="QListWidget" name="outputsView"/>
</item>
</layout>
</item>
<item row="0" column="0">
<widget class="BuddyLabel" name="messageIcon">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="expandingSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>BuddyLabel</class>
<extends>QLabel</extends>
<header>support/buddylabel.h</header>
</customwidget>
<customwidget>
<class>NoteLabel</class>
<extends>QLabel</extends>
<header>widgets/notelabel.h</header>
</customwidget>
<customwidget>
<class>UrlLabel</class>
<extends>QWidget</extends>
<header>support/urllabel.h</header>
</customwidget>
</customwidgets>
<resources/>
<connections/>
</ui>