[vlc-devel] [PATCH 15/18] Add UI for KAI
KO Myung-Hun
komh at chollian.net
Thu Oct 20 14:30:22 CEST 2011
---
modules/gui/qt4/components/simple_preferences.cpp | 7 +++++++
modules/gui/qt4/components/simple_preferences.hpp | 2 ++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index b79dcb5..e48c4e6 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -290,6 +290,11 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( DirectXControl );
CONFIG_GENERIC_NO_UI( "directx-audio-device-name", StringList,
DirectXLabel, DirectXDevice );
+#elif defined( __OS2__ )
+ audioControl( kai );
+ optionWidgets.append( kaiControl );
+ CONFIG_GENERIC_NO_UI( "kai-audio-device", StringList, kaiLabel,
+ kaiDevice );
#else
if( module_exists( "alsa" ) )
{
@@ -719,6 +724,8 @@ void SPrefsPanel::updateAudioOptions( int number)
->itemData( number ).toString();
#ifdef WIN32
optionWidgets[directxW]->setVisible( ( value == "aout_directx" ) );
+#elif defined( __OS2__ )
+ optionWidgets[kaiW]->setVisible( ( value == "kai" ) );
#else
/* optionWidgets[ossW] can be NULL */
if( optionWidgets[ossW] )
diff --git a/modules/gui/qt4/components/simple_preferences.hpp b/modules/gui/qt4/components/simple_preferences.hpp
index b680790..4f4e1b6 100644
--- a/modules/gui/qt4/components/simple_preferences.hpp
+++ b/modules/gui/qt4/components/simple_preferences.hpp
@@ -66,6 +66,8 @@ enum {
enum {
#ifdef WIN32
directxW,
+#elif defined( __OS2__)
+ kaiW,
#else
alsaW,
ossW,
--
1.7.3.2
More information about the vlc-devel
mailing list