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

Qt4 - #ifdef WIN32 consistancy if some insane people try Qt on Mac.

parent 3e75ca56
This diff is collapsed.
...@@ -236,7 +236,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -236,7 +236,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT( ui.outputModule, currentIndexChanged( int ), CONNECT( ui.outputModule, currentIndexChanged( int ),
this, updateAudioOptions( int ) ); this, updateAudioOptions( int ) );
#ifndef WIN32 #ifdef WIN32
CONFIG_GENERIC( "directx-audio-device", IntegerList,
ui.DirectXLabel, DirectXDevice );
#else
if( module_Exists( p_intf, "alsa" ) ) if( module_Exists( p_intf, "alsa" ) )
{ {
CONFIG_GENERIC( "alsadev" , StringList , ui.alsaLabel, CONFIG_GENERIC( "alsadev" , StringList , ui.alsaLabel,
...@@ -247,9 +250,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -247,9 +250,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC_FILE( "dspdev" , File , ui.OSSLabel, OSSDevice, CONFIG_GENERIC_FILE( "dspdev" , File , ui.OSSLabel, OSSDevice,
OSSBrowse ); OSSBrowse );
} }
#else
CONFIG_GENERIC( "directx-audio-device", IntegerList,
ui.DirectXLabel, DirectXDevice );
#endif #endif
// File exists everywhere // File exists everywhere
CONFIG_GENERIC_FILE( "audiofile-file" , File , ui.fileLabel, CONFIG_GENERIC_FILE( "audiofile-file" , File , ui.fileLabel,
...@@ -445,7 +445,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -445,7 +445,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "embeded-video", Bool, NULL, embedVideo ); CONFIG_GENERIC( "embeded-video", Bool, NULL, embedVideo );
CONFIG_GENERIC_FILE( "skins2-last", File, NULL, fileSkin, CONFIG_GENERIC_FILE( "skins2-last", File, NULL, fileSkin,
skinBrowse ); skinBrowse );
#if defined( WIN32 ) || defined( HAVE_DBUS_3 ) #if defined( WIN32 ) || defined( HAVE_DBUS_3 ) || defined(__APPLE__)
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 );
...@@ -499,11 +499,11 @@ void SPrefsPanel::updateAudioOptions( int number) ...@@ -499,11 +499,11 @@ void SPrefsPanel::updateAudioOptions( int number)
QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB]) QString value = qobject_cast<QComboBox *>(optionWidgets[audioOutCoB])
->itemData( number ).toString(); ->itemData( number ).toString();
#ifndef WIN32 #ifdef WIN32
optionWidgets[directxW]->setVisible( ( value == "directx" ) );
#else
optionWidgets[ossW]->setVisible( ( value == "oss" ) ); optionWidgets[ossW]->setVisible( ( value == "oss" ) );
optionWidgets[alsaW]->setVisible( ( value == "alsa" ) ); optionWidgets[alsaW]->setVisible( ( value == "alsa" ) );
#else
optionWidgets[directxW]->setVisible( ( value == "directx" ) );
#endif #endif
optionWidgets[fileW]->setVisible( ( value == "aout_file" ) ); optionWidgets[fileW]->setVisible( ( value == "aout_file" ) );
} }
......
...@@ -175,7 +175,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf ) ...@@ -175,7 +175,6 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
statusBar()->addPermanentWidget( pgBar, 0 ); statusBar()->addPermanentWidget( pgBar, 0 );
statusBar()->addPermanentWidget( timeLabel, 0 ); statusBar()->addPermanentWidget( timeLabel, 0 );
/* timeLabel behaviour: /* timeLabel behaviour:
- double clicking opens the goto time dialog - double clicking opens the goto time dialog
- right-clicking and clicking just toggle between remaining and - right-clicking and clicking just toggle between remaining and
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include <vector> #include <vector>
/* Folder vs. Directory */ /* Folder vs. Directory */
#ifdef WIN32 #if defined( WIN32 ) || defined(__APPLE__)
#define I_OPEN_FOLDER "Open &Folder..." #define I_OPEN_FOLDER "Open &Folder..."
#else #else
#define I_OPEN_FOLDER "Open D&irectory..." #define I_OPEN_FOLDER "Open D&irectory..."
......
...@@ -285,7 +285,7 @@ static void Init( intf_thread_t *p_intf ) ...@@ -285,7 +285,7 @@ static void Init( intf_thread_t *p_intf )
Q_INIT_RESOURCE( vlc ); Q_INIT_RESOURCE( vlc );
#ifndef WIN32 #if !defined(WIN32) && !defined(__APPLE__)
/* KLUDGE: /* KLUDGE:
* disables icon theme use because that makes Cleanlooks style bug * disables icon theme use because that makes Cleanlooks style bug
* because it asks gconf for some settings that timeout because of threads * because it asks gconf for some settings that timeout because of threads
......
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