Main Page | Modules | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

vlc_config_cat.h

00001 /*****************************************************************************
00002  * vlc_help.h: Help strings
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id: vlc_help.h 9171 2004-11-06 11:15:50Z zorglub $
00006  *
00007  * Authors: Clément Stenac <[email protected]>
00008  *          Anil Daoud <[email protected]>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
00023  *****************************************************************************/
00024 
00025 #ifndef _VLC_HELP_H
00026 #define _VLC_HELP_H 1
00027 
00028 /*
00029  *  First, we need help strings for the General Settings and for the
00030  *  Plugins screen
00031  */
00032 #define MAIN_TITLE N_( "VLC preferences" )
00033 #define MAIN_HELP N_( \
00034     "Click on \"Advanced Options\" to see all options." )
00035 
00036 #define GENERAL_TITLE N_("General")
00037 
00038 /* Interface */
00039 #define INTF_TITLE N_("Interface")
00040 #define INTF_HELP  N_( "Settings for VLC interfaces" )
00041 
00042 #define INTF_GENERAL_HELP N_( "General interface setttings" )
00043 
00044 #define INTF_CONTROL_TITLE N_( "Control interfaces" )
00045 #define INTF_CONTROL_HELP N_( "Control interface settings" )
00046 
00047 #define INTF_HOTKEYS_TITLE N_( "Hotkeys settings" )
00048 #define INTF_HOTKEYS_HELP N_( "Hotkeys settings" )
00049 
00050 /* Audio */
00051 #define AUDIO_TITLE N_( "Audio" )
00052 #define AUDIO_HELP N_( "Audio settings" )
00053 
00054 #define AUDIO_GENERAL_TITLE N_( "General audio settings" )
00055 #define AUDIO_GENERAL_HELP N_("General audio settings")
00056 
00057 #define AFILTER_TITLE N_("Filters")
00058 #define AFILTER_HELP N_( \
00059     "Audio filters are used to postprocess the audio stream" )
00060 
00061 #define AVISUAL_TITLE N_("Visualizations")
00062 #define AVISUAL_HELP N_( \
00063     "Audio visualizations" )
00064 
00065 #define AOUT_TITLE N_( "Output modules" )
00066 #define AOUT_HELP N_("These are general settings for audio output modules.")
00067 
00068 #define AMISC_TITLE N_("Miscellaneous")
00069 #define AMISC_HELP N_( "Miscellaneous audio settings and modules" )
00070 
00071 /* Video */
00072 #define VIDEO_TITLE N_("Video")
00073 #define VIDEO_HELP N_("Video settings")
00074 
00075 #define VIDEO_GENERAL_TITLE N_( "General video settings")
00076 #define VIDEO_GENERAL_HELP N_( "General video settings" )
00077 
00078 #define _VOUT_TITLE N_("Output modules" )
00079 #define VOUT_HELP N_( \
00080     "Choose your preferred video output and configure it here." )
00081 
00082 #define VFILTER_TITLE N_("Filters" )
00083 #define VFILTER_HELP N_( \
00084     "Video filters are used to postprocess the video stream" )
00085 
00086 #define SUBPIC_TITLE N_( "Subtitles/OSD")
00087 #define SUBPIC_HELP N_( "Miscellaneous settings related to On Screen Display, subtitles and overlay subpictures")
00088 
00089 #define TEXT_TITLE N_("Text rendering")
00090 #define TEXT_HELP N_( \
00091     "Use the settings of the \"freetype\" module to choose the font you " \
00092     " want VLC to use for text rendering (to display subtitles for example).")
00093 
00094 /* Input */
00095 #define INPUT_TITLE N_( "Input / Codecs" )
00096 #define INPUT_HELP N_( "These are the settings for the input, demultiplexing and decoding parts of VLC. Encoder settings can also be found here" )
00097 
00098 #define ACCESS_TITLE N_( "Access modules" )
00099 #define ACCESS_HELP N_( \
00100     "Settings related to the various access methods used by VLC. " \
00101     "Common settings you may want to alter are HTTP proxy or " \
00102     "caching settings." )
00103 
00104 #define ACCESS_FILTER_TITLE N_( "Access filters" )
00105 #define ACCESS_FILTER_HELP N_( \
00106     "Access filters are special modules that allow advanced operations on " \
00107     "the input side of VLC. You should not touch anything here unless you " \
00108     "know what you are doing.\n" )
00109 
00110 #define DEMUX_TITLE N_("Demuxers")
00111 #define DEMUX_HELP N_( "Demuxers are used to separate audio and video streams" )
00112 
00113 #define VDEC_TITLE  N_( "Video codecs" )
00114 #define VDEC_HELP N_( "Settings for the video-only decoders and encoders" )
00115 
00116 #define ADEC_TITLE  N_( "Audio codecs" )
00117 #define ADEC_HELP N_( "Settings for the audio-only decoders and encoders" )
00118 
00119 #define SDEC_TITLE N_( "Other codecs")
00120 #define SDEC_HELP N_( "Settings for audio+video and miscellaneous decoders and encoders" )
00121 
00122 #define ADVANCED_TITLE N_("General")
00123 #define ADVANCED_HELP N_( "General input settings. Use with care." )
00124 
00125 /* Sout */
00126 #define SOUT_TITLE N_( "Stream output" )
00127 #define SOUT_HELP N_( \
00128       "Stream output is what allows VLC to act as a streaming server " \
00129       "or to save incoming streams.\n" \
00130       "Streams are first muxed and then sent through an \"access output\" "\
00131       "module that can either save the stream to a file, or stream " \
00132       "it (UDP, HTTP, RTP/RTSP).\n" \
00133       "Sout streams modules allow advanced stream processing (transcoding, "\
00134       "duplicating, ...")
00135 
00136 #define SOUT_GENERAL_HELP N_( "General stream output settings")
00137 
00138 #define SOUT_MUX_TITLE N_( "Muxers" )
00139 #define SOUT_MUX_HELP N_( "Muxers are the encapsulation formats that are used to " \
00140                           "put all the elementary streams (video, audio, ...) " \
00141                           "together. This setting allows you to always force a muxer. " \
00142                           "You should probably not do that.\n" \
00143                           "You can also set default parameters for each muxer." )
00144 #define SOUT_ACO_TITLE N_( "Access output" )
00145 #define SOUT_ACO_HELP N_( "Access output are the ways the muxed streams are sent. " \
00146                           "This setting allows you to always force an access output. " \
00147                           "You should probably not do that.\n" \
00148                           "You can also set default parameters for each access output.")
00149 
00150 #define SOUT_PACKET_TITLE N_( "Packetizers" )
00151 #define SOUT_PACKET_HELP N_( "Packetizers are used to \"preprocess\" the elementary "\
00152                               "streams before muxing. " \
00153                           "This setting allows you to always force a packetizer. " \
00154                           "You should probably not do that.\n" \
00155                           "You can also set default parameters for each packetizer." )
00156 
00157 #define SOUT_STREAM_TITLE N_("Sout stream")
00158 #define SOUT_STREAM_HELP N_( "Sout stream modules allow to build a sout " \
00159                 "processing chain. Please refer to the Streaming Howto for " \
00160                 "more information. You can configure default options for " \
00161                 "each sout stream module here.")
00162 
00163 #define SOUT_SAP_TITLE N_( "SAP" )
00164 #define SOUT_SAP_HELP N_( "SAP is a way to publically announce streams that are being"\
00165                           " sent using multicast UDP or RTP." )
00166 
00167 #define SOUT_VOD_TITLE N_( "VOD" )
00168 #define SOUT_VOD_HELP N_( "VLC's implementation of Video On Demand" )
00169 
00170 
00171 /* Playlist */
00172 #define PLAYLIST_TITLE N_( "Playlist" )
00173 #define PLAYLIST_HELP N_( "Settings related to playlist behaviour (playback mode, for example) and to modules that automatically add items to the playlist ('service discovery modules'")
00174 
00175 #define PGENERAL_HELP N_( "General playlist behaviour")
00176 #define SD_TITLE N_("Services discovery")
00177 #define SD_HELP N_("Services discovery modules are modules that automatically add items to playlist")
00178 
00179 /* Advanced */
00180 #define AADVANCED_TITLE N_( "Advanced" )
00181 #define AADVANCED_HELP N_( "Advanced settings. Use with care.")
00182 
00183 #define CPU_TITLE N_( "CPU features" )
00184 #define CPU_HELP N_( "From here you can choose to disable some CPU accelerations. You should probably not touch that." )
00185 
00186 #define MISC_TITLE N_( "Other" )
00187 #define MISC_HELP N_( "Other advanced settings")
00188 
00189 #define NETWORK_TITLE N_( "Network" )
00190 #define NETWORK_HELP N_( "These modules provide network functions to all " \
00191                 "other parts of VLC" )
00192 
00193 /* OLD */
00194 
00195 #define CHROMA_TITLE N_("Chroma modules settings")
00196 #define CHROMA_HELP N_("These settings affect chroma transformation modules.")
00197 
00198 #define PACKETIZER_TITLE  N_("Packetizer modules settings" )
00199 #define PACKETIZER_HELP N_(" ")
00200 
00201 #define ENCODER_TITLE N_("Encoders settings")
00202 #define ENCODER_HELP N_( \
00203     "These are general settings for video/audio/subtitles encoding modules.")
00204 
00205 
00206 
00207 #define DIALOGS_TITLE N_("Dialog providers settings")
00208 #define DIALOGS_HELP  N_( \
00209     "Dialog providers can be configured here.")
00210 
00211 #define SUBTITLE_DEMUX_TITLE N_("Subtitle demuxer settings")
00212 #define SUBTITLE_DEMUX_HELP N_( \
00213     "In this section you can force the behavior of the subtitle demuxer, " \
00214     "for example by setting the subtitles type or file name.")
00215 
00216 #define VIDEO_FILTER2_TITLE N_("Video filters settings")
00217 #define VIDEO_FILTER2_HELP N_(" ")
00218 
00219 /*
00220  *  A little help for modules with unknown capabilities
00221  */
00222 
00223 #define UNKNOWN_TITLE N_("No help available" )
00224 #define UNKNOWN_HELP N_("No help is available for these modules")
00225 
00226 /*****************************************************************************
00227  * GetCapabilityHelp: Display the help for one capability.
00228  *****************************************************************************/
00229 static inline char * GetCapabilityHelp( char *psz_capability, int i_type)
00230 {
00231 /*
00232     if( psz_capability == NULL) return " ";
00233 
00234     if( !strcasecmp(psz_capability,"access_demux") )
00235         return i_type == 1 ? ACCESS_TITLE : ACCESS_HELP;
00236     if( !strcasecmp(psz_capability,"access2") )
00237         return i_type == 1 ? ACCESS_TITLE : ACCESS_HELP;
00238     if( !strcasecmp(psz_capability,"audio filter") )
00239         return i_type == 1 ? AUDIO_FILTER_TITLE : AUDIO_FILTER_HELP;
00240     if( !strcasecmp(psz_capability,"audio filter2") )
00241         return i_type == 1 ? AUDIO_FILTER2_TITLE : AUDIO_FILTER2_HELP;
00242     if( !strcasecmp(psz_capability,"audio output") )
00243         return i_type == 1 ? AOUT_TITLE : AOUT_HELP;
00244     if( !strcasecmp(psz_capability,"chroma") )
00245         return i_type == 1 ? CHROMA_TITLE : CHROMA_HELP;
00246     if( !strcasecmp(psz_capability,"decoder") )
00247         return i_type == 1 ? DECODER_TITLE : DECODER_HELP;
00248     if( !strcasecmp(psz_capability,"packetizer") )
00249         return i_type == 1 ? PACKETIZER_TITLE : PACKETIZER_HELP;
00250     if( !strcasecmp(psz_capability,"encoder") )
00251         return i_type == 1 ? ENCODER_TITLE : ENCODER_HELP;
00252     if( !strcasecmp(psz_capability,"demux2") )
00253         return i_type == 1 ? DEMUX_TITLE : DEMUX_HELP;
00254     if( !strcasecmp(psz_capability,"interface") )
00255         return i_type == 1 ? INTERFACE_TITLE : INTERFACE_HELP;
00256     if( !strcasecmp(psz_capability,"dialogs provider") )
00257         return i_type == 1 ? DIALOGS_TITLE : DIALOGS_HELP;
00258     if( !strcasecmp(psz_capability,"network") )
00259         return i_type == 1 ? NETWORK_TITLE : NETWORK_HELP;
00260     if( !strcasecmp(psz_capability,"sout access") )
00261         return i_type == 1 ? SOUT_ACCESS_TITLE : SOUT_ACCESS_HELP;
00262     if( !strcasecmp(psz_capability,"sout mux") )
00263         return i_type == 1 ? SOUT_MUX_TITLE : SOUT_MUX_HELP;
00264     if( !strcasecmp(psz_capability,"sout stream") )
00265         return i_type == 1 ? SOUT_STREAM_TITLE : SOUT_STREAM_HELP;
00266     if( !strcasecmp(psz_capability,"subtitle demux") )
00267         return i_type == 1 ? SUBTITLE_DEMUX_TITLE : SUBTITLE_DEMUX_HELP;
00268     if( !strcasecmp(psz_capability,"text renderer") )
00269         return i_type == 1 ? TEXT_TITLE : TEXT_HELP;
00270     if( !strcasecmp(psz_capability,"video output") )
00271         return i_type == 1 ? _VOUT_TITLE : VOUT_HELP;
00272     if( !strcasecmp(psz_capability,"video filter") )
00273         return i_type == 1 ? VIDEO_FILTER_TITLE : VIDEO_FILTER_HELP;
00274     if( !strcasecmp(psz_capability,"video filter2") )
00275         return i_type == 1 ? VIDEO_FILTER2_TITLE : VIDEO_FILTER2_HELP;
00276 
00277     */
00278     return " ";
00279 }
00280 
00281 
00282 static struct config_category_t categories_array[] =
00283 {
00284     /* Interface */
00285     { CAT_INTERFACE, INTF_TITLE, INTF_HELP },
00286     { SUBCAT_INTERFACE_GENERAL, GENERAL_TITLE, INTF_GENERAL_HELP },
00287     { SUBCAT_INTERFACE_CONTROL, INTF_CONTROL_TITLE, INTF_CONTROL_HELP },
00288     { SUBCAT_INTERFACE_HOTKEYS, INTF_HOTKEYS_TITLE, INTF_HOTKEYS_HELP },
00289 
00290     { CAT_AUDIO, AUDIO_TITLE, AUDIO_HELP },
00291     { SUBCAT_AUDIO_GENERAL, AUDIO_GENERAL_TITLE, AUDIO_GENERAL_HELP },
00292     { SUBCAT_AUDIO_AOUT, AOUT_TITLE, AOUT_HELP },
00293     { SUBCAT_AUDIO_AFILTER, AFILTER_TITLE, AFILTER_HELP },
00294     { SUBCAT_AUDIO_VISUAL, AVISUAL_TITLE, AVISUAL_HELP },
00295     { SUBCAT_AUDIO_MISC, AMISC_TITLE, AMISC_HELP },
00296 
00297     { CAT_VIDEO, VIDEO_TITLE, VIDEO_HELP },
00298     { SUBCAT_VIDEO_GENERAL, VIDEO_GENERAL_TITLE, VIDEO_GENERAL_HELP },
00299     { SUBCAT_VIDEO_VOUT, _VOUT_TITLE, VOUT_HELP },
00300     { SUBCAT_VIDEO_VFILTER, VFILTER_TITLE, VFILTER_HELP },
00301     { SUBCAT_VIDEO_SUBPIC, SUBPIC_TITLE, SUBPIC_HELP },
00302 //    { SUBCAT_VIDEO_TEXT, TEXT_TITLE, TEXT_HELP },
00303 
00304     { CAT_INPUT, INPUT_TITLE, INPUT_HELP },
00305     { SUBCAT_INPUT_GENERAL, ADVANCED_TITLE, ADVANCED_HELP },
00306     { SUBCAT_INPUT_ACCESS, ACCESS_TITLE, ACCESS_HELP },
00307     { SUBCAT_INPUT_ACCESS_FILTER, ACCESS_FILTER_TITLE, ACCESS_FILTER_HELP },
00308     { SUBCAT_INPUT_DEMUX, DEMUX_TITLE, DEMUX_HELP },
00309     { SUBCAT_INPUT_VCODEC, VDEC_TITLE, VDEC_HELP },
00310     { SUBCAT_INPUT_ACODEC, ADEC_TITLE, ADEC_HELP },
00311     { SUBCAT_INPUT_SCODEC, SDEC_TITLE, SDEC_HELP },
00312 
00313     { CAT_SOUT, SOUT_TITLE, SOUT_HELP },
00314     { SUBCAT_SOUT_GENERAL, GENERAL_TITLE, SOUT_GENERAL_HELP },
00315     { SUBCAT_SOUT_STREAM, SOUT_STREAM_TITLE, SOUT_STREAM_HELP },
00316     { SUBCAT_SOUT_MUX, SOUT_MUX_TITLE, SOUT_MUX_HELP },
00317     { SUBCAT_SOUT_ACO, SOUT_ACO_TITLE, SOUT_ACO_HELP },
00318     { SUBCAT_SOUT_PACKETIZER, SOUT_PACKET_TITLE, SOUT_PACKET_HELP },
00319     { SUBCAT_SOUT_SAP, SOUT_SAP_TITLE, SOUT_SAP_HELP },
00320     { SUBCAT_SOUT_VOD, SOUT_VOD_TITLE, SOUT_VOD_HELP },
00321 
00322     { CAT_PLAYLIST, PLAYLIST_TITLE , PLAYLIST_HELP },
00323     { SUBCAT_PLAYLIST_GENERAL, GENERAL_TITLE, PGENERAL_HELP },
00324     { SUBCAT_PLAYLIST_SD, SD_TITLE, SD_HELP },
00325 
00326     { CAT_ADVANCED, AADVANCED_TITLE, AADVANCED_HELP },
00327     { SUBCAT_ADVANCED_CPU, CPU_TITLE, CPU_HELP },
00328     { SUBCAT_ADVANCED_MISC, MISC_TITLE, MISC_HELP },
00329     { SUBCAT_ADVANCED_NETWORK, NETWORK_TITLE, NETWORK_HELP },
00330 
00331     { -1, NULL, NULL }
00332 };
00333 
00334 
00335 inline char *config_CategoryNameGet( int i_value )
00336 {
00337     int i = 0 ;
00338     while( categories_array[i].psz_name != NULL )
00339     {
00340         if( categories_array[i].i_id == i_value )
00341         {
00342             return categories_array[i].psz_name;
00343         }
00344         i++;
00345     }
00346     return NULL;
00347 }
00348 
00349 inline char *config_CategoryHelpGet( int i_value )
00350 {
00351     int i = 0 ;
00352     while( categories_array[i].psz_help != NULL )
00353     {
00354         if( categories_array[i].i_id == i_value )
00355         {
00356             return categories_array[i].psz_help;
00357         }
00358         i++;
00359     }
00360     return NULL;
00361 }
00362 
00363 #endif /* VLC_HELP_H */

Generated on Tue Dec 20 10:14:19 2005 for vlc-0.8.4a by  doxygen 1.4.2