X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fgui%2Fmacosx%2Fmacosx.m;h=ebb5c3aaa4125c346e8fccb4d3426b2898e29323;hb=HEAD;hp=619ee5dc62f7f1dc7feb22f6480fcb5d268acbc3;hpb=13ae40b0efc4f1b1ce205d9a057537047fcab3f4;p=vlc diff --git a/modules/gui/macosx/macosx.m b/modules/gui/macosx/macosx.m index 619ee5dc62..ebb5c3aaa4 100644 --- a/modules/gui/macosx/macosx.m +++ b/modules/gui/macosx/macosx.m @@ -1,7 +1,7 @@ /***************************************************************************** * macosx.m: Mac OS X module for vlc ***************************************************************************** - * Copyright (C) 2001-2006 the VideoLAN team + * Copyright (C) 2001-2009 the VideoLAN team * $Id$ * * Authors: Colin Delacroix @@ -9,6 +9,7 @@ * Florian G. Pflug * Jon Lech Johansen * + * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or @@ -34,7 +35,7 @@ # include "config.h" #endif -#include +#include #include /***************************************************************************** @@ -43,11 +44,10 @@ int OpenIntf ( vlc_object_t * ); void CloseIntf ( vlc_object_t * ); -int OpenVideoQT ( vlc_object_t * ); -void CloseVideoQT ( vlc_object_t * ); - +#if 0 int OpenVideoGL ( vlc_object_t * ); void CloseVideoGL ( vlc_object_t * ); +#endif /***************************************************************************** * Module descriptor @@ -90,43 +90,57 @@ void CloseVideoGL ( vlc_object_t * ); #define EQ_KEEP_LONGTEXT N_("By default, VLC keeps the last equalizer settings before " \ "termination. This feature can be disabled here.") -vlc_module_begin(); - set_description( N_("Mac OS X interface") ); - set_capability( "interface", 200 ); - set_callbacks( OpenIntf, CloseIntf ); - set_category( CAT_INTERFACE ); - set_subcategory( SUBCAT_INTERFACE_MAIN ); - add_bool( "macosx-autoplay", 1, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT, - false ); - add_bool( "macosx-recentitems", 1, NULL, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT, - false ); - add_bool( "macosx-eq-keep", 1, NULL, EQ_KEEP_TEXT, EQ_KEEP_LONGTEXT, - false ); - add_bool( "macosx-fspanel", 1, NULL, FSPANEL_TEXT, FSPANEL_LONGTEXT, - false ); - - add_submodule(); - set_description( N_("Quartz video") ); - set_capability( "video output", 100 ); - set_category( CAT_VIDEO); - set_subcategory( SUBCAT_VIDEO_VOUT ); - set_callbacks( OpenVideoQT, CloseVideoQT ); +#define USE_APPLE_REMOTE_TEXT N_("Control playback with the Apple Remote") +#define USE_APPLE_REMOTE_LONGTEXT N_("By default, VLC can be remotely controlled with the Apple Remote.") + +#define USE_MEDIAKEYS_TEXT N_("Control playback with media keys") +#define USE_MEDIAKEYS_LONGTEXT N_("By default, VLC can be controlled using the media keys on modern Apple " \ + "keyboards.") + +#define USE_MEDIAKEYS_BACKGROUND_TEXT N_("Use media key control when VLC is in background") +#define USE_MEDIAKEYS_BACKGROUND_LONGTEXT N_("By default, VLC will accept media key events also when being " \ + "in background.") + +vlc_module_begin () + set_description( N_("Mac OS X interface") ) + set_capability( "interface", 200 ) + set_callbacks( OpenIntf, CloseIntf ) + set_category( CAT_INTERFACE ) + set_subcategory( SUBCAT_INTERFACE_MAIN ) + cannot_unload_broken_library( ) + add_bool( "macosx-autoplay", true, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT, + false ) + add_bool( "macosx-recentitems", true, NULL, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT, + false ) + add_bool( "macosx-eq-keep", true, NULL, EQ_KEEP_TEXT, EQ_KEEP_LONGTEXT, + false ) + add_bool( "macosx-fspanel", true, NULL, FSPANEL_TEXT, FSPANEL_LONGTEXT, + false ) + add_bool( "macosx-appleremote", true, NULL, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT, + false ) + add_bool( "macosx-mediakeys", true, NULL, USE_MEDIAKEYS_TEXT, USE_MEDIAKEYS_LONGTEXT, + false ) + add_bool( "macosx-mediakeys-background", true, NULL, USE_MEDIAKEYS_BACKGROUND_TEXT, USE_MEDIAKEYS_BACKGROUND_LONGTEXT, + false ) + +#if 0 + add_submodule () + set_description( "Mac OS X OpenGL" ) + set_capability( "opengl provider", 100 ) + set_category( CAT_VIDEO) + set_subcategory( SUBCAT_VIDEO_VOUT ) + set_callbacks( OpenVideoGL, CloseVideoGL ) add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_LONGTEXT, - false ); - add_bool( "macosx-stretch", 0, NULL, STRETCH_TEXT, STRETCH_LONGTEXT, - false ); + false ) + add_bool( "macosx-stretch", false, NULL, STRETCH_TEXT, STRETCH_LONGTEXT, + false ) add_float_with_range( "macosx-opaqueness", 1, 0, 1, NULL, OPAQUENESS_TEXT, OPAQUENESS_LONGTEXT, true ); - add_bool( "macosx-black", 1, NULL, BLACK_TEXT, BLACK_LONGTEXT, - false ); - add_bool( "macosx-background", 0, NULL, BACKGROUND_TEXT, BACKGROUND_LONGTEXT, - false ); - add_submodule(); - set_description( "Mac OS X OpenGL" ); - set_capability( "opengl provider", 100 ); - set_category( CAT_VIDEO); - set_subcategory( SUBCAT_VIDEO_VOUT ); - set_callbacks( OpenVideoGL, CloseVideoGL ); -vlc_module_end(); + add_bool( "macosx-black", true, NULL, BLACK_TEXT, BLACK_LONGTEXT, + false ) + add_bool( "macosx-background", false, NULL, BACKGROUND_TEXT, BACKGROUND_LONGTEXT, + false ) +#endif +vlc_module_end ()