summaryrefslogtreecommitdiffstats
path: root/src/namespacedef.h
diff options
context:
space:
mode:
authormueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:34:06 (GMT)
committermueller <mueller@afe2bf4a-e733-0410-8a33-86f594647bc7>1999-12-15 19:34:06 (GMT)
commitf18128845407f8612668950e112c2d5c3e0ff5be (patch)
tree43e0b215b5d3d2b436509cbb1cd22102aef61b1d /src/namespacedef.h
parentdaf91dc906e217e81f77f491e0abf505a91289b8 (diff)
downloadDoxygen-f18128845407f8612668950e112c2d5c3e0ff5be.zip
Doxygen-f18128845407f8612668950e112c2d5c3e0ff5be.tar.gz
Doxygen-f18128845407f8612668950e112c2d5c3e0ff5be.tar.bz2
mods for doxygen-0.49-990829
Diffstat (limited to 'src/namespacedef.h')
-rw-r--r--src/namespacedef.h34
1 files changed, 25 insertions, 9 deletions
diff --git a/src/namespacedef.h b/src/namespacedef.h
index ca25700..e68fa3f 100644
--- a/src/namespacedef.h
+++ b/src/namespacedef.h
@@ -41,20 +41,32 @@ class NamespaceDef : public Definition
void insertMember(MemberDef *md);
void computeAnchors();
int countMembers();
- const char *getReference() { return reference; }
- bool isVisible()
+ //const char *getReference() { return reference; }
+ //bool isVisible()
+ //{
+ // return !getReference() && hasDocumentation() &&
+ // !name().isEmpty() && name().at(0)!='@';
+ //}
+ //bool isVisibleExt()
+ //{
+ // return (getReference() || hasDocumentation()) &&
+ // !name().isEmpty() && name().at(0)!='@';
+ //}
+
+ bool isLinkableInProject()
{
- return !getReference() && hasDocumentation() &&
- !name().isEmpty() && name().at(0)!='@';
+ int i = name().findRev("::");
+ if (i==-1) i=0; else i+=2;
+ return !name().isEmpty() && name().at(i)!='@' &&
+ hasDocumentation() && !isReference();
}
- bool isVisibleExt()
+ bool isLinkable()
{
- return (getReference() || hasDocumentation()) &&
- !name().isEmpty() && name().at(0)!='@';
+ return isLinkableInProject() || isReference();
}
private:
- QCString reference;
+ //QCString reference;
QCString fileName;
QStrList files;
ClassList *classList;
@@ -79,6 +91,10 @@ class NamespaceListIterator : public QListIterator<NamespaceDef>
QListIterator<NamespaceDef>(l) {}
};
-typedef QDict<NamespaceDef> NamespaceDict;
+class NamespaceDict : public QDict<NamespaceDef>
+{
+ public:
+ NamespaceDict(int size) : QDict<NamespaceDef>(size) {}
+};
#endif