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

Qt4 - Simple Prefs. Small modifications on style.

parent 6bc91feb
...@@ -166,9 +166,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -166,9 +166,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
{ {
/* Video Panel Implementation */ /* Video Panel Implementation */
START_SPREFS_CAT( Video , "General video settings" ); START_SPREFS_CAT( Video , "General video settings" );
#ifndef WIN32
ui.directXBox->setVisible( false );
#endif
CONFIG_GENERIC( "video", Bool, NULL, enableVideo ); CONFIG_GENERIC( "video", Bool, NULL, enableVideo );
CONFIG_GENERIC( "fullscreen", Bool, NULL, fullscreen ); CONFIG_GENERIC( "fullscreen", Bool, NULL, fullscreen );
...@@ -182,6 +179,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -182,6 +179,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "directx-wallpaper" , Bool , NULL, wallpaperMode ); CONFIG_GENERIC( "directx-wallpaper" , Bool , NULL, wallpaperMode );
CONFIG_GENERIC( "directx-device", StringList, NULL, CONFIG_GENERIC( "directx-device", StringList, NULL,
dXdisplayDevice ); dXdisplayDevice );
#else
ui.directXBox->setVisible( false );
#endif #endif
CONFIG_GENERIC_FILE( "snapshot-path", Directory, NULL, CONFIG_GENERIC_FILE( "snapshot-path", Directory, NULL,
...@@ -261,17 +260,26 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -261,17 +260,26 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
#if defined( WIN32 ) || defined (__APPLE__) #if defined( WIN32 ) || defined (__APPLE__)
CONFIG_GENERIC( "language", StringList, NULL, language );//FIXME CONFIG_GENERIC( "language", StringList, NULL, language );//FIXME
#else
ui.language->hide();
ui.languageLabel->hide();
#endif #endif
#if !defined( WIN32 ) && !defined( HAVE_DBUS_3 )
ui.OneInterfaceBox->hide();
#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 );*/ {
/* CONFIG_GENERIC( "intf", Module, NULL, ??? ); */ //FIXME interface choice ui.skins->setChecked( true );
}*/
// CONFIG_GENERIC( "intf", Module, NULL, Interface );
//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 );
...@@ -279,6 +287,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -279,6 +287,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "one-instance", Bool, NULL, OneInterfaceMode ); CONFIG_GENERIC( "one-instance", Bool, NULL, OneInterfaceMode );
CONFIG_GENERIC( "playlist-enqueue", Bool, NULL, CONFIG_GENERIC( "playlist-enqueue", Bool, NULL,
EnqueueOneInterfaceMode ); EnqueueOneInterfaceMode );
#else
ui.OneInterfaceBox->hide();
#endif #endif
END_SPREFS_CAT; END_SPREFS_CAT;
......
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