Commit ab33b304 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: step one for Sout Dialog rework. Introduce a kind of progression and gives...

Qt: step one for Sout Dialog rework. Introduce a kind of progression and gives more space to MRL-customization.
parent bb196db7
......@@ -262,7 +262,7 @@ void SoutDialog::RTPtoggled( bool b_en )
void SoutDialog::ok()
{
mrl = ui.mrlEdit->text();
mrl = ui.mrlEdit->toPlainText();
accept();
}
......@@ -484,7 +484,7 @@ void SoutDialog::updateMRL()
if ( sout.b_sout_keep )
mrl.append( " :sout-keep" );
ui.mrlEdit->setText( mrl );
ui.mrlEdit->setPlainText( mrl );
free( sout.psz_file );free( sout.psz_http ); free( sout.psz_mms );
free( sout.psz_rtp ); free( sout.psz_udp ); free( sout.psz_mux );
free( sout.psz_name ); free( sout.psz_group );
......
<ui version="4.0" >
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<author>Jean-Baptiste Kempf</author>
<class>Sout</class>
<widget class="QWidget" name="Sout" >
<property name="geometry" >
<widget class="QWidget" name="Sout">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>643</width>
<height>651</height>
<width>711</width>
<height>470</height>
</rect>
</property>
<property name="windowTitle" >
<string>_("Stream Output")</string>
<property name="windowTitle">
<string>_(&quot;Stream Output&quot;)</string>
</property>
<layout class="QGridLayout" name="gridLayout" >
<item row="0" column="0" colspan="2" >
<widget class="QGroupBox" name="groupBox" >
<property name="title" >
<string>_("Outputs")</string>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QToolBox" name="toolBox">
<property name="currentIndex">
<number>2</number>
</property>
<layout class="QHBoxLayout" >
<item>
<layout class="QGridLayout" >
<item row="0" column="1" colspan="2" >
<widget class="QCheckBox" name="localOutput" >
<property name="text" >
<string>_("Play locally")</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2" >
<widget class="QCheckBox" name="fileOutput" >
<property name="contextMenuPolicy" >
<enum>Qt::NoContextMenu</enum>
</property>
<property name="text" >
<string>_("File")</string>
</property>
</widget>
</item>
<item row="1" column="3" >
<widget class="QLabel" name="fileLabel" >
<property name="text" >
<string>_("Filename")</string>
</property>
</widget>
</item>
<item row="1" column="4" >
<widget class="QLineEdit" name="fileEdit" />
</item>
<item row="1" column="5" >
<widget class="QPushButton" name="fileSelectButton" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>_("Browse...")</string>
</property>
</widget>
</item>
<item row="1" column="6" >
<widget class="QCheckBox" name="rawInput" >
<property name="text" >
<string>_("Dump raw input")</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2" >
<widget class="QCheckBox" name="HTTPOutput" >
<property name="text" >
<string>HTTP</string>
</property>
</widget>
</item>
<item row="2" column="3" >
<widget class="QLabel" name="HTTPLabel" >
<property name="text" >
<string>_("Address")</string>
</property>
</widget>
</item>
<item row="2" column="4" >
<widget class="QLineEdit" name="HTTPEdit" />
</item>
<item row="2" column="5" >
<widget class="QLabel" name="HTTPPortLabel" >
<property name="text" >
<string>_("Port:")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="2" column="6" >
<widget class="QSpinBox" name="HTTPPort" >
<property name="maximumSize" >
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum" >
<number>1</number>
</property>
<property name="maximum" >
<number>65535</number>
</property>
<property name="singleStep" >
<number>1</number>
</property>
<property name="value" >
<number>8080</number>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2" >
<widget class="QCheckBox" name="MMSHOutput" >
<property name="text" >
<string>MMSH</string>
</property>
</widget>
</item>
<item row="3" column="3" >
<widget class="QLabel" name="MMSHLabel" >
<property name="text" >
<string>_("Address")</string>
</property>
</widget>
</item>
<item row="3" column="4" >
<widget class="QLineEdit" name="MMSHEdit" />
</item>
<item row="3" column="5" >
<widget class="QLabel" name="MMSHPortLabel" >
<property name="text" >
<string>_("Port:")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="6" >
<widget class="QSpinBox" name="MMSHPort" >
<property name="maximumSize" >
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum" >
<number>1</number>
</property>
<property name="maximum" >
<number>65535</number>
</property>
<property name="value" >
<number>1234</number>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2" >
<widget class="QCheckBox" name="RTPOutput" >
<property name="text" >
<string>RTP</string>
</property>
</widget>
</item>
<item row="4" column="3" >
<widget class="QLabel" name="RTPLabel" >
<property name="text" >
<string>_("Address")</string>
</property>
</widget>
</item>
<item row="4" column="4" >
<widget class="QLineEdit" name="RTPEdit" />
</item>
<item row="4" column="5" >
<widget class="QLabel" name="RTPPortLabel" >
<property name="text" >
<string>_("Port:")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="6" >
<widget class="QSpinBox" name="RTPPort" >
<property name="maximumSize" >
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum" >
<number>1</number>
</property>
<property name="maximum" >
<number>65535</number>
</property>
<property name="value" >
<number>1234</number>
</property>
</widget>
</item>
<item row="5" column="3" >
<widget class="QLabel" name="UDPLabel" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="text" >
<string>_("Address")</string>
</property>
</widget>
</item>
<item row="5" column="4" >
<widget class="QLineEdit" name="UDPEdit" />
</item>
<item row="5" column="5" >
<widget class="QLabel" name="UDPPortLabel" >
<property name="text" >
<string>_("Port")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="5" column="6" >
<widget class="QSpinBox" name="UDPPort" >
<property name="maximumSize" >
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="accelerated" >
<bool>true</bool>
</property>
<property name="minimum" >
<number>1</number>
</property>
<property name="maximum" >
<number>65535</number>
</property>
<property name="value" >
<number>1234</number>
</property>
</widget>
</item>
<item row="6" column="5" >
<widget class="QLabel" name="RTPPortLabel2" >
<property name="text" >
<string>_("Video Port")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="6" column="6" >
<widget class="QSpinBox" name="RTPPort2" >
<property name="maximumSize" >
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="accelerated" >
<bool>true</bool>
</property>
<property name="maximum" >
<number>65355</number>
</property>
<property name="value" >
<number>1234</number>
</property>
</widget>
</item>
<item row="7" column="1" colspan="2" >
<widget class="QCheckBox" name="IcecastOutput" >
<property name="text" >
<string>IceCast</string>
</property>
</widget>
</item>
<item row="7" column="3" >
<widget class="QLabel" name="IcecastLabel" >
<property name="text" >
<string>_("Address")</string>
</property>
</widget>
</item>
<item row="7" column="4" >
<widget class="QLineEdit" name="IcecastEdit" />
</item>
<item row="7" column="5" >
<widget class="QLabel" name="IcecastPortLabel" >
<property name="text" >
<string>_("Port:")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="7" column="6" >
<widget class="QSpinBox" name="IcecastPort" >
<property name="maximumSize" >
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="maximum" >
<number>65535</number>
</property>
<property name="value" >
<number>1024</number>
</property>
</widget>
</item>
<item row="8" column="3" >
<widget class="QLabel" name="IcecastMountpointLabel" >
<property name="text" >
<string>_("Mount Point")</string>
</property>
</widget>
</item>
<item row="8" column="4" >
<widget class="QLineEdit" name="IcecastMountpointEdit" />
</item>
<item row="8" column="5" >
<widget class="QLabel" name="IcecastNameLabel" >
<property name="text" >
<string>_("Login:pass:")</string>
</property>
<property name="alignment" >
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="8" column="6" >
<widget class="QLineEdit" name="IcecastNamePassEdit" />
</item>
<item rowspan="2" row="5" column="2" >
<widget class="QLabel" name="UDPRTPLabel" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>100</width>
<height>16777215</height>
</size>
</property>
<property name="text" >
<string>_("Prefer UDP over RTP")</string>
</property>
<property name="textFormat" >
<enum>Qt::PlainText</enum>
</property>
<property name="alignment" >
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap" >
<bool>true</bool>
</property>
<property name="buddy" >
<cstring>UDPOutput</cstring>
</property>
</widget>
</item>
<item row="5" column="1" >
<widget class="QCheckBox" name="UDPOutput" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Fixed" hsizetype="Maximum" >
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="toolTip" >
<string>_("Using this option is not recommended in most of the cases.")</string>
</property>
<property name="text" >
<string/>
</property>
</widget>
</item>
</layout>
</item>
</layout>
<widget class="QWidget" name="page">
<attribute name="label">
<string>_(&quot;Source&quot;)</string>
</attribute>
</widget>
<widget class="QWidget" name="page_3">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>708</width>
<height>308</height>
</rect>
</property>
<attribute name="label">
<string notr="true">_(&quot;Destination&quot;)</string>
</attribute>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<layout class="QGridLayout" name="_3">
<item row="0" column="1" colspan="2">
<widget class="QCheckBox" name="localOutput">
<property name="text">
<string>_(&quot;Play locally&quot;)</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="2">
<widget class="QCheckBox" name="fileOutput">
<property name="contextMenuPolicy">
<enum>Qt::NoContextMenu</enum>
</property>
<property name="text">
<string>_(&quot;File&quot;)</string>
</property>
</widget>
</item>
<item row="1" column="3">
<widget class="QLabel" name="fileLabel">
<property name="text">
<string>_(&quot;Filename&quot;)</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QLineEdit" name="fileEdit"/>
</item>
<item row="1" column="5">
<widget class="QPushButton" name="fileSelectButton">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>_(&quot;Browse...&quot;)</string>
</property>
</widget>
</item>
<item row="1" column="6">
<widget class="QCheckBox" name="rawInput">
<property name="text">
<string>_(&quot;Dump raw input&quot;)</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2">
<widget class="QCheckBox" name="HTTPOutput">
<property name="text">
<string>HTTP</string>
</property>
</widget>
</item>
<item row="2" column="3">
<widget class="QLabel" name="HTTPLabel">
<property name="text">
<string>_(&quot;Address&quot;)</string>
</property>
</widget>
</item>
<item row="2" column="4">
<widget class="QLineEdit" name="HTTPEdit"/>
</item>
<item row="2" column="5">
<widget class="QLabel" name="HTTPPortLabel">
<property name="text">
<string>_(&quot;Port:&quot;)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="2" column="6">
<widget class="QSpinBox" name="HTTPPort">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="singleStep">
<number>1</number>
</property>
<property name="value">
<number>8080</number>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QCheckBox" name="MMSHOutput">
<property name="text">
<string>MMSH</string>
</property>
</widget>
</item>
<item row="3" column="3">
<widget class="QLabel" name="MMSHLabel">
<property name="text">
<string>_(&quot;Address&quot;)</string>
</property>
</widget>
</item>
<item row="3" column="4">
<widget class="QLineEdit" name="MMSHEdit"/>
</item>
<item row="3" column="5">
<widget class="QLabel" name="MMSHPortLabel">
<property name="text">
<string>_(&quot;Port:&quot;)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="3" column="6">
<widget class="QSpinBox" name="MMSHPort">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>1234</number>
</property>
</widget>
</item>
<item row="4" column="1" colspan="2">
<widget class="QCheckBox" name="RTPOutput">
<property name="text">
<string>RTP</string>
</property>
</widget>
</item>
<item row="4" column="3">
<widget class="QLabel" name="RTPLabel">
<property name="text">
<string>_(&quot;Address&quot;)</string>
</property>
</widget>
</item>
<item row="4" column="4">
<widget class="QLineEdit" name="RTPEdit"/>
</item>
<item row="4" column="5">
<widget class="QLabel" name="RTPPortLabel">
<property name="text">
<string>_(&quot;Port:&quot;)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="6">
<widget class="QSpinBox" name="RTPPort">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>1234</number>
</property>
</widget>
</item>
<item row="5" column="3">
<widget class="QLabel" name="UDPLabel">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>_(&quot;Address&quot;)</string>
</property>
</widget>
</item>
<item row="5" column="4">
<widget class="QLineEdit" name="UDPEdit"/>
</item>
<item row="5" column="5">
<widget class="QLabel" name="UDPPortLabel">
<property name="text">
<string>_(&quot;Port&quot;)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="5" column="6">
<widget class="QSpinBox" name="UDPPort">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="accelerated">
<bool>true</bool>
</property>
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>65535</number>
</property>
<property name="value">
<number>1234</number>
</property>
</widget>
</item>
<item row="6" column="5">
<widget class="QLabel" name="RTPPortLabel2">
<property name="text">
<string>_(&quot;Video Port&quot;)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="6" column="6">
<widget class="QSpinBox" name="RTPPort2">
<property name="maximumSize">
<size>
<width>90</width>
<height>16777215</height>
</size>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="accelerated">
<bool>true</bool>
</property>
<property name="maximum">
<number>65355</number>
</property>
<property name="value">
<number>1234</number>
</property>
</widget>
</item>
<item row="7" column="1" colspan="2">
<widget class="QCheckBox" name="IcecastOutput">
<property name="text">
<string>IceCast</string>
</property>
</widget>
</item>
<item row="7" column="3">
<widget class="QLabel" name="IcecastLabel">
<property name="text">
<string>_(&quot;Address&quot;)</string>
</property>