My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
LayoutDocManager Class Reference

Singleton providing access to the (user configurable) layout of the documentation. More...

#include <layout.h>

Classes

class  Private
 

Public Types

enum  LayoutPart {
  Class, Namespace, File, Group,
  Directory, NrParts
}
 

Public Member Functions

const QList< LayoutDocEntry > & docEntries (LayoutPart part) const
 
LayoutNavEntryrootNavEntry () const
 
void parse (QTextStream &t, const char *fileName)
 
void init ()
 

Static Public Member Functions

static LayoutDocManagerinstance ()
 

Private Member Functions

void addEntry (LayoutPart p, LayoutDocEntry *e)
 
void clear (LayoutPart p)
 
 LayoutDocManager ()
 
 ~LayoutDocManager ()
 

Private Attributes

Privated
 

Friends

class LayoutParser
 

Detailed Description

Singleton providing access to the (user configurable) layout of the documentation.

Definition at line 173 of file layout.h.

Member Enumeration Documentation

Enumerator
Class 
Namespace 
File 
Group 
Directory 
NrParts 

Definition at line 177 of file layout.h.

Constructor & Destructor Documentation

LayoutDocManager::LayoutDocManager ( )
private
LayoutDocManager::~LayoutDocManager ( )
private

Definition at line 1353 of file layout.cpp.

References d, and LayoutDocManager::Private::rootNav.

{
delete d->rootNav;
delete d;
}

Member Function Documentation

void LayoutDocManager::addEntry ( LayoutDocManager::LayoutPart  p,
LayoutDocEntry e 
)
private
void LayoutDocManager::clear ( LayoutDocManager::LayoutPart  p)
private
const QList< LayoutDocEntry > & LayoutDocManager::docEntries ( LayoutDocManager::LayoutPart  part) const

Returns the list of LayoutDocEntry's in representation order for a given page identified by part.

Definition at line 1365 of file layout.cpp.

References d, and LayoutDocManager::Private::docEntries.

{
return d->docEntries[(int)part];
}
void LayoutDocManager::init ( )

Definition at line 1341 of file layout.cpp.

References LayoutParser::instance(), and layout_default.

Referenced by parseInput().

{
// parse the default layout
LayoutErrorHandler errorHandler( "layout_default.xml" );
QXmlInputSource source;
source.setData( layout_default );
QXmlSimpleReader reader;
reader.setContentHandler( &LayoutParser::instance() );
reader.setErrorHandler( &errorHandler );
reader.parse( source );
}
LayoutDocManager & LayoutDocManager::instance ( )
static

Returns a reference to this singleton.

Definition at line 1359 of file layout.cpp.

References LayoutDocManager().

Referenced by addMembersToIndex(), ClassDef::countAdditionalInheritedMembers(), LayoutParser::endMemberDecl(), LayoutParser::endMemberDef(), generateJSNavTree(), ClassDef::getTitleForMemberListType(), parseInput(), renderQuickLinksAsTabs(), LayoutParser::startClass(), LayoutParser::startDirectory(), LayoutParser::startFile(), LayoutParser::startGroup(), LayoutParser::startMemberDecl(), LayoutParser::startMemberDeclEntry(), LayoutParser::startMemberDef(), LayoutParser::startMemberDefEntry(), LayoutParser::startNamespace(), LayoutParser::startNavEntry(), LayoutParser::startNavIndex(), LayoutParser::startSectionEntry(), LayoutParser::startSimpleEntry(), ClassDef::writeAdditionalInheritedMembers(), writeAlphabeticalIndex(), writeAnnotatedIndex(), writeClassMemberIndex(), writeClassMemberIndexFiltered(), ClassDef::writeDeclaration(), writeDefaultQuickLinks(), NamespaceDef::writeDocumentation(), GroupDef::writeDocumentation(), DirDef::writeDocumentation(), FileDef::writeDocumentation(), ClassDef::writeDocumentationContents(), writeExampleIndex(), writeFileIndex(), writeFileMemberIndex(), writeFileMemberIndexFiltered(), writeGraphicalClassHierarchy(), writeGroupIndex(), writeGroupTreeNode(), writeHierarchicalIndex(), writeIndexHierarchy(), writeIndexHierarchyEntries(), ClassDef::writeInlineDocumentation(), writeMenuData(), writeNamespaceIndex(), writeNamespaceMemberIndex(), writeNamespaceMemberIndexFiltered(), writePageIndex(), writePages(), NamespaceDef::writeSummaryLinks(), GroupDef::writeSummaryLinks(), FileDef::writeSummaryLinks(), ClassDef::writeSummaryLinks(), NamespaceDef::writeTagFile(), GroupDef::writeTagFile(), DirDef::writeTagFile(), FileDef::writeTagFile(), and ClassDef::writeTagFile().

{
static LayoutDocManager *theInstance = new LayoutDocManager;
return *theInstance;
}
void LayoutDocManager::parse ( QTextStream &  t,
const char *  fileName 
)

Parses a user provided layout

Definition at line 1385 of file layout.cpp.

References LayoutParser::instance().

Referenced by parseInput().

{
LayoutErrorHandler errorHandler(fileName);
QXmlInputSource source( t );
QXmlSimpleReader reader;
reader.setContentHandler( &LayoutParser::instance() );
reader.setErrorHandler( &errorHandler );
reader.parse( source );
}
LayoutNavEntry * LayoutDocManager::rootNavEntry ( ) const

Friends And Related Function Documentation

friend class LayoutParser
friend

Definition at line 200 of file layout.h.

Member Data Documentation

Private* LayoutDocManager::d
private

Definition at line 199 of file layout.h.

Referenced by addEntry(), clear(), docEntries(), LayoutDocManager(), rootNavEntry(), and ~LayoutDocManager().


The documentation for this class was generated from the following files: