Doxygen
ftvhelp.h
浏览该文件的文档.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2021 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
16
/******************************************************************************
17
* ftvhelp.h,v 1.0 2000/09/06 16:09:00
18
*
19
* Kenney Wong <kwong@ea.com>
20
*
21
* Folder Tree View for offline help on browsers that do not support HTML Help.
22
*/
23
24
#ifndef FTVHELP_H
25
#define FTVHELP_H
26
27
#include <vector>
28
#include "
index.h
"
29
30
class
Definition
;
31
class
TextStream
;
32
struct
FTVNode
;
33
34
/** A class that generates a dynamic tree view side panel.
35
*/
36
class
FTVHelp
:
public
IndexIntf
37
{
38
public
:
39
FTVHelp
(
bool
LTI);
40
~FTVHelp
();
41
void
initialize
();
42
void
finalize
();
43
void
incContentsDepth
();
44
void
decContentsDepth
();
45
void
addContentsItem
(
bool
isDir,
46
const
QCString
&name,
47
const
QCString
&ref,
48
const
QCString
&file,
49
const
QCString
&anchor,
50
bool
separateIndex,
51
bool
addToNavIndex,
52
const
Definition
*def);
53
void
addIndexItem
(
const
Definition
*,
const
MemberDef
*,
const
QCString
&,
const
QCString
&) {}
54
void
addIndexFile
(
const
QCString
&) {}
55
void
addImageFile
(
const
QCString
&) {}
56
void
addStyleSheetFile
(
const
QCString
&) {}
57
void
generateTreeView
();
58
void
generateTreeViewInline
(
TextStream
&t);
59
static
void
generateTreeViewImages
();
60
void
generateTreeViewScripts
();
61
private
:
62
void
generateTree
(
TextStream
&t,
const
std::vector<FTVNode*> &nl,
int
level,
int
maxLevel,
int
&index);
63
QCString
generateIndentLabel
(
FTVNode
*n,
int
level);
64
void
generateIndent
(
TextStream
&t,
FTVNode
*n,
bool
opened);
65
void
generateLink
(
TextStream
&t,
FTVNode
*n);
66
std::vector< std::vector<FTVNode*> >
m_indentNodes
;
67
int
m_indent
;
68
bool
m_topLevelIndex
;
69
};
70
71
extern
const
char
*
JAVASCRIPT_LICENSE_TEXT
;
72
73
#endif
/* FTVHELP_H */
74
FTVHelp::FTVHelp
FTVHelp(bool LTI)
Definition:
ftvhelp.cpp:126
FTVHelp::addIndexItem
void addIndexItem(const Definition *, const MemberDef *, const QCString &, const QCString &)
Definition:
ftvhelp.h:53
Definition
The common base class of all entity definitions found in the sources.
Definition:
definition.h:76
index.h
FTVHelp::generateTree
void generateTree(TextStream &t, const std::vector< FTVNode * > &nl, int level, int maxLevel, int &index)
Definition:
ftvhelp.cpp:386
FTVHelp::addContentsItem
void addContentsItem(bool isDir, const QCString &name, const QCString &ref, const QCString &file, const QCString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def)
Definition:
ftvhelp.cpp:210
FTVHelp::incContentsDepth
void incContentsDepth()
Definition:
ftvhelp.cpp:168
FTVHelp::decContentsDepth
void decContentsDepth()
Definition:
ftvhelp.cpp:179
FTVHelp::generateTreeViewInline
void generateTreeViewInline(TextStream &t)
Definition:
ftvhelp.cpp:787
TextStream
Text streaming class that buffers data.
Definition:
textstream.h:33
FTVHelp::generateIndentLabel
QCString generateIndentLabel(FTVNode *n, int level)
Definition:
ftvhelp.cpp:271
FTVHelp::initialize
void initialize()
Definition:
ftvhelp.cpp:151
MemberDef
A model of a class/file/namespace member symbol.
Definition:
memberdef.h:45
FTVHelp::generateLink
void generateLink(TextStream &t, FTVNode *n)
Definition:
ftvhelp.cpp:302
FTVHelp::m_topLevelIndex
bool m_topLevelIndex
Definition:
ftvhelp.h:68
FTVHelp::generateTreeView
void generateTreeView()
Definition:
ftvhelp.cpp:848
JAVASCRIPT_LICENSE_TEXT
const char * JAVASCRIPT_LICENSE_TEXT
Definition:
ftvhelp.cpp:42
FTVHelp::addImageFile
void addImageFile(const QCString &)
Definition:
ftvhelp.h:55
FTVHelp::generateTreeViewImages
static void generateTreeViewImages()
Definition:
ftvhelp.cpp:763
FTVHelp::finalize
void finalize()
Definition:
ftvhelp.cpp:159
FTVHelp::addIndexFile
void addIndexFile(const QCString &)
Definition:
ftvhelp.h:54
FTVHelp::generateTreeViewScripts
void generateTreeViewScripts()
Definition:
ftvhelp.cpp:774
FTVHelp::addStyleSheetFile
void addStyleSheetFile(const QCString &)
Definition:
ftvhelp.h:56
FTVHelp::m_indentNodes
std::vector< std::vector< FTVNode * > > m_indentNodes
Definition:
ftvhelp.h:66
FTVHelp
A class that generates a dynamic tree view side panel.
Definition:
ftvhelp.h:36
FTVNode
Definition:
ftvhelp.cpp:68
FTVHelp::generateIndent
void generateIndent(TextStream &t, FTVNode *n, bool opened)
Definition:
ftvhelp.cpp:282
IndexIntf
Abstract interface for index generators.
Definition:
index.h:32
FTVHelp::m_indent
int m_indent
Definition:
ftvhelp.h:67
FTVHelp::~FTVHelp
~FTVHelp()
Definition:
ftvhelp.cpp:135
QCString
This is an alternative implementation of QCString.
Definition:
qcstring.h:108
src
ftvhelp.h
生成于 2021年 十一月 27日 星期六 08:40:53 , 为 Doxygen使用
1.8.17