4#ifndef HELPPROJECTWRITER_H
5#define HELPPROJECTWRITER_H
9#include <QtCore/qstring.h>
10#include <QtCore/qxmlstream.h>
19using NodeTypeSet = QSet<
unsigned char>;
34
35
36
37
42 Keyword(QString name,
const QString &id, QString ref)
46 Keyword(QString name, QStringList ids, QString ref)
53 return (m_name == o.m_name) ? m_ref < o.m_ref : m_name < o.m_name;
90 void generateSections(
HelpProject &project, QXmlStreamWriter &writer,
const Node *node);
91 bool generateSection(
HelpProject &project, QXmlStreamWriter &writer,
const Node *node);
92 Keyword keywordDetails(
const Node *node)
const;
93 void writeNode(
HelpProject &project, QXmlStreamWriter &writer,
const Node *node);
94 void readSelectors(
SubProject &subproject,
const QStringList &selectors);
95 void addMembers(
HelpProject &project, QXmlStreamWriter &writer,
const Node *node);
96 void writeSection(QXmlStreamWriter &writer,
const QString &path,
const QString &value);
101 QString m_outputDir {};
102 QList<HelpProject> m_projects {};
const NodeList & childNodes() const
Returns a const reference to the child list.
The Atom class is the fundamental unit for representing documents internally.
AtomType type() const
Return the type of this atom.
const Atom * next() const
Return the next atom in the atom list.
The ClassNode represents a C++ class.
A class for holding the members of a collection of doc pages.
const NodeList & members() const
The Config class contains the configuration variables for controlling how qdoc produces documentation...
const Text & body() const
This node is used to represent any kind of function being documented.
HelpProjectWriter(const QString &defaultFileName, Generator *g)
void addExtraFile(const QString &file)
void reset(const QString &defaultFileName, Generator *g)
bool isExternalPage() const
Returns true if the node type is ExternalPage.
bool isDontDocument() const
Returns true if this node's status is DontDocument.
const Doc & doc() const
Returns a reference to the node's Doc data member.
bool isQmlNode() const
Returns true if this node's Genus value is QML.
bool isGroup() const
Returns true if the node type is Group.
bool isPrivate() const
Returns true if this node's access is Private.
bool isNamespace() const
Returns true if the node type is Namespace.
bool isQmlBasicType() const
Returns true if the node type is QmlBasicType.
bool isQmlType() const
Returns true if the node type is QmlType or QmlValueType.
virtual bool isInternal() const
Returns true if the node's status is Internal, or if its parent is a class with Internal status.
bool isHeader() const
Returns true if the node type is HeaderFile.
virtual bool isPageNode() const
Returns true if this node represents something that generates a documentation page.
virtual bool isTextPageNode() const
Returns true if the node is a PageNode but not an Aggregate.
Aggregate * parent() const
Returns the node's parent pointer.
virtual bool isAggregate() const
Returns true if this node is an aggregate, which means it inherits Aggregate and can therefore have c...
NodeType nodeType() const
Returns this node's type.
static bool nodeNameLessThan(const Node *first, const Node *second)
Returns true if the node n1 is less than node n2.
virtual bool wasSeen() const
Returns the seen flag data member of this node if it is a NamespaceNode or a CollectionNode.
LinkType
An unsigned char value that probably should be moved out of the Node base class.
virtual bool isClassNode() const
Returns true if this is an instance of ClassNode.
virtual bool isCollectionNode() const
Returns true if this is an instance of CollectionNode.
bool isQmlModule() const
Returns true if the node type is QmlModule.
bool isIndexNode() const
Returns true if this node was created from something in an index file.
Status status() const
Returns the node's status value.
A PageNode is a Node that generates a documentation page.
This class provides exclusive access to the qdoc database, which consists of a forrest of trees and a...
static QDocDatabase * qdocDB()
Creates the singleton.
NamespaceNode * primaryTreeRoot()
Returns a pointer to the root node of the primary tree.
const Atom * firstAtom() const
const EnumNode * associatedEnum() const
Combined button and popup list for selecting options.
QSet< QString > m_filterAttributes
QSet< QString > m_extraFiles
QList< SubProject > m_subprojects
QList< Keyword > m_keywords
QSet< QString > m_excluded
QHash< const Node *, NodeStatusSet > m_memberStatus
Keyword(QString name, const QString &id, QString ref)
bool operator<(const Keyword &o) const
Keyword(QString name, QStringList ids, QString ref)
QHash< QString, const Node * > m_nodes