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

Qt4: File / Disk / Network tabs for Open Dialog

* Some design
* Tab order
parent bf68c0fe
......@@ -35,7 +35,7 @@
<number>6</number>
</property>
<item row="1" column="0" >
<widget class="QLabel" name="label_6" >
<widget class="QLabel" name="advancedLabel" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -64,7 +64,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item row="0" column="2" >
<widget class="QSpinBox" name="spinBox" />
<widget class="QSpinBox" name="cacheSpinBox" />
</item>
<item row="0" column="4" >
<spacer>
......@@ -96,7 +96,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item row="0" column="0" >
<widget class="QLabel" name="label_7" >
<widget class="QLabel" name="cacheLabel" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -109,31 +109,18 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="0" column="3" >
<widget class="QLabel" name="label_8" >
<widget class="QLabel" name="label" >
<property name="text" >
<string>ms</string>
</property>
</widget>
</item>
<item row="1" column="2" colspan="3" >
<widget class="QLineEdit" name="lineEdit_4" />
<widget class="QLineEdit" name="advancedLineInput" />
</item>
</layout>
</widget>
<widget class="QPushButton" name="pushButton" >
<property name="geometry" >
<rect>
<x>400</x>
<y>540</y>
<width>101</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_2" >
<widget class="QPushButton" name="closeButton" >
<property name="geometry" >
<rect>
<x>520</x>
......@@ -146,7 +133,7 @@ p, li { white-space: pre-wrap; }
<string>Close</string>
</property>
</widget>
<widget class="QPushButton" name="pushButton_6" >
<widget class="QPushButton" name="advancedButton" >
<property name="geometry" >
<rect>
<x>510</x>
......@@ -159,7 +146,20 @@ p, li { white-space: pre-wrap; }
<string>More...</string>
</property>
</widget>
<widget class="QTabWidget" name="tabWidget" >
<widget class="QPushButton" name="cancelButton" >
<property name="geometry" >
<rect>
<x>400</x>
<y>540</y>
<width>101</width>
<height>29</height>
</rect>
</property>
<property name="text" >
<string>Cancel</string>
</property>
</widget>
<widget class="QTabWidget" name="Tab" >
<property name="geometry" >
<rect>
<x>10</x>
......@@ -169,118 +169,12 @@ p, li { white-space: pre-wrap; }
</rect>
</property>
<property name="currentIndex" >
<number>0</number>
<number>1</number>
</property>
<widget class="QWidget" name="tab" >
<widget class="QWidget" name="fileTab" >
<attribute name="title" >
<string>_("File")</string>
</attribute>
<widget class="QGroupBox" name="groupBox" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>581</width>
<height>81</height>
</rect>
</property>
<property name="title" >
<string>_("Media File")</string>
</property>
<widget class="QWidget" name="layoutWidget" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>561</width>
<height>51</height>
</rect>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-style:italic;">_("Open") :&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" >
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="fileInput" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable" >
<bool>true</bool>
</property>
<property name="maxVisibleItems" >
<number>7</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" >
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_3" >
<property name="text" >
<string>_("Browse")</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
<widget class="Line" name="line" >
<property name="geometry" >
<rect>
......@@ -294,7 +188,7 @@ p, li { white-space: pre-wrap; }
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QGroupBox" name="groupBox_2" >
<widget class="QGroupBox" name="subGroupBox" >
<property name="geometry" >
<rect>
<x>10</x>
......@@ -329,7 +223,7 @@ p, li { white-space: pre-wrap; }
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_2" >
<widget class="QLabel" name="subOpenLabel" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -355,7 +249,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QComboBox" name="lineEdit_2" >
<widget class="QComboBox" name="subInput" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
......@@ -386,7 +280,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_4" >
<widget class="QPushButton" name="subBrowseButton" >
<property name="text" >
<string>_("Browse")</string>
</property>
......@@ -420,7 +314,7 @@ p, li { white-space: pre-wrap; }
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_4" >
<widget class="QLabel" name="sizeSubLabel" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -443,7 +337,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBox" >
<widget class="QComboBox" name="sizeComboBox" >
<item>
<property name="text" >
<string>_("Very Small)</string>
......@@ -490,7 +384,7 @@ p, li { white-space: pre-wrap; }
<number>0</number>
</property>
<item>
<widget class="QLabel" name="label_5" >
<widget class="QLabel" name="alignSubLabel" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -498,7 +392,7 @@ p, li { white-space: pre-wrap; }
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-style:italic;">_("Alignment") :&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
</property>
<property name="buddy" >
<cstring>label_5</cstring>
<cstring>alignSubLabel</cstring>
</property>
</widget>
</item>
......@@ -516,7 +410,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBox_2" >
<widget class="QComboBox" name="alignSubComboBox" >
<item>
<property name="text" >
<string>_("Left")</string>
......@@ -536,7 +430,7 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<widget class="QToolButton" name="toolButton" >
<widget class="QToolButton" name="optionsSubButton" >
<property name="geometry" >
<rect>
<x>470</x>
......@@ -551,7 +445,36 @@ p, li { white-space: pre-wrap; }
</widget>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_3" >
<widget class="QPushButton" name="extraAudioButton" >
<property name="geometry" >
<rect>
<x>500</x>
<y>250</y>
<width>81</width>
<height>27</height>
</rect>
</property>
<property name="text" >
<string>Extra Audio</string>
</property>
</widget>
<widget class="Line" name="line" >
<property name="geometry" >
<rect>
<x>150</x>
<y>230</y>
<width>320</width>
<height>16</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QGroupBox" name="audioGroupBox" >
<property name="enabled" >
<bool>true</bool>
</property>
<property name="geometry" >
<rect>
<x>10</x>
......@@ -586,7 +509,7 @@ p, li { white-space: pre-wrap; }
<number>6</number>
</property>
<item>
<widget class="QLabel" name="label_3" >
<widget class="QLabel" name="audioOpenLabel" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -612,7 +535,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QComboBox" name="comboBox_3" >
<widget class="QComboBox" name="audioFileInput" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
......@@ -643,7 +566,7 @@ p, li { white-space: pre-wrap; }
</spacer>
</item>
<item>
<widget class="QPushButton" name="pushButton_5" >
<widget class="QPushButton" name="audioBrowsButton" >
<property name="text" >
<string>_("Browse")</string>
</property>
......@@ -652,38 +575,118 @@ p, li { white-space: pre-wrap; }
</layout>
</widget>
</widget>
<widget class="QPushButton" name="pushButton_7" >
<property name="geometry" >
<rect>
<x>500</x>
<y>250</y>
<width>81</width>
<height>27</height>
</rect>
</property>
<property name="text" >
<string>Extra Audio</string>
</property>
</widget>
<widget class="Line" name="line_2" >
<widget class="QGroupBox" name="fileGroupBox" >
<property name="geometry" >
<rect>
<x>150</x>
<y>230</y>
<width>320</width>
<height>16</height>
<x>10</x>
<y>10</y>
<width>581</width>
<height>81</height>
</rect>
</property>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
<property name="title" >
<string>_("Media File")</string>
</property>
<widget class="QWidget" name="layoutWidget" >
<property name="geometry" >
<rect>
<x>10</x>
<y>20</y>
<width>561</width>
<height>51</height>
</rect>
</property>
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item>
<widget class="QLabel" name="fileOpenLabel" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>1</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;">
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-style:italic;">_("Open") :&lt;/span>&lt;/p>&lt;/body>&lt;/html></string>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" >
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QComboBox" name="fileInput" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>7</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="editable" >
<bool>true</bool>
</property>
<property name="maxVisibleItems" >
<number>7</number>
</property>
</widget>
</item>
<item>
<spacer>
<property name="orientation" >
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" >
<size>
<width>15</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="fileBrowseButton" >
<property name="text" >
<string>_("Browse")</string>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
</widget>
<widget class="QWidget" name="tab_Disk" >
<widget class="QWidget" name="tabDisk" >
<attribute name="title" >
<string>_("Disk")</string>
</attribute>
<widget class="QGroupBox" name="groupBox_4" >
<widget class="QGroupBox" name="diskTypeGroupBox" >
<property name="geometry" >
<rect>
<x>10</x>
......@@ -712,7 +715,7 @@ p, li { white-space: pre-wrap; }
<number>6</number>
</property>
<item row="1" column="1" >
<widget class="QCheckBox" name="checkBox" >
<widget class="QCheckBox" name="menuDVDButton" >
<property name="text" >
<string>Menus</string>
</property>
......@@ -727,18 +730,18 @@ p, li { white-space: pre-wrap; }
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType" >
<enum>QSizePolicy::Fixed</enum>
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" >
<size>
<width>15</width>
<height>20</height>
<width>8</width>
<height>10</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="0" colspan="2" >
<widget class="QRadioButton" name="radioButton" >
<widget class="QRadioButton" name="dvdRadioButton" >
<property name="text" >
<string>DVD</string>
</property>
......@@ -748,14 +751,14 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="2" column="0" colspan="2" >
<widget class="QRadioButton" name="radioButton_2" >
<widget class="QRadioButton" name="vcdRadioButton" >
<property name="text" >
<string>SVCD/VCD</string>
</property>
</widget>
</item>
<item row="3" column="0" colspan="2" >
<widget class="QRadioButton" name="radioButton_3" >
<widget class="QRadioButton" name="audioCDRAdioButton" >
<property name="text" >
<string>Audio CD</string>
</property>
......@@ -764,7 +767,7 @@ p, li { white-space: pre-wrap; }
</layout>
</widget>
</widget>
<widget class="QGroupBox" name="groupBox_5" >
<widget class="QGroupBox" name="diskOptionGroupBox" >
<property name="geometry" >
<rect>
<x>180</x>
......@@ -793,28 +796,28 @@ p, li { white-space: pre-wrap; }
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QLabel" name="label_9" >
<widget class="QLabel" name="pathDiskLabel" >
<property name="text" >
<string>_("Peripheric Path") :</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QComboBox" name="comboBox_4" >
<widget class="QComboBox" name="diskBrowseLine" >
<property name="editable" >
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="2" >
<widget class="QPushButton" name="pushButton_8" >
<widget class="QPushButton" name="browseDiskButton" >
<property name="text" >
<string>_("Browse")</string>
</property>
</widget>
</item>
<item row="5" column="0" >
<widget class="QLabel" name="label_13" >
<widget class="QLabel" name="diskOptionsLabel4" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -824,7 +827,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="label_11" >
<widget class="QLabel" name="diskOptionsLabel2" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -834,7 +837,7 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="4" column="0" >
<widget class="QLabel" name="label_12" >
<widget class="QLabel" name="diskOptionsLabel3" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -844,19 +847,19 @@ p, li { white-space: pre-wrap; }
</widget>
</item>
<item row="4" column="1" >
<widget class="QSpinBox" name="spinBox_5" />
<widget class="QSpinBox" name="diskOptionBox3" />
</item>
<item row="5" column="1" >
<widget class="QSpinBox" name="spinBox_3" />
<widget class="QSpinBox" name="diskOptionBox4" />
</item>
<item row="3" column="1" >
<widget class="QSpinBox" name="spinBox_4" />
<widget class="QSpinBox" name="diskOptionBox2" />
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="spinBox_2" />
<widget class="QSpinBox" name="diskOptionBox1" />
</item>
<item row="2" column="0" >
<widget class="QLabel" name="label_10" >
<widget class="QLabel" name="diskOptionsLabel1" >
<property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css">
p, li { white-space: pre-wrap; }
......@@ -882,25 +885,314 @@ p, li { white-space: pre-wrap; }
</widget>
</widget>
</widget>
<widget class="QWidget" name="tab" >
<attribute name="title" >
<string>_("Network")</string>
</attribute>
<widget class="QWidget" name="gridLayout_2" >
<property name="geometry" >
<rect>
<x>10</x>
<y>10</y>
<width>572</width>
<height>328</height>
</rect>
</property>
<layout class="QGridLayout" >
<property name="margin" >
<number>0</number>
</property>
<property name="spacing" >
<number>6</number>
</property>
<item row="0" column="0" >
<widget class="QRadioButton" name="radioButton" >
<property name="text" >
<string>UDP/RTP</string>
</property>
</widget>
</item>