Commit 94f3e728 authored by Dimitri van Heesch's avatar Dimitri van Heesch

Release-1.5.9

parent 2ae3ed65
DOXYGEN Version 1.5.8-20090304 DOXYGEN Version 1.5.9
Please read the installation section of the manual Please read the installation section of the manual
(http://www.doxygen.org/install.html) for instructions. (http://www.doxygen.org/install.html) for instructions.
-------- --------
Dimitri van Heesch (04 March 2009) Dimitri van Heesch (30 April 2009)
DOXYGEN Version 1.5.8_20090304 DOXYGEN Version 1.5.9
Please read INSTALL for compilation instructions. Please read INSTALL for compilation instructions.
...@@ -17,4 +17,4 @@ to subscribe to the lists or to visit the archives. ...@@ -17,4 +17,4 @@ to subscribe to the lists or to visit the archives.
Enjoy, Enjoy,
Dimitri van Heesch (dimitri@stack.nl) (04 March 2009) Dimitri van Heesch (dimitri@stack.nl) (30 April 2009)
...@@ -1711,7 +1711,7 @@ TEMPLIST "<"[^\"\}\{\(\)\/\n\>]*">" ...@@ -1711,7 +1711,7 @@ TEMPLIST "<"[^\"\}\{\(\)\/\n\>]*">"
SCOPETNAME ((({ID}{TEMPLIST}?){BN}*"::"{BN}*)*)((~{BN}*)?{ID}) SCOPETNAME ((({ID}{TEMPLIST}?){BN}*"::"{BN}*)*)((~{BN}*)?{ID})
SCOPEPREFIX ({ID}{TEMPLIST}?{BN}*"::"{BN}*)+ SCOPEPREFIX ({ID}{TEMPLIST}?{BN}*"::"{BN}*)+
KEYWORD_OBJC ("@public"|"@private"|"@protected"|"@class"|"@implementation"|"@interface"|"@end"|"@selector"|"@protocol"|"@optional"|"@required"|"@throw"|"@synthesize") KEYWORD_OBJC ("@public"|"@private"|"@protected"|"@class"|"@implementation"|"@interface"|"@end"|"@selector"|"@protocol"|"@optional"|"@required"|"@throw"|"@synthesize")
KEYWORD ("add"|"asm"|"__assume"|"auto"|"class"|"const"|"delete"|"enum"|"explicit"|"extern"|"false"|"friend"|"gcnew"|"gcroot"|"get"|"inline"|"internal"|"mutable"|"namespace"|"new"|"nullptr"|"override"|"operator"|"pin_ptr"|"private"|"protected"|"public"|"raise"|"register"|"remove"|"self"|"set"|"sizeof"|"static"|"struct"|"__super"|"template"|"generic"|"this"|"true"|"typedef"|"typeid"|"typename"|"union"|"using"|"virtual"|"volatile"|"abstract"|"final"|"import"|"synchronized"|"transient"|{KEYWORD_OBJC}) KEYWORD ("asm"|"__assume"|"auto"|"class"|"const"|"delete"|"enum"|"explicit"|"extern"|"false"|"friend"|"gcnew"|"gcroot"|"get"|"inline"|"internal"|"mutable"|"namespace"|"new"|"nullptr"|"override"|"operator"|"pin_ptr"|"private"|"protected"|"public"|"raise"|"register"|"remove"|"self"|"set"|"sizeof"|"static"|"struct"|"__super"|"template"|"generic"|"this"|"true"|"typedef"|"typeid"|"typename"|"union"|"using"|"virtual"|"volatile"|"abstract"|"final"|"import"|"synchronized"|"transient"|{KEYWORD_OBJC})
FLOWKW ("break"|"case"|"catch"|"continue"|"default"|"do"|"else"|"finally"|"for"|"foreach"|"for each"|"goto"|"if"|"return"|"switch"|"throw"|"throws"|"try"|"while"|"@try"|"@catch"|"@finally") FLOWKW ("break"|"case"|"catch"|"continue"|"default"|"do"|"else"|"finally"|"for"|"foreach"|"for each"|"goto"|"if"|"return"|"switch"|"throw"|"throws"|"try"|"while"|"@try"|"@catch"|"@finally")
TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"object"|"short"|"signed"|"unsigned"|"void"|"wchar_t"|"size_t"|"boolean"|"id"|"SEL"|"string") TYPEKW ("bool"|"char"|"double"|"float"|"int"|"long"|"object"|"short"|"signed"|"unsigned"|"void"|"wchar_t"|"size_t"|"boolean"|"id"|"SEL"|"string")
CASTKW ("const_cast"|"dynamic_cast"|"reinterpret_cast"|"static_cast") CASTKW ("const_cast"|"dynamic_cast"|"reinterpret_cast"|"static_cast")
......
...@@ -844,7 +844,8 @@ void Definition::writeInlineCode(OutputList &ol,const char *scopeName) ...@@ -844,7 +844,8 @@ void Definition::writeInlineCode(OutputList &ol,const char *scopeName)
void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName, void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName,
const QCString &text,MemberSDict *members,bool /*funcOnly*/) const QCString &text,MemberSDict *members,bool /*funcOnly*/)
{ {
ol.pushGeneratorState(); static bool latexSourceCode = Config_getBool("LATEX_SOURCE_CODE");
ol.pushGeneratorState();
if (/*Config_getBool("SOURCE_BROWSER") &&*/ members) if (/*Config_getBool("SOURCE_BROWSER") &&*/ members)
{ {
ol.startParagraph(); ol.startParagraph();
...@@ -890,7 +891,14 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName, ...@@ -890,7 +891,14 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName,
//printf("md->getBodyDef()=%p global=%p\n",md->getBodyDef(),Doxygen::globalScope); //printf("md->getBodyDef()=%p global=%p\n",md->getBodyDef(),Doxygen::globalScope);
// for HTML write a real link // for HTML write a real link
ol.pushGeneratorState(); ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Html); //ol.disableAllBut(OutputGenerator::Html);
ol.disable(OutputGenerator::RTF);
ol.disable(OutputGenerator::Man);
if (!latexSourceCode)
{
ol.disable(OutputGenerator::Latex);
}
QCString lineStr,anchorStr; QCString lineStr,anchorStr;
anchorStr.sprintf("l%05d",md->getStartBodyLine()); anchorStr.sprintf("l%05d",md->getStartBodyLine());
//printf("Write object link to %s\n",md->getBodyDef()->getSourceFileBase().data()); //printf("Write object link to %s\n",md->getBodyDef()->getSourceFileBase().data());
...@@ -899,7 +907,11 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName, ...@@ -899,7 +907,11 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName,
// for the other output formats just mention the name // for the other output formats just mention the name
ol.pushGeneratorState(); ol.pushGeneratorState();
ol.disable(OutputGenerator::Html); ol.disable(OutputGenerator::Html);
if (latexSourceCode)
{
ol.disable(OutputGenerator::Latex);
}
ol.docify(name); ol.docify(name);
ol.popGeneratorState(); ol.popGeneratorState();
} }
...@@ -907,7 +919,14 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName, ...@@ -907,7 +919,14 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName,
{ {
// for HTML write a real link // for HTML write a real link
ol.pushGeneratorState(); ol.pushGeneratorState();
ol.disableAllBut(OutputGenerator::Html); //ol.disableAllBut(OutputGenerator::Html);
ol.disable(OutputGenerator::RTF);
ol.disable(OutputGenerator::Man);
if (!latexSourceCode)
{
ol.disable(OutputGenerator::Latex);
}
ol.writeObjectLink(md->getReference(), ol.writeObjectLink(md->getReference(),
md->getOutputFileBase(), md->getOutputFileBase(),
md->anchor(),name); md->anchor(),name);
...@@ -916,6 +935,10 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName, ...@@ -916,6 +935,10 @@ void Definition::_writeSourceRefList(OutputList &ol,const char *scopeName,
// for the other output formats just mention the name // for the other output formats just mention the name
ol.pushGeneratorState(); ol.pushGeneratorState();
ol.disable(OutputGenerator::Html); ol.disable(OutputGenerator::Html);
if (latexSourceCode)
{
ol.disable(OutputGenerator::Latex);
}
ol.docify(name); ol.docify(name);
ol.popGeneratorState(); ol.popGeneratorState();
} }
......
...@@ -978,9 +978,11 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children) ...@@ -978,9 +978,11 @@ static void handleLinkedWord(DocNode *parent,QList<DocNode> &children)
QString name = linkToText(g_token->name,TRUE); QString name = linkToText(g_token->name,TRUE);
int len = g_token->name.length(); int len = g_token->name.length();
ClassDef *cd=0; ClassDef *cd=0;
bool ambig;
FileDef *fd = findFileDef(Doxygen::inputNameDict,g_fileName,ambig);
//printf("handleLinkedWord(%s) g_context=%s\n",name.data(),g_context.data()); //printf("handleLinkedWord(%s) g_context=%s\n",name.data(),g_context.data());
if (!g_insideHtmlLink && if (!g_insideHtmlLink &&
(resolveRef(g_context,g_token->name,g_inSeeBlock,&compound,&member) (resolveRef(g_context,g_token->name,g_inSeeBlock,&compound,&member,TRUE,fd)
|| (!g_context.isEmpty() && // also try with global scope || (!g_context.isEmpty() && // also try with global scope
resolveRef("",g_token->name,g_inSeeBlock,&compound,&member)) resolveRef("",g_token->name,g_inSeeBlock,&compound,&member))
) )
...@@ -1412,7 +1414,7 @@ DocSymbol::SymType DocSymbol::decodeSymbol(const QString &symName,char *letter) ...@@ -1412,7 +1414,7 @@ DocSymbol::SymType DocSymbol::decodeSymbol(const QString &symName,char *letter)
DBG(("decodeSymbol(%s) l=%d\n",symName.data(),l)); DBG(("decodeSymbol(%s) l=%d\n",symName.data(),l));
if (symName=="&copy;") return DocSymbol::Copy; if (symName=="&copy;") return DocSymbol::Copy;
else if (symName=="&trade;") return DocSymbol::Tm; else if (symName=="&trade;") return DocSymbol::Tm;
else if (symName=="&tm;") return DocSymbol::Tm; // alias for &trace; else if (symName=="&tm;") return DocSymbol::Tm; // alias for &trade;
else if (symName=="&reg;") return DocSymbol::Reg; else if (symName=="&reg;") return DocSymbol::Reg;
else if (symName=="&lt;") return DocSymbol::Less; else if (symName=="&lt;") return DocSymbol::Less;
else if (symName=="&gt;") return DocSymbol::Greater; else if (symName=="&gt;") return DocSymbol::Greater;
...@@ -1427,6 +1429,8 @@ DocSymbol::SymType DocSymbol::decodeSymbol(const QString &symName,char *letter) ...@@ -1427,6 +1429,8 @@ DocSymbol::SymType DocSymbol::decodeSymbol(const QString &symName,char *letter)
else if (symName=="&mdash;") return DocSymbol::Mdash; else if (symName=="&mdash;") return DocSymbol::Mdash;
else if (symName=="&szlig;") return DocSymbol::Szlig; else if (symName=="&szlig;") return DocSymbol::Szlig;
else if (symName=="&nbsp;") return DocSymbol::Nbsp; else if (symName=="&nbsp;") return DocSymbol::Nbsp;
else if (symName=="&AElig;") return DocSymbol::AElig;
else if (symName=="&aelig;") return DocSymbol::Aelig;
else if (l==6 && symName.right(4)=="uml;") else if (l==6 && symName.right(4)=="uml;")
{ {
*letter=symName.at(1); *letter=symName.at(1);
......
...@@ -326,7 +326,7 @@ class DocSymbol : public DocNode ...@@ -326,7 +326,7 @@ class DocSymbol : public DocNode
enum SymType { Unknown=0, BSlash,At,Less,Greater,Amp,Dollar,Hash,Percent, enum SymType { Unknown=0, BSlash,At,Less,Greater,Amp,Dollar,Hash,Percent,
Copy, Tm, Reg, Apos, Quot, Uml, Acute, Grave, Circ, Tilde, Copy, Tm, Reg, Apos, Quot, Uml, Acute, Grave, Circ, Tilde,
Szlig, Cedil, Ring, Nbsp, Slash, Lsquo, Rsquo, Ldquo, Rdquo, Szlig, Cedil, Ring, Nbsp, Slash, Lsquo, Rsquo, Ldquo, Rdquo,
Ndash, Mdash Ndash, Mdash, Aelig, AElig
}; };
DocSymbol(DocNode *parent,SymType s,char letter='\0') : DocSymbol(DocNode *parent,SymType s,char letter='\0') :
m_parent(parent), m_symbol(s), m_letter(letter) {} m_parent(parent), m_symbol(s), m_letter(letter) {}
......
...@@ -123,6 +123,8 @@ void HtmlDocVisitor::visit(DocSymbol *s) ...@@ -123,6 +123,8 @@ void HtmlDocVisitor::visit(DocSymbol *s)
case DocSymbol::Cedil: m_t << "&" << s->letter() << "cedil;"; break; case DocSymbol::Cedil: m_t << "&" << s->letter() << "cedil;"; break;
case DocSymbol::Ring: m_t << "&" << s->letter() << "ring;"; break; case DocSymbol::Ring: m_t << "&" << s->letter() << "ring;"; break;
case DocSymbol::Nbsp: m_t << "&nbsp;"; break; case DocSymbol::Nbsp: m_t << "&nbsp;"; break;
case DocSymbol::AElig: m_t << "&AElig;"; break;
case DocSymbol::Aelig: m_t << "&aelig;"; break;
default: default:
err("Error: unknown symbol found\n"); err("Error: unknown symbol found\n");
} }
...@@ -1009,13 +1011,13 @@ void HtmlDocVisitor::visitPre(DocXRefItem *x) ...@@ -1009,13 +1011,13 @@ void HtmlDocVisitor::visitPre(DocXRefItem *x)
bool anonymousEnum = x->file()=="@"; bool anonymousEnum = x->file()=="@";
if (!anonymousEnum) if (!anonymousEnum)
{ {
m_t << "<dl compact><dt><b><a class=\"el\" href=\"" m_t << "<dl class=\"" << x->key() << "\" compact><dt><b><a class=\"el\" href=\""
<< x->relPath() << x->file() << Doxygen::htmlFileExtension << x->relPath() << x->file() << Doxygen::htmlFileExtension
<< "#" << x->anchor() << "\">"; << "#" << x->anchor() << "\">";
} }
else else
{ {
m_t << "<dl compact><dt><b>"; m_t << "<dl class=\"" << x->key() << "\" compact><dt><b>";
} }
filter(x->title()); filter(x->title());
m_t << ":"; m_t << ":";
......
...@@ -194,6 +194,8 @@ void LatexDocVisitor::visit(DocSymbol *s) ...@@ -194,6 +194,8 @@ void LatexDocVisitor::visit(DocSymbol *s)
case DocSymbol::Cedil: m_t << "\\c{" << s->letter() << "}"; break; case DocSymbol::Cedil: m_t << "\\c{" << s->letter() << "}"; break;
case DocSymbol::Ring: m_t << "\\" << s->letter() << s->letter(); break; case DocSymbol::Ring: m_t << "\\" << s->letter() << s->letter(); break;
case DocSymbol::Nbsp: m_t << "~"; break; case DocSymbol::Nbsp: m_t << "~"; break;
case DocSymbol::AElig: m_t << "{\\AE}"; break;
case DocSymbol::Aelig: m_t << "{\\ae}"; break;
default: default:
err("Error: unknown symbol found\n"); err("Error: unknown symbol found\n");
} }
......
...@@ -304,6 +304,7 @@ static void writeDefaultStyleSheetPart1(QTextStream &t) ...@@ -304,6 +304,7 @@ static void writeDefaultStyleSheetPart1(QTextStream &t)
t << "\\ProvidesPackage{doxygen}\n"; t << "\\ProvidesPackage{doxygen}\n";
t << "\\RequirePackage{calc}\n"; t << "\\RequirePackage{calc}\n";
t << "\\RequirePackage{array}\n"; t << "\\RequirePackage{array}\n";
t << "\\RequirePackage{color}\n";
t << "\\pagestyle{fancyplain}\n"; t << "\\pagestyle{fancyplain}\n";
//t << "\\addtolength{\\headwidth}{\\marginparsep}\n"; //t << "\\addtolength{\\headwidth}{\\marginparsep}\n";
//t << "\\addtolength{\\headwidth}{\\marginparwidth}\n"; //t << "\\addtolength{\\headwidth}{\\marginparwidth}\n";
......
...@@ -561,6 +561,8 @@ void PerlModDocVisitor::visit(DocSymbol *sy) ...@@ -561,6 +561,8 @@ void PerlModDocVisitor::visit(DocSymbol *sy)
case DocSymbol::Reg: symbol = "registered"; break; case DocSymbol::Reg: symbol = "registered"; break;
case DocSymbol::Szlig: symbol = "szlig"; break; case DocSymbol::Szlig: symbol = "szlig"; break;
case DocSymbol::Apos: s = "\\\'"; break; case DocSymbol::Apos: s = "\\\'"; break;
case DocSymbol::Aelig: symbol = "aelig"; break;
case DocSymbol::AElig: symbol = "AElig"; break;
case DocSymbol::Unknown: case DocSymbol::Unknown:
err("Error: unknown symbol found\n"); err("Error: unknown symbol found\n");
break; break;
......
...@@ -83,6 +83,8 @@ class PrintDocVisitor : public DocVisitor ...@@ -83,6 +83,8 @@ class PrintDocVisitor : public DocVisitor
case DocSymbol::Cedil: printf("&%ccedul;",s->letter()); break; case DocSymbol::Cedil: printf("&%ccedul;",s->letter()); break;
case DocSymbol::Ring: printf("&%cring;",s->letter()); break; case DocSymbol::Ring: printf("&%cring;",s->letter()); break;
case DocSymbol::Nbsp: printf("&nbsp;"); break; case DocSymbol::Nbsp: printf("&nbsp;"); break;
case DocSymbol::Aelig: printf("&aelig;"); break;
case DocSymbol::AElig: printf("&AElig;"); break;
default: default:
printf("Error: unknown symbol found\n"); printf("Error: unknown symbol found\n");
} }
......
...@@ -219,6 +219,8 @@ void RTFDocVisitor::visit(DocSymbol *s) ...@@ -219,6 +219,8 @@ void RTFDocVisitor::visit(DocSymbol *s)
break; break;
case DocSymbol::Szlig: m_t << "\337"; break; case DocSymbol::Szlig: m_t << "\337"; break;
case DocSymbol::Nbsp: m_t << "\\~ "; break; case DocSymbol::Nbsp: m_t << "\\~ "; break;
case DocSymbol::Aelig: m_t << "\346"; break;
case DocSymbol::AElig: m_t << "\306"; break;
default: default:
err("Error: unknown symbol found\n"); err("Error: unknown symbol found\n");
} }
......
...@@ -554,7 +554,7 @@ static int yyread(char *buf,int max_size) ...@@ -554,7 +554,7 @@ static int yyread(char *buf,int max_size)
/* start command character */ /* start command character */
CMD ("\\"|"@") CMD ("\\"|"@")
SECTIONCMD {CMD}("image"|"author"|"internal"|"version"|"date"|"deprecated"|"param"|"exception"|"return"[s]?|"retval"|"bug"|"warning"|"par"|"sa"|"see"|"pre"|"post"|"invariant"|"note"|"remark"[s]?|"todo"|"test"|"xrefitem"|"ingroup"|"callgraph"|"callergraph"|"latexonly"|"htmlonly"|"xmlonly"|"{"|"verbatim"|"dotfile"|"dot"|"defgroup"|"addtogroup"|"weakgroup"|"class"|"namespace"|"union"|"struct"|"fn"|"var"|"details"|"typedef"|"def"|"overload")|("<"{PRE}">") SECTIONCMD {CMD}("image"|"author"|"internal"|"version"|"date"|"deprecated"|"param"|"exception"|"return"[s]?|"retval"|"bug"|"warning"|"par"|"sa"|"see"|"pre"|"post"|"invariant"|"note"|"remark"[s]?|"todo"|"test"|"xrefitem"|"ingroup"|"callgraph"|"callergraph"|"latexonly"|"htmlonly"|"xmlonly"|"manonly"|"{"|"verbatim"|"dotfile"|"dot"|"defgroup"|"addtogroup"|"weakgroup"|"class"|"namespace"|"union"|"struct"|"fn"|"var"|"details"|"typedef"|"def"|"overload")|("<"{PRE}">")
BN [ \t\n\r] BN [ \t\n\r]
BL [ \t\r]*"\n" BL [ \t\r]*"\n"
B [ \t] B [ \t]
...@@ -3623,7 +3623,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) ...@@ -3623,7 +3623,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
fullArgString+=yytext; fullArgString+=yytext;
BEGIN(CopyArgVerbatim); BEGIN(CopyArgVerbatim);
} }
<CopyArgVerbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddot"|"endcode"|"f$"|"f]"|"f}")/[^a-z_A-Z0-9] { // end of verbatim block <CopyArgVerbatim>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"endmanonly"|"enddot"|"endcode"|"f$"|"f]"|"f}")/[^a-z_A-Z0-9] { // end of verbatim block
fullArgString+=yytext; fullArgString+=yytext;
if (yytext[1]=='f') // end of formula if (yytext[1]=='f') // end of formula
{ {
...@@ -5144,7 +5144,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) ...@@ -5144,7 +5144,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?)
docBlock+=yytext; docBlock+=yytext;
BEGIN(DocBlock); BEGIN(DocBlock);
} }
<DocCopyBlock>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"enddot"|"endcode")/[^a-z_A-Z0-9] { // end of verbatim block <DocCopyBlock>[\\@]("endverbatim"|"endlatexonly"|"endhtmlonly"|"endxmlonly"|"endmanonly"|"enddot"|"endcode")/[^a-z_A-Z0-9] { // end of verbatim block
docBlock+=yytext; docBlock+=yytext;
if (&yytext[4]==docBlockName) if (&yytext[4]==docBlockName)
{ {
......
...@@ -55,6 +55,8 @@ void TextDocVisitor::visit(DocSymbol *s) ...@@ -55,6 +55,8 @@ void TextDocVisitor::visit(DocSymbol *s)
case DocSymbol::Cedil: m_t << "&" << s->letter() << "cedil;"; break; case DocSymbol::Cedil: m_t << "&" << s->letter() << "cedil;"; break;
case DocSymbol::Ring: m_t << "&" << s->letter() << "ring;"; break; case DocSymbol::Ring: m_t << "&" << s->letter() << "ring;"; break;
case DocSymbol::Nbsp: m_t << "&nbsp;"; break; case DocSymbol::Nbsp: m_t << "&nbsp;"; break;
case DocSymbol::Aelig: m_t << "&aelig;"; break;
case DocSymbol::AElig: m_t << "&AElig;"; break;
default: default:
err("Error: unknown symbol found\n"); err("Error: unknown symbol found\n");
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
* Updated from 1.3.8 to 1.4.6 by Guillermo Ballester Valor (May-05-2006) * Updated from 1.3.8 to 1.4.6 by Guillermo Ballester Valor (May-05-2006)
* Updated fron 1.4.6 to 1.5.1 by Bartomeu Creus Navarro (22-enero-2007) * Updated fron 1.4.6 to 1.5.1 by Bartomeu Creus Navarro (22-enero-2007)
* Updated fron 1.5.1 to 1.5.5 by Bartomeu Creus Navarro (5-febrero-2008) * Updated fron 1.5.1 to 1.5.5 by Bartomeu Creus Navarro (5-febrero-2008)
* Updated from 1.5.5 to 1.5.6, converted to utf-8 output by David Vaquero (28-febrero-2009) * Updated fron 1.5.5 to 1.5.8 by Bartomeu Creus Navarro (10-abril-2009)
*/ */
#ifndef TRANSLATOR_ES_H #ifndef TRANSLATOR_ES_H
...@@ -67,7 +67,7 @@ class TranslatorSpanish : public Translator ...@@ -67,7 +67,7 @@ class TranslatorSpanish : public Translator
/*! return the language charset. This will be used for the HTML output */ /*! return the language charset. This will be used for the HTML output */
virtual QCString idLanguageCharset() virtual QCString idLanguageCharset()
{ {
return "utf-8"; return "iso-8859-1";
} }
// --- Language translation methods ------------------- // --- Language translation methods -------------------
...@@ -82,36 +82,36 @@ class TranslatorSpanish : public Translator ...@@ -82,36 +82,36 @@ class TranslatorSpanish : public Translator
/*! header that is put before the detailed description of files, classes and namespaces. */ /*! header that is put before the detailed description of files, classes and namespaces. */
virtual QCString trDetailedDescription() virtual QCString trDetailedDescription()
{ return "Descripción detallada"; } { return "Descripción detallada"; }
/*! header that is put before the list of typedefs. */ /*! header that is put before the list of typedefs. */
virtual QCString trMemberTypedefDocumentation() virtual QCString trMemberTypedefDocumentation()
{ return "Documentación de los 'Tipos Definidos' miembros de la clase"; } { return "Documentación de los 'Tipos Definidos' miembros de la clase"; }
/*! header that is put before the list of enumerations. */ /*! header that is put before the list of enumerations. */
virtual QCString trMemberEnumerationDocumentation() virtual QCString trMemberEnumerationDocumentation()
{ return "Documentación de las enumeraciones miembro de la clase"; } { return "Documentación de las enumeraciones miembro de la clase"; }
/*! header that is put before the list of member functions. */ /*! header that is put before the list of member functions. */
virtual QCString trMemberFunctionDocumentation() virtual QCString trMemberFunctionDocumentation()
{ return "Documentación de las funciones miembro"; } { return "Documentación de las funciones miembro"; }
/*! header that is put before the list of member attributes. */ /*! header that is put before the list of member attributes. */
virtual QCString trMemberDataDocumentation() virtual QCString trMemberDataDocumentation()
{ {
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{ {
return "Documentación de los campos"; return "Documentación de los campos";
} }
else else
{ {
return "Documentación de los datos miembro"; return "Documentación de los datos miembro";
} }
} }
/*! this is the text of a link put after brief descriptions. */ /*! this is the text of a link put after brief descriptions. */
virtual QCString trMore() virtual QCString trMore()
{ return "Más..."; } { return "Más..."; }
/*! put in the class documentation */ /*! put in the class documentation */
virtual QCString trListOfAllMembers() virtual QCString trListOfAllMembers()
...@@ -133,15 +133,15 @@ class TranslatorSpanish : public Translator ...@@ -133,15 +133,15 @@ class TranslatorSpanish : public Translator
* parameter s is name of the project name. * parameter s is name of the project name.
*/ */
virtual QCString trGeneratedAutomatically(const char *s) virtual QCString trGeneratedAutomatically(const char *s)
{ QCString result="Generado automáticamente por Doxygen"; { QCString result="Generado automáticamente por Doxygen";
if (s) result+=(QCString)" para "+s; if (s) result+=(QCString)" para "+s;
result+=" del código fuente."; result+=" del código fuente.";
return result; return result;
} }
/*! put after an enum name in the list of all members */ /*! put after an enum name in the list of all members */
virtual QCString trEnumName() virtual QCString trEnumName()
{ return "nombre de la enumeración"; } { return "nombre de la enumeración"; }
/*! put after an enum value in the list of all members */ /*! put after an enum value in the list of all members */
virtual QCString trEnumValue() virtual QCString trEnumValue()
...@@ -157,11 +157,11 @@ class TranslatorSpanish : public Translator ...@@ -157,11 +157,11 @@ class TranslatorSpanish : public Translator
* compounds or files (see the \\group command). * compounds or files (see the \\group command).
*/ */
virtual QCString trModules() virtual QCString trModules()
{ return "Módulos"; } { return "Módulos"; }
/*! This is put above each page as a link to the class hierarchy */ /*! This is put above each page as a link to the class hierarchy */
virtual QCString trClassHierarchy() virtual QCString trClassHierarchy()
{ return "Jerarquía de la clase"; } { return "Jerarquía de la clase"; }
/*! This is put above each page as a link to the list of annotated classes */ /*! This is put above each page as a link to the list of annotated classes */
virtual QCString trCompoundList() virtual QCString trCompoundList()
...@@ -208,7 +208,7 @@ class TranslatorSpanish : public Translator ...@@ -208,7 +208,7 @@ class TranslatorSpanish : public Translator
/*! This is put above each page as a link to all related pages. */ /*! This is put above each page as a link to all related pages. */
virtual QCString trRelatedPages() virtual QCString trRelatedPages()
{ return "Páginas relacionadas"; } { return "Páginas relacionadas"; }
/*! This is put above each page as a link to all examples. */ /*! This is put above each page as a link to all examples. */
virtual QCString trExamples() virtual QCString trExamples()
...@@ -221,7 +221,7 @@ class TranslatorSpanish : public Translator ...@@ -221,7 +221,7 @@ class TranslatorSpanish : public Translator
/*! This is an introduction to the class hierarchy. */ /*! This is an introduction to the class hierarchy. */
virtual QCString trClassHierarchyDescription() virtual QCString trClassHierarchyDescription()
{ return "Esta lista de herencias esta ordenada " { return "Esta lista de herencias esta ordenada "
"aproximadamente por orden alfabético:"; "aproximadamente por orden alfabético:";
} }
/*! This is an introduction to the list with all files. */ /*! This is an introduction to the list with all files. */
...@@ -238,12 +238,12 @@ class TranslatorSpanish : public Translator ...@@ -238,12 +238,12 @@ class TranslatorSpanish : public Translator
{ {
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{ {
return "Lista de estructuras con una breve descripción:"; return "Lista de estructuras con una breve descripción:";
} }
else else
{ {
return "Lista de las clases, estructuras, " return "Lista de las clases, estructuras, "
"uniones e interfaces con una breve descripción:"; "uniones e interfaces con una breve descripción:";
} }
} }
...@@ -268,11 +268,11 @@ class TranslatorSpanish : public Translator ...@@ -268,11 +268,11 @@ class TranslatorSpanish : public Translator
{ {
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{ {
result+="la documentación de la estructura/unión para cada campo:"; result+="la documentación de la estructura/unión para cada campo:";
} }
else else
{ {
result+="la documentación de la clase para cada miembro:"; result+="la documentación de la clase para cada miembro:";
} }
} }
else else
...@@ -306,7 +306,7 @@ class TranslatorSpanish : public Translator ...@@ -306,7 +306,7 @@ class TranslatorSpanish : public Translator
if (extractAll) if (extractAll)
result+="a los ficheros a los que corresponden:"; result+="a los ficheros a los que corresponden:";
else else
result+="a la documentación:"; result+="a la documentación:";
return result; return result;
} }
...@@ -316,29 +316,29 @@ class TranslatorSpanish : public Translator ...@@ -316,29 +316,29 @@ class TranslatorSpanish : public Translator
/*! This is an introduction to the page with the list of related pages */ /*! This is an introduction to the page with the list of related pages */
virtual QCString trRelatedPagesDescription() virtual QCString trRelatedPagesDescription()
{ return "Lista de toda la documentación relacionada:"; } { return "Lista de toda la documentación relacionada:"; }
/*! This is an introduction to the page with the list of class/file groups */ /*! This is an introduction to the page with the list of class/file groups */
virtual QCString trModulesDescription() virtual QCString trModulesDescription()
{ return "Lista de todos los módulos:"; } { return "Lista de todos los módulos:"; }
// index titles (the project name is prepended for these) // index titles (the project name is prepended for these)
/*! This is used in HTML as the title of index.html. */ /*! This is used in HTML as the title of index.html. */
virtual QCString trDocumentation() virtual QCString trDocumentation()
{ return "Documentación"; } { return "Documentación"; }
/*! This is used in LaTeX as the title of the chapter with the /*! This is used in LaTeX as the title of the chapter with the
* index of all groups. * index of all groups.
*/ */
virtual QCString trModuleIndex() virtual QCString trModuleIndex()
{ return "Indice de módulos"; } { return "Indice de módulos"; }
/*! This is used in LaTeX as the title of the chapter with the /*! This is used in LaTeX as the title of the chapter with the
* class hierarchy. * class hierarchy.
*/ */
virtual QCString trHierarchicalIndex() virtual QCString trHierarchicalIndex()
{ return "Indice jerárquico"; } { return "Indice jerárquico"; }
/*! This is used in LaTeX as the title of the chapter with the /*! This is used in LaTeX as the title of the chapter with the
* annotated compound index. * annotated compound index.
...@@ -347,11 +347,11 @@ class TranslatorSpanish : public Translator ...@@ -347,11 +347,11 @@ class TranslatorSpanish : public Translator
{ {
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{ {
return "Índice de estructura de datos"; return "Índice de estructura de datos";
} }
else else
{ {
return "Índice de clases"; return "Índice de clases";
} }
} }
...@@ -365,7 +365,7 @@ class TranslatorSpanish : public Translator ...@@ -365,7 +365,7 @@ class TranslatorSpanish : public Translator
* the documentation of all groups. * the documentation of all groups.
*/ */
virtual QCString trModuleDocumentation() virtual QCString trModuleDocumentation()
{ return "Documentación de módulos"; } { return "Documentación de módulos"; }
/*! This is used in LaTeX as the title of the chapter containing /*! This is used in LaTeX as the title of the chapter containing
* the documentation of all classes, structs and unions. * the documentation of all classes, structs and unions.
...@@ -374,11 +374,11 @@ class TranslatorSpanish : public Translator ...@@ -374,11 +374,11 @@ class TranslatorSpanish : public Translator
{ {
if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C")) if (Config_getBool("OPTIMIZE_OUTPUT_FOR_C"))
{ {
return "Documentación de las estructuras de datos"; return "Documentación de las estructuras de datos";
} }
else else
{ {
return "Documentación de las clases"; return "Documentación de las clases";
} }
} }
...@@ -386,19 +386,19 @@ class TranslatorSpanish : public Translator ...@@ -386,19 +386,19 @@ class TranslatorSpanish : public Translator
* the documentation of all files. * the documentation of all files.
*/ */
virtual QCString trFileDocumentation() virtual QCString trFileDocumentation()
{ return "Documentación de archivos"; } { return "Documentación de archivos"; }
/*! This is used in LaTeX as the title of the chapter containing /*! This is used in LaTeX as the title of the chapter containing
* the documentation of all examples. * the documentation of all examples.
*/ */
virtual QCString trExampleDocumentation() virtual QCString trExampleDocumentation()
{ return "Documentación de ejemplos"; } { return "Documentación de ejemplos"; }
/*! This is used in LaTeX as the title of the chapter containing /*! This is used in LaTeX as the title of the chapter containing
* the documentation of all related pages. * the documentation of all related pages.
*/ */
virtual QCString trPageDocumentation() virtual QCString trPageDocumentation()
{ return "Documentación de páginas"; } { return "Documentación de páginas"; }
/*! This is used in LaTeX as the title of the document */ /*! This is used in LaTeX as the title of the document */
virtual QCString trReferenceManual() virtual QCString trReferenceManual()
...@@ -444,43 +444,43 @@ class TranslatorSpanish : public Translator ...@@ -444,43 +444,43 @@ class TranslatorSpanish : public Translator
* list of (global) variables * list of (global) variables
*/ */
virtual QCString trEnumerationValues() virtual QCString trEnumerationValues()
{ return "Valores de la enumeración"; } { return "Valores de la enumeración"; }
/*! This is used in the documentation of a file before the list of /*! This is used in the documentation of a file before the list of
* documentation blocks for defines * documentation blocks for defines
*/ */
virtual QCString trDefineDocumentation() virtual QCString trDefineDocumentation()
{ return "Documentación de las definiciones"; } { return "Documentación de las definiciones"; }
/*! This is used in the documentation of a file/namespace before the list /*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for function prototypes * of documentation blocks for function prototypes
*/ */
virtual QCString trFunctionPrototypeDocumentation() virtual QCString trFunctionPrototypeDocumentation()
{ return "Documentación de las funciones prototipo"; } { return "Documentación de las funciones prototipo"; }
/*! This is used in the documentation of a file/namespace before the list /*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for typedefs * of documentation blocks for typedefs
*/ */
virtual QCString trTypedefDocumentation() virtual QCString trTypedefDocumentation()
{ return "Documentación de los tipos definidos"; } { return "Documentación de los tipos definidos"; }
/*! This is used in the documentation of a file/namespace before the list /*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for enumeration types * of documentation blocks for enumeration types
*/ */
virtual QCString trEnumerationTypeDocumentation() virtual QCString trEnumerationTypeDocumentation()
{ return "Documentación de las enumeraciones"; } { return "Documentación de las enumeraciones"; }
/*! This is used in the documentation of a file/namespace before the list /*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for functions * of documentation blocks for functions
*/ */
virtual QCString trFunctionDocumentation() virtual QCString trFunctionDocumentation()
{ return "Documentación de las funciones"; } { return "Documentación de las funciones"; }
/*! This is used in the documentation of a file/namespace before the list /*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for variables * of documentation blocks for variables
*/ */
virtual QCString trVariableDocumentation() virtual QCString trVariableDocumentation()
{ return "Documentación de las variables"; } { return "Documentación de las variables"; }
/*! This is used in the documentation of a file/namespace/group before /*! This is used in the documentation of a file/namespace/group before
* the list of links to documented compounds * the list of links to documented compounds
...@@ -527,11 +527,11 @@ class TranslatorSpanish : public Translator ...@@ -527,11 +527,11 @@ class TranslatorSpanish : public Translator
/*! this text is generated when the \\warning command is used. */ /*! this text is generated when the \\warning command is used. */
virtual QCString trWarning() virtual QCString trWarning()
{ return "Atención"; } { return "Atención"; }
/*! this text is generated when the \\version command is used. */ /*! this text is generated when the \\version command is used. */
virtual QCString trVersion() virtual QCString trVersion()
{ return "Versión"; } { return "Versión"; }
/*! this text is generated when the \\date command is used. */ /*! this text is generated when the \\date command is used. */
virtual QCString trDate() virtual QCString trDate()
...@@ -543,11 +543,11 @@ class TranslatorSpanish : public Translator ...@@ -543,11 +543,11 @@ class TranslatorSpanish : public Translator
/*! this text is generated when the \\sa command is used. */ /*! this text is generated when the \\sa command is used. */
virtual QCString trSeeAlso() virtual QCString trSeeAlso()
{ return "Ver también"; } { return "Ver también"; }
/*! this text is generated when the \\param command is used. */ /*! this text is generated when the \\param command is used. */
virtual QCString trParameters() virtual QCString trParameters()
{ return "Parámetros"; } { return "Parámetros"; }
/*! this text is generated when the \\exception command is used. */ /*! this text is generated when the \\exception command is used. */
virtual QCString trExceptions() virtual QCString trExceptions()
...@@ -569,8 +569,8 @@ class TranslatorSpanish : public Translator ...@@ -569,8 +569,8 @@ class TranslatorSpanish : public Translator
virtual QCString trNamespaceListDescription(bool extractAll) virtual QCString trNamespaceListDescription(bool extractAll)
{ {
QCString result="Lista de "; QCString result="Lista de ";
if (!extractAll) result+="toda la documentación de "; if (!extractAll) result+="toda la documentación de ";
result+="los namespaces con una breve descripción:"; result+="los namespaces con una breve descripción:";
return result; return result;
} }
...@@ -588,7 +588,7 @@ class TranslatorSpanish : public Translator ...@@ -588,7 +588,7 @@ class TranslatorSpanish : public Translator
* related classes * related classes
*/ */
virtual QCString trRelatedFunctionDocumentation() virtual QCString trRelatedFunctionDocumentation()
{ return "Documentación de las funciones relacionadas y clases amigas"; } { return "Documentación de las funciones relacionadas y clases amigas"; }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// new since 0.49-990425 // new since 0.49-990425
...@@ -605,11 +605,11 @@ class TranslatorSpanish : public Translator ...@@ -605,11 +605,11 @@ class TranslatorSpanish : public Translator
{ {
case ClassDef::Class: result+=" la Clase "; break; case ClassDef::Class: result+=" la Clase "; break;
case ClassDef::Struct: result+=" la Estructura "; break; case ClassDef::Struct: result+=" la Estructura "; break;
case ClassDef::Union: result+=" la Unión "; break; case ClassDef::Union: result+=" la Unión "; break;
case ClassDef::Interface: result+=" la Interfaz "; break; case ClassDef::Interface: result+=" la Interfaz "; break;
case ClassDef::Protocol: result+="l Protocolo "; break; case ClassDef::Protocol: result+="l Protocolo "; break;
case ClassDef::Category: result+=" la Categoria "; break; case ClassDef::Category: result+=" la Categoria "; break;
case ClassDef::Exception: result+=" la Excepción "; break; case ClassDef::Exception: result+=" la Excepción "; break;
} }
result+=(QCString)clName; result+=(QCString)clName;
return result; return result;
...@@ -632,34 +632,34 @@ class TranslatorSpanish : public Translator ...@@ -632,34 +632,34 @@ class TranslatorSpanish : public Translator
} }
virtual QCString trPublicMembers() virtual QCString trPublicMembers()
{ return "Métodos públicos"; } { return "Métodos públicos"; }
virtual QCString trPublicSlots() virtual QCString trPublicSlots()
{ return "Slots públicos"; } { return "Slots públicos"; }
virtual QCString trSignals() virtual QCString trSignals()
{ return "Señales"; } { return "Señales"; }
virtual QCString trStaticPublicMembers() virtual QCString trStaticPublicMembers()
{ return "Métodos públicos estáticos"; } { return "Métodos públicos estáticos"; }
virtual QCString trProtectedMembers() virtual QCString trProtectedMembers()
{ return "Métodos protegidos"; } { return "Métodos protegidos"; }
virtual QCString trProtectedSlots() virtual QCString trProtectedSlots()
{ return "Slots protegidos"; } { return "Slots protegidos"; }
virtual QCString trStaticProtectedMembers() virtual QCString trStaticProtectedMembers()
{ return "Métodos protegidos estáticos"; } { return "Métodos protegidos estáticos"; }
virtual QCString trPrivateMembers() virtual QCString trPrivateMembers()
{ return "Métodos privados"; } { return "Métodos privados"; }
virtual QCString trPrivateSlots() virtual QCString trPrivateSlots()
{ return "Slots privados"; } { return "Slots privados"; }
virtual QCString trStaticPrivateMembers() virtual QCString trStaticPrivateMembers()
{ return "Métodos privados estáticos"; } { return "Métodos privados estáticos"; }
/*! this function is used to produce a comma-separated list of items. /*! this function is used to produce a comma-separated list of items.
* use generateMarker(i) to indicate where item i should be put. * use generateMarker(i) to indicate where item i should be put.
...@@ -726,12 +726,12 @@ class TranslatorSpanish : public Translator ...@@ -726,12 +726,12 @@ class TranslatorSpanish : public Translator
virtual QCString trNamespaceMemberDescription(bool extractAll) virtual QCString trNamespaceMemberDescription(bool extractAll)
{ {
QCString result="Lista de "; QCString result="Lista de ";
if (!extractAll) result+="toda la documentación de "; if (!extractAll) result+="toda la documentación de ";
result+="los miembros del namespace con enlace a "; result+="los miembros del namespace con enlace a ";
if (extractAll) if (extractAll)
result+="los namespace de cada miembro:"; result+="los namespace de cada miembro:";
else else
result+="la documentación de los namespaces pertenecientes a:"; result+="la documentación de los namespaces pertenecientes a:";
return result; return result;
} }
/*! This is used in LaTeX as the title of the chapter with the /*! This is used in LaTeX as the title of the chapter with the
...@@ -744,7 +744,7 @@ class TranslatorSpanish : public Translator ...@@ -744,7 +744,7 @@ class TranslatorSpanish : public Translator
* the documentation of all namespaces. * the documentation of all namespaces.
*/ */
virtual QCString trNamespaceDocumentation() virtual QCString trNamespaceDocumentation()
{ return "Documentación de namespaces"; } { return "Documentación de namespaces"; }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// new since 0.49-990522 // new since 0.49-990522
...@@ -767,16 +767,16 @@ class TranslatorSpanish : public Translator ...@@ -767,16 +767,16 @@ class TranslatorSpanish : public Translator
bool single) bool single)
{ // here s is one of " Class", " Struct" or " Union" { // here s is one of " Class", " Struct" or " Union"
// single is true implies a single file // single is true implies a single file
QCString result=(QCString)"La documentación para est"; QCString result=(QCString)"La documentación para est";
switch(compType) switch(compType)
{ {
case ClassDef::Class: result+="a clase"; break; case ClassDef::Class: result+="a clase"; break;
case ClassDef::Struct: result+="a estructura"; break; case ClassDef::Struct: result+="a estructura"; break;
case ClassDef::Union: result+="a unión"; break; case ClassDef::Union: result+="a unión"; break;
case ClassDef::Interface: result+="e interfaz"; break; case ClassDef::Interface: result+="e interfaz"; break;
case ClassDef::Protocol: result+="e protocolo"; break; case ClassDef::Protocol: result+="e protocolo"; break;
case ClassDef::Category: result+="a categoría"; break; case ClassDef::Category: result+="a categoría"; break;
case ClassDef::Exception: result+="a excepción"; break; case ClassDef::Exception: result+="a excepción"; break;
} }
result+=" fue generada a partir de"; result+=" fue generada a partir de";
if (single) result+="l siguiente fichero:"; if (single) result+="l siguiente fichero:";
...@@ -788,7 +788,7 @@ class TranslatorSpanish : public Translator ...@@ -788,7 +788,7 @@ class TranslatorSpanish : public Translator
* list. * list.
*/ */
virtual QCString trAlphabeticalList() virtual QCString trAlphabeticalList()
{ return "Lista alfabética"; } { return "Lista alfabética"; }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// new since 0.49-990901 // new since 0.49-990901
...@@ -801,7 +801,7 @@ class TranslatorSpanish : public Translator ...@@ -801,7 +801,7 @@ class TranslatorSpanish : public Translator
/*! This is in the (quick) index as a link to the main page (index.html) /*! This is in the (quick) index as a link to the main page (index.html)
*/ */
virtual QCString trMainPage() virtual QCString trMainPage()
{ return "Página principal"; } { return "Página principal"; }
/*! This is used in references to page that are put in the LaTeX /*! This is used in references to page that are put in the LaTeX
* documentation. It should be an abbreviation of the word page. * documentation. It should be an abbreviation of the word page.
...@@ -815,11 +815,11 @@ class TranslatorSpanish : public Translator ...@@ -815,11 +815,11 @@ class TranslatorSpanish : public Translator
virtual QCString trDefinedAtLineInSourceFile() virtual QCString trDefinedAtLineInSourceFile()
{ {
return "Definición en la línea @0 del archivo @1."; return "Definición en la línea @0 del archivo @1.";
} }
virtual QCString trDefinedInSourceFile() virtual QCString trDefinedInSourceFile()
{ {
return "Definición en el archivo @0."; return "Definición en el archivo @0.";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -838,43 +838,43 @@ class TranslatorSpanish : public Translator ...@@ -838,43 +838,43 @@ class TranslatorSpanish : public Translator
/*! this text is put before a collaboration diagram */ /*! this text is put before a collaboration diagram */
virtual QCString trCollaborationDiagram(const char *clName) virtual QCString trCollaborationDiagram(const char *clName)
{ {
return (QCString)"Diagrama de colaboración para "+clName+":"; return (QCString)"Diagrama de colaboración para "+clName+":";
} }
/*! this text is put before an include dependency graph */ /*! this text is put before an include dependency graph */
virtual QCString trInclDepGraph(const char *fName) virtual QCString trInclDepGraph(const char *fName)
{ {
return (QCString)"Dependencia gráfica adjunta para "+fName+":"; return (QCString)"Dependencia gráfica adjunta para "+fName+":";
} }
/*! header that is put before the list of constructor/destructors. */ /*! header that is put before the list of constructor/destructors. */
virtual QCString trConstructorDocumentation() virtual QCString trConstructorDocumentation()
{ {
return "Documentación del constructor y destructor"; return "Documentación del constructor y destructor";
} }
/*! Used in the file documentation to point to the corresponding sources. */ /*! Used in the file documentation to point to the corresponding sources. */
virtual QCString trGotoSourceCode() virtual QCString trGotoSourceCode()
{ {
return "Ir al código fuente de este archivo."; return "Ir al código fuente de este archivo.";
} }
/*! Used in the file sources to point to the corresponding documentation. */ /*! Used in the file sources to point to the corresponding documentation. */
virtual QCString trGotoDocumentation() virtual QCString trGotoDocumentation()
{ {
return "Ir a la documentación de este archivo."; return "Ir a la documentación de este archivo.";
} }
/*! Text for the \\pre command */ /*! Text for the \\pre command */
virtual QCString trPrecondition() virtual QCString trPrecondition()
{ {
return "Precondición"; return "Precondición";
} }
/*! Text for the \\post command */ /*! Text for the \\post command */
virtual QCString trPostcondition() virtual QCString trPostcondition()
{ {
return "Postcondición"; return "Postcondición";
} }
/*! Text for the \\invariant command */ /*! Text for the \\invariant command */
...@@ -892,27 +892,27 @@ class TranslatorSpanish : public Translator ...@@ -892,27 +892,27 @@ class TranslatorSpanish : public Translator
/*! Text used the source code in the file index */ /*! Text used the source code in the file index */
virtual QCString trCode() virtual QCString trCode()
{ {
return "código"; return "código";
} }
virtual QCString trGraphicalHierarchy() virtual QCString trGraphicalHierarchy()
{ {
return "Representación gráfica de la clase"; return "Representación gráfica de la clase";
} }
virtual QCString trGotoGraphicalHierarchy() virtual QCString trGotoGraphicalHierarchy()
{ {
return "Ir a la representación gráfica de la jerarquía de la clase"; return "Ir a la representación gráfica de la jerarquía de la clase";
} }
virtual QCString trGotoTextualHierarchy() virtual QCString trGotoTextualHierarchy()
{ {
return "Ir a la jerarquía textual de la clase"; return "Ir a la jerarquía textual de la clase";
} }
virtual QCString trPageIndex() virtual QCString trPageIndex()
{ {
return "Página indice"; return "Página indice";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -926,7 +926,7 @@ class TranslatorSpanish : public Translator ...@@ -926,7 +926,7 @@ class TranslatorSpanish : public Translator
virtual QCString trPublicTypes() virtual QCString trPublicTypes()
{ {
return "Tipos públicos"; return "Tipos públicos";
} }
virtual QCString trPublicAttribs() virtual QCString trPublicAttribs()
...@@ -937,13 +937,13 @@ class TranslatorSpanish : public Translator ...@@ -937,13 +937,13 @@ class TranslatorSpanish : public Translator
} }
else else
{ {
return "Atributos públicos"; return "Atributos públicos";
} }
} }
virtual QCString trStaticPublicAttribs() virtual QCString trStaticPublicAttribs()
{ {
return "Atributos públicos estáticos"; return "Atributos públicos estáticos";
} }
virtual QCString trProtectedTypes() virtual QCString trProtectedTypes()
...@@ -958,7 +958,7 @@ class TranslatorSpanish : public Translator ...@@ -958,7 +958,7 @@ class TranslatorSpanish : public Translator
virtual QCString trStaticProtectedAttribs() virtual QCString trStaticProtectedAttribs()
{ {
return "Atributos protegidos estáticos"; return "Atributos protegidos estáticos";
} }
virtual QCString trPrivateTypes() virtual QCString trPrivateTypes()
...@@ -973,7 +973,7 @@ class TranslatorSpanish : public Translator ...@@ -973,7 +973,7 @@ class TranslatorSpanish : public Translator
virtual QCString trStaticPrivateAttribs() virtual QCString trStaticPrivateAttribs()
{ {
return "Atributos privados estáticos"; return "Atributos privados estáticos";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1008,12 +1008,12 @@ class TranslatorSpanish : public Translator ...@@ -1008,12 +1008,12 @@ class TranslatorSpanish : public Translator
virtual QCString trAttention() virtual QCString trAttention()
{ {
return "Atención"; return "Atención";
} }
virtual QCString trInclByDepGraph() virtual QCString trInclByDepGraph()
{ {
return "Gráfico de los archivos que directa o " return "Gráfico de los archivos que directa o "
"indirectamente incluyen a este archivo:"; "indirectamente incluyen a este archivo:";
} }
...@@ -1029,7 +1029,7 @@ class TranslatorSpanish : public Translator ...@@ -1029,7 +1029,7 @@ class TranslatorSpanish : public Translator
/*! title of the graph legend page */ /*! title of the graph legend page */
QCString trLegendTitle() QCString trLegendTitle()
{ {
return "Leyenda del Gráfico"; return "Leyenda del Gráfico";
} }
/*! page explaining how the dot graph's should be interpreted /*! page explaining how the dot graph's should be interpreted
...@@ -1038,13 +1038,13 @@ class TranslatorSpanish : public Translator ...@@ -1038,13 +1038,13 @@ class TranslatorSpanish : public Translator
virtual QCString trLegendDocs() virtual QCString trLegendDocs()
{ {
return return
"Esta página explica como interpretar los gráficos que son generados " "Esta página explica como interpretar los gráficos que son generados "
"por doxygen.<p>\n" "por doxygen.<p>\n"
"Considere el siguiente ejemplo:\n" "Considere el siguiente ejemplo:\n"
"\\code\n" "\\code\n"
"/*! Clase invisible por truncamiento */\n" "/*! Clase invisible por truncamiento */\n"
"class Invisible { };\n\n" "class Invisible { };\n\n"
"/*! Clase truncada, relación de herencia escondida */\n" "/*! Clase truncada, relación de herencia escondida */\n"
"class Truncated : public Invisible { };\n\n" "class Truncated : public Invisible { };\n\n"
"/* Clase no documentada con comentarios de doxygen */\n" "/* Clase no documentada con comentarios de doxygen */\n"
"class Undocumented { };\n\n" "class Undocumented { };\n\n"
...@@ -1069,31 +1069,31 @@ class TranslatorSpanish : public Translator ...@@ -1069,31 +1069,31 @@ class TranslatorSpanish : public Translator
" Used *m_usedClass;\n" " Used *m_usedClass;\n"
"};\n" "};\n"
"\\endcode\n" "\\endcode\n"
"Si la etiqueta \\c MAX_DOT_GRAPH_HEIGHT en el archivo de configuración " "Si la etiqueta \\c MAX_DOT_GRAPH_HEIGHT en el archivo de configuración "
"tiene valor 240 resultará en el siguiente gráfico:" "tiene valor 240 resultará en el siguiente gráfico:"
"<p><center><img alt=\"\" src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n" "<p><center><img alt=\"\" src=\"graph_legend."+Config_getEnum("DOT_IMAGE_FORMAT")+"\"></center>\n"
"<p>\n" "<p>\n"
"Las cajas en el gráfico arriba tienen el significado que sigue:\n" "Las cajas en el gráfico arriba tienen el significado que sigue:\n"
"<ul>\n" "<ul>\n"
"<li>Una caja llena negra representa la estructura o clase para la cuál" "<li>Una caja llena negra representa la estructura o clase para la cuál"
"se generá el gráfico.\n" "se generó el gráfico.\n"
"<li>Una caja con borde negro señala una estructura o clase documentada.\n" "<li>Una caja con borde negro señala una estructura o clase documentada.\n"
"<li>Una caja con borde griz señala una estructura o clase no documentada.\n" "<li>Una caja con borde griz señala una estructura o clase no documentada.\n"
"<li>una caja con borde rojo señala una estructura o clase documentada" "<li>una caja con borde rojo señala una estructura o clase documentada"
" de la cuál no toda las relaciones de jerarquía/contenido son " " de la cuál no toda las relaciones de jerarquía/contenido son "
"mostradas. El gráfico sera truncado si este no calza dentro de los " "mostradas. El gráfico sera truncado si este no calza dentro de los "
"límites especificados." "límites especificados."
"</ul>\n" "</ul>\n"
"Las flechas tienen el siguiente significado:\n" "Las flechas tienen el siguiente significado:\n"
"<ul>\n" "<ul>\n"
"<li>Una flecha azul oscuro es usada para visualizar una relación herencia publica entre dos clases.\n" "<li>Una flecha azul oscuro es usada para visualizar una relación herencia publica entre dos clases.\n"
"<li>Una flecha verde oscura es usada para herencia protegida.\n" "<li>Una flecha verde oscura es usada para herencia protegida.\n"
"<li>Una flecha rojo oscura es usada para herencia privada.\n" "<li>Una flecha rojo oscura es usada para herencia privada.\n"
"<li>Una flecha segmentada púrpura se usa si la clase es contenida o " "<li>Una flecha segmentada púrpura se usa si la clase es contenida o "
"usada por otra clase. La flecha está etiquetada por la variable " "usada por otra clase. La flecha está etiquetada por la variable "
"con que se accede a la clase o estructura apuntada. \n" "con que se accede a la clase o estructura apuntada. \n"
"<li>Una flecha segmentada amarilla indica la relación entre una instancia template y la clase template de la que se ha instanciado." "<li>Una flecha segmentada amarilla indica la relación entre una instancia template y la clase template de la que se ha instanciado."
" La flecha se etiqueta con los parámetros con que se llama al template.\n" " La flecha se etiqueta con los parámetros con que se llama al template.\n"
"</ul>\n"; "</ul>\n";
} }
...@@ -1126,7 +1126,7 @@ class TranslatorSpanish : public Translator ...@@ -1126,7 +1126,7 @@ class TranslatorSpanish : public Translator
/*! Used as a section header for KDE-2 IDL methods */ /*! Used as a section header for KDE-2 IDL methods */
virtual QCString trDCOPMethods() virtual QCString trDCOPMethods()
{ {
return "Métodos DCOP"; return "Métodos DCOP";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1142,7 +1142,7 @@ class TranslatorSpanish : public Translator ...@@ -1142,7 +1142,7 @@ class TranslatorSpanish : public Translator
/*! Used as a section header for IDL property documentation */ /*! Used as a section header for IDL property documentation */
virtual QCString trPropertyDocumentation() virtual QCString trPropertyDocumentation()
{ {
return "Documentación de Propiedades"; return "Documentación de Propiedades";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1177,7 +1177,7 @@ class TranslatorSpanish : public Translator ...@@ -1177,7 +1177,7 @@ class TranslatorSpanish : public Translator
/*! The description of the package index page */ /*! The description of the package index page */
virtual QCString trPackageListDescription() virtual QCString trPackageListDescription()
{ {
return "Aquí van los paquetes con una breve descripción (si está disponible):"; return "Aquí van los paquetes con una breve descripción (si etá disponible):";
} }
/*! The link name in the Quick links header for each page */ /*! The link name in the Quick links header for each page */
...@@ -1254,7 +1254,7 @@ class TranslatorSpanish : public Translator ...@@ -1254,7 +1254,7 @@ class TranslatorSpanish : public Translator
/*! Used as header RTF general index */ /*! Used as header RTF general index */
virtual QCString trRTFGeneralIndex() virtual QCString trRTFGeneralIndex()
{ {
return "Índice"; return "Índice";
} }
/*! This is used for translation of the word that will possibly /*! This is used for translation of the word that will possibly
...@@ -1285,9 +1285,8 @@ class TranslatorSpanish : public Translator ...@@ -1285,9 +1285,8 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trNamespace(bool first_capital, bool singular) virtual QCString trNamespace(bool first_capital, bool singular)
{ {
QCString result((first_capital ? "Espacio" : "espacio")); QCString result((first_capital ? "Namespace" : "namespace"));
if (!singular) result+="s"; if (!singular) result+="s";
result+=" de nombres";
return result; return result;
} }
...@@ -1308,7 +1307,7 @@ class TranslatorSpanish : public Translator ...@@ -1308,7 +1307,7 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trPage(bool first_capital, bool singular) virtual QCString trPage(bool first_capital, bool singular)
{ {
QCString result((first_capital ? "Página" : "página")); QCString result((first_capital ? "Página" : "página"));
if (!singular) result+="s"; if (!singular) result+="s";
return result; return result;
} }
...@@ -1418,7 +1417,7 @@ class TranslatorSpanish : public Translator ...@@ -1418,7 +1417,7 @@ class TranslatorSpanish : public Translator
/*! Header used for the documentation section of a class' events. */ /*! Header used for the documentation section of a class' events. */
virtual QCString trEventDocumentation() virtual QCString trEventDocumentation()
{ {
return "Documentación de los Eventos"; return "Documentación de los Eventos";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1445,7 +1444,7 @@ class TranslatorSpanish : public Translator ...@@ -1445,7 +1444,7 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trStaticPackageMembers() virtual QCString trStaticPackageMembers()
{ {
return "Funciones Estáticas del Paquete"; return "Funciones Estáticas del Paquete";
} }
/*! Used as a heading for a list of Java class variables with package /*! Used as a heading for a list of Java class variables with package
...@@ -1461,7 +1460,7 @@ class TranslatorSpanish : public Translator ...@@ -1461,7 +1460,7 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trStaticPackageAttribs() virtual QCString trStaticPackageAttribs()
{ {
return "Atributos Estáticos del Paquete"; return "Atributos Estáticos del Paquete";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1479,7 +1478,7 @@ class TranslatorSpanish : public Translator ...@@ -1479,7 +1478,7 @@ class TranslatorSpanish : public Translator
/*! Put in front of the call graph for a function. */ /*! Put in front of the call graph for a function. */
virtual QCString trCallGraph() virtual QCString trCallGraph()
{ {
return "Gráfico de llamadas para esta función:"; return "Gráfico de llamadas para esta función:";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1500,7 +1499,7 @@ class TranslatorSpanish : public Translator ...@@ -1500,7 +1499,7 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trSearchResultsTitle() virtual QCString trSearchResultsTitle()
{ {
return "Resultados de la Búsqueda"; return "Resultados de la Búsqueda";
} }
/*! This string is put just before listing the search results. The /*! This string is put just before listing the search results. The
...@@ -1515,15 +1514,15 @@ class TranslatorSpanish : public Translator ...@@ -1515,15 +1514,15 @@ class TranslatorSpanish : public Translator
{ {
if (numDocuments==0) if (numDocuments==0)
{ {
return "Disculpe, no se encontraron documentos que coincidan con su búsqueda."; return "Disculpe, no se encontraron documentos que coincidan con su búsqueda.";
} }
else if (numDocuments==1) else if (numDocuments==1)
{ {
return "Se encontró <b>1</b> documento que coincide con su búsqueda."; return "Se encontró <b>1</b> documento que coincide con su búsqueda.";
} }
else else
{ {
return "Se encontraron <b>$num</b> documentos que coinciden con su búsqueda. " return "Se encontraron <b>$num</b> documentos que coinciden con su búsqueda. "
"Se muestran los mejores resultados primero."; "Se muestran los mejores resultados primero.";
} }
} }
...@@ -1555,13 +1554,13 @@ class TranslatorSpanish : public Translator ...@@ -1555,13 +1554,13 @@ class TranslatorSpanish : public Translator
* hierarchy. * hierarchy.
*/ */
virtual QCString trDirIndex() virtual QCString trDirIndex()
{ return "Jerarquía de Directorio"; } { return "Jerarquía de Directorio"; }
/*! This is used as the name of the chapter containing the documentation /*! This is used as the name of the chapter containing the documentation
* of the directories. * of the directories.
*/ */
virtual QCString trDirDocumentation() virtual QCString trDirDocumentation()
{ return "Documentación de Directorio"; } { return "Documentación de Directorio"; }
/*! This is used as the title of the directory index and also in the /*! This is used as the title of the directory index and also in the
* Quick links of an HTML page, to link to the directory hierarchy. * Quick links of an HTML page, to link to the directory hierarchy.
...@@ -1573,8 +1572,8 @@ class TranslatorSpanish : public Translator ...@@ -1573,8 +1572,8 @@ class TranslatorSpanish : public Translator
* and the fact that it is sorted alphabetically per level * and the fact that it is sorted alphabetically per level
*/ */
virtual QCString trDirDescription() virtual QCString trDirDescription()
{ return "La jeraquía de este directorio está ordenada" { return "La jeraquía de este directorio está ordenada"
" alfabéticamente, de manera aproximada:"; " alfabéticamente, de manera aproximada:";
} }
/*! This returns the title of a directory page. The name of the /*! This returns the title of a directory page. The name of the
...@@ -1606,9 +1605,9 @@ class TranslatorSpanish : public Translator ...@@ -1606,9 +1605,9 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trOverloadText() virtual QCString trOverloadText()
{ {
return "Esta es una función miembro sobrecargada que se " return "Esta es una función miembro sobrecargada que se "
"suministra por conveniencia. Difiere de la anterior " "suministra por conveniencia. Difiere de la anterior "
"función solamente en los argumentos que acepta."; "función solamente en los argumentos que acepta.";
} }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
...@@ -1618,28 +1617,28 @@ class TranslatorSpanish : public Translator ...@@ -1618,28 +1617,28 @@ class TranslatorSpanish : public Translator
/*! This is used to introduce a caller (or called-by) graph */ /*! This is used to introduce a caller (or called-by) graph */
virtual QCString trCallerGraph() virtual QCString trCallerGraph()
{ {
return "Gráfico de llamadas a esta función:"; return "Gráfico de llamadas a esta función:";
} }
/*! This is used in the documentation of a file/namespace before the list /*! This is used in the documentation of a file/namespace before the list
* of documentation blocks for enumeration values * of documentation blocks for enumeration values
*/ */
virtual QCString trEnumerationValueDocumentation() virtual QCString trEnumerationValueDocumentation()
{ return "Documentación de los valores de la enumeración"; } { return "Documentación de los valores de la enumeración"; }
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// new since 1.5.4 (mainly for Fortran) // new since 1.5.4 (mainly for Fortran)
////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////
// De parte de Bartomeu: // De parte de Bartomeu:
// No conozco el Fortran, salvo un par de ejercicios en la universidad // No conozco el Fortran, salvo un par de ejercicios en la universidad
// hace muchos años. Por lo tanto, las traducciones son del inglés // hace muchos años. Por lo tanto, las traducciones son del inglés
// al español, no de un usuario de Fortran que puede que haya cosas que no // al español, no de un usuario de Fortran que puede que haya cosas que no
// traduzca o traduzca de otra forma. Que los usuarios de Fortran disculpen // traduzca o traduzca de otra forma. Que los usuarios de Fortran disculpen
// y espero se animen a mejorar mi traducción. // y espero se animen a mejorar mi traducción.
/*! header that is put before the list of member subprograms (Fortran). */ /*! header that is put before the list of member subprograms (Fortran). */
virtual QCString trMemberFunctionDocumentationFortran() virtual QCString trMemberFunctionDocumentationFortran()
{ return "Documetación de miembros Function/Subroutine"; } { return "Documetación de miembros Function/Subroutine"; }
/*! This is put above each page as a link to the list of annotated data types (Fortran). */ /*! This is put above each page as a link to the list of annotated data types (Fortran). */
virtual QCString trCompoundListFortran() virtual QCString trCompoundListFortran()
...@@ -1651,12 +1650,12 @@ class TranslatorSpanish : public Translator ...@@ -1651,12 +1650,12 @@ class TranslatorSpanish : public Translator
/*! This is an introduction to the annotated compound list (Fortran). */ /*! This is an introduction to the annotated compound list (Fortran). */
virtual QCString trCompoundListDescriptionFortran() virtual QCString trCompoundListDescriptionFortran()
{ return "Aquí están los tipos de datos con una breve descripción:"; } { return "Aquí están los tipos de datos con una breve descripción:"; }
/*! This is an introduction to the page with all data types (Fortran). */ /*! This is an introduction to the page with all data types (Fortran). */
virtual QCString trCompoundMembersDescriptionFortran(bool extractAll) virtual QCString trCompoundMembersDescriptionFortran(bool extractAll)
{ {
QCString result="Aquí tiene una lista de todos "; QCString result="Aquí está una lista de todos ";
result+="los miembros de los tipos de datos "; result+="los miembros de los tipos de datos ";
if (!extractAll) if (!extractAll)
{ {
...@@ -1665,7 +1664,7 @@ class TranslatorSpanish : public Translator ...@@ -1665,7 +1664,7 @@ class TranslatorSpanish : public Translator
result+="con enlaces a "; result+="con enlaces a ";
if (!extractAll) if (!extractAll)
{ {
result+="la documentación de la estructura de datos para cada miembro"; result+="la documentación de la estructura de datos para cada miembro";
} }
else else
{ {
...@@ -1678,13 +1677,13 @@ class TranslatorSpanish : public Translator ...@@ -1678,13 +1677,13 @@ class TranslatorSpanish : public Translator
* annotated compound index (Fortran). * annotated compound index (Fortran).
*/ */
virtual QCString trCompoundIndexFortran() virtual QCString trCompoundIndexFortran()
{ return "Índice de tipos de datos"; } { return "Índice de tipos de datos"; }
/*! This is used in LaTeX as the title of the chapter containing /*! This is used in LaTeX as the title of the chapter containing
* the documentation of all data types (Fortran). * the documentation of all data types (Fortran).
*/ */
virtual QCString trTypeDocumentation() virtual QCString trTypeDocumentation()
{ return "Documentación de tipos de datos"; } { return "Documentación de tipos de datos"; }
/*! This is used in the documentation of a file as a header before the /*! This is used in the documentation of a file as a header before the
* list of (global) subprograms (Fortran). * list of (global) subprograms (Fortran).
...@@ -1696,7 +1695,7 @@ class TranslatorSpanish : public Translator ...@@ -1696,7 +1695,7 @@ class TranslatorSpanish : public Translator
* of documentation blocks for subprograms (Fortran) * of documentation blocks for subprograms (Fortran)
*/ */
virtual QCString trSubprogramDocumentation() virtual QCString trSubprogramDocumentation()
{ return "Documentación de Funciones/Subprogramas"; } { return "Documentación de Funciones/Subprogramas"; }
/*! This is used in the documentation of a file/namespace/group before /*! This is used in the documentation of a file/namespace/group before
* the list of links to documented compounds (Fortran) * the list of links to documented compounds (Fortran)
...@@ -1706,14 +1705,14 @@ class TranslatorSpanish : public Translator ...@@ -1706,14 +1705,14 @@ class TranslatorSpanish : public Translator
/*! used as the title of page containing all the index of all modules (Fortran). */ /*! used as the title of page containing all the index of all modules (Fortran). */
virtual QCString trModulesList() virtual QCString trModulesList()
{ return "Lista de módulos"; } { return "Lista de módulos"; }
/*! used as an introduction to the modules list (Fortran) */ /*! used as an introduction to the modules list (Fortran) */
virtual QCString trModulesListDescription(bool extractAll) virtual QCString trModulesListDescription(bool extractAll)
{ {
QCString result="Lista de todos los módulos "; QCString result="Lista de todos los módulos ";
if (!extractAll) result+="documentados "; if (!extractAll) result+="documentados ";
result+="con una breve descripción:"; result+="con una breve descripción:";
return result; return result;
} }
...@@ -1726,13 +1725,13 @@ class TranslatorSpanish : public Translator ...@@ -1726,13 +1725,13 @@ class TranslatorSpanish : public Translator
if (isTemplate) result+=" la plantilla de"; if (isTemplate) result+=" la plantilla de";
switch(compType) switch(compType)
{ {
case ClassDef::Class: result+="l módulo"; break; case ClassDef::Class: result+="l módulo"; break;
case ClassDef::Struct: result+="l tipo"; break; case ClassDef::Struct: result+="l tipo"; break;
case ClassDef::Union: result+=" la unión"; break; case ClassDef::Union: result+=" la unión"; break;
case ClassDef::Interface: result+=" la interfaz"; break; case ClassDef::Interface: result+=" la interfaz"; break;
case ClassDef::Protocol: result+="l protocolo"; break; case ClassDef::Protocol: result+="l protocolo"; break;
case ClassDef::Category: result+=" la categoría"; break; case ClassDef::Category: result+=" la categoría"; break;
case ClassDef::Exception: result+=" la excepción"; break; case ClassDef::Exception: result+=" la excepción"; break;
} }
result+=(QCString)clName; result+=(QCString)clName;
return result; return result;
...@@ -1741,28 +1740,28 @@ class TranslatorSpanish : public Translator ...@@ -1741,28 +1740,28 @@ class TranslatorSpanish : public Translator
/*! used as the title of the HTML page of a module (Fortran) */ /*! used as the title of the HTML page of a module (Fortran) */
virtual QCString trModuleReference(const char *namespaceName) virtual QCString trModuleReference(const char *namespaceName)
{ {
QCString result="Referencia del módulo "; QCString result="Referencia módulo ";
result+=namespaceName; result+=namespaceName;
return result; return result;
} }
/*! This is put above each page as a link to all members of modules. (Fortran) */ /*! This is put above each page as a link to all members of modules. (Fortran) */
virtual QCString trModulesMembers() virtual QCString trModulesMembers()
{ return "Miembros del módulo"; } { return "Miembros módulo"; }
/*! This is an introduction to the page with all modules members (Fortran) */ /*! This is an introduction to the page with all modules members (Fortran) */
virtual QCString trModulesMemberDescription(bool extractAll) virtual QCString trModulesMemberDescription(bool extractAll)
{ {
QCString result="Lista de todos los miembros del módulo "; QCString result="Lista de todos los miembros del módulo ";
if (!extractAll) result+="documentados "; if (!extractAll) result+="documentados ";
result+="con enlaces "; result+="con enlaces ";
if (extractAll) if (extractAll)
{ {
result+="a la documentación del módulo para cada uno:"; result+="a la documentación del módulo para cada uno:";
} }
else else
{ {
result+="al módulo al que pertenecen:"; result+="al módulo al que pertenecen:";
} }
return result; return result;
} }
...@@ -1771,7 +1770,7 @@ class TranslatorSpanish : public Translator ...@@ -1771,7 +1770,7 @@ class TranslatorSpanish : public Translator
* index of all modules (Fortran). * index of all modules (Fortran).
*/ */
virtual QCString trModulesIndex() virtual QCString trModulesIndex()
{ return "Índice de módulos"; } { return "Índice de módulos"; }
/*! This is used for translation of the word that will possibly /*! This is used for translation of the word that will possibly
* be followed by a single name or by a list of names * be followed by a single name or by a list of names
...@@ -1779,7 +1778,7 @@ class TranslatorSpanish : public Translator ...@@ -1779,7 +1778,7 @@ class TranslatorSpanish : public Translator
*/ */
virtual QCString trModule(bool first_capital, bool singular) virtual QCString trModule(bool first_capital, bool singular)
{ {
QCString result((first_capital ? "Módulo" : "módulo")); QCString result((first_capital ? "Módulo" : "módulo"));
if (!singular) result+="s"; if (!singular) result+="s";
return result; return result;
} }
...@@ -1791,16 +1790,16 @@ class TranslatorSpanish : public Translator ...@@ -1791,16 +1790,16 @@ class TranslatorSpanish : public Translator
bool single) bool single)
{ // here s is one of " Module", " Struct" or " Union" { // here s is one of " Module", " Struct" or " Union"
// single is true implies a single file // single is true implies a single file
QCString result=(QCString)"La documentación para est"; QCString result=(QCString)"La documentación para est";
switch(compType) switch(compType)
{ {
case ClassDef::Class: result+="e módulo"; break; case ClassDef::Class: result+="e módulo"; break;
case ClassDef::Struct: result+="e tipo"; break; case ClassDef::Struct: result+="e tipo"; break;
case ClassDef::Union: result+="a unión"; break; case ClassDef::Union: result+="a unión"; break;
case ClassDef::Interface: result+="e interfaz"; break; case ClassDef::Interface: result+="e interfaz"; break;
case ClassDef::Protocol: result+="e protocolo"; break; case ClassDef::Protocol: result+="e protocolo"; break;
case ClassDef::Category: result+="a categoría"; break; case ClassDef::Category: result+="a categoría"; break;
case ClassDef::Exception: result+="a excepción"; break; case ClassDef::Exception: result+="a excepción"; break;
} }
result+=" fue generada de"; result+=" fue generada de";
if (single) result+="l siguiente fichero:"; if (single) result+="l siguiente fichero:";
......
...@@ -3551,6 +3551,51 @@ void mergeArguments(ArgumentList *srcAl,ArgumentList *dstAl,bool forceNameOverwr ...@@ -3551,6 +3551,51 @@ void mergeArguments(ArgumentList *srcAl,ArgumentList *dstAl,bool forceNameOverwr
} }
} }
static void findMembersWithSpecificName(MemberName *mn,
const char *args,
bool checkStatics,
FileDef *currentFile,
bool checkCV,
QList<MemberDef> &members)
{
//printf(" Function with global scope name `%s' args=`%s'\n",memberName.data(),args);
MemberListIterator mli(*mn);
MemberDef *md;
for (mli.toFirst();(md=mli.current());++mli)
{
FileDef *fd=md->getFileDef();
GroupDef *gd=md->getGroupDef();
//printf(" md->name()=`%s' md->args=`%s' fd=%p gd=%p\n",
// md->name().data(),args,fd,gd);
if (
((gd && gd->isLinkable()) || (fd && fd->isLinkable())) &&
md->getNamespaceDef()==0 && md->isLinkable() &&
(!checkStatics || !md->isStatic() || currentFile==0 || fd==currentFile) // statics must appear in the same file
)
{
//printf(" fd=%p gd=%p args=`%s'\n",fd,gd,args);
bool match=TRUE;
ArgumentList *argList=0;
if (args && !md->isDefine() && strcmp(args,"()")!=0)
{
argList=new ArgumentList;
LockingPtr<ArgumentList> mdAl = md->argumentList();
stringToArgumentList(args,argList);
match=matchArguments2(
md->getOuterScope(),fd,mdAl.pointer(),
Doxygen::globalScope,fd,argList,
checkCV);
delete argList; argList=0;
}
if (match)
{
//printf("Found match!\n");
members.append(md);
}
}
}
}
/*! /*!
* Searches for a member definition given its name `memberName' as a string. * Searches for a member definition given its name `memberName' as a string.
* memberName may also include a (partial) scope to indicate the scope * memberName may also include a (partial) scope to indicate the scope
...@@ -3886,7 +3931,15 @@ bool getDefs(const QCString &scName,const QCString &memberName, ...@@ -3886,7 +3931,15 @@ bool getDefs(const QCString &scName,const QCString &memberName,
//else // no scope => global function //else // no scope => global function
{ {
QList<MemberDef> members; QList<MemberDef> members;
// search for matches with strict static checking
findMembersWithSpecificName(mn,args,TRUE,currentFile,checkCV,members);
if (members.count()==0) // nothing found
{
// search again without strict static checking
findMembersWithSpecificName(mn,args,FALSE,currentFile,checkCV,members);
}
#if 0
//printf(" Function with global scope name `%s' args=`%s'\n",memberName.data(),args); //printf(" Function with global scope name `%s' args=`%s'\n",memberName.data(),args);
MemberListIterator mli(*mn); MemberListIterator mli(*mn);
for (mli.toFirst();(md=mli.current());++mli) for (mli.toFirst();(md=mli.current());++mli)
...@@ -3897,7 +3950,8 @@ bool getDefs(const QCString &scName,const QCString &memberName, ...@@ -3897,7 +3950,8 @@ bool getDefs(const QCString &scName,const QCString &memberName,
// md->name().data(),args,fd,gd); // md->name().data(),args,fd,gd);
if ( if (
((gd && gd->isLinkable()) || (fd && fd->isLinkable())) && ((gd && gd->isLinkable()) || (fd && fd->isLinkable())) &&
md->getNamespaceDef()==0 && md->isLinkable() md->getNamespaceDef()==0 && md->isLinkable() &&
(!md->isStatic() || fd==currentFile) // statics must appear in the same file
) )
{ {
//printf(" fd=%p gd=%p args=`%s'\n",fd,gd,args); //printf(" fd=%p gd=%p args=`%s'\n",fd,gd,args);
...@@ -3921,6 +3975,7 @@ bool getDefs(const QCString &scName,const QCString &memberName, ...@@ -3921,6 +3975,7 @@ bool getDefs(const QCString &scName,const QCString &memberName,
} }
} }
} }
#endif
if (members.count()!=1 && args && !strcmp(args,"()")) if (members.count()!=1 && args && !strcmp(args,"()"))
{ {
// no exact match found, but if args="()" an arbitrary // no exact match found, but if args="()" an arbitrary
...@@ -3942,32 +3997,9 @@ bool getDefs(const QCString &scName,const QCString &memberName, ...@@ -3942,32 +3997,9 @@ bool getDefs(const QCString &scName,const QCString &memberName,
} }
} }
//printf("found %d candidate members\n",members.count()); //printf("found %d candidate members\n",members.count());
if (members.count()==1 || currentFile!=0) if (members.count()>0) // at least one match
{ {
md=members.first(); md=members.last();
}
else if (members.count()>1)
{
//printf("Found more than one matching member!\n");
// use some C scoping rules to determine the correct link
// 1. member in current file
// 2. non-static member in different file
if (currentFile==0)
{
bool ambig;
currentFile = findFileDef(Doxygen::inputNameDict,0/*namespaceName*/,ambig);
}
MemberDef *bmd = 0;
for (md=members.first(); md; md=members.next())
{
if (currentFile && md->getBodyDef()==currentFile)
{
bmd = 0;
break;
}
if (!md->isStatic() || Config_getBool("EXTRACT_STATIC")) bmd = md;
}
if (bmd) md=bmd;
} }
if (md) // found a matching global member if (md) // found a matching global member
{ {
...@@ -4062,7 +4094,8 @@ bool resolveRef(/* in */ const char *scName, ...@@ -4062,7 +4094,8 @@ bool resolveRef(/* in */ const char *scName,
/* in */ bool inSeeBlock, /* in */ bool inSeeBlock,
/* out */ Definition **resContext, /* out */ Definition **resContext,
/* out */ MemberDef **resMember, /* out */ MemberDef **resMember,
bool lookForSpecialization bool lookForSpecialization,
FileDef *currentFile
) )
{ {
QCString tsName = name; QCString tsName = name;
...@@ -4155,7 +4188,7 @@ bool resolveRef(/* in */ const char *scName, ...@@ -4155,7 +4188,7 @@ bool resolveRef(/* in */ const char *scName,
if (getDefs(scopeStr,nameStr,argsStr, if (getDefs(scopeStr,nameStr,argsStr,
md,cd,fd,nd,gd, md,cd,fd,nd,gd,
scopePos==0 && !memberScopeFirst, scopePos==0 && !memberScopeFirst,
0, currentFile,
TRUE TRUE
) )
) )
......
...@@ -136,7 +136,8 @@ bool resolveRef(/* in */ const char *scName, ...@@ -136,7 +136,8 @@ bool resolveRef(/* in */ const char *scName,
/* in */ bool inSeeBlock, /* in */ bool inSeeBlock,
/* out */ Definition **resContext, /* out */ Definition **resContext,
/* out */ MemberDef **resMember, /* out */ MemberDef **resMember,
/* in */ bool lookForSpecializations = TRUE /* in */ bool lookForSpecializations = TRUE,
/* in */ FileDef *currentFile = 0
); );
bool resolveLink(/* in */ const char *scName, bool resolveLink(/* in */ const char *scName,
......
...@@ -75,7 +75,7 @@ static const char* g_vhdlKeyWordMap0[] = ...@@ -75,7 +75,7 @@ static const char* g_vhdlKeyWordMap0[] =
"range", "record", "register", "reject", "report", "return","select", "range", "record", "register", "reject", "report", "return","select",
"severity", "shared", "signal", "subtype", "then", "to", "transport", "severity", "shared", "signal", "subtype", "then", "to", "transport",
"type","unaffected", "units", "until", "use","variable", "wait", "when", "type","unaffected", "units", "until", "use","variable", "wait", "when",
"while", "with","true","false",0 "while", "with","true","false","protected",0
}; };
// type // type
......
...@@ -417,6 +417,7 @@ static void parseFunctionProto() ...@@ -417,6 +417,7 @@ static void parseFunctionProto()
VhdlDocGen::parseFuncProto(qcs.data(),ql,name,ret); VhdlDocGen::parseFuncProto(qcs.data(),ql,name,ret);
//printf("parseFuncProto(%s)=%s,%s\n",qcs.data(),name.data(),ret.data()); //printf("parseFuncProto(%s)=%s,%s\n",qcs.data(),name.data(),ret.data());
VhdlDocGen::deleteAllChars(name,';');
current->name=name; current->name=name;
current->startLine=iFuncLine; current->startLine=iFuncLine;
current->bodyLine=iFuncLine; current->bodyLine=iFuncLine;
...@@ -639,6 +640,11 @@ BRACECLOSE [)]{1} ...@@ -639,6 +640,11 @@ BRACECLOSE [)]{1}
ALLID [^;()\t ] ALLID [^;()\t ]
/* VHDL 2001 */
ENDPROTECTED ("end"{BR}+"protected"{BR}+{NAME}{BR}*";")|("end"{BR}+"protected"{BR}*";")
ENDPROTECEDBODY "end"{BR}+"protected"{BR}+"body"{BR}+{NAME}
%option noyywrap %option noyywrap
/* language parsing states */ /* language parsing states */
...@@ -661,6 +667,12 @@ ALLID [^;()\t ] ...@@ -661,6 +667,12 @@ ALLID [^;()\t ]
%% %%
<Start>{ENDPROTECTED}|{ENDPROTECEDBODY} {
lineCount();
}
<Start>{CONFIG} { // found configuration <Start>{CONFIG} { // found configuration
QCString qcs(vhdlscanYYtext); QCString qcs(vhdlscanYYtext);
...@@ -986,6 +998,21 @@ ALLID [^;()\t ] ...@@ -986,6 +998,21 @@ ALLID [^;()\t ]
BEGIN(ParseType); BEGIN(ParseType);
} }
<ParseType>("is"){BR}+("protected"){BR}+("body") {lineCount(); BEGIN(Start); }
<ParseType>("is"){BR}+("protected"){BR}+ {
lineCount();
current->section=Entry::VARIABLE_SEC;
current->spec=VhdlDocGen::TYPE;
current->type="protected";
newEntry();
BEGIN(Start);
}
<ParseType>("is"){BR}*("record") { // find record <ParseType>("is"){BR}*("record") { // find record
lineCount(); lineCount();
if (isFunc) if (isFunc)
......
...@@ -98,6 +98,8 @@ void XmlDocVisitor::visit(DocSymbol *s) ...@@ -98,6 +98,8 @@ void XmlDocVisitor::visit(DocSymbol *s)
case DocSymbol::Ring: m_t << "<ring char=\"" << s->letter() << "\"/>"; break; case DocSymbol::Ring: m_t << "<ring char=\"" << s->letter() << "\"/>"; break;
case DocSymbol::Slash: m_t << "<slash char=\"" << s->letter() << "\"/>"; break; case DocSymbol::Slash: m_t << "<slash char=\"" << s->letter() << "\"/>"; break;
case DocSymbol::Nbsp: m_t << "<nonbreakablespace/>"; break; case DocSymbol::Nbsp: m_t << "<nonbreakablespace/>"; break;
case DocSymbol::Aelig: m_t << "<aelig/>"; break;
case DocSymbol::AElig: m_t << "<AElig/>"; break;
default: default:
err("Error: unknown symbol found\n"); err("Error: unknown symbol found\n");
} }
......
...@@ -1556,6 +1556,10 @@ ...@@ -1556,6 +1556,10 @@
RelativePath="..\src\portable.cpp" RelativePath="..\src\portable.cpp"
> >
</File> </File>
<File
RelativePath="..\src\portable_c.c"
>
</File>
<File <File
RelativePath="..\src\pre.cpp" RelativePath="..\src\pre.cpp"
> >
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment