Files
cantata/http/httpserversettings.ui
2013-03-16 07:34:50 +00:00

229 lines
6.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>HttpServerSettings</class>
<widget class="QWidget" name="HttpServerSettings">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>416</width>
<height>345</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="margin">
<number>0</number>
</property>
<item>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::ExpandingFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="BuddyLabel" name="label">
<property name="text">
<string>Enable HTTP server:</string>
</property>
<property name="buddy">
<cstring>enableHttp</cstring>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="OnOffButton" name="enableHttp">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="BuddyLabel" name="label_2">
<property name="text">
<string>Always use server:</string>
</property>
<property name="buddy">
<cstring>alwaysUseHttp</cstring>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="OnOffButton" name="alwaysUseHttp">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="BuddyLabel" name="label_5">
<property name="text">
<string>Address/interface:</string>
</property>
<property name="buddy">
<cstring>httpAddress</cstring>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="LineEdit" name="httpAddress"/>
</item>
<item row="3" column="0">
<widget class="BuddyLabel" name="label_3">
<property name="text">
<string>Port:</string>
</property>
<property name="buddy">
<cstring>httpPort</cstring>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="SpinBox" name="httpPort">
<property name="minimum">
<number>1023</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="label_3b">
<property name="text">
<string>Current URL:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="status">
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QLabel" name="label_4">
<property name="text">
<string>&lt;i&gt;&lt;b&gt;NOTE:&lt;/b&gt; MPD usually only plays songs that are stored within its folders. If you have connected via a local socket, then MPD can also play files located on your filesystem. If you are using a non local socket (e.g. you have entered a hostname or IP address in the 'Host' field of the 'Connection' settings page), then Cantata contains a minimal HTTP server that can be used to serve files to MPD. This, however, will only work whilst Cantata is running. If you enable 'Always use server', then Cantata will always pass server URLs to MPD for files, even when you have connected via a local socket.&lt;br/&gt;&lt;br/&gt;
&lt;b&gt;NOTE:&lt;/b&gt; 'Address/interface' may contain either the IP address, or interface (e.g. eth0), that you wish to listen for connections on. If you leave this blank, then Cantata will choose the IP address of the first active interface.&lt;br/&gt;&lt;br/&gt;&lt;b&gt;NOTE:&lt;/b&gt; Leave port set to 'Dynamic' to have Cantata choose a random port number.&lt;/i&gt;</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</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>13</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>OnOffButton</class>
<extends>QCheckBox</extends>
<header>onoffbutton.h</header>
</customwidget>
<customwidget>
<class>LineEdit</class>
<extends>QLineEdit</extends>
<header>lineedit.h</header>
</customwidget>
<customwidget>
<class>BuddyLabel</class>
<extends>QLabel</extends>
<header>buddylabel.h</header>
</customwidget>
<customwidget>
<class>SpinBox</class>
<extends>QSpinBox</extends>
<header>spinbox.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>enableHttp</tabstop>
<tabstop>alwaysUseHttp</tabstop>
<tabstop>httpAddress</tabstop>
<tabstop>httpPort</tabstop>
</tabstops>
<resources/>
<connections>
<connection>
<sender>enableHttp</sender>
<signal>toggled(bool)</signal>
<receiver>httpPort</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>146</x>
<y>8</y>
</hint>
<hint type="destinationlabel">
<x>189</x>
<y>112</y>
</hint>
</hints>
</connection>
<connection>
<sender>enableHttp</sender>
<signal>toggled(bool)</signal>
<receiver>alwaysUseHttp</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>146</x>
<y>20</y>
</hint>
<hint type="destinationlabel">
<x>128</x>
<y>44</y>
</hint>
</hints>
</connection>
<connection>
<sender>enableHttp</sender>
<signal>toggled(bool)</signal>
<receiver>httpAddress</receiver>
<slot>setEnabled(bool)</slot>
<hints>
<hint type="sourcelabel">
<x>141</x>
<y>15</y>
</hint>
<hint type="destinationlabel">
<x>240</x>
<y>74</y>
</hint>
</hints>
</connection>
</connections>
</ui>