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

Qt: open BRD

parent 4a806883
...@@ -436,6 +436,19 @@ void DiscOpenPanel::updateButtons() ...@@ -436,6 +436,19 @@ void DiscOpenPanel::updateButtons()
ui.diskOptionBox_2->show(); ui.diskOptionBox_2->show();
ui.dvdsimple->setEnabled( true ); ui.dvdsimple->setEnabled( true );
} }
if ( ui.bdRadioButton->isChecked() )
{
if( m_discType != BRD )
{
setDrive( psz_dvddiscpath );
m_discType = BRD;
}
ui.titleLabel->setText( qtr("Title") );
ui.chapterLabel->hide();
ui.chapterSpin->hide();
ui.diskOptionBox_2->hide();
ui.dvdsimple->setEnabled( true );
}
else if ( ui.vcdRadioButton->isChecked() ) else if ( ui.vcdRadioButton->isChecked() )
{ {
if( m_discType != Vcd ) if( m_discType != Vcd )
...@@ -500,6 +513,8 @@ void DiscOpenPanel::updateMRL() ...@@ -500,6 +513,8 @@ void DiscOpenPanel::updateMRL()
mrl+= QString(":%1").arg( ui.chapterSpin->value() ); mrl+= QString(":%1").arg( ui.chapterSpin->value() );
} }
} }
} else if ( ui.bdRadioButton->isChecked() ) {
mrl = "bluray://" LOCALHOST + discPath;
/* VCD */ /* VCD */
} else if ( ui.vcdRadioButton->isChecked() ) { } else if ( ui.vcdRadioButton->isChecked() ) {
......
...@@ -166,7 +166,8 @@ class DiscOpenPanel: public OpenPanel ...@@ -166,7 +166,8 @@ class DiscOpenPanel: public OpenPanel
None, None,
Dvd, Dvd,
Vcd, Vcd,
Cdda Cdda,
BRD
}; };
public: public:
DiscOpenPanel( QWidget *, intf_thread_t * ); DiscOpenPanel( QWidget *, intf_thread_t * );
......
...@@ -33,19 +33,6 @@ ...@@ -33,19 +33,6 @@
<string>Disc Selection</string> <string>Disc Selection</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout"> <layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>16</width>
<height>25</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QRadioButton" name="dvdRadioButton"> <widget class="QRadioButton" name="dvdRadioButton">
<property name="layoutDirection"> <property name="layoutDirection">
...@@ -73,13 +60,20 @@ ...@@ -73,13 +60,20 @@
</spacer> </spacer>
</item> </item>
<item row="0" column="3"> <item row="0" column="3">
<widget class="QRadioButton" name="bdRadioButton">
<property name="text">
<string>BluRay</string>
</property>
</widget>
</item>
<item row="0" column="5">
<widget class="QRadioButton" name="audioCDRadioButton"> <widget class="QRadioButton" name="audioCDRadioButton">
<property name="text"> <property name="text">
<string>Audio CD</string> <string>Audio CD</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="4"> <item row="0" column="6">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
...@@ -92,14 +86,14 @@ ...@@ -92,14 +86,14 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="5"> <item row="0" column="7">
<widget class="QRadioButton" name="vcdRadioButton"> <widget class="QRadioButton" name="vcdRadioButton">
<property name="text"> <property name="text">
<string>SVCD/VCD</string> <string>SVCD/VCD</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="6"> <item row="0" column="8">
<spacer> <spacer>
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
...@@ -112,24 +106,24 @@ ...@@ -112,24 +106,24 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="1" column="1" colspan="3"> <item row="1" column="1" colspan="4">
<widget class="QCheckBox" name="dvdsimple"> <widget class="QCheckBox" name="dvdsimple">
<property name="toolTip"> <property name="toolTip">
<string>Disable DVD Menus (for compatibility)</string> <string>Disable Disc Menus</string>
</property> </property>
<property name="text"> <property name="text">
<string>No DVD menus</string> <string>No disc menus</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="2" colspan="5"> <item row="2" column="3" colspan="6">
<widget class="Line" name="line"> <widget class="Line" name="line">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="7"> <item row="3" column="0" colspan="9">
<layout class="QHBoxLayout" name="horizontalLayout_5"> <layout class="QHBoxLayout" name="horizontalLayout_5">
<item> <item>
<widget class="QLabel" name="deviceLabel"> <widget class="QLabel" name="deviceLabel">
...@@ -179,6 +173,19 @@ ...@@ -179,6 +173,19 @@
</item> </item>
</layout> </layout>
</item> </item>
<item row="0" column="4">
<spacer>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>16</width>
<height>25</height>
</size>
</property>
</spacer>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
......
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