GroupDef::GroupDef(const char *df,int dl,const char *na,const char *t, const char *refFileName) : Definition(df,dl,1,na) { fileList = new FileList; classSDict = new ClassSDict(17); groupList = new GroupList; namespaceSDict = new NamespaceSDict(17); pageDict = new PageSDict(17); exampleDict = new PageSDict(17); dirList = new DirList; allMemberNameInfoSDict = new MemberNameInfoSDict(17); allMemberNameInfoSDict->setAutoDelete(TRUE); if (refFileName) { fileName=stripExtension(refFileName); } else { fileName = convertNameToFile(QCString("group_")+na); } setGroupTitle( t ); memberGroupSDict = new MemberGroupSDict; memberGroupSDict->setAutoDelete(TRUE); allMemberList = new MemberList(MemberListType_allMembersList); visited = 0; groupScope = 0; m_subGrouping=Config_getBool(SUBGROUPING); }
QCString GroupDef::getOutputFileBase() const { if (isReference()) { return fileName; } else { return convertNameToFile(fileName); } }
/*! Returns the name of the verbatim copy of this file (if any). */ QCString FileDef::includeName() const { if (Htags::useHtags) { return Htags::path2URL(filepath); } else { return convertNameToFile(diskname)+"_source"; } }
void NamespaceDef::setFileName(const QCString &fn) { if (isReference()) { fileName = "namespace"+fn; } else { fileName = convertNameToFile("namespace"+fn); } }
void PageDef::setFileName(const char *name,bool dontEscape) { static bool shortNames = Config_getBool("SHORT_NAMES"); if (shortNames && !dontEscape) { m_fileName = convertNameToFile(name); } else { m_fileName = name; } }
PageDef::PageDef(const char *f,int l,const char *n, const char *d,const char *t) : Definition(f,l,1,n), m_title(t) { setDocumentation(d,f,l); m_subPageDict = new PageSDict(7); m_pageScope = 0; m_nestingLevel = 0; static bool shortNames = Config_getBool(SHORT_NAMES); m_fileName = shortNames ? convertNameToFile(n) : QCString(n); m_showToc = FALSE; }
NamespaceDef::NamespaceDef(const char *df,int dl,int dc, const char *name,const char *lref, const char *fName, const char*type, bool isPublished) : Definition(df,dl,dc,name) ,m_isPublished(isPublished) { if (fName) { if (lref) { fileName = stripExtension(fName); } else { fileName = convertNameToFile(stripExtension(fName)); } } else { setFileName(name); } classSDict = new ClassSDict(17); namespaceSDict = new NamespaceSDict(17); m_innerCompounds = new SDict<Definition>(17); usingDirList = 0; usingDeclList = 0; m_allMembersDict = 0; setReference(lref); memberGroupSDict = new MemberGroupSDict; memberGroupSDict->setAutoDelete(TRUE); visited=FALSE; m_subGrouping=Config_getBool(SUBGROUPING); if (type && !strcmp("module", type)) { m_type = MODULE; } else if (type && !strcmp("constants", type)) { m_type = CONSTANT_GROUP; } else if (type && !strcmp("library", type)) { m_type = LIBRARY; } else { m_type = NAMESPACE; } }
/*! Create a list of items that are cross referenced with documentation blocks * @param listName String representing the name of the list. * @param pageTitle String representing the title of the list page. * @param secTitle String representing the title of the section. */ RefList::RefList(const char *listName, const char *pageTitle, const char *secTitle ) { m_itemList = 0; m_dict = 0; m_dictIterator = 0; m_id = 0; m_listName = listName; m_fileName = convertNameToFile(listName,FALSE,TRUE); m_pageTitle = pageTitle; m_secTitle = secTitle; }