From b43cd6311a712c01c2c8297fa00809730e504d70 Mon Sep 17 00:00:00 2001 From: dimitri Date: Fri, 7 Mar 2008 19:55:05 +0000 Subject: Release-1.5.5-20080307 --- INSTALL | 4 +- README | 4 +- addon/doxywizard/doxywizard.cpp | 28 ++-- addon/doxywizard/doxywizard.h | 6 +- addon/doxywizard/inputstring.cpp | 17 ++- configure | 80 ++++++++++-- doc/config.doc | 17 ++- doc/index.doc | 2 +- doc/install.doc | 5 +- doc/language.doc | 30 ++--- doc/translator_report.txt | 209 ++--------------------------- qtools/qfiledefs_p.h | 3 +- src/config.l | 26 +++- src/docparser.cpp | 1 + src/docsets.cpp | 3 +- src/doctokenizer.l | 2 +- src/doxygen.cpp | 93 +++++++------ src/doxygen_css.h | 25 ++++ src/fortranscanner.l | 6 +- src/ftvhelp.cpp | 276 ++++++++++++++++++++------------------- src/ftvhelp.h | 27 ++-- src/groupdef.h | 3 +- src/htmlgen.cpp | 16 +-- src/htmlhelp.cpp | 11 +- src/index.cpp | 158 +++++++++++++++++----- src/latexgen.cpp | 3 +- src/libdoxygen.t | 12 +- src/memberdef.cpp | 2 +- src/memberlist.cpp | 9 +- src/rtfdocvisitor.cpp | 2 +- src/rtfgen.cpp | 2 +- src/scanner.l | 27 +++- src/translator_de.h | 8 +- src/util.cpp | 21 ++- src/util.h | 2 + 35 files changed, 605 insertions(+), 535 deletions(-) diff --git a/INSTALL b/INSTALL index 4ee04e9..93fe994 100644 --- a/INSTALL +++ b/INSTALL @@ -1,7 +1,7 @@ -DOXYGEN Version 1.5.5 +DOXYGEN Version 1.5.5-20080307 Please read the installation section of the manual (http://www.doxygen.org/install.html) for instructions. -------- -Dimitri van Heesch (10 February 2008) +Dimitri van Heesch (07 March 2008) diff --git a/README b/README index 5f443e0..b5c35ec 100644 --- a/README +++ b/README @@ -1,4 +1,4 @@ -DOXYGEN Version 1.5.5 +DOXYGEN Version 1.5.5_20080307 Please read INSTALL for compilation instructions. @@ -17,4 +17,4 @@ to subscribe to the lists or to visit the archives. Enjoy, -Dimitri van Heesch (dimitri@stack.nl) (10 February 2008) +Dimitri van Heesch (dimitri@stack.nl) (07 March 2008) diff --git a/addon/doxywizard/doxywizard.cpp b/addon/doxywizard/doxywizard.cpp index 3ef67bf..1679bc9 100644 --- a/addon/doxywizard/doxywizard.cpp +++ b/addon/doxywizard/doxywizard.cpp @@ -506,8 +506,8 @@ Step4::Step4(QWidget *parent) : QWidget(parent,"Step4") connect(m_diagramMode,SIGNAL(clicked(int)), this,SLOT(diagramModeChanged(int))); - connect(m_dotCall,SIGNAL(stateChanged(int)), - parent,SLOT(changeCallGraphState(int))); + //connect(m_dotCall,SIGNAL(stateChanged(int)), + // parent,SLOT(changeCallGraphState(int))); } void Step4::diagramModeChanged(int buttonId) @@ -515,15 +515,15 @@ void Step4::diagramModeChanged(int buttonId) m_dotOptions->setEnabled(buttonId==2); } -void Step4::disableCallGraphs() -{ - m_dotCall->setChecked(FALSE); -} +//void Step4::disableCallGraphs() +//{ +// m_dotCall->setChecked(FALSE); +//} -bool Step4::callGraphEnabled() const -{ - return m_dotCall->isOn(); -} +//bool Step4::callGraphEnabled() const +//{ +// return m_dotCall->isOn(); +//} DiagramMode Step4::diagramMode() const { @@ -880,7 +880,7 @@ void MainWidget::launchWizard() { wizard.setHtmlStyle(HS_CHM); } - else if (Config_getBool("GENERATE_TREEVIEW")) + else if (Config_getEnum("GENERATE_TREEVIEW")!="NONE") { wizard.setHtmlStyle(HS_TreeView); } @@ -1008,15 +1008,15 @@ void MainWidget::launchWizard() { case HS_Plain: Config_getBool("GENERATE_HTMLHELP")=FALSE; - Config_getBool("GENERATE_TREEVIEW")=FALSE; + Config_getEnum("GENERATE_TREEVIEW")="NONE"; break; case HS_TreeView: Config_getBool("GENERATE_HTMLHELP")=FALSE; - Config_getBool("GENERATE_TREEVIEW")=TRUE; + Config_getEnum("GENERATE_TREEVIEW")="ALL"; break; case HS_CHM: Config_getBool("GENERATE_HTMLHELP")=TRUE; - Config_getBool("GENERATE_TREEVIEW")=FALSE; + Config_getEnum("GENERATE_TREEVIEW")="NONE"; break; } } diff --git a/addon/doxywizard/doxywizard.h b/addon/doxywizard/doxywizard.h index 0e46a53..6e157b1 100644 --- a/addon/doxywizard/doxywizard.h +++ b/addon/doxywizard/doxywizard.h @@ -126,8 +126,8 @@ class Step4 : public QWidget public: Step4(QWidget *parent); - void disableCallGraphs(); - bool callGraphEnabled() const; + //void disableCallGraphs(); + //bool callGraphEnabled() const; DiagramMode diagramMode() const; bool classDiagram() const; @@ -165,7 +165,7 @@ class Wizard : public QTabDialog public: Wizard(QWidget *parent); - void disableCallGraphs(); + //void disableCallGraphs(); // step1 QString getProjectName() const { return m_step1->getProjectName(); } diff --git a/addon/doxywizard/inputstring.cpp b/addon/doxywizard/inputstring.cpp index ffe4398..03f7098 100644 --- a/addon/doxywizard/inputstring.cpp +++ b/addon/doxywizard/inputstring.cpp @@ -170,14 +170,17 @@ void InputString::init() { if (sm==StringFixed) { - int *itemIndex = m_values->find(str); - if (itemIndex) + if (m_values) { - com->setCurrentItem(*itemIndex); - } - else - { - com->setCurrentItem(0); + int *itemIndex = m_values->find(str); + if (itemIndex) + { + com->setCurrentItem(*itemIndex); + } + else + { + com->setCurrentItem(0); + } } } else diff --git a/configure b/configure index baac773..b8d08a9 100755 --- a/configure +++ b/configure @@ -20,7 +20,7 @@ doxygen_version_minor=5 doxygen_version_revision=5 #NOTE: Setting version_mmn to "NO" will omit mmn info from the package. -doxygen_version_mmn=NO +doxygen_version_mmn=20080307 bin_dirs=`echo $PATH | sed -e "s/:/ /g"` @@ -36,6 +36,8 @@ f_english=NO f_wizard=NO f_app=NO f_thread=NO +f_flex=NO +f_bison=NO f_langs=nl,se,cz,fr,id,it,de,jp,je,es,fi,ru,hr,pl,pt,hu,kr,ke,ro,si,cn,no,br,dk,sk,ua,gr,tw,sr,ca,lt,za,ar,fa while test -n "$1"; do @@ -76,6 +78,12 @@ while test -n "$1"; do --perl | -perl) shift; f_perl=$1 ;; + --flex | -flex) + shift; f_flex=$1 + ;; + --bison | -bison) + shift; f_bison=$1 + ;; --install | -install) shift; f_insttool=$1 ;; @@ -100,9 +108,10 @@ done if test "$f_help" = y; then cat </dev/null`"; then mac_sdk=MacOSX10.4u.sdk fi - if test -n "`ls /Developer/SDKs/MacOSX10.5*.sdk`"; then + if test -n "`ls /Developer/SDKs/MacOSX10.5*.sdk 2>/dev/null`"; then mac_sdk=MacOSX10.5.sdk fi if test -n $mac_sdk; then diff --git a/doc/config.doc b/doc/config.doc index 6a89490..73ee99c 100644 --- a/doc/config.doc +++ b/doc/config.doc @@ -1313,11 +1313,20 @@ FILE_VERSION_INFO = "cleartool desc -fmt \%Vn" \anchor cfg_generate_treeview
\c GENERATE_TREEVIEW
\addindex GENERATE_TREEVIEW - If the \c GENERATE_TREEVIEW tag is set to YES, a side panel will be - generated containing a tree-like index structure (just like the one that + The GENERATE_TREEVIEW tag is used to specify whether a tree-like index + structure should be generated to display hierarchical information. + If the tag value is set to FRAME, a side panel will be generated + containing a tree-like index structure (just like the one that is generated for HTML Help). For this to work a browser that supports - JavaScript and frames is required (for instance Mozilla 1.0+, Netscape 6.0+ - or Internet explorer 5.0+ or Konqueror). + JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, + Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are + probably better off using the HTML help feature. Other possible values + for this tag are: \c HIERARCHIES, which will generate the Groups, Directories, + and Class Hiererachy pages using a tree view instead of an ordered list; + ALL, which combines the behavior of \c FRAME and \c HIERARCHIES, and \c NONE, + which disables this behavior completely. For backwards compatibility + with previous releases of Doxygen, the values YES and NO are equivalent + to FRAME and NONE respectively. \anchor cfg_treeview_width
\c TREEVIEW_WIDTH
diff --git a/doc/index.doc b/doc/index.doc index ac0597e..86052bf 100644 --- a/doc/index.doc +++ b/doc/index.doc @@ -27,7 +27,7 @@ Version: $(VERSION)

Introduction

Doxygen is a documentation system for C++, C, Java, Objective-C, Python, IDL -(Corba and Microsoft flavors), Fortran, VHDL, PHP, C#, and to some extend D. +(Corba and Microsoft flavors), Fortran, VHDL, PHP, C#, and to some extent D. It can help you in three ways:
    diff --git a/doc/install.doc b/doc/install.doc index ec3f727..d82f217 100644 --- a/doc/install.doc +++ b/doc/install.doc @@ -302,9 +302,10 @@ ce_parse.cpp: Sun compiler problems It appears that doxygen doesn't work properly if it is compiled -with Sun's C++ WorkShop Compiler. I cannot verify this myself as I do +with Sun's C++ WorkShop 6 Compiler. I cannot verify this myself as I do not have access to a Solaris machine with this compiler. With GNU compiler -it does work. +it does work and installing Sun patch 111679-13 has also been reported +as a way to fix the problem. when configuring with --static I got: diff --git a/doc/language.doc b/doc/language.doc index 411393c..8fbcbfd 100644 --- a/doc/language.doc +++ b/doc/language.doc @@ -23,7 +23,7 @@ text fragments, generated by doxygen, can be produced in languages other than English (the default). The output language is chosen through the configuration file (with default name and known as Doxyfile). -Currently (version 1.5.4), 34 languages +Currently (version 1.5.5), 34 languages are supported (sorted alphabetically): Afrikaans, Arabic, Brazilian Portuguese, Catalan, Chinese, Chinese Traditional, Croatian, Czech, Danish, Dutch, English, Finnish, French, @@ -67,7 +67,7 @@ when the translator was updated. Brazilian Portuguese Fabio "FJTC" Jun Takada Chino jun-chino at uol dot com dot br - 1.5.4 + up-to-date Catalan @@ -79,13 +79,13 @@ when the translator was updated. Chinese Li Daobing
    Wei Liu lidaobing at gmail dot com
    liuwei at asiainfo dot com - 1.5.4 + up-to-date Chinese Traditional Daniel YC Lin
    Gary Lee - dlin at taifex dot com dot tw
    garywlee at gmail dot com - 1.4.6 + dlin.tw at gmail dot com
    garywlee at gmail dot com + up-to-date Croatian @@ -133,7 +133,7 @@ when the translator was updated. German Jens Seidel jensseidel at users dot sf dot net - 1.5.4 + up-to-date Greek @@ -204,8 +204,8 @@ when the translator was updated. Persian Ali Nadalizadeh - nadalisoft at yahoo dot com - 1.4.6 + nadalizadeh at gmail dot com + up-to-date Polish @@ -253,7 +253,7 @@ when the translator was updated. Spanish Bartomeu
    Francisco Oltra Thennet bartomeu at loteria3cornella dot com
    foltra at puc dot cl - 1.5.4 + up-to-date Swedish @@ -286,15 +286,15 @@ when the translator was updated. \hline Arabic & Moaz Reyad & {\tt\tiny moazreyad@yahoo.com} & 1.4.6 \\ \hline - Brazilian Portuguese & Fabio "FJTC" Jun Takada Chino & {\tt\tiny jun-chino@uol.com.br} & 1.5.4 \\ + Brazilian Portuguese & Fabio "FJTC" Jun Takada Chino & {\tt\tiny jun-chino@uol.com.br} & up-to-date \\ \hline Catalan & Maximiliano Pin & {\tt\tiny mcpin@emtesistemas.com} & 1.5.4 \\ ~ & Albert Mora & {\tt\tiny amora@iua.upf.es} & ~ \\ \hline - Chinese & Li Daobing & {\tt\tiny lidaobing@gmail.com} & 1.5.4 \\ + Chinese & Li Daobing & {\tt\tiny lidaobing@gmail.com} & up-to-date \\ ~ & Wei Liu & {\tt\tiny liuwei@asiainfo.com} & ~ \\ \hline - Chinese Traditional & Daniel YC Lin & {\tt\tiny dlin@taifex.com.tw} & 1.4.6 \\ + Chinese Traditional & Daniel YC Lin & {\tt\tiny dlin.tw@gmail.com} & up-to-date \\ ~ & Gary Lee & {\tt\tiny garywlee@gmail.com} & ~ \\ \hline Croatian & Boris Bralo & {\tt\tiny boris.bralo@zg.htnet.hr} & up-to-date \\ @@ -311,7 +311,7 @@ when the translator was updated. \hline French & Xavier Outhier & {\tt\tiny xouthier@yahoo.fr} & 1.5.4 \\ \hline - German & Jens Seidel & {\tt\tiny jensseidel@users.sf.net} & 1.5.4 \\ + German & Jens Seidel & {\tt\tiny jensseidel@users.sf.net} & up-to-date \\ \hline Greek & Paul Gessos & {\tt\tiny nickreserved@yahoo.com} & 1.5.4 \\ \hline @@ -343,7 +343,7 @@ when the translator was updated. \hline Norwegian & Lars Erik Jordet & {\tt\tiny lejordet@gmail.com} & 1.4.6 \\ \hline - Persian & Ali Nadalizadeh & {\tt\tiny nadalisoft@yahoo.com} & 1.4.6 \\ + Persian & Ali Nadalizadeh & {\tt\tiny nadalizadeh@gmail.com} & up-to-date \\ \hline Polish & Piotr Kaminski & {\tt\tiny Piotr.Kaminski@ctm.gdynia.pl} & 1.4.6 \\ ~ & Grzegorz Kowal & {\tt\tiny g\_kowal@poczta.onet.pl} & ~ \\ @@ -360,7 +360,7 @@ when the translator was updated. \hline Slovene & Matja\v{z} Ostrover\v{s}nik & {\tt\tiny matjaz.ostroversnik@ostri.org} & 1.4.6 \\ \hline - Spanish & Bartomeu & {\tt\tiny bartomeu@loteria3cornella.com} & 1.5.4 \\ + Spanish & Bartomeu & {\tt\tiny bartomeu@loteria3cornella.com} & up-to-date \\ ~ & Francisco Oltra Thennet & {\tt\tiny foltra@puc.cl} & ~ \\ \hline Swedish & Mikael Hallin & {\tt\tiny mikaelhallin@yahoo.se} & 1.4.6 \\ diff --git a/doc/translator_report.txt b/doc/translator_report.txt index 6605eb2..ebbe39a 100644 --- a/doc/translator_report.txt +++ b/doc/translator_report.txt @@ -1,4 +1,4 @@ -(1.5.4) +(1.5.5) Doxygen supports the following 34 languages (sorted alphabetically): @@ -9,7 +9,7 @@ German, Greek, Hungarian, Indonesian, Italian, Japanese (+En), Korean Romanian, Russian, Serbian, Slovak, Slovene, Spanish, Swedish, and Ukrainian. -Of them, 6 translators are up-to-date, 28 translators are based on +Of them, 12 translators are up-to-date, 22 translators are based on some adapter class, and 2 are English based. ---------------------------------------------------------------------- @@ -18,12 +18,18 @@ alphabetically). This means that they derive from the Translator class and they implement all 216 of the required methods. Anyway, there still may be some details listed even for them: + TranslatorBrazilian + TranslatorChinesetraditional + TranslatorChinese TranslatorCroatian TranslatorCzech TranslatorDutch TranslatorEnglish + TranslatorGerman TranslatorItalian TranslatorKorean + TranslatorPersian + TranslatorSpanish -- Change the base class to Translator. ---------------------------------------------------------------------- The following translator classes need some maintenance (the most @@ -31,28 +37,22 @@ obsolete at the end). The other info shows the estimation of Doxygen version when the class was last updated and number of methods that must be implemented to become up-to-date: - TranslatorSpanish 1.5.4 22 methods to implement TranslatorRussian 1.5.4 22 methods to implement TranslatorMacedonian 1.5.04 22 methods to implement Note: Change the base class to TranslatorAdapter_1_5_4. TranslatorJapanese 1.5.4 22 methods to implement TranslatorGreek 1.5.4 22 methods to implement - TranslatorGerman 1.5.4 22 methods to implement TranslatorFrench 1.5.4 22 methods to implement TranslatorDanish 1.5.4 22 methods to implement - TranslatorChinese 1.5.4 22 methods to implement TranslatorCatalan 1.5.4 22 methods to implement - TranslatorBrazilian 1.5.4 1 method to implement TranslatorSwedish 1.4.6 24 methods to implement TranslatorSlovene 1.4.6 24 methods to implement TranslatorPolish 1.4.6 23 methods to implement - TranslatorPersian 1.4.6 23 methods to implement TranslatorNorwegian 1.4.6 23 methods to implement TranslatorLithuanian 1.4.6 24 methods to implement TranslatorIndonesian 1.4.6 23 methods to implement TranslatorHungarian 1.4.6 24 methods to implement - TranslatorChinesetraditional 1.4.6 23 methods to implement TranslatorArabic 1.4.6 23 methods to implement TranslatorAfrikaans 1.4.6 24 methods to implement TranslatorUkrainian 1.4.1 24 methods to implement @@ -153,20 +153,6 @@ TranslatorArabic (TranslatorAdapter_1_4_6) 23 methods to implement virtual QCString trNoDescriptionAvailable() -TranslatorBrazilian (TranslatorAdapter_1_5_4) 1 method to implement -------------------- - - Implements 215 of the required methods. - - Missing methods (should be implemented): - - virtual QCString trTypeConstraints() - - Obsolete methods (should be removed, never used): - - virtual QCString trTypeContraints() - - TranslatorCatalan (TranslatorAdapter_1_5_4) 22 methods to implement ----------------- @@ -198,81 +184,6 @@ TranslatorCatalan (TranslatorAdapter_1_5_4) 22 methods to implement virtual QCString trSubprogramDocumentation() -TranslatorChinese (TranslatorAdapter_1_5_4) 22 methods to implement ------------------ - - Implements 194 of the required methods. - - Missing methods (should be implemented): - - virtual QCString trCompoundMembersDescriptionFortran(bool extractAll) - virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) - virtual QCString trSubprograms() - virtual QCString trModulesListDescription(bool extractAll) - virtual QCString trModulesList() - virtual QCString trTypeConstraints() - virtual QCString trMemberFunctionDocumentationFortran() - virtual QCString trCompoundListDescriptionFortran() - virtual QCString trTypeDocumentation() - virtual QCString trModuleReference(const char * namespaceName) - virtual QCString trModulesMemberDescription(bool extractAll) - virtual QCString trModulesMembers() - virtual QCString trModulesIndex() - virtual QCString trCompoundListFortran() - virtual QCString trDataTypes() - virtual QCString trCompoundIndexFortran() - virtual QCString trSubprogram(bool first_capital, bool singular) - virtual QCString trCompoundReferenceFortran(const char * clName, ClassDef::CompoundType compType, bool isTemplate) - virtual QCString trType(bool first_capital, bool singular) - virtual QCString trModule(bool first_capital, bool singular) - virtual QCString trCompoundMembersFortran() - virtual QCString trSubprogramDocumentation() - - -TranslatorChinesetraditional (TranslatorAdapter_1_4_6) 23 methods to implement ----------------------------- - - Implements 193 of the required methods. - - Missing methods (should be implemented): - - virtual QCString trCompoundMembersDescriptionFortran(bool extractAll) - virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) - virtual QCString trSubprograms() - virtual QCString trModulesListDescription(bool extractAll) - virtual QCString trModulesList() - virtual QCString trTypeConstraints() - virtual QCString trMemberFunctionDocumentationFortran() - virtual QCString trCompoundListDescriptionFortran() - virtual QCString trTypeDocumentation() - virtual QCString trModuleReference(const char * namespaceName) - virtual QCString trModulesMemberDescription(bool extractAll) - virtual QCString trModulesMembers() - virtual QCString trModulesIndex() - virtual QCString trCompoundListFortran() - virtual QCString trDataTypes() - virtual QCString trCompoundIndexFortran() - virtual QCString trSubprogram(bool first_capital, bool singular) - virtual QCString trCallerGraph() - virtual QCString trCompoundReferenceFortran(const char * clName, ClassDef::CompoundType compType, bool isTemplate) - virtual QCString trType(bool first_capital, bool singular) - virtual QCString trModule(bool first_capital, bool singular) - virtual QCString trCompoundMembersFortran() - virtual QCString trSubprogramDocumentation() - - Obsolete methods (should be removed, never used): - - virtual QCString trHeaderFilesDescription() - virtual QCString trField(bool/*first_capital*/, bool/*singular*/) - virtual QCString trPackageDocumentation() - virtual QCString trSources() - virtual QCString trReimplementedForInternalReasons() - virtual QCString trInterfaces() - virtual QCString trHeaderFiles() - virtual QCString trBugsAndLimitations() - virtual QCString trNoDescriptionAvailable() - - TranslatorDanish (TranslatorAdapter_1_5_4) 22 methods to implement ---------------- @@ -473,37 +384,6 @@ TranslatorFrench (TranslatorAdapter_1_5_4) 22 methods to implement virtual QCString trSubprogramDocumentation() -TranslatorGerman (TranslatorAdapter_1_5_4) 22 methods to implement ----------------- - - Implements 194 of the required methods. - - Missing methods (should be implemented): - - virtual QCString trCompoundMembersDescriptionFortran(bool extractAll) - virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) - virtual QCString trSubprograms() - virtual QCString trModulesListDescription(bool extractAll) - virtual QCString trModulesList() - virtual QCString trTypeConstraints() - virtual QCString trMemberFunctionDocumentationFortran() - virtual QCString trCompoundListDescriptionFortran() - virtual QCString trTypeDocumentation() - virtual QCString trModuleReference(const char * namespaceName) - virtual QCString trModulesMemberDescription(bool extractAll) - virtual QCString trModulesMembers() - virtual QCString trModulesIndex() - virtual QCString trCompoundListFortran() - virtual QCString trDataTypes() - virtual QCString trCompoundIndexFortran() - virtual QCString trSubprogram(bool first_capital, bool singular) - virtual QCString trCompoundReferenceFortran(const char * clName, ClassDef::CompoundType compType, bool isTemplate) - virtual QCString trType(bool first_capital, bool singular) - virtual QCString trModule(bool first_capital, bool singular) - virtual QCString trCompoundMembersFortran() - virtual QCString trSubprogramDocumentation() - - TranslatorGreek (TranslatorAdapter_1_5_4) 22 methods to implement --------------- @@ -803,50 +683,6 @@ TranslatorNorwegian (TranslatorAdapter_1_4_6) 23 methods to implement virtual QCString trNoDescriptionAvailable() -TranslatorPersian (TranslatorAdapter_1_4_6) 23 methods to implement ------------------ - - Implements 193 of the required methods. - - Missing methods (should be implemented): - - virtual QCString trCompoundMembersDescriptionFortran(bool extractAll) - virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) - virtual QCString trSubprograms() - virtual QCString trModulesListDescription(bool extractAll) - virtual QCString trModulesList() - virtual QCString trTypeConstraints() - virtual QCString trMemberFunctionDocumentationFortran() - virtual QCString trCompoundListDescriptionFortran() - virtual QCString trTypeDocumentation() - virtual QCString trModuleReference(const char * namespaceName) - virtual QCString trModulesMemberDescription(bool extractAll) - virtual QCString trModulesMembers() - virtual QCString trModulesIndex() - virtual QCString trCompoundListFortran() - virtual QCString trDataTypes() - virtual QCString trCompoundIndexFortran() - virtual QCString trSubprogram(bool first_capital, bool singular) - virtual QCString trCallerGraph() - virtual QCString trCompoundReferenceFortran(const char * clName, ClassDef::CompoundType compType, bool isTemplate) - virtual QCString trType(bool first_capital, bool singular) - virtual QCString trModule(bool first_capital, bool singular) - virtual QCString trCompoundMembersFortran() - virtual QCString trSubprogramDocumentation() - - Obsolete methods (should be removed, never used): - - virtual QCString trHeaderFilesDescription() - virtual QCString trField(bool first_capital, bool singular) - virtual QCString trPackageDocumentation() - virtual QCString trSources() - virtual QCString trReimplementedForInternalReasons() - virtual QCString trInterfaces() - virtual QCString trHeaderFiles() - virtual QCString trBugsAndLimitations() - virtual QCString trNoDescriptionAvailable() - - TranslatorPolish (TranslatorAdapter_1_4_6) 23 methods to implement ---------------- @@ -1166,35 +1002,10 @@ TranslatorSlovene (TranslatorAdapter_1_4_6) 24 methods to implement virtual QCString trSubprogramDocumentation() -TranslatorSpanish (TranslatorAdapter_1_5_4) 22 methods to implement +TranslatorSpanish (TranslatorAdapter_1_5_4) ----------------- - Implements 194 of the required methods. - - Missing methods (should be implemented): - - virtual QCString trCompoundMembersDescriptionFortran(bool extractAll) - virtual QCString trGeneratedFromFilesFortran(ClassDef::CompoundType compType, bool single) - virtual QCString trSubprograms() - virtual QCString trModulesListDescription(bool extractAll) - virtual QCString trModulesList() - virtual QCString trTypeConstraints() - virtual QCString trMemberFunctionDocumentationFortran() - virtual QCString trCompoundListDescriptionFortran() - virtual QCString trTypeDocumentation() - virtual QCString trModuleReference(const char * namespaceName) - virtual QCString trModulesMemberDescription(bool extractAll) - virtual QCString trModulesMembers() - virtual QCString trModulesIndex() - virtual QCString trCompoundListFortran() - virtual QCString trDataTypes() - virtual QCString trCompoundIndexFortran() - virtual QCString trSubprogram(bool first_capital, bool singular) - virtual QCString trCompoundReferenceFortran(const char * clName, ClassDef::CompoundType compType, bool isTemplate) - virtual QCString trType(bool first_capital, bool singular) - virtual QCString trModule(bool first_capital, bool singular) - virtual QCString trCompoundMembersFortran() - virtual QCString trSubprogramDocumentation() + Implements 216 of the required methods. TranslatorSwedish (TranslatorAdapter_1_4_6) 24 methods to implement diff --git a/qtools/qfiledefs_p.h b/qtools/qfiledefs_p.h index 7bf8640..5105c45 100644 --- a/qtools/qfiledefs_p.h +++ b/qtools/qfiledefs_p.h @@ -55,8 +55,7 @@ #elif !defined(_OS_MAC_) # include # include -#elif defined(_OS_MAC_) \ - && (MAC_OS_X_VERSION_MAX_ALLOWED==MAC_OS_X_VERSION_10_5) +#elif defined(_OS_MAC_) # include # include # define _OS_UNIX_ diff --git a/src/config.l b/src/config.l index c12426a..b317828 100644 --- a/src/config.l +++ b/src/config.l @@ -1326,7 +1326,7 @@ void Config::check() bool b2 = Config_getBool("INHERIT_DOCS"); bool b3 = Config_getBool("HIDE_SCOPE_NAMES"); bool b4 = Config_getBool("EXTRACT_PRIVATE"); - char *s1,*s2,*s3,*s4; + const char *s1,*s2,*s3,*s4; if (b1) s1=" INLINDE_INHERITED_MEMB = NO (was YES)\n"; else s1=""; if (b2) s2=" INHERIT_DOCS = NO (was YES)\n"; else s2=""; if (!b3) s3=" HIDE_SCOPE_NAMES = YES (was NO)\n"; else s3=""; @@ -2415,16 +2415,28 @@ void Config::create() 1,20,4 ); ci->addDependency("GENERATE_HTML"); - cb = addBool( + ce = addEnum( "GENERATE_TREEVIEW", - "If the GENERATE_TREEVIEW tag is set to YES, a side panel will be\n" - "generated containing a tree-like index structure (just like the one that \n" + "The GENERATE_TREEVIEW tag is used to specify whether a tree-like index\n" + "structure should be generated to display hierarchical information.\n" + "If the tag value is set to FRAME, a side panel will be generated\n" + "containing a tree-like index structure (just like the one that \n" "is generated for HTML Help). For this to work a browser that supports \n" "JavaScript, DHTML, CSS and frames is required (for instance Mozilla 1.0+, \n" "Netscape 6.0+, Internet explorer 5.0+, or Konqueror). Windows users are \n" - "probably better off using the HTML help feature. \n", - FALSE - ); + "probably better off using the HTML help feature. Other possible values \n" + "for this tag are: HIERARCHIES, which will generate the Groups, Directories,\n" + "and Class Hiererachy pages using a tree view instead of an ordered list;\n" + "ALL, which combines the behavior of FRAME and HIERARCHIES; and NONE, which\n" + "disables this behavior completely. For backwards compatibility with previous\n" + "releases of Doxygen, the values YES and NO are equivalent to FRAME and NONE\n" + "respectively.\n", + "NONE" + ); + ce->addValue("NONE"); + ce->addValue("FRAME"); + ce->addValue("HIERARCHIES"); + ce->addValue("ALL"); cb->addDependency("GENERATE_HTML"); ci = addInt( "TREEVIEW_WIDTH", diff --git a/src/docparser.cpp b/src/docparser.cpp index 63ff330..aecc4d1 100644 --- a/src/docparser.cpp +++ b/src/docparser.cpp @@ -320,6 +320,7 @@ static void checkArgumentName(const QString &name,bool isParam) LockingPtr al=g_memberDef->isDocsForDefinition() ? g_memberDef->argumentList() : g_memberDef->declArgumentList(); + //printf("isDocsForDefinition()=%d\n",g_memberDef->isDocsForDefinition()); if (al==0) return; // no argument list static QRegExp re("[a-zA-Z0-9_]+\\.*"); diff --git a/src/docsets.cpp b/src/docsets.cpp index 86fe54e..f9f5114 100644 --- a/src/docsets.cpp +++ b/src/docsets.cpp @@ -129,8 +129,7 @@ void DocSets::initialize() err("Could not open file %s for writing\n",notes.data()); exit(1); } - QCString indexName="index"; - if (Config_getBool("GENERATE_TREEVIEW")) indexName="main"; + QCString indexName=usingTreeIndex()?"main":"index"; m_nts.setDevice(m_nf); m_nts.setEncoding(QTextStream::UnicodeUTF8); m_nts << "" << endl; diff --git a/src/doctokenizer.l b/src/doctokenizer.l index 5969cd2..7edafa0 100644 --- a/src/doctokenizer.l +++ b/src/doctokenizer.l @@ -326,7 +326,7 @@ OPMASK ({BLANK}*{OPNORM}{FUNCARG}) OPMASKOPT ({BLANK}*{OPNORM}{FUNCARG}?)|({OPCAST}{FUNCARG}) LNKWORD1 ("::"|"#")?{SCOPEMASK} CVSPEC {BLANK}*("const"|"volatile") -LNKWORD2 ({SCOPEPRE}*"operator"{OPMASK})|(("::"|"#"){SCOPEPRE}*"operator"{OPMASKOPT}) +LNKWORD2 ({SCOPEPRE}*"operator"{OPMASK})|({SCOPEPRE}"operator"{OPMASKOPT})|(("::"|"#"){SCOPEPRE}*"operator"{OPMASKOPT}) LNKWORD3 ([0-9a-z_A-Z\-]+("/"|"\\"))*[0-9a-z_A-Z\-]+("."[0-9a-z_A-Z]+)+ CHARWORD [^ \t\n\r\\@<>()\[\]:;\?{}&%$#,.] CHARWORDQ [^ \t\n\r\\@<>()\[\]:;\?{}&%$#,."] diff --git a/src/doxygen.cpp b/src/doxygen.cpp index f66be45..c6633ed 100644 --- a/src/doxygen.cpp +++ b/src/doxygen.cpp @@ -241,7 +241,6 @@ struct STLInfo static STLInfo g_stlinfo[] = { // className baseClass1 baseClass2 templType1 templName1 templType2 templName2 virtInheritance // iterators -#if 0 { "allocator", 0, 0, "T", "elements", 0, 0, FALSE, FALSE }, { "auto_ptr", 0, 0, "T", "ptr", 0, 0, FALSE, FALSE }, { "ios_base", 0, 0, 0, 0, 0, 0, FALSE, FALSE }, @@ -284,9 +283,7 @@ static STLInfo g_stlinfo[] = { "multimap", 0, 0, "K", "keys", "T", "elements", FALSE, TRUE }, { "set", 0, 0, "K", "keys", 0, 0, FALSE, TRUE }, { "multiset", 0, 0, "K", "keys", 0, 0, FALSE, TRUE }, -#endif { "vector", 0, 0, "T", "elements", 0, 0, FALSE, TRUE }, -#if 0 { "queue", 0, 0, "T", "elements", 0, 0, FALSE, FALSE }, { "priority_queue", 0, 0, "T", "elements", 0, 0, FALSE, FALSE }, { "stack", 0, 0, "T", "elements", 0, 0, FALSE, FALSE }, @@ -306,7 +303,6 @@ static STLInfo g_stlinfo[] = { "range_error", "runtime_error", 0, 0, 0, 0, 0, FALSE, FALSE }, { "overflow_error", "runtime_error", 0, 0, 0, 0, 0, FALSE, FALSE }, { "underflow_error", "runtime_error", 0, 0, 0, 0, 0, FALSE, FALSE }, -#endif { 0, 0, 0, 0, 0, 0, 0, FALSE, FALSE } }; @@ -2237,8 +2233,8 @@ static bool isVarWithConstructor(EntryNav *rootNav) goto done; } else if ((fd = rootNav->fileDef()) && - fd->name().right(2)==".c" - ) + (fd->name().right(2)==".c" || fd->name().right(2)==".h") + ) { // inside a .c file result=FALSE; goto done; @@ -2333,9 +2329,9 @@ static bool isVarWithConstructor(EntryNav *rootNav) } done: + //printf("isVarWithConstructor(%s,%s)=%d\n",rootNav->parent()->name().data(), + // root->type.data(),result); rootNav->releaseEntry(); - //printf("isVarWithConstructor(%s,%s)=%d\n",root->parent->name.data(), - // root->type.data(),result); return result; } @@ -6828,53 +6824,56 @@ static void computeMemberRelations() { MemberNameIterator mdi(*mn); MemberDef *md; - for ( ; (md=mdi.current()) ; ++mdi ) // for each member with a specific arg list + for ( ; (md=mdi.current()) ; ++mdi ) // for each member with a specific name { - MemberNameIterator bmdi(*mn); - MemberDef *bmd; - for ( ; (bmd=bmdi.current()) ; ++bmdi ) // for each other member with that signature + MemberDef *bmd = mn->first(); // for each other member with the same name + while (bmd) { - ClassDef *bmcd = bmd->getClassDef(); ClassDef *mcd = md->getClassDef(); - //printf("Check relation between `%s'::`%s' (%p) and `%s'::`%s' (%p)\n", - // mcd->name().data(),md->name().data(),md, - // bmcd->name().data(),bmd->name().data(),bmd - // ); - if (md!=bmd && bmcd && mcd && bmcd!=mcd && mcd->isBaseClass(bmcd,TRUE)) + if (mcd && mcd->baseClasses()) { - //printf(" Base argList=`%s'\n Super argList=`%s'\n", - // argListToString(bmd->argumentList()).data(), - // argListToString(md->argumentList()).data() + ClassDef *bmcd = bmd->getClassDef(); + //printf("Check relation between `%s'::`%s' (%p) and `%s'::`%s' (%p)\n", + // mcd->name().data(),md->name().data(),md, + // bmcd->name().data(),bmd->name().data(),bmd // ); - LockingPtr bmdAl = bmd->argumentList(); - LockingPtr mdAl = md->argumentList(); - if ( - matchArguments2(bmd->getOuterScope(),bmd->getFileDef(),bmdAl.pointer(), - md->getOuterScope(), md->getFileDef(), mdAl.pointer(), - TRUE - ) - ) + if (md!=bmd && bmcd && mcd && bmcd!=mcd && mcd->isBaseClass(bmcd,TRUE)) { - //printf(" match found!\n"); - if (mcd && bmcd && - mcd->isLinkable() && bmcd->isLinkable() + //printf(" Base argList=`%s'\n Super argList=`%s'\n", + // argListToString(bmd->argumentList()).data(), + // argListToString(md->argumentList()).data() + // ); + LockingPtr bmdAl = bmd->argumentList(); + LockingPtr mdAl = md->argumentList(); + if ( + matchArguments2(bmd->getOuterScope(),bmd->getFileDef(),bmdAl.pointer(), + md->getOuterScope(), md->getFileDef(), mdAl.pointer(), + TRUE + ) ) { - MemberDef *rmd; - if ((rmd=md->reimplements())==0 || - minClassDistance(mcd,bmcd)getClassDef()) + //printf(" match found!\n"); + if (mcd && bmcd && + mcd->isLinkable() && bmcd->isLinkable() ) { - //printf("setting (new) reimplements member\n"); - md->setReimplements(bmd); + MemberDef *rmd; + if ((rmd=md->reimplements())==0 || + minClassDistance(mcd,bmcd)getClassDef()) + ) + { + //printf("setting (new) reimplements member\n"); + md->setReimplements(bmd); + } + //printf("%s: add reimplements member %s\n",mcd->name().data(),bmcd->name().data()); + //md->setImplements(bmd); + //printf("%s: add reimplementedBy member %s\n",bmcd->name().data(),mcd->name().data()); + bmd->insertReimplementedBy(md); } - //printf("%s: add reimplements member %s\n",mcd->name().data(),bmcd->name().data()); - //md->setImplements(bmd); - //printf("%s: add reimplementedBy member %s\n",bmcd->name().data(),mcd->name().data()); - bmd->insertReimplementedBy(md); - } - } + } + } } + bmd = mn->next(); } } } @@ -7671,9 +7670,9 @@ static void buildPageList(EntryNav *rootNav) QCString title=root->args.stripWhiteSpace(); if (title.isEmpty()) title=theTranslator->trMainPage(); addRefItem(root->sli,"page", - Config_getBool("GENERATE_TREEVIEW")?"main":"index", + usingTreeIndex()?"main":"index", title - ); + ); rootNav->releaseEntry(); } @@ -7691,7 +7690,7 @@ static void findMainPage(EntryNav *rootNav) { //printf("Found main page! \n======\n%s\n=======\n",root->doc.data()); QCString title=root->args.stripWhiteSpace(); - QCString indexName=Config_getBool("GENERATE_TREEVIEW")?"main":"index"; + QCString indexName=usingTreeIndex()?"main":"index"; Doxygen::mainPage = new PageDef(root->fileName,root->startLine, indexName, root->brief+root->doc,title); //setFileNameForSections(root->anchors,"index",Doxygen::mainPage); @@ -9963,7 +9962,7 @@ void generateOutput() outputList->add(new HtmlGenerator); HtmlGenerator::init(); if (Config_getBool("GENERATE_HTMLHELP")) Doxygen::indexList.addIndex(new HtmlHelp); - if (Config_getBool("GENERATE_TREEVIEW")) Doxygen::indexList.addIndex(new FTVHelp); + if (usingTreeIndex()) Doxygen::indexList.addIndex(new FTVHelp); if (Config_getBool("GENERATE_DOCSET")) Doxygen::indexList.addIndex(new DocSets); Doxygen::indexList.initialize(); if (Config_getBool("HTML_DYNAMIC_SECTIONS")) HtmlGenerator::generateSectionImages(); diff --git a/src/doxygen_css.h b/src/doxygen_css.h index bf88dbe..89b4cc9 100644 --- a/src/doxygen_css.h +++ b/src/doxygen_css.h @@ -407,6 +407,7 @@ " font-family: sans-serif;\n" " margin:0.5em;\n" "}\n" +"/* these are for tree view when used as main index */\n" ".directory { \n" " font-size: 9pt; \n" " font-weight: bold; \n" @@ -430,4 +431,28 @@ ".directory img { \n" " vertical-align: -30%; \n" "}\n" +"/* these are for tree view when not used as main index */\n" +".directory-alt { \n" +" font-size: 100%; \n" +" font-weight: bold; \n" +"}\n" +".directory-alt h3 { \n" +" margin: 0px; \n" +" margin-top: 1em; \n" +" font-size: 11pt; \n" +"}\n" +".directory-alt > h3 { \n" +" margin-top: 0; \n" +"}\n" +".directory-alt p { \n" +" margin: 0px; \n" +" white-space: nowrap; \n" +"}\n" +".directory-alt div { \n" +" display: none; \n" +" margin: 0px; \n" +"}\n" +".directory-alt img { \n" +" vertical-align: -30%; \n" +"}\n" "\n" diff --git a/src/fortranscanner.l b/src/fortranscanner.l index 285bc24..12104c0 100644 --- a/src/fortranscanner.l +++ b/src/fortranscanner.l @@ -325,7 +325,7 @@ ATTR_STMT {ATTR_SPEC}|DIMENSION|{ACCESS_SPEC} yy_push_state(InterfaceBody); startScope(last_entry); } -"end"({BS_}"interface")?.* { +^{BS}"end"({BS_}"interface")? { if (!endScope(current_root)) yyterminate(); yy_pop_state(); @@ -349,7 +349,7 @@ ATTR_STMT {ATTR_SPEC}|DIMENSION|{ACCESS_SPEC} BEGIN(Module); defaultProtection = Public; } -"end"({BS_}(module|program))?.* { // end module +^{BS}"end"({BS_}(module|program))?{BS} { // end module resolveModuleProcedures(moduleProcedures, current_root); if (!endScope(current_root)) yyterminate(); @@ -415,7 +415,7 @@ ATTR_STMT {ATTR_SPEC}|DIMENSION|{ACCESS_SPEC} /*------- module/global/typedef variable ---------------------------------------------------*/ -"end"({BS_}{SUBPROG})?.* { +^{BS}"end"({BS_}{SUBPROG})?{BS} { //cout << "1e=========> got end subprog: " << yytext << endl; /* args is used for parameters in list of functions, argList for diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp index 0129b78..5decfec 100644 --- a/src/ftvhelp.cpp +++ b/src/ftvhelp.cpp @@ -326,20 +326,17 @@ struct FTVNode //---------------------------------------------------------------------------- -FTVHelp *FTVHelp::m_theInstance = 0; - -/*! Construm_cts an ftv help object. +/*! Constructs an ftv help object. * The object has to be \link initialize() initialized\endlink before it can * be used. */ -FTVHelp::FTVHelp() +FTVHelp::FTVHelp(bool TLI) { /* initial depth */ - //m_dc = 0; - //m_cf = 0; m_indentNodes = new QList[MAX_INDENT]; m_indentNodes[0].setAutoDelete(TRUE); m_indent=0; + m_topLevelIndex = TLI; } FTVHelp::~FTVHelp() @@ -347,16 +344,6 @@ FTVHelp::~FTVHelp() delete[] m_indentNodes; } -#if 0 -/*! return a reference to the one and only instance of this class. - */ -FTVHelp *FTVHelp::getInstance() -{ - if (m_theInstance==0) m_theInstance = new FTVHelp; - return m_theInstance; -} -#endif - /*! This will create a folder tree view table of contents file (tree.js). * \sa finalize() */ @@ -371,9 +358,6 @@ void FTVHelp::initialize() void FTVHelp::finalize() { generateTreeView(); - generateTreeViewImages(); - delete m_theInstance; - m_theInstance=0; } /*! Increase the level of the contents hierarchy. @@ -382,10 +366,8 @@ void FTVHelp::finalize() */ void FTVHelp::incContentsDepth() { - //int i; for (i=0;i0); if (m_indent>0) { @@ -408,7 +388,6 @@ void FTVHelp::decContentsDepth() parent->children.append(children->take(0)); } } - //return m_indent; } /*! Add a list item to the contents file. @@ -423,7 +402,7 @@ void FTVHelp::addContentsItem(bool isDir, const char *ref, const char *file, const char *anchor - ) + ) { QList *nl = &m_indentNodes[m_indent]; FTVNode *newNode = new FTVNode(isDir,ref,file,anchor,name); @@ -516,7 +495,10 @@ void FTVHelp::generateLink(QTextStream &t,FTVNode *n) } t << n->file << Doxygen::htmlFileExtension; if (!n->anchor.isEmpty()) t << "#" << n->anchor; - t << "\" target=\"basefrm\">"; + if (m_topLevelIndex) + t << "\" target=\"basefrm\">"; + else + t << "\" target=\"_self\">"; t << n->name; t << ""; if (!n->ref.isEmpty()) @@ -580,59 +562,62 @@ void FTVHelp::generateTreeViewImages() } } -void FTVHelp::generateTreeView() +void FTVHelp::generateTreeView(QString* OutString) { - // Generate alternative index.html as a frame - QCString fileName=Config_getString("HTML_OUTPUT")+"/index"+Doxygen::htmlFileExtension; + QCString fileName; QFile f; - f.setName(fileName); - if (!f.open(IO_WriteOnly)) - { - err("Cannot open file %s for writing!\n",fileName.data()); - return; - } - else + + generateTreeViewImages(); + + // If top level index, generate alternative index.html as a frame + if (m_topLevelIndex) { - QTextStream t(&f); -#if QT_VERSION >= 200 - t.setEncoding(QTextStream::UnicodeUTF8); -#endif - t << "\n"; - t << ""; - t << "\n"; - t << ""; - if (Config_getString("PROJECT_NAME").isEmpty()) + fileName=Config_getString("HTML_OUTPUT")+"/index"+Doxygen::htmlFileExtension; + f.setName(fileName); + if (!f.open(IO_WriteOnly)) { - t << "Doxygen Documentation"; + err("Cannot open file %s for writing!\n",fileName.data()); + return; } else { - t << Config_getString("PROJECT_NAME"); + QTextStream t(&f); +#if QT_VERSION >= 200 + t.setEncoding(QTextStream::UnicodeUTF8); +#endif + t << "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\">\n"; + t << "<html><head>"; + t << "<meta http-equiv=\"Content-Type\" content=\"text/html;charset=UTF-8\">\n"; + t << "<title>"; + if (Config_getString("PROJECT_NAME").isEmpty()) + { + t << "Doxygen Documentation"; + } + else + { + t << Config_getString("PROJECT_NAME"); + } + t << "" << endl; + t << "" << endl; + t << " " << endl; + t << " " << endl; + t << " " << endl; + t << " <a href=\"main" << Doxygen::htmlFileExtension << "\">Frames are disabled. Click here to go to the main page.</a>" << endl; + t << " " << endl; + t << "" << endl; + t << "" << endl; + f.close(); } - t << "" << endl; - t << "" << endl; - t << " " << endl; - t << " " << endl; - t << " " << endl; - t << " <a href=\"main" << Doxygen::htmlFileExtension << "\">Frames are disabled. Click here to go to the main page.</a>" << endl; - t << " " << endl; - t << "" << endl; - t << "" << endl; - f.close(); } - // Generate tree view frame - fileName=Config_getString("HTML_OUTPUT")+"/tree"+Doxygen::htmlFileExtension; - f.setName(fileName); - if (!f.open(IO_WriteOnly)) - { - err("Cannot open file %s for writing!\n",fileName.data()); - return; - } - else + // Generate tree view + if (!OutString) + OutString = new QString; + QTextOStream t(OutString); + t.setEncoding(QTextStream::UnicodeUTF8); + + if (m_topLevelIndex) { - QTextStream t(&f); - t.setEncoding(QTextStream::UnicodeUTF8); t << "\n"; t << " \n"; t << " \n"; @@ -655,64 +640,67 @@ void FTVHelp::generateTreeView() } t << "\">" << endl; t << " TreeView\n"; - t << " \n"; + } + t << " \n"; + if (m_topLevelIndex) + { t << " \n"; t << "\n"; t << " \n"; @@ -728,16 +716,40 @@ void FTVHelp::generateTreeView() t << projName; } t << "\n"; - t << "
    \n"; + } + else + { + t << "
    \n"; + t << "
    \n"; + } + t << "
    \n"; - generateTree(t,m_indentNodes[0],0); + generateTree(t,m_indentNodes[0],0); - t << "
    \n"; - t << "
    \n"; + t << "
    \n"; + t << " \n"; + + if (!m_topLevelIndex) + { t << " \n"; t << "\n"; } - generateTreeViewImages(); - + + if (m_topLevelIndex) + { + fileName=Config_getString("HTML_OUTPUT")+"/tree"+Doxygen::htmlFileExtension; + f.setName(fileName); + if (!f.open(IO_WriteOnly)) + { + err("Cannot open file %s for writing!\n",fileName.data()); + return; + } + else + { + QTextStream t(&f); + t << *OutString << endl; + f.close(); + } + } } diff --git a/src/ftvhelp.h b/src/ftvhelp.h index fee1944..58e4453 100644 --- a/src/ftvhelp.h +++ b/src/ftvhelp.h @@ -1,11 +1,24 @@ /****************************************************************************** + * + * Copyright (C) 1997-2008 by Dimitri van Heesch. + * + * Permission to use, copy, modify, and distribute this software and its + * documentation under the terms of the GNU General Public License is hereby + * granted. No representations are made about the suitability of this software + * for any purpose. It is provided "as is" without express or implied warranty. + * See the GNU General Public License for more details. + * + * Documents produced by Doxygen are derivative works derived from the + * input used in their production; they are not affected by this license. + * + */ + +/****************************************************************************** * ftvhelp.h,v 1.0 2000/09/06 16:09:00 * * Kenney Wong * * Folder Tree View for offline help on browsers that do not support HTML Help. - * Uses the FTV structure from: - * http://www.geocities.com/Paris/LeftBank/2178/ftexample.html */ #ifndef FTVHELP_H @@ -58,8 +71,8 @@ extern FTVImageInfo image_info[]; class FTVHelp : public IndexIntf { public: - FTVHelp(); - //static FTVHelp *getInstance(); + FTVHelp(bool topLevelIndex = true); + ~FTVHelp(); void initialize(); void finalize(); void incContentsDepth(); @@ -73,17 +86,15 @@ class FTVHelp : public IndexIntf const char *, const char *, const char *, const MemberDef *) {} void addIndexFile(const char *) {} - + void generateTreeView(QString* = NULL); private: void generateTreeViewImages(); - void generateTreeView(); void generateTree(QTextStream &t,const QList &nl,int level); void generateIndent(QTextStream &t,FTVNode *n,int level); void generateLink(QTextStream &t,FTVNode *n); - ~FTVHelp(); - static FTVHelp *m_theInstance; QList *m_indentNodes; int m_indent; + bool m_topLevelIndex; }; diff --git a/src/groupdef.h b/src/groupdef.h index 7a4070f..06eb035 100644 --- a/src/groupdef.h +++ b/src/groupdef.h @@ -39,6 +39,7 @@ class PageSDict; class PageDef; class DirDef; class DirList; +class FTVHelp; class GroupDef : public Definition { @@ -86,7 +87,7 @@ class GroupDef : public Definition bool visited; // number of times accessed for output - KPW - friend void writeGroupTreeNode(OutputList&, GroupDef*, int); + friend void writeGroupTreeNode(OutputList&, GroupDef*, int, FTVHelp*); // make accessible for writing tree view of group in index.cpp - KPW void setGroupScope(Definition *d) { groupScope = d; } diff --git a/src/htmlgen.cpp b/src/htmlgen.cpp index b6982b7..82d6176 100644 --- a/src/htmlgen.cpp +++ b/src/htmlgen.cpp @@ -978,7 +978,7 @@ void HtmlGenerator::endTextLink() void HtmlGenerator::startHtmlLink(const char *url) { t << ""; @@ -1618,17 +1618,17 @@ void HtmlGenerator::writeNonBreakableSpace(int n) } } -void HtmlGenerator::writeLineNumber(const char *ref,const char *file, +void HtmlGenerator::writeLineNumber(const char *ref,const char *filename, const char *anchor,int l) { QCString lineNumber,lineAnchor; lineNumber.sprintf("%05d",l); lineAnchor.sprintf("l%05d",l); - if (file) + if (filename) { startCodeAnchor(lineAnchor); - writeCodeLink(ref,file,anchor,lineNumber,0); + writeCodeLink(ref,filename,anchor,lineNumber,0); endCodeAnchor(); } else @@ -1641,13 +1641,13 @@ void HtmlGenerator::writeLineNumber(const char *ref,const char *file, } void HtmlGenerator::startSimpleSect(SectionTypes, - const char *file,const char *anchor, + const char *filename,const char *anchor, const char *title) { t << "
    "; - if (file) + if (filename) { - writeObjectLink(0,file,anchor,title); + writeObjectLink(0,filename,anchor,title); } else { @@ -1867,7 +1867,7 @@ static void writeDefaultQuickLinks(QTextStream &t,bool compact, bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL"); startQuickIndexList(t,compact); - if (Config_getBool("GENERATE_TREEVIEW")) + if (usingTreeIndex()) { startQuickIndexItem(t,"main"+Doxygen::htmlFileExtension, hli==HLI_Main,compact,relPath); diff --git a/src/htmlhelp.cpp b/src/htmlhelp.cpp index d77fe1c..542dba1 100644 --- a/src/htmlhelp.cpp +++ b/src/htmlhelp.cpp @@ -415,7 +415,7 @@ void HtmlHelp::createProjectFile() QCString indexName="index"+Doxygen::htmlFileExtension; - if (Config_getBool("GENERATE_TREEVIEW")) indexName="main"+Doxygen::htmlFileExtension; + if (usingTreeIndex()) indexName="main"+Doxygen::htmlFileExtension; t << "[OPTIONS]\n"; if (!Config_getString("CHM_FILE").isEmpty()) { @@ -433,9 +433,16 @@ void HtmlHelp::createProjectFile() t << "Title=" << Config_getString("PROJECT_NAME") << endl << endl; t << "[WINDOWS]" << endl; + + // NOTE: the 0x10387e number is a set of bits specifying the buttons + // which should appear in the CHM viewer; that specific value + // means "show all buttons including the font-size one"; + // the font-size one is not normally settable by the HTML Help Workshop + // utility but the way to set it is described here: + // http://support.microsoft.com/?scid=kb%3Ben-us%3B240062&x=17&y=18 t << "main=\"" << Config_getString("PROJECT_NAME") << "\",\"index.hhc\"," "\"index.hhk\",\"" << indexName << "\",\"" << - indexName << "\",,,,,0x23520,,0x387e,,,,,,,,0" << endl << endl; + indexName << "\",,,,,0x23520,,0x10387e,,,,,,,,0" << endl << endl; t << "[FILES]" << endl; char *s = indexFiles.first(); diff --git a/src/index.cpp b/src/index.cpp index beb0477..031f01f 100644 --- a/src/index.cpp +++ b/src/index.cpp @@ -318,7 +318,7 @@ static bool classHasVisibleChildren(ClassDef *cd) return FALSE; } -void writeClassTree(OutputList &ol,BaseClassList *bcl,bool hideSuper,int level) +void writeClassTree(OutputList &ol,BaseClassList *bcl,bool hideSuper,int level,FTVHelp* ftv) { if (bcl==0) return; BaseClassListIterator bcli(*bcl); @@ -332,6 +332,8 @@ void writeClassTree(OutputList &ol,BaseClassList *bcl,bool hideSuper,int level) { startIndexHierarchy(ol,level); Doxygen::indexList.incContentsDepth(); + if (ftv) + ftv->incContentsDepth(); started=TRUE; } //printf("Passed...\n"); @@ -349,11 +351,9 @@ void writeClassTree(OutputList &ol,BaseClassList *bcl,bool hideSuper,int level) ol.docify(" [external]"); ol.endTypewriter(); } - Doxygen::indexList.addContentsItem(hasChildren, - cd->displayName(), - cd->getReference(), - cd->getOutputFileBase(), - 0); + Doxygen::indexList.addContentsItem(hasChildren,cd->displayName(),cd->getReference(),cd->getOutputFileBase(),0); + if (ftv) + ftv->addContentsItem(hasChildren,cd->displayName(),cd->getReference(),cd->getOutputFileBase(),0); } else { @@ -361,13 +361,15 @@ void writeClassTree(OutputList &ol,BaseClassList *bcl,bool hideSuper,int level) ol.parseText(cd->name()); ol.endIndexItem(0,0); Doxygen::indexList.addContentsItem(hasChildren,cd->displayName(),0,0,0); + if (ftv) + ftv->addContentsItem(hasChildren,cd->displayName(),0,0,0); } if (hasChildren) { //printf("Class %s at %p visited=%d\n",cd->name().data(),cd,cd->visited); bool wasVisited=cd->visited; cd->visited=TRUE; - writeClassTree(ol,cd->subClasses(),wasVisited,level+1); + writeClassTree(ol,cd->subClasses(),wasVisited,level+1,ftv); } } } @@ -375,6 +377,8 @@ void writeClassTree(OutputList &ol,BaseClassList *bcl,bool hideSuper,int level) { endIndexHierarchy(ol,level); Doxygen::indexList.decContentsDepth(); + if (ftv) + ftv->decContentsDepth(); } } @@ -475,7 +479,7 @@ void writeClassTree(ClassSDict *d,int level) //---------------------------------------------------------------------------- -static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started) +static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started,FTVHelp* ftv) { ClassSDict::Iterator cli(*cl); for (;cli.current(); ++cli) @@ -512,6 +516,8 @@ static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started) ol.endTypewriter(); } Doxygen::indexList.addContentsItem(hasChildren,cd->displayName(),cd->getReference(),cd->getOutputFileBase(),0); + if (ftv) + ftv->addContentsItem(hasChildren,cd->displayName(),cd->getReference(),cd->getOutputFileBase(),0); } else { @@ -519,10 +525,12 @@ static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started) ol.parseText(cd->displayName()); ol.endIndexItem(0,0); Doxygen::indexList.addContentsItem(hasChildren,cd->displayName(),0,0,0); + if (ftv) + ftv->addContentsItem(hasChildren,cd->displayName(),0,0,0); } if (hasChildren) { - writeClassTree(ol,cd->subClasses(),cd->visited,1); + writeClassTree(ol,cd->subClasses(),cd->visited,1,ftv); cd->visited=TRUE; } } @@ -530,19 +538,25 @@ static void writeClassTreeForList(OutputList &ol,ClassSDict *cl,bool &started) } } -void writeClassHierarchy(OutputList &ol) +void writeClassHierarchy(OutputList &ol, FTVHelp* ftv) { initClassHierarchy(Doxygen::classSDict); initClassHierarchy(Doxygen::hiddenClasses); - + if (ftv) + { + ol.pushGeneratorState(); + ol.disable(OutputGenerator::Html); + } bool started=FALSE; - writeClassTreeForList(ol,Doxygen::classSDict,started); - writeClassTreeForList(ol,Doxygen::hiddenClasses,started); + writeClassTreeForList(ol,Doxygen::classSDict,started,ftv); + writeClassTreeForList(ol,Doxygen::hiddenClasses,started,ftv); if (started) { endIndexHierarchy(ol,0); Doxygen::indexList.decContentsDepth(); } + if (ftv) + ol.popGeneratorState(); } //---------------------------------------------------------------------------- @@ -612,7 +626,24 @@ void writeHierarchicalIndex(OutputList &ol) } ol.parseText(theTranslator->trClassHierarchyDescription()); ol.endTextBlock(); - writeClassHierarchy(ol); + + FTVHelp* ftv = NULL; + QCString& TreeView=Config_getEnum("GENERATE_TREEVIEW"); + if (TreeView=="HIERARCHIES" || TreeView=="ALL") + ftv = new FTVHelp(false); + + writeClassHierarchy(ol,ftv); + + if (ftv) + { + QString OutStr; + ftv->generateTreeView(&OutStr); + ol.pushGeneratorState(); + ol.disableAllBut(OutputGenerator::Html); + ol.writeString(OutStr); + ol.popGeneratorState(); + delete ftv; + } endFile(ol); ol.popGeneratorState(); } @@ -1415,7 +1446,7 @@ static void writeMemberList(OutputList &ol,bool useSections,int page, MemberDef *md; for (mli.toFirst();(md=mli.current());++mli) { - char *sep; + const char *sep; bool isFunc=!md->isObjCMethod() && (md->isFunction() || md->isSlot() || md->isSignal()); QCString name=md->name(); @@ -2349,7 +2380,7 @@ void writeGroupIndexItem(GroupDef *gd,MemberList *ml,const QCString &title) * write groups as hierarchical trees * \author KPW */ -void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) +void writeGroupTreeNode(OutputList &ol, GroupDef *gd, int level, FTVHelp* ftv) { bool fortranOpt = Config_getBool("OPTIMIZE_FOR_FORTRAN"); bool vhdlOpt = Config_getBool("OPTIMIZE_OUTPUT_VHDL"); @@ -2394,12 +2425,17 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) //printf("gd=`%s': pageDict=%d\n",gd->name().data(),gd->pageDict->count()); Doxygen::indexList.addContentsItem(isDir,gd->groupTitle(),gd->getReference(),gd->getOutputFileBase(),0); Doxygen::indexList.incContentsDepth(); - + if (ftv) + { + ftv->addContentsItem(isDir,gd->groupTitle(),gd->getReference(),gd->getOutputFileBase(),0); + ftv->incContentsDepth(); + } + //ol.writeListItem(); //ol.startTextLink(gd->getOutputFileBase(),0); //parseText(ol,gd->groupTitle()); //ol.endTextLink(); - + ol.startIndexItem(gd->getReference(),gd->getOutputFileBase()); ol.parseText(gd->groupTitle()); ol.endIndexItem(gd->getReference(),gd->getOutputFileBase()); @@ -2422,11 +2458,10 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) SectionInfo *si=0; if (!pd->name().isEmpty()) si=Doxygen::sectionDict[pd->name()]; Doxygen::indexList.addContentsItem(FALSE, - convertToHtml(pd->title(),TRUE), - gd->getReference(), - gd->getOutputFileBase(), - si ? si->label.data() : 0 - ); + convertToHtml(pd->title(),TRUE), + gd->getReference(), + gd->getOutputFileBase(), + si ? si->label.data() : 0); } // write subgroups @@ -2439,7 +2474,7 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) GroupDef *subgd = 0; for (gli.toFirst();(subgd=gli.current());++gli) { - writeGroupTreeNode(ol,subgd,level+1); + writeGroupTreeNode(ol,subgd,level+1,ftv); } endIndexHierarchy(ol,level+1); } @@ -2538,13 +2573,19 @@ void writeGroupTreeNode(OutputList &ol, GroupDef *gd,int level) } Doxygen::indexList.decContentsDepth(); - + if (ftv) + ftv->decContentsDepth(); //gd->visited=TRUE; } } -void writeGroupHierarchy(OutputList &ol) +void writeGroupHierarchy(OutputList &ol, FTVHelp* ftv) { + if (ftv) + { + ol.pushGeneratorState(); + ol.disable(OutputGenerator::Html); + } startIndexHierarchy(ol,0); if (Config_getBool("SORT_GROUP_NAMES")) Doxygen::groupSDict->sort(); @@ -2552,13 +2593,15 @@ void writeGroupHierarchy(OutputList &ol) GroupDef *gd; for (gli.toFirst();(gd=gli.current());++gli) { - writeGroupTreeNode(ol,gd,0); + writeGroupTreeNode(ol,gd,0,ftv); } endIndexHierarchy(ol,0); + if (ftv) + ol.popGeneratorState(); } //---------------------------------------------------------------------------- -void writeDirTreeNode(OutputList &ol, DirDef *dd,int level) +void writeDirTreeNode(OutputList &ol, DirDef *dd, int level, FTVHelp* ftv) { if (level>20) { @@ -2577,6 +2620,11 @@ void writeDirTreeNode(OutputList &ol, DirDef *dd,int level) //printf("gd=`%s': pageDict=%d\n",gd->name().data(),gd->pageDict->count()); Doxygen::indexList.addContentsItem(isDir,dd->shortName(),dd->getReference(),dd->getOutputFileBase(),0); Doxygen::indexList.incContentsDepth(); + if (ftv) + { + ftv->addContentsItem(isDir,dd->shortName(),dd->getReference(),dd->getOutputFileBase(),0); + ftv->incContentsDepth(); + } ol.startIndexItem(dd->getReference(),dd->getOutputFileBase()); ol.parseText(dd->shortName()); @@ -2596,7 +2644,7 @@ void writeDirTreeNode(OutputList &ol, DirDef *dd,int level) DirDef *subdd = 0; for (dli.toFirst();(subdd=dli.current());++dli) { - writeDirTreeNode(ol,subdd,level+1); + writeDirTreeNode(ol,subdd,level+1,ftv); } endIndexHierarchy(ol,level+1); } @@ -2617,18 +2665,27 @@ void writeDirTreeNode(OutputList &ol, DirDef *dd,int level) } Doxygen::indexList.decContentsDepth(); + if (ftv) + ftv->decContentsDepth(); } -void writeDirHierarchy(OutputList &ol) +void writeDirHierarchy(OutputList &ol, FTVHelp* ftv) { + if (ftv) + { + ol.pushGeneratorState(); + ol.disable(OutputGenerator::Html); + } startIndexHierarchy(ol,0); SDict::Iterator dli(*Doxygen::directories); DirDef *dd; for (dli.toFirst();(dd=dli.current());++dli) { - if (dd->getOuterScope()==Doxygen::globalScope) writeDirTreeNode(ol,dd,0); + if (dd->getOuterScope()==Doxygen::globalScope) writeDirTreeNode(ol,dd,0,ftv); } endIndexHierarchy(ol,0); + if (ftv) + ol.popGeneratorState(); } //---------------------------------------------------------------------------- @@ -2650,11 +2707,26 @@ void writeGroupIndex(OutputList &ol) ol.startTextBlock(); Doxygen::indexList.addContentsItem(TRUE,theTranslator->trModules(),0,"modules",0); Doxygen::indexList.incContentsDepth(); - ol.parseText(theTranslator->trModulesDescription()); ol.endTextBlock(); - writeGroupHierarchy(ol); + FTVHelp* ftv = NULL; + QCString& TreeView=Config_getEnum("GENERATE_TREEVIEW"); + if (TreeView=="HIERARCHIES" || TreeView=="ALL") + ftv = new FTVHelp(false); + + writeGroupHierarchy(ol,ftv); + Doxygen::indexList.decContentsDepth(); + if (ftv) + { + QString OutStr; + ftv->generateTreeView(&OutStr); + ol.pushGeneratorState(); + ol.disableAllBut(OutputGenerator::Html); + ol.writeString(OutStr); + ol.popGeneratorState(); + delete ftv; + } endFile(ol); ol.popGeneratorState(); } @@ -2681,8 +2753,23 @@ void writeDirIndex(OutputList &ol) ol.parseText(theTranslator->trDirDescription()); ol.endTextBlock(); - writeDirHierarchy(ol); + FTVHelp* ftv = NULL; + QCString& TreeView=Config_getEnum("GENERATE_TREEVIEW"); + if (TreeView=="HIERARCHIES" || TreeView=="ALL") + ftv = new FTVHelp(false); + writeDirHierarchy(ol,ftv); + + if (ftv) + { + QString OutStr; + ftv->generateTreeView(&OutStr); + ol.pushGeneratorState(); + ol.disableAllBut(OutputGenerator::Html); + ol.writeString(OutStr); + ol.popGeneratorState(); + delete ftv; + } Doxygen::indexList.decContentsDepth(); endFile(ol); ol.popGeneratorState(); @@ -2733,8 +2820,7 @@ void writeIndex(OutputList &ol) title = substitute(Doxygen::mainPage->title(),"%",""); } - QCString indexName="index"; - if (Config_getBool("GENERATE_TREEVIEW")) indexName="main"; + QCString indexName=usingTreeIndex()?"main":"index"; ol.startFile(indexName,0,title); if (Doxygen::mainPage) diff --git a/src/latexgen.cpp b/src/latexgen.cpp index 05d5b72..4dd4e06 100644 --- a/src/latexgen.cpp +++ b/src/latexgen.cpp @@ -606,8 +606,7 @@ void LatexGenerator::endIndexSection(IndexSections is) break; case isMainPage: { - QCString indexName="index"; - if (Config_getBool("GENERATE_TREEVIEW")) indexName="main"; + QCString indexName=usingTreeIndex()?"main":"index"; t << "}\n\\label{index}"; if (Config_getBool("PDF_HYPERLINKS")) t << "\\hypertarget{index}{}"; t << "\\input{" << indexName << "}\n"; diff --git a/src/libdoxygen.t b/src/libdoxygen.t index 0ab0b3c..42001de 100644 --- a/src/libdoxygen.t +++ b/src/libdoxygen.t @@ -73,22 +73,22 @@ sub GenerateDep { $(LEX) -PpreYY -t pre.l | $(INCBUFSIZE) >pre.cpp #$ GenerateDep("declinfo.cpp","declinfo.l"); - $(LEX) -PdeclinfoYY -t declinfo.l >declinfo.cpp + $(LEX) -PdeclinfoYY -t declinfo.l | $(INCBUFSIZE) >declinfo.cpp #$ GenerateDep("defargs.cpp","defargs.l"); - $(LEX) -PdefargsYY -t defargs.l >defargs.cpp + $(LEX) -PdefargsYY -t defargs.l | $(INCBUFSIZE) >defargs.cpp #$ GenerateDep("doctokenizer.cpp","doctokenizer.l"); - $(LEX) -PdoctokenizerYY -t doctokenizer.l >doctokenizer.cpp + $(LEX) -PdoctokenizerYY -t doctokenizer.l | $(INCBUFSIZE) >doctokenizer.cpp #$ GenerateDep("commentcnv.cpp","commentcnv.l"); - $(LEX) -PcommentcnvYY -t commentcnv.l >commentcnv.cpp + $(LEX) -PcommentcnvYY -t commentcnv.l | $(INCBUFSIZE) >commentcnv.cpp #$GenerateDep("commentscan.cpp","commentscan.l"); - $(LEX) -PcommentScanYY -t commentscan.l >commentscan.cpp + $(LEX) -PcommentScanYY -t commentscan.l | $(INCBUFSIZE) >commentscan.cpp #$ GenerateDep("ce_lex.cpp","constexp.l","ce_parse.h"); - $(LEX) -PcppExpYY -t constexp.l >ce_lex.cpp + $(LEX) -PcppExpYY -t constexp.l | $(INCBUFSIZE) >ce_lex.cpp #$ GenerateDep("ce_parse.cpp","constexp.y"); $(YACC) -l -p cppExpYY constexp.y -o ce_parse.cpp diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 2972f34..8a5a887 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -833,7 +833,7 @@ bool MemberDef::isLinkableInProject() const //printf("private and invisible!\n"); return FALSE; // hidden due to protection } - if (isStatic() && m_impl->classDef==0 && !extractStatic) + if (m_impl->stat && m_impl->classDef==0 && !extractStatic) { //printf("static and invisible!\n"); return FALSE; // hidden due to staticness diff --git a/src/memberlist.cpp b/src/memberlist.cpp index 25f7a44..a14dfeb 100644 --- a/src/memberlist.cpp +++ b/src/memberlist.cpp @@ -320,6 +320,11 @@ void MemberList::writeDeclarations(OutputList &ol, { //printf("----- writeDeclaration() this=%p ----\n",this); countDecMembers(showEnumValues); // count member not in group + Definition *ctx = cd; + if (ctx==0 && nd) ctx = nd; + if (ctx==0 && gd) ctx = gd; + if (ctx==0 && fd) ctx = fd; + if (numDecMembers()==0) return; //printf("%p: MemberList::writeDeclaration(title=`%s',subtitle=`%s')=%d\n", // this,title,subtitle,numDecMembers()); @@ -333,7 +338,7 @@ void MemberList::writeDeclarations(OutputList &ol, { //printf("subtitle=`%s'\n",subtitle); ol.startMemberSubtitle(); - ol.parseDoc("[generated]",-1,0,0,subtitle,FALSE,FALSE); + ol.parseDoc("[generated]",-1,ctx,0,subtitle,FALSE,FALSE); ol.endMemberSubtitle(); } @@ -358,7 +363,7 @@ void MemberList::writeDeclarations(OutputList &ol, { //printf("Member group has docs!\n"); ol.startMemberGroupDocs(); - ol.parseDoc("[generated]",-1,0,0,mg->documentation()+"\n",FALSE,FALSE); + ol.parseDoc("[generated]",-1,ctx,0,mg->documentation()+"\n",FALSE,FALSE); ol.endMemberGroupDocs(); } ol.startMemberGroup(); diff --git a/src/rtfdocvisitor.cpp b/src/rtfdocvisitor.cpp index 4ed7c16..da7b062 100644 --- a/src/rtfdocvisitor.cpp +++ b/src/rtfdocvisitor.cpp @@ -895,7 +895,7 @@ void RTFDocVisitor::visitPre(DocHtmlRow *r) { if (m_hide) return; DBG_RTF("{\\comment RTFDocVisitor::visitPre(DocHtmlRow)}\n"); - uint i,columnWidth=rtf_pageWidth/r->numCells(); + uint i,columnWidth=r->numCells()>0 ? rtf_pageWidth/r->numCells() : 10; m_t << "\\trowd \\trgaph108\\trleft-108" "\\trbrdrt\\brdrs\\brdrw10 " "\\trbrdrl\\brdrs\\brdrw10 " diff --git a/src/rtfgen.cpp b/src/rtfgen.cpp index a0d5e31..79e2fec 100644 --- a/src/rtfgen.cpp +++ b/src/rtfgen.cpp @@ -607,7 +607,7 @@ void RTFGenerator::endIndexSection(IndexSections is) t << "{\\tc \\v " << substitute(Doxygen::mainPage->title(),"%","") << "}"<< endl; } t << "{\\field\\fldedit{\\*\\fldinst INCLUDETEXT \""; - if (Config_getBool("GENERATE_TREEVIEW")) t << "main"; else t << "index"; + if (usingTreeIndex()) t << "main"; else t << "index"; t << ".rtf\" \\\\*MERGEFORMAT}{\\fldrslt includedstuff}}\n"; break; //case isPackageIndex: diff --git a/src/scanner.l b/src/scanner.l index 8125b9c..61e8d11 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -170,6 +170,7 @@ static QCString idlAttr; static QCString idlProp; static bool g_lexInit = FALSE; +static bool externC; //----------------------------------------------------------------------------- @@ -902,6 +903,12 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) curlyCount=0; BEGIN( CliPropertyType ); } + else if (insideCS) + { + lineCount() ; + current->mtype = Event; + current->bodyLine = yyLineNr; + } else { REJECT; @@ -3006,8 +3013,8 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) } else { - current->doc.resize(0); - current->brief.resize(0); + //current->doc.resize(0); + //current->brief.resize(0); BEGIN( MemberSpec ) ; } } @@ -4324,7 +4331,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) { current->name += "-p"; } - if ((current->section & Entry::Protocol) || + if ((current->spec & Entry::Protocol) || current->section == Entry::OBJCIMPL_SEC) { unput('{'); // fake start of body @@ -4453,6 +4460,11 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) unput('{'); BEGIN( lastCSConstraint ); } +";" { + handleParametersCommentBlocks(current->typeConstr); + unput(';'); + BEGIN( lastCSConstraint ); + } ":" { BEGIN( CSConstraintType ); } @@ -4719,6 +4731,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) if (*yytext=='>') { // end of a ObjC protocol list insideProtocolList=FALSE; + unput('{'); // dummy start body } else { @@ -4831,6 +4844,7 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) ("//"{B}*)?"/**"/[^/*] { removeSlashes=(yytext[1]=='/'); lastDocContext = YY_START; + //printf("Found comment block at %s:%d\n",yyFileName,yyLineNr); if (current_root->section & Entry::SCOPE_MASK) { @@ -4918,9 +4932,14 @@ TYPEDEFPREFIX (("typedef"{BN}+)?)((("volatile"|"const"){BN}+)?) } "extern"{BN}*"\"C"("++")?"\""{BN}*("{")? { lineCount(); + externC=TRUE; } "{" { - if (insideCS && + if (externC) + { + externC=FALSE; + } + else if (insideCS && !current->name.isEmpty() && !current->type.isEmpty()) { diff --git a/src/translator_de.h b/src/translator_de.h index 99e4e2d..c3aa248 100644 --- a/src/translator_de.h +++ b/src/translator_de.h @@ -672,8 +672,8 @@ class TranslatorGerman : public Translator case ClassDef::Struct: result+="Struktur"; break; case ClassDef::Union: result+="Varianten"; break; case ClassDef::Interface: result+="Schnittstellen"; break; - case ClassDef::Protocol: result+="Protocol"; break; // translate me! - case ClassDef::Category: result+="Category"; break; // translate me! + case ClassDef::Protocol: result+="Protokoll"; break; + case ClassDef::Category: result+="Kategorie"; break; case ClassDef::Exception: result+="Ausnahmen"; break; } result+="referenz"; @@ -840,8 +840,8 @@ class TranslatorGerman : public Translator case ClassDef::Struct: result+=" Struktur"; break; case ClassDef::Union: result+=" Variante"; break; case ClassDef::Interface: result+=" Schnittstelle"; break; - case ClassDef::Protocol: result+=" Protocol"; break; // translate me! - case ClassDef::Category: result+=" Category"; break; // translate me! + case ClassDef::Protocol: result+="s Protokoll"; break; + case ClassDef::Category: result+=" Kategorie"; break; case ClassDef::Exception: result+=" Ausnahme"; break; } result+=" wurde erzeugt aufgrund der Datei"; diff --git a/src/util.cpp b/src/util.cpp index d2e9593..db5eb08 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -3069,8 +3069,8 @@ static QCString getCanonicalTypeForIdentifier( //printf(" >>>> word '%s' => '%s' templSpec=%s ts=%s tSpec=%s isTemplate=%d resolvedType=%s\n", // (word+templSpec).data(), // cd?cd->qualifiedName().data():"", - // templSpec.data(),ts.data(), - // tSpec?tSpec->data():"", + // templSpec.data(),ts.data(), + // tSpec?tSpec->data():"", // cd?cd->isTemplate():FALSE, // resolvedType.data()); @@ -3400,6 +3400,7 @@ void mergeArguments(ArgumentList *srcAl,ArgumentList *dstAl,bool forceNameOverwr if (srcA->type==dstA->type) { + //printf("1. merging %s:%s <-> %s:%s\n",srcA->type.data(),srcA->name.data(),dstA->type.data(),dstA->name.data()); if (srcA->name.isEmpty() && !dstA->name.isEmpty()) { //printf("type: `%s':=`%s'\n",srcA->type.data(),dstA->type.data()); @@ -3436,7 +3437,9 @@ void mergeArguments(ArgumentList *srcAl,ArgumentList *dstAl,bool forceNameOverwr } else { - //printf("merging %s:%s <-> %s:%s\n",srcA->type.data(),srcA->name.data(),dstA->type.data(),dstA->name.data()); + //printf("2. merging '%s':'%s' <-> '%s':'%s'\n",srcA->type.data(),srcA->name.data(),dstA->type.data(),dstA->name.data()); + srcA->type=srcA->type.stripWhiteSpace(); + dstA->type=dstA->type.stripWhiteSpace(); if (srcA->type+" "+srcA->name==dstA->type) // "unsigned long:int" <-> "unsigned long int:bla" { srcA->type+=" "+srcA->name; @@ -3833,7 +3836,7 @@ bool getDefs(const QCString &scName,const QCString &memberName, // md->name().data(),args,fd,gd); if ( ((gd && gd->isLinkable()) || (fd && fd->isLinkable())) && - md->getNamespaceDef()==0 + md->getNamespaceDef()==0 && md->isLinkable() ) { //printf(" fd=%p gd=%p args=`%s'\n",fd,gd,args); @@ -3905,7 +3908,6 @@ bool getDefs(const QCString &scName,const QCString &memberName, } if (bmd) md=bmd; } - if (md && !md->isLinkable()) md=0; // ignore things we cannot link to if (md) // found a matching global member { fd=md->getFileDef(); @@ -4469,12 +4471,13 @@ FileDef *findFileDef(const FileNameDict *fnDict,const char *n,bool &ambig) for (fni.toFirst();(fd=fni.current());++fni) { QCString fdStripPath = stripFromIncludePath(fd->getPath()); - if (path.isEmpty() || fdStripPath==pathStripped) + if (path.isEmpty() || fdStripPath.right(pathStripped.length())==pathStripped) { count++; lastMatch=fd; } } + ambig=(count>1); cachedResult->isAmbig = ambig; cachedResult->fileDef = lastMatch; @@ -6593,3 +6596,9 @@ void writeTypeConstraints(OutputList &ol,Definition *d,ArgumentList *al) ol.endConstraintList(); } +bool usingTreeIndex() +{ + QCString& TreeView=Config_getEnum("GENERATE_TREEVIEW"); + return TreeView=="FRAME" || TreeView=="ALL" || TreeView=="YES"; +} + diff --git a/src/util.h b/src/util.h index 030b61b..380b237 100644 --- a/src/util.h +++ b/src/util.h @@ -351,5 +351,7 @@ void writeTypeConstraints(OutputList &ol,Definition *d,ArgumentList *al); QCString convertCharEntitiesToUTF8(const QCString &s); +bool usingTreeIndex(); + #endif -- cgit v0.12