KDevelop API Documentation

parts/doxygen/messages.cpp

Go to the documentation of this file.
00001 #include <qmap.h> 00002 00003 00004 #include <kdebug.h> 00005 #include <klocale.h> 00006 00007 00008 static QMap<QCString,QString> messages; 00009 00010 00011 // Note: this function seems to be completely unnecessary, but messages.insert 00012 // is a template function, so doing the template expansion just once reduced 00013 // the compile time of this trivial file from >5m to <30s on my machine. mhk. 00014 static void addMessage(const QCString key, const QString &message) 00015 { 00016 messages.insert(key, message); 00017 } 00018 00019 00020 QString message(const QCString &key) 00021 { 00022 static bool initialized = false; 00023 00024 if (!initialized) 00025 { 00026 //--------------------------------------------------------------------------- 00027 // Project related configuration options 00028 //--------------------------------------------------------------------------- 00029 addMessage("Project", i18n("Project")); 00030 addMessage("PROJECT_NAME", i18n("Project name")); 00031 addMessage("PROJECT_NUMBER", i18n("Project version")); 00032 addMessage("OUTPUT_DIRECTORY", i18n("Output path")); 00033 addMessage("OUTPUT_LANGUAGE", i18n("Output language")); 00034 addMessage("USE_WINDOWS_ENCODING", i18n("Use MS Windows(tm) font encoding")); 00035 addMessage("BRIEF_MEMBER_DESC", i18n("Include brief member descriptions")); 00036 addMessage("REPEAT_BRIEF", i18n("Repeat brief member descriptions")); 00037 addMessage("ALWAYS_DETAILED_SEC", i18n("Always include detailed section")); 00038 addMessage("INLINE_INHERITED_MEMB", i18n("Inline inherited members")); 00039 addMessage("FULL_PATH_NAMES", i18n("Always use full path names")); 00040 addMessage("STRIP_FROM_PATH", i18n("Prefix to strip from path names")); 00041 addMessage("SHORT_NAMES", i18n("Generate short file names")); 00042 addMessage("JAVADOC_AUTOBRIEF", i18n("Use JavaDoc-style brief descriptions")); 00043 addMessage("MULTILINE_CPP_IS_BRIEF", i18n("Multiline cpp is brief")); 00044 addMessage("DETAILS_AT_TOP", i18n("Details at top")); 00045 addMessage("INHERIT_DOCS", i18n("Inherit documentation")); 00046 addMessage("DISTRIBUTE_GROUP_DOC", i18n("Use group documentation on undocumented members")); 00047 addMessage("TAB_SIZE", i18n("Tab size")); 00048 addMessage("ALIASES", i18n("Aliases")); 00049 addMessage("OPTIMIZE_OUTPUT_FOR_C", i18n("Optimize output for C")); 00050 addMessage("OPTIMIZE_OUTPUT_JAVA", i18n("Optimize output for Java")); 00051 addMessage("SUBGROUPING", i18n("Class members type subgrouping")); 00052 00053 //--------------------------------------------------------------------------- 00054 // Build related configuration options 00055 //--------------------------------------------------------------------------- 00056 addMessage("Build", i18n("Build")); 00057 addMessage("EXTRACT_ALL", i18n("Extract undocumented entities")); 00058 addMessage("EXTRACT_PRIVATE", i18n("Extract private entities")); 00059 addMessage("EXTRACT_STATIC", i18n("Extract static entitites")); 00060 addMessage("EXTRACT_LOCAL_CLASSES", i18n("Extract local classes")); 00061 addMessage("HIDE_UNDOC_MEMBERS", i18n("Hide undocumented members")); 00062 addMessage("HIDE_UNDOC_CLASSES", i18n("Hide undocumented classes")); 00063 addMessage("HIDE_FRIEND_COMPOUNDS", i18n("Hide friend compounds")); 00064 addMessage("HIDE_IN_BODY_DOCS", i18n("Hide in body docs")); 00065 addMessage("INTERNAL_DOCS", i18n("Document internal entities")); 00066 addMessage("CASE_SENSE_NAMES", i18n("Use case-sensitive file names")); 00067 addMessage("HIDE_SCOPE_NAMES", i18n("Hide name scopes")); 00068 addMessage("SHOW_INCLUDE_FILES", i18n("Show included files")); 00069 addMessage("INLINE_INFO", i18n("Make inline functions")); 00070 addMessage("SORT_MEMBER_DOCS", i18n("Sort member documentation alphabetically")); 00071 addMessage("ENABLED_SECTIONS", i18n("Enable conditional sections")); 00072 addMessage("GENERATE_TODOLIST", i18n("Generate TODO-list")); 00073 addMessage("GENERATE_TESTLIST", i18n("Generate Test-list")); 00074 addMessage("GENERATE_BUGLIST", i18n("Generate Bug-list")); 00075 addMessage("GENERATE_DEPRECATEDLIST", i18n("Generate Deprecated-list")); 00076 addMessage("MAX_INITIALIZER_LINES", i18n("Maximum lines shown for initializers")); 00077 addMessage("SHOW_USED_FILES", i18n("Show used files")); 00078 00079 //--------------------------------------------------------------------------- 00080 // configuration options related to warning and progress messages 00081 //--------------------------------------------------------------------------- 00082 addMessage("Messages", i18n("Messages")); 00083 addMessage("QUIET", i18n("Suppress output")); 00084 addMessage("WARNINGS", i18n("Show warnings")); 00085 addMessage("WARN_IF_UNDOCUMENTED", i18n("Warn about undocumented entitites")); 00086 addMessage("WARN_IF_DOC_ERROR", i18n("Warn if error in documents")); 00087 addMessage("WARN_FORMAT", i18n("Warnings format")); 00088 addMessage("WARN_LOGFILE", i18n("Write warnings to")); 00089 00090 //--------------------------------------------------------------------------- 00091 // configuration options related to the input files 00092 //--------------------------------------------------------------------------- 00093 addMessage("Input", i18n("Input")); 00094 addMessage("INPUT", i18n("Input files and directories")); 00095 addMessage("FILE_PATTERNS", i18n("Input patterns")); 00096 addMessage("RECURSIVE", i18n("Recurse into subdirectories")); 00097 addMessage("EXCLUDE", i18n("Exclude from input")); 00098 addMessage("EXCLUDE_SYMLINKS", i18n("Exclude symlinks")); 00099 addMessage("EXCLUDE_PATTERNS", i18n("Exclude patterns")); 00100 addMessage("EXAMPLE_PATH", i18n("Path to examples")); 00101 addMessage("EXAMPLE_PATTERNS", i18n("Example patterns")); 00102 addMessage("EXAMPLE_RECURSIVE", i18n("Example recursive")); 00103 addMessage("IMAGE_PATH", i18n("Path to images")); 00104 addMessage("INPUT_FILTER", i18n("Input filter")); 00105 addMessage("FILTER_SOURCE_FILES", i18n("Filter input files")); 00106 00107 //--------------------------------------------------------------------------- 00108 // configuration options related to source browsing 00109 //--------------------------------------------------------------------------- 00110 addMessage("Source Browser", i18n("Source Browser")); 00111 addMessage("SOURCE_BROWSER", i18n("Cross-reference with source files")); 00112 addMessage("INLINE_SOURCES", i18n("Inline sources")); 00113 addMessage("STRIP_CODE_COMMENTS", i18n("Hide special comment blocks")); 00114 addMessage("REFERENCED_BY_RELATION", i18n("Referenced by relation")); 00115 addMessage("REFERENCES_RELATION", i18n("References relation")); 00116 addMessage("VERBATIM_HEADERS", i18n("Include headers verbatim")); 00117 00118 //--------------------------------------------------------------------------- 00119 // configuration options related to the alphabetical class index 00120 //--------------------------------------------------------------------------- 00121 addMessage("Index", i18n("Index")); 00122 addMessage("ALPHABETICAL_INDEX", i18n("Generate alphabetical index")); 00123 addMessage("COLS_IN_ALPHA_INDEX", i18n("Columns in index")); 00124 addMessage("IGNORE_PREFIX", i18n("Prefix to ignore")); 00125 00126 //--------------------------------------------------------------------------- 00127 // configuration options related to the HTML output 00128 //--------------------------------------------------------------------------- 00129 addMessage("HTML", i18n("HTML")); 00130 addMessage("GENERATE_HTML", i18n("Generate HTML")); 00131 addMessage("HTML_OUTPUT", i18n("HTML output directory")); 00132 addMessage("HTML_FILE_EXTENSION", i18n("HTML file extension")); 00133 addMessage("HTML_HEADER", i18n("Header file")); 00134 addMessage("HTML_FOOTER", i18n("Footer file")); 00135 addMessage("HTML_STYLESHEET", i18n("Stylesheet")); 00136 addMessage("HTML_ALIGN_MEMBERS", i18n("Align members")); 00137 addMessage("GENERATE_HTMLHELP", i18n("Generate HTML-help")); 00138 addMessage("CHM_FILE", i18n("CHM file")); 00139 addMessage("HHC_LOCATION", i18n("HHC location")); 00140 addMessage("GENERATE_CHI", i18n("Generate .chi file")); 00141 addMessage("BINARY_TOC", i18n("Generate binary TOC")); 00142 addMessage("TOC_EXPAND", i18n("Expand TOC")); 00143 addMessage("DISABLE_INDEX", i18n("Disable index")); 00144 addMessage("ENUM_VALUES_PER_LINE", i18n("Number of enum values per line")); 00145 addMessage("GENERATE_TREEVIEW", i18n("Generate treeview")); 00146 addMessage("TREEVIEW_WIDTH", i18n("Treeview width")); 00147 00148 //--------------------------------------------------------------------------- 00149 // configuration options related to the LaTeX output 00150 //--------------------------------------------------------------------------- 00151 addMessage("LaTeX", i18n("LaTeX")); 00152 addMessage("GENERATE_LATEX", i18n("Generate LaTeX")); 00153 addMessage("LATEX_OUTPUT", i18n("LaTeX output directory")); 00154 addMessage("LATEX_CMD_NAME", i18n("LaTeX command name")); 00155 addMessage("MAKEINDEX_CMD_NAME", i18n("MakeIndex command name")); 00156 addMessage("COMPACT_LATEX", i18n("Generate compact output")); 00157 addMessage("PAPER_TYPE", i18n("Paper type")); 00158 addMessage("EXTRA_PACKAGES", i18n("Include extra packages")); 00159 addMessage("LATEX_HEADER", i18n("LaTeX Header file")); 00160 addMessage("PDF_HYPERLINKS", i18n("Generate PDF hyperlinks")); 00161 addMessage("USE_PDFLATEX", i18n("Use pdflatex")); 00162 addMessage("LATEX_BATCHMODE", i18n("Use batch mode")); 00163 addMessage("LATEX_HIDE_INDICES", i18n("Do not include index chapters")); 00164 00165 //--------------------------------------------------------------------------- 00166 // configuration options related to the RTF output 00167 //--------------------------------------------------------------------------- 00168 addMessage("RTF", i18n("RTF")); 00169 addMessage("GENERATE_RTF", i18n("Generate RTF")); 00170 addMessage("RTF_OUTPUT", i18n("RTF output directory")); 00171 addMessage("COMPACT_RTF", i18n("Generate compact output")); 00172 addMessage("RTF_HYPERLINKS", i18n("Generate hyperlinks")); 00173 addMessage("RTF_STYLESHEET_FILE", i18n("Stylesheet")); 00174 addMessage("RTF_EXTENSIONS_FILE", i18n("Extensions file")); 00175 00176 //--------------------------------------------------------------------------- 00177 // configuration options related to the man page output 00178 //--------------------------------------------------------------------------- 00179 addMessage("Man", i18n("Man")); 00180 addMessage("GENERATE_MAN", i18n("Generate man pages")); 00181 addMessage("MAN_OUTPUT", i18n("Man output directory")); 00182 addMessage("MAN_EXTENSION", i18n("Man extension")); 00183 addMessage("MAN_LINKS", i18n("Generate links")); 00184 00185 //--------------------------------------------------------------------------- 00186 // configuration options related to the XML output 00187 //--------------------------------------------------------------------------- 00188 addMessage("XML", i18n("XML")); 00189 addMessage("GENERATE_XML", i18n("Generate XML")); 00190 addMessage("XML_OUTPUT", i18n("XML output directory")); 00191 addMessage("XML_SCHEMA", i18n("XML schema")); 00192 addMessage("XML_DTD", i18n("XML DTD file")); 00193 00194 //--------------------------------------------------------------------------- 00195 // configuration options for the AutoGen Definitions output 00196 //--------------------------------------------------------------------------- 00197 addMessage("DEF", i18n("DEF")); 00198 addMessage("GENERATE_AUTOGEN_DEF", i18n("Generate Autogen DEF")); 00199 00200 //--------------------------------------------------------------------------- 00201 // configuration options related to the Perl module output 00202 //--------------------------------------------------------------------------- 00203 addMessage("PerlMod", i18n("Perl")); 00204 addMessage("GENERATE_PERLMOD", i18n("Generate Perl module")); 00205 addMessage("PERLMOD_LATEX", i18n("Generate PDF and DVI using LaTeX")); 00206 addMessage("PERLMOD_PRETTY", i18n("Make the Perl module output human readable")); 00207 addMessage("PERLMOD_MAKEVAR_PREFIX", i18n("Perl module variable prefix in the makefiles")); 00208 00209 //--------------------------------------------------------------------------- 00210 // Configuration options related to the preprocessor 00211 //--------------------------------------------------------------------------- 00212 addMessage("Preprocessor", i18n("Preprocessor")); 00213 addMessage("ENABLE_PREPROCESSING", i18n("Enable preprocessing")); 00214 addMessage("MACRO_EXPANSION", i18n("Expand macros")); 00215 addMessage("EXPAND_ONLY_PREDEF", i18n("Expand only predefined macros")); 00216 addMessage("SEARCH_INCLUDES", i18n("Search for includes")); 00217 addMessage("INCLUDE_PATH", i18n("Include path")); 00218 addMessage("INCLUDE_FILE_PATTERNS", i18n("Include file patterns")); 00219 addMessage("PREDEFINED", i18n("Predefined macros")); 00220 addMessage("EXPAND_AS_DEFINED", i18n("Expand as defined")); 00221 addMessage("SKIP_FUNCTION_MACROS", i18n("Skip function macros")); 00222 00223 //--------------------------------------------------------------------------- 00224 // Configuration::addtions related to external references 00225 //--------------------------------------------------------------------------- 00226 addMessage("External", i18n("External")); 00227 addMessage("TAGFILES", i18n("Tagfiles")); 00228 addMessage("GENERATE_TAGFILE", i18n("Generate tagfile")); 00229 addMessage("ALLEXTERNALS", i18n("List all externals")); 00230 addMessage("EXTERNAL_GROUPS", i18n("External groups")); 00231 addMessage("PERL_PATH", i18n("Path to Perl")); 00232 00233 //--------------------------------------------------------------------------- 00234 // Configuration options related to the dot tool 00235 //--------------------------------------------------------------------------- 00236 addMessage("Dot", i18n("Dot")); 00237 addMessage("CLASS_DIAGRAMS", i18n("Generate class diagrams")); 00238 addMessage("HIDE_UNDOC_RELATIONS", i18n("Hide undocumented relations")); 00239 addMessage("HAVE_DOT", i18n("Use dot")); 00240 addMessage("CLASS_GRAPH", i18n("Generate class graphs")); 00241 addMessage("COLLABORATION_GRAPH", i18n("Generate collaboration graphs")); 00242 addMessage("UML_LOOK", i18n("Generate UML looking inheritance and colloboration diagrams")); 00243 addMessage("TEMPLATE_RELATIONS", i18n("Show relations between templates and their instances")); 00244 addMessage("INCLUDE_GRAPH", i18n("Generate include graphs")); 00245 addMessage("INCLUDED_BY_GRAPH", i18n("Generate included-by graphs")); 00246 addMessage("CALL_GRAPH", i18n("Generate a call dependency graph for every global function or class method")); 00247 addMessage("GRAPHICAL_HIERARCHY", i18n("Generate graphical hierarchy")); 00248 addMessage("DOT_IMAGE_FORMAT", i18n("Dot image format")); 00249 addMessage("DOT_PATH", i18n("Path to dot")); 00250 addMessage("DOTFILE_DIRS", i18n("Directories with extra dot files")); 00251 addMessage("MAX_DOT_GRAPH_WIDTH", i18n("Maximum graph width")); 00252 addMessage("MAX_DOT_GRAPH_HEIGHT", i18n("Maximum graph height")); 00253 addMessage("MAX_DOT_GRAPH_DEPTH", i18n("Maximum graph depth")); 00254 addMessage("GENERATE_LEGEND", i18n("Generate legend")); 00255 addMessage("DOT_CLEANUP", i18n("Remove intermediate files")); 00256 addMessage("Search", i18n("Search")); 00257 00258 //--------------------------------------------------------------------------- 00259 // Configuration::addtions related to the search engine 00260 //--------------------------------------------------------------------------- 00261 addMessage("SEARCHENGINE", i18n("Search engine")); 00262 addMessage("CGI_NAME", i18n("CGI name")); 00263 addMessage("CGI_URL", i18n("CGI URL")); 00264 addMessage("DOC_URL", i18n("Documentation URL")); 00265 addMessage("DOC_ABSPATH", i18n("Absolute path to documentation")); 00266 addMessage("BIN_ABSPATH", i18n("Absolute path to doxysearch binary")); 00267 addMessage("EXT_DOC_PATHS", i18n("Paths to external documentation")); 00268 00269 initialized = true; 00270 } 00271 00272 if (!messages.contains(key)) 00273 { 00274 kdDebug() << "Unhandled message: " << key << endl; 00275 00276 return key; 00277 } 00278 00279 return messages[key]; 00280 } 00281
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:11 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003