Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qhelpdatainterface_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
3
4#ifndef QHELPDATAINTERFACE_H
5#define QHELPDATAINTERFACE_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists for the convenience
12// of the help generator tools. This header file may change from version
13// to version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/QSharedData>
19#include <QtCore/QStringList>
20#include <QtCore/QVariant>
21
22QT_BEGIN_NAMESPACE
23
24class QHelpDataContentItem
25{
26public:
27 QHelpDataContentItem(QHelpDataContentItem *parent, const QString &title,
28 const QString &reference);
29 ~QHelpDataContentItem();
30
31 QString title() const;
32 QString reference() const;
33 QList<QHelpDataContentItem*> children() const;
34
35private:
36 QString m_title;
37 QString m_reference;
38 QList<QHelpDataContentItem*> m_children;
39};
40
43 QHelpDataIndexItem(const QString &n, const QString &id, const QString &r)
44 : name(n), identifier(id), reference(r) {}
45
49
50 bool operator==(const QHelpDataIndexItem & other) const;
51};
52
66
68{
69public:
71
72 void addFilterAttribute(const QString &filter);
74
75 void addIndex(const QHelpDataIndexItem &index);
76 void setIndices(const QList<QHelpDataIndexItem> &indices);
78
79 void addContent(QHelpDataContentItem *content);
80 void setContents(const QList<QHelpDataContentItem*> &contents);
82
83 void addFile(const QString &file);
84 void setFiles(const QStringList &files);
85 QStringList files() const;
86
87private:
88 QSharedDataPointer<QHelpDataFilterSectionData> d;
89};
90
95
96QT_END_NAMESPACE
97
98#endif // QHELPDATAINTERFACE_H
int main(int argc, char *argv[])
[2]
Definition buffer.cpp:77
static void setFullTextSearchFallbackEnabled(QHelpEngineCore &helpEngine, bool on)
static void setAddressBarVisible(QHelpEngineCore &helpEngine, bool visible)
static void setDocumentationManagerEnabled(QHelpEngineCore &helpEngine, bool enabled)
static void setAddressBarEnabled(QHelpEngineCore &helpEngine, bool enabled)
static void updateLastRegisterTime(QHelpEngineCore &helpEngine)
static void setFilterToolbarVisible(QHelpEngineCore &helpEngine, bool visible)
static void setFilterFunctionalityEnabled(QHelpEngineCore &helpEngine, bool enabled)
QString error() const
bool checkLinks(const QHelpProjectData &helpData)
bool generate(QHelpProjectData *helpData, const QString &outputFileName)
Definition main.cpp:24
QList< QHelpDataContentItem * > contents
QList< QHelpDataIndexItem > indices
void addContent(QHelpDataContentItem *content)
Adds the top level content item content to the filter section.
void addFilterAttribute(const QString &filter)
Adds the filter attribute filter to the filter attributes of this section.
void setContents(const QList< QHelpDataContentItem * > &contents)
Sets the list of top level content items of the filter section to contents.
QStringList filterAttributes() const
Returns a list of all filter attributes defined for this section.
void setFiles(const QStringList &files)
Set the list of files to files.
QList< QHelpDataIndexItem > indices() const
Returns the list of indices.
void setIndices(const QList< QHelpDataIndexItem > &indices)
Sets the filter sections list of indices to indices.
QHelpDataFilterSection()
Constructs a help data filter section.
void addFile(const QString &file)
Adds the file file to the filter section.
QStringList files() const
Returns the list of files.
QList< QHelpDataContentItem * > contents() const
Returns a list of top level content items.
void addIndex(const QHelpDataIndexItem &index)
Adds the index item index to the list of indices.
The QHelpProjectData class stores all information found in a Qt help project file.
QHelpProjectData()
Constructs a Qt help project data structure.
~QHelpProjectData()
Destroys the help project data.
QString virtualFolder() const
QMap< QString, QVariant > metaData() const
QString errorMessage() const
Returns an error message if the reading of the Qt help project file failed.
QString namespaceName() const
QList< QHelpDataFilterSection > filterSections() const
bool readData(const QString &fileName)
Reads the file fileName and stores the help data.
QString rootPath() const
QList< QHelpDataCustomFilter > customFilters() const
Combined button and popup list for selecting options.
static const char QHP[]
Definition main.cpp:28
static const char QHC[]
Definition main.cpp:32
int generateCollectionFile(const QByteArray &data, const QString &basePath, const QString outputFile)
Definition main.cpp:41
static const char QCH[]
Definition main.cpp:29
static const char QHCP[]
Definition main.cpp:31
QHelpDataIndexItem(const QString &n, const QString &id, const QString &r)
bool operator==(const QHelpDataIndexItem &other) const