]> git.sesse.net Git - vlc/blob - modules/gui/macosx/macosx.m
update module LIST file.
[vlc] / modules / gui / macosx / macosx.m
1 /*****************************************************************************
2  * macosx.m: Mac OS X module for vlc
3  *****************************************************************************
4  * Copyright (C) 2001-2006 the VideoLAN team
5  * $Id$
6  *
7  * Authors: Colin Delacroix <colin@zoy.org>
8  *          Eugenio Jarosiewicz <ej0@cise.ufl.edu>
9  *          Florian G. Pflug <fgp@phlo.org>
10  *          Jon Lech Johansen <jon-vl@nanocrew.net>
11  *
12  * This program is free software; you can redistribute it and/or modify
13  * it under the terms of the GNU General Public License as published by
14  * the Free Software Foundation; either version 2 of the License, or
15  * (at your option) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20  * GNU General Public License for more details.
21  *
22  * You should have received a copy of the GNU General Public License
23  * along with this program; if not, write to the Free Software
24  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25  *****************************************************************************/
26
27 /*****************************************************************************
28  * Preamble
29  *****************************************************************************/
30 #include <stdlib.h>                                      /* malloc(), free() */
31 #include <string.h>
32
33 #ifdef HAVE_CONFIG_H
34 # include "config.h"
35 #endif
36
37 #include <vlc/vlc.h>
38
39 /*****************************************************************************
40  * External prototypes
41  *****************************************************************************/
42 int  E_(OpenIntf)     ( vlc_object_t * );
43 void E_(CloseIntf)    ( vlc_object_t * );
44
45 int  E_(OpenVideoQT)  ( vlc_object_t * );
46 void E_(CloseVideoQT) ( vlc_object_t * );
47
48 int  E_(OpenVideoGL)  ( vlc_object_t * );
49 void E_(CloseVideoGL) ( vlc_object_t * );
50
51 /*****************************************************************************
52  * Module descriptor
53  *****************************************************************************/
54 #define VDEV_TEXT N_("Video device")
55 #define VDEV_LONGTEXT N_("Number of the screen to use by default to display " \
56                          "videos in 'fullscreen'. The screen number correspondance can be found in "\
57                          "the video device selection menu.")
58
59 #define OPAQUENESS_TEXT N_("Opaqueness")
60 #define OPAQUENESS_LONGTEXT N_( "Set the transparency of the video output. 1 is non-transparent (default) " \
61                                 "0 is fully transparent.")
62
63 #define STRETCH_TEXT N_("Stretch video to fill window")
64 #define STRETCH_LONGTEXT N_("Stretch the video to fill the entire window when "\
65                             "resizing the video instead of keeping the aspect ratio and "\
66                             "displaying black borders.")
67
68 #define BLACK_TEXT N_("Black screens in fullscreen")
69 #define BLACK_LONGTEXT N_("In fullscreen mode, keep screen where there is no " \
70                           "video displayed black" )
71
72 #define BACKGROUND_TEXT N_("Use as Desktop Background")
73 #define BACKGROUND_LONGTEXT N_("Use the video as the Desktop Background " \
74                                "Desktop icons cannot be interacted with in this mode." )
75
76 #define FSPANEL_TEXT N_("Show Fullscreen controller")
77 #define FSPANEL_LONGTEXT N_("Shows a lucent controller when moving the mouse " \
78                             "in fullscreen mode.")
79
80 #define AUTOPLAY_OSX_TEST N_("Auto-playback of new items")
81 #define AUTOPLAY_OSX_LONGTEXT N_("Start playback of new items immediately " \
82                                  "once they were added." )
83
84 #define RECENT_ITEMS_TEXT N_("Keep Recent Items")
85 #define RECENT_ITEMS_LONGTEXT N_("By default, VLC keeps a list of the last 10 items. " \
86                                  "This feature can be disabled here.")
87
88 #define EQ_KEEP_TEXT N_("Keep current Equalizer settings")
89 #define EQ_KEEP_LONGTEXT N_("By default, VLC keeps the last equalizer settings before " \
90                             "termination. This feature can be disabled here.")
91
92 vlc_module_begin();
93     set_description( _("Mac OS X interface") );
94     set_capability( "interface", 200 );
95     set_callbacks( E_(OpenIntf), E_(CloseIntf) );
96     set_category( CAT_INTERFACE );
97     set_subcategory( SUBCAT_INTERFACE_MAIN );
98     add_bool( "macosx-autoplay", 1, NULL, AUTOPLAY_OSX_TEST, AUTOPLAY_OSX_LONGTEXT,
99               VLC_FALSE );
100     add_bool( "macosx-recentitems", 1, NULL, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT,
101               VLC_FALSE );
102     add_bool( "macosx-eq-keep", 1, NULL, EQ_KEEP_TEXT, EQ_KEEP_LONGTEXT,
103               VLC_FALSE );
104     add_bool( "macosx-fspanel", 1, NULL, FSPANEL_TEXT, FSPANEL_LONGTEXT,
105               VLC_FALSE );
106
107     add_submodule();
108         set_description( _("Quartz video") );
109         set_capability( "video output", 100 );
110         set_category( CAT_VIDEO);
111         set_subcategory( SUBCAT_VIDEO_VOUT );
112         set_callbacks( E_(OpenVideoQT), E_(CloseVideoQT) );
113
114         add_integer( "macosx-vdev", 0, NULL, VDEV_TEXT, VDEV_LONGTEXT,
115                      VLC_FALSE );
116         add_bool( "macosx-stretch", 0, NULL, STRETCH_TEXT, STRETCH_LONGTEXT,
117                   VLC_FALSE );
118         add_float_with_range( "macosx-opaqueness", 1, 0, 1, NULL,
119                               OPAQUENESS_TEXT, OPAQUENESS_LONGTEXT, VLC_TRUE );
120         add_bool( "macosx-black", 1, NULL, BLACK_TEXT, BLACK_LONGTEXT,
121                   VLC_FALSE );
122         add_bool( "macosx-background", 0, NULL, BACKGROUND_TEXT, BACKGROUND_LONGTEXT,
123                   VLC_FALSE );
124     add_submodule();
125         set_description( "Mac OS X OpenGL" );
126         set_capability( "opengl provider", 100 );
127         set_category( CAT_VIDEO);
128         set_subcategory( SUBCAT_VIDEO_VOUT );
129         set_callbacks( E_(OpenVideoGL), E_(CloseVideoGL) );
130 vlc_module_end();
131