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

Qt4 - Simple Prefs: little adjustements.

parent 1759042f
...@@ -208,8 +208,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -208,8 +208,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC_NO_BOOL( "volume" , IntegerRangeSlider, NULL, CONFIG_GENERIC_NO_BOOL( "volume" , IntegerRangeSlider, NULL,
defaultVolume ); defaultVolume );
CONFIG_GENERIC( "audio-language" , StringList , NULL, CONFIG_GENERIC( "audio-language" , String , NULL,
preferredAudioLanguage ); //FIXME preferredAudioLanguage );
CONFIG_GENERIC( "spdif" , Bool , NULL, spdifBox ); CONFIG_GENERIC( "spdif" , Bool , NULL, spdifBox );
CONFIG_GENERIC( "force-dolby-surround" , IntegerList , NULL, CONFIG_GENERIC( "force-dolby-surround" , IntegerList , NULL,
...@@ -259,27 +259,24 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -259,27 +259,24 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui.skinsLabel->setFont( italicFont ); ui.skinsLabel->setFont( italicFont );
#if defined( WIN32 ) || defined (__APPLE__) #if defined( WIN32 ) || defined (__APPLE__)
CONFIG_GENERIC( "language", StringList, NULL, language );//FIXME CONFIG_GENERIC( "language", StringList, NULL, language );
#else #else
ui.language->hide(); ui.language->hide();
ui.languageLabel->hide(); ui.languageLabel->hide();
#endif #endif
/* interface */ /* interface */
/* p_config = config_FindConfig( VLC_OBJECT(p_intf), "intf" ); p_config = config_FindConfig( VLC_OBJECT(p_intf), "intf" );
if( p_config->value.psz && strcmp( p_config->value.psz, "qt4" )) if( p_config->value.psz && strcmp( p_config->value.psz, "qt4" ))
{ {
ui.qt4->setChecked( true ); ui.qt4->setChecked( true );
control = new StringConfigControl( VLC_OBJECT(p_intf),
p_config, NULL, ui.qt4 );
controls.append( control );
} }
if( p_config->value.psz && strcmp( p_config->value.psz, "skins2" )) if( p_config->value.psz && strcmp( p_config->value.psz, "skins2" ))
{ {
ui.skins->setChecked( true ); ui.skins->setChecked( true );
}*/ }
// CONFIG_GENERIC( "intf", Module, NULL, Interface );
//FIXME interface choice //FIXME interface choice
CONFIG_GENERIC( "qt-always-video", Bool, NULL, qtAlwaysVideo ); CONFIG_GENERIC( "qt-always-video", Bool, NULL, qtAlwaysVideo );
CONFIG_GENERIC_FILE( "skins2-last", File, NULL, fileSkin, CONFIG_GENERIC_FILE( "skins2-last", File, NULL, fileSkin,
skinBrowse ); skinBrowse );
...@@ -296,7 +293,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -296,7 +293,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "osd", Bool, NULL, OSDBox); CONFIG_GENERIC( "osd", Bool, NULL, OSDBox);
CONFIG_GENERIC( "subsdec-encoding", StringList, NULL, encoding ); CONFIG_GENERIC( "subsdec-encoding", StringList, NULL, encoding );
CONFIG_GENERIC( "sub-language", String, NULL, preferredLanguage );//FIXME CONFIG_GENERIC( "sub-language", String, NULL, preferredLanguage );
CONFIG_GENERIC_FILE( "freetype-font", File, NULL, font, CONFIG_GENERIC_FILE( "freetype-font", File, NULL, font,
fontBrowse ); fontBrowse );
CONFIG_GENERIC( "freetype-color", IntegerList, NULL, fontColor ); CONFIG_GENERIC( "freetype-color", IntegerList, NULL, fontColor );
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>418</width> <width>461</width>
<height>539</height> <height>554</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
...@@ -77,24 +77,6 @@ ...@@ -77,24 +77,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1" >
<widget class="QComboBox" name="preferredAudioLanguage" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>1</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize" >
<size>
<width>300</width>
<height>16777215</height>
</size>
</property>
</widget>
</item>
<item row="3" column="0" > <item row="3" column="0" >
<widget class="QLabel" name="label" > <widget class="QLabel" name="label" >
<property name="text" > <property name="text" >
...@@ -130,6 +112,9 @@ ...@@ -130,6 +112,9 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1" >
<widget class="QLineEdit" name="preferredAudioLanguage" />
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>427</width> <width>427</width>
<height>359</height> <height>365</height>
</rect> </rect>
</property> </property>
<property name="windowTitle" > <property name="windowTitle" >
...@@ -49,6 +49,14 @@ ...@@ -49,6 +49,14 @@
</item> </item>
<item> <item>
<widget class="QGroupBox" name="groupBox_2" > <widget class="QGroupBox" name="groupBox_2" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>5</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title" > <property name="title" >
<string>Subtitles languages</string> <string>Subtitles languages</string>
</property> </property>
...@@ -68,6 +76,14 @@ ...@@ -68,6 +76,14 @@
</item> </item>
<item row="1" column="1" > <item row="1" column="1" >
<widget class="QComboBox" name="encoding" > <widget class="QComboBox" name="encoding" >
<property name="sizePolicy" >
<sizepolicy>
<hsizetype>5</hsizetype>
<vsizetype>0</vsizetype>
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maxVisibleItems" > <property name="maxVisibleItems" >
<number>12</number> <number>12</number>
</property> </property>
......
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