Commit 4e0d9312 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Open Dialog. Implement start-time in advanced options. Cosmetic...

Qt4 - Open Dialog. Implement start-time in advanced options. Cosmetic (enabling suffixes INSIDE spinBoxes) changes.

parent ef6c490a
......@@ -109,6 +109,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
CONNECT( ui.slaveText, textChanged(QString), this, updateMRL());
CONNECT( ui.cacheSpinBox, valueChanged(int), this, updateMRL());
CONNECT( ui.startTimeSpinBox, valueChanged(int), this, updateMRL());
/* Buttons action */
BUTTONACT( playButton, play());
......@@ -271,6 +272,10 @@ void OpenDialog::updateMRL() {
mrl += QString(" :%1=%2").arg(storedMethod).
arg(ui.cacheSpinBox->value());
}
if( ui.startTimeSpinBox->value()) {
mrl += " :start-time=" + QString("%1").
arg(ui.startTimeSpinBox->value());
}
ui.advancedLineInput->setText(mrl);
}
......
......@@ -10,7 +10,7 @@
<x>0</x>
<y>0</y>
<width>440</width>
<height>231</height>
<height>286</height>
</rect>
</property>
<property name="windowTitle" >
......@@ -50,113 +50,134 @@
<property name="frameShape" >
<enum>QFrame::StyledPanel</enum>
</property>
<layout class="QHBoxLayout" >
<layout class="QGridLayout" >
<property name="margin" >
<number>9</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
<item row="0" column="4" >
<widget class="QLabel" name="label_3" >
<property name="text" >
<string>Start Time</string>
</property>
<property name="spacing" >
<number>6</number>
</widget>
</item>
<item row="0" column="5" colspan="2" >
<widget class="QSpinBox" name="startTimeSpinBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="alignment" >
<set>Qt::AlignRight</set>
</property>
<property name="suffix" >
<string> s</string>
</property>
<property name="maximum" >
<number>999999</number>
</property>
</widget>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="cacheLabel" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Caching</string>
</property>
</widget>
</item>
<item row="5" column="1" colspan="7" >
<widget class="QLineEdit" name="advancedLineInput" />
</item>
<item row="2" column="0" colspan="8" >
<widget class="QCheckBox" name="slaveCheckbox" >
<property name="text" >
<string>Play another media synchronously (extra audio file, ...)</string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="5" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="advancedLabel" >
<property name="text" >
<string>Customize</string>
</property>
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_2" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Extra media</string>
</property>
</widget>
</item>
<item row="3" column="1" colspan="5" >
<widget class="QLineEdit" name="slaveText" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="6" colspan="2" >
<widget class="QToolButton" name="slaveBrowseButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Browse...</string>
</property>
</widget>
</item>
<item row="1" column="1" colspan="5" >
<widget class="Line" name="line_2" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="cacheSpinBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="alignment" >
<set>Qt::AlignRight</set>
</property>
<property name="suffix" >
<string> ms</string>
</property>
<property name="maximum" >
<number>999999</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="cacheLabel" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>Caching</string>
</property>
</widget>
</item>
<item row="4" column="1" colspan="3" >
<widget class="QLineEdit" name="advancedLineInput" />
</item>
<item row="4" column="0" >
<widget class="QLabel" name="advancedLabel" >
<property name="text" >
<string>Customize</string>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>ms</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="4" >
<widget class="QCheckBox" name="slaveCheckbox" >
<property name="text" >
<string>Play another media synchronously (extra audio file, ...)</string>
</property>
</widget>
</item>
<item row="2" column="3" >
<widget class="QToolButton" name="slaveBrowseButton" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Browse...</string>
</property>
</widget>
</item>
<item row="2" column="1" colspan="2" >
<widget class="QLineEdit" name="slaveText" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_2" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>Extra media</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QSpinBox" name="cacheSpinBox" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>0</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="alignment" >
<set>Qt::AlignRight</set>
</property>
<property name="maximum" >
<number>999999</number>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2" >
<widget class="Line" name="line" >
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment