vlc_config_cat.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * vlc_config_cat.h : Definition of configuration categories
00003  *****************************************************************************
00004  * Copyright (C) 2003 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *          Anil Daoud <anil@videolan.org>
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, 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     "Select \"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's interfaces" )
00041 
00042 #define INTF_GENERAL_HELP N_( "General interface settings" )
00043 
00044 #define INTF_MAIN_TITLE  N_( "Main interfaces" )
00045 #define INTF_MAIN_HELP N_( "Settings for the main interface" )
00046 
00047 #define INTF_CONTROL_TITLE N_( "Control interfaces" )
00048 #define INTF_CONTROL_HELP N_( "Settings for VLC's control interfaces" )
00049 
00050 #define INTF_HOTKEYS_TITLE N_( "Hotkeys settings" )
00051 #define INTF_HOTKEYS_HELP N_( "Hotkeys settings" )
00052 
00053 /* Audio */
00054 #define AUDIO_TITLE N_( "Audio" )
00055 #define AUDIO_HELP N_( "Audio settings" )
00056 
00057 #define AUDIO_GENERAL_TITLE N_( "General audio settings" )
00058 #define AUDIO_GENERAL_HELP N_("General audio settings")
00059 
00060 #define AFILTER_TITLE N_("Filters")
00061 #define AFILTER_HELP N_( \
00062     "Audio filters are used to postprocess the audio stream." )
00063 
00064 #define AVISUAL_TITLE N_("Visualizations")
00065 #define AVISUAL_HELP N_( \
00066     "Audio visualizations" )
00067 
00068 #define AOUT_TITLE N_( "Output modules" )
00069 #define AOUT_HELP N_("These are general settings for audio output modules.")
00070 
00071 #define AMISC_TITLE N_("Miscellaneous")
00072 #define AMISC_HELP N_( "Miscellaneous audio settings and modules." )
00073 
00074 /* Video */
00075 #define VIDEO_TITLE N_("Video")
00076 #define VIDEO_HELP N_("Video settings")
00077 
00078 #define VIDEO_GENERAL_TITLE N_( "General video settings")
00079 #define VIDEO_GENERAL_HELP N_( "General video settings" )
00080 
00081 #define _VOUT_TITLE N_("Output modules" )
00082 #define VOUT_HELP N_( \
00083     "Choose your preferred video output and configure it here." )
00084 
00085 #define VFILTER_TITLE N_("Filters" )
00086 #define VFILTER_HELP N_( \
00087     "Video filters are used to postprocess the video stream." )
00088 
00089 #define SUBPIC_TITLE N_( "Subtitles/OSD")
00090 #define SUBPIC_HELP N_( "Miscellaneous settings related to On-Screen-Display,"\
00091         " subtitles and \"overlay subpictures\".")
00092 /*
00093 #define TEXT_TITLE N_("Text rendering")
00094 #define TEXT_HELP N_( \
00095     "Use the settings of the \"freetype\" module to choose the font you " \
00096     "want VLC to use for text rendering (to display subtitles for example).")
00097 */
00098 /* Input */
00099 #define INPUT_TITLE N_( "Input / Codecs" )
00100 #define INPUT_HELP N_( "These are the settings for the input, demultiplexing " \
00101          "and decoding parts of VLC. Encoder settings can also be found here." )
00102 
00103 #define ACCESS_TITLE N_( "Access modules" )
00104 #define ACCESS_HELP N_( \
00105     "Settings related to the various access methods used by VLC. " \
00106     "Common settings you may want to alter are HTTP proxy or " \
00107     "caching settings." )
00108 
00109 #define ACCESS_FILTER_TITLE N_( "Access filters" )
00110 #define ACCESS_FILTER_HELP N_( \
00111     "Access filters are special modules that allow advanced operations on " \
00112     "the input side of VLC. You should not touch anything here unless you " \
00113     "know what you are doing." )
00114 
00115 #define DEMUX_TITLE N_("Demuxers")
00116 #define DEMUX_HELP N_( "Demuxers are used to separate audio and video streams." )
00117 
00118 #define VDEC_TITLE  N_( "Video codecs" )
00119 #define VDEC_HELP N_( "Settings for the video-only decoders and encoders." )
00120 
00121 #define ADEC_TITLE  N_( "Audio codecs" )
00122 #define ADEC_HELP N_( "Settings for the audio-only decoders and encoders." )
00123 
00124 #define SDEC_TITLE N_( "Other codecs")
00125 #define SDEC_HELP N_( "Settings for audio+video and miscellaneous decoders and encoders." )
00126 
00127 #define ADVANCED_TITLE N_("General")
00128 #define ADVANCED_HELP N_( "General input settings. Use with care." )
00129 
00130 /* Sout */
00131 #define SOUT_TITLE N_( "Stream output" )
00132 #define SOUT_HELP N_( \
00133       "Stream output is what allows VLC to act as a streaming server " \
00134       "or to save incoming streams.\n" \
00135       "Streams are first muxed and then sent through an \"access output\" "\
00136       "module that can either save the stream to a file, or stream " \
00137       "it (UDP, HTTP, RTP/RTSP).\n" \
00138       "Sout streams modules allow advanced stream processing (transcoding, "\
00139       "duplicating...).")
00140 
00141 #define SOUT_GENERAL_HELP N_( "General stream output settings")
00142 
00143 #define SOUT_MUX_TITLE N_( "Muxers" )
00144 #define SOUT_MUX_HELP N_( \
00145        "Muxers create the encapsulation formats that are used to " \
00146        "put all the elementary streams (video, audio, ...) " \
00147        "together. This setting allows you to always force a specific muxer. " \
00148        "You should probably not do that.\n" \
00149        "You can also set default parameters for each muxer." )
00150 
00151 #define SOUT_ACO_TITLE N_( "Access output" )
00152 #define SOUT_ACO_HELP N_( \
00153    "Access output modules control the ways the muxed streams are sent. " \
00154    "This setting allows you to always force a specific access output method. " \
00155    "You should probably not do that.\n" \
00156    "You can also set default parameters for each access output.")
00157 
00158 #define SOUT_PACKET_TITLE N_( "Packetizers" )
00159 #define SOUT_PACKET_HELP N_( \
00160         "Packetizers are used to \"preprocess\" the elementary "\
00161         "streams before muxing. " \
00162         "This setting allows you to always force a packetizer. " \
00163         "You should probably not do that.\n" \
00164         "You can also set default parameters for each packetizer." )
00165 
00166 #define SOUT_STREAM_TITLE N_("Sout stream")
00167 #define SOUT_STREAM_HELP N_( "Sout stream modules allow to build a sout " \
00168                 "processing chain. Please refer to the Streaming Howto for " \
00169                 "more information. You can configure default options for " \
00170                 "each sout stream module here.")
00171 
00172 #define SOUT_SAP_TITLE N_( "SAP" )
00173 #define SOUT_SAP_HELP N_( \
00174                  "SAP is a way to publically announce streams that are being "\
00175                  "sent using multicast UDP or RTP." )
00176 
00177 #define SOUT_VOD_TITLE N_( "VOD" )
00178 #define SOUT_VOD_HELP N_( "VLC's implementation of Video On Demand" )
00179 
00180 
00181 /* Playlist */
00182 #define PLAYLIST_TITLE N_( "Playlist" )
00183 #define PLAYLIST_HELP N_( "Settings related to playlist behaviour " \
00184         "(e.g. playback mode) and to modules that automatically add "\
00185         "items to the playlist (\"service discovery\" modules).")
00186 
00187 #define PGENERAL_HELP N_( "General playlist behaviour")
00188 #define SD_TITLE N_("Services discovery")
00189 #define SD_HELP N_("Services discovery modules are facilities "\
00190         "that automatically add items to playlist.")
00191 
00192 /* Advanced */
00193 #define AADVANCED_TITLE N_( "Advanced" )
00194 #define AADVANCED_HELP N_( "Advanced settings. Use with care.")
00195 
00196 #define CPU_TITLE N_( "CPU features" )
00197 #define CPU_HELP N_( "You can choose to disable some CPU accelerations " \
00198         "here. You should probably not change these settings." )
00199 
00200 #define MISC_TITLE N_( "Advanced settings" )
00201 #define MISC_HELP N_( "Other advanced settings")
00202 
00203 #define NETWORK_TITLE N_( "Network" )
00204 #define NETWORK_HELP N_( "These modules provide network functions to all " \
00205                 "other parts of VLC." )
00206 
00207 /* OLD */
00208 
00209 #define CHROMA_TITLE N_("Chroma modules settings")
00210 #define CHROMA_HELP N_("These settings affect chroma transformation modules.")
00211 
00212 #define PACKETIZER_TITLE  N_("Packetizer modules settings" )
00213 #define PACKETIZER_HELP "These are general settings for the "\
00214         "packetizers used in VLC's stream output subsystem."
00215 
00216 #define ENCODER_TITLE N_("Encoders settings")
00217 #define ENCODER_HELP N_( \
00218     "These are general settings for video/audio/subtitles encoding modules.")
00219 
00220 
00221 #define DIALOGS_TITLE N_("Dialog providers settings")
00222 #define DIALOGS_HELP  N_( \
00223     "Dialog providers can be configured here.")
00224 
00225 #define SUBTITLE_DEMUX_TITLE N_("Subtitle demuxer settings")
00226 #define SUBTITLE_DEMUX_HELP N_( \
00227     "In this section you can force the behavior of the subtitle demuxer, " \
00228     "for example by setting the subtitles type or file name.")
00229 
00230 /*
00231  *  A little help for modules with unknown capabilities
00232  */
00233 
00234 #define UNKNOWN_TITLE N_("No help available" )
00235 #define UNKNOWN_HELP N_("There is no help available for these modules.")
00236 
00237 /* This function is deprecated and is kept only for compatibility */
00238 static inline const char * GetCapabilityHelp( char *psz_capability, int i_type)
00239 {
00240     (void)psz_capability; (void)i_type;
00241     return " ";
00242 }
00243 
00244 static const struct config_category_t categories_array[] =
00245 {
00246     /* Interface */
00247     { CAT_INTERFACE, INTF_TITLE, INTF_HELP },
00248     { SUBCAT_INTERFACE_GENERAL, GENERAL_TITLE, INTF_GENERAL_HELP },
00249     { SUBCAT_INTERFACE_MAIN, INTF_MAIN_TITLE, INTF_MAIN_HELP },
00250     { SUBCAT_INTERFACE_CONTROL, INTF_CONTROL_TITLE, INTF_CONTROL_HELP },
00251     { SUBCAT_INTERFACE_HOTKEYS, INTF_HOTKEYS_TITLE, INTF_HOTKEYS_HELP },
00252 
00253     { CAT_AUDIO, AUDIO_TITLE, AUDIO_HELP },
00254     { SUBCAT_AUDIO_GENERAL, AUDIO_GENERAL_TITLE, AUDIO_GENERAL_HELP },
00255     { SUBCAT_AUDIO_AOUT, AOUT_TITLE, AOUT_HELP },
00256     { SUBCAT_AUDIO_AFILTER, AFILTER_TITLE, AFILTER_HELP },
00257     { SUBCAT_AUDIO_VISUAL, AVISUAL_TITLE, AVISUAL_HELP },
00258     { SUBCAT_AUDIO_MISC, AMISC_TITLE, AMISC_HELP },
00259 
00260     { CAT_VIDEO, VIDEO_TITLE, VIDEO_HELP },
00261     { SUBCAT_VIDEO_GENERAL, VIDEO_GENERAL_TITLE, VIDEO_GENERAL_HELP },
00262     { SUBCAT_VIDEO_VOUT, _VOUT_TITLE, VOUT_HELP },
00263     { SUBCAT_VIDEO_VFILTER, VFILTER_TITLE, VFILTER_HELP },
00264     { SUBCAT_VIDEO_SUBPIC, SUBPIC_TITLE, SUBPIC_HELP },
00265 
00266     { CAT_INPUT, INPUT_TITLE, INPUT_HELP },
00267     { SUBCAT_INPUT_GENERAL, ADVANCED_TITLE, ADVANCED_HELP },
00268     { SUBCAT_INPUT_ACCESS, ACCESS_TITLE, ACCESS_HELP },
00269     { SUBCAT_INPUT_ACCESS_FILTER, ACCESS_FILTER_TITLE, ACCESS_FILTER_HELP },
00270     { SUBCAT_INPUT_DEMUX, DEMUX_TITLE, DEMUX_HELP },
00271     { SUBCAT_INPUT_VCODEC, VDEC_TITLE, VDEC_HELP },
00272     { SUBCAT_INPUT_ACODEC, ADEC_TITLE, ADEC_HELP },
00273     { SUBCAT_INPUT_SCODEC, SDEC_TITLE, SDEC_HELP },
00274 
00275     { CAT_SOUT, SOUT_TITLE, SOUT_HELP },
00276     { SUBCAT_SOUT_GENERAL, GENERAL_TITLE, SOUT_GENERAL_HELP },
00277     { SUBCAT_SOUT_STREAM, SOUT_STREAM_TITLE, SOUT_STREAM_HELP },
00278     { SUBCAT_SOUT_MUX, SOUT_MUX_TITLE, SOUT_MUX_HELP },
00279     { SUBCAT_SOUT_ACO, SOUT_ACO_TITLE, SOUT_ACO_HELP },
00280     { SUBCAT_SOUT_PACKETIZER, SOUT_PACKET_TITLE, SOUT_PACKET_HELP },
00281     { SUBCAT_SOUT_SAP, SOUT_SAP_TITLE, SOUT_SAP_HELP },
00282     { SUBCAT_SOUT_VOD, SOUT_VOD_TITLE, SOUT_VOD_HELP },
00283 
00284     { CAT_PLAYLIST, PLAYLIST_TITLE , PLAYLIST_HELP },
00285     { SUBCAT_PLAYLIST_GENERAL, GENERAL_TITLE, PGENERAL_HELP },
00286     { SUBCAT_PLAYLIST_SD, SD_TITLE, SD_HELP },
00287 
00288     { CAT_ADVANCED, AADVANCED_TITLE, AADVANCED_HELP },
00289     { SUBCAT_ADVANCED_CPU, CPU_TITLE, CPU_HELP },
00290     { SUBCAT_ADVANCED_MISC, MISC_TITLE, MISC_HELP },
00291 
00292     { -1, NULL, NULL }
00293 };
00294 
00295 static inline const char *config_CategoryNameGet( int i_value )
00296 {
00297     int i = 0 ;
00298     while( categories_array[i].psz_name != NULL )
00299     {
00300         if( categories_array[i].i_id == i_value )
00301         {
00302             return _(categories_array[i].psz_name);
00303         }
00304         i++;
00305     }
00306     return NULL;
00307 }
00308 
00309 static inline const char *config_CategoryHelpGet( int i_value )
00310 {
00311     int i = 0 ;
00312     while( categories_array[i].psz_help != NULL )
00313     {
00314         if( categories_array[i].i_id == i_value )
00315         {
00316             return _(categories_array[i].psz_help);
00317         }
00318         i++;
00319     }
00320     return NULL;
00321 }
00322 
00323 #endif /* VLC_HELP_H */

Generated on Wed Aug 13 08:02:37 2008 for VLC by  doxygen 1.5.1