diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 1999-12-15 19:26:45 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 1999-12-15 19:26:45 (GMT) |
commit | e04496cb647291b94c0b27b8babb127a79803579 (patch) | |
tree | bec2e27efcff1ecb747c25b00bb9fea1e068d151 /src/definition.cpp | |
parent | 322885a8700a209812bf5a94205260c9bef6ac1f (diff) | |
download | Doxygen-e04496cb647291b94c0b27b8babb127a79803579.zip Doxygen-e04496cb647291b94c0b27b8babb127a79803579.tar.gz Doxygen-e04496cb647291b94c0b27b8babb127a79803579.tar.bz2 |
mods for doxygen-0.49-990522
Diffstat (limited to 'src/definition.cpp')
-rw-r--r-- | src/definition.cpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/definition.cpp b/src/definition.cpp index 535612b..328bebe 100644 --- a/src/definition.cpp +++ b/src/definition.cpp @@ -16,6 +16,17 @@ #include <ctype.h> #include "definition.h" +#include "doxygen.h" + +Definition::Definition(const char *name,const char *b,const char *d) +{ + n=name; brief=b; doc=d; sectionList=0; +} + +Definition::~Definition() +{ + delete sectionList; +} QString Definition::nameToFile(const char *name) { @@ -42,3 +53,22 @@ QString Definition::nameToFile(const char *name) } return result; } + +void Definition::addSectionsToDefinition(QList<QString> *anchorList) +{ + if (!anchorList) return; + QString *s=anchorList->first(); + while (s) + { + SectionInfo *si=0; + if (!s->isEmpty() && (si=sectionDict[*s])) + { + //printf("Add section `%s' to definition `%s'\n", + // si->label.data(),n.data()); + if (sectionList==0) sectionList = new SectionList; + sectionList->append(si); + si->definition = this; + } + s=anchorList->next(); + } +} |