Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
ftvhelp.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2026 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 <memory>
28
#include <vector>
29
30
#include "
construct.h
"
31
#include "
indexlist.h
"
32
33
class
Definition
;
34
class
DString
;
35
class
MemberDef
;
36
class
TextStream
;
37
38
/** A class that generates a dynamic tree view side panel.
39
*/
40
class
FTVHelp
final :
public
IndexIntf
41
{
42
public
:
43
FTVHelp
(
bool
LTI);
44
~FTVHelp
();
45
NON_COPYABLE
(
FTVHelp
)
46
47
void
initialize
();
48
void
finalize
();
49
void
incContentsDepth
();
50
void
decContentsDepth
();
51
void
addContentsItem
(
bool
isDir,
52
const
DString
&name,
53
const
DString
&ref,
54
const
DString
&file,
55
const
DString
&anchor,
56
bool
separateIndex,
57
bool
addToNavIndex,
58
const
Definition
*def,
59
const
DString
&nameAsHtml=
DString
());
60
void
addIndexItem
(
const
Definition
*,
const
MemberDef
*,
const
DString
&,
const
DString
&) {}
61
void
addIndexFile
(
const
DString
&) {}
62
void
addImageFile
(
const
DString
&) {}
63
void
addStyleSheetFile
(
const
DString
&) {}
64
void
generateTreeView
();
65
void
generateTreeViewInline
(
TextStream
&t);
66
void
generateTreeViewScripts
();
67
private
:
68
struct
Private;
69
std::unique_ptr<Private>
p
;
70
};
71
72
constexpr
auto
JAVASCRIPT_LICENSE_TEXT
= R
"LIC(/*
73
@licstart The following is the entire license notice for the JavaScript code in this file.
74
75
The MIT License (MIT)
76
77
Copyright (C) 1997-2026 by Dimitri van Heesch
78
79
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
80
and associated documentation files (the "Software"), to deal in the Software without restriction,
81
including without limitation the rights to use, copy, modify, merge, publish, distribute,
82
sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is
83
furnished to do so, subject to the following conditions:
84
85
The above copyright notice and this permission notice shall be included in all copies or
86
substantial portions of the Software.
87
88
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
89
BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
90
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
91
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
92
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
93
94
@licend The above is the entire license notice for the JavaScript code in this file
95
*/
96
)LIC";
97
98
#endif
/* FTVHELP_H */
99
DString
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition
dstring.h:88
DString::DString
DString()=default
Definition
The common base class of all entity definitions found in the sources.
Definition
definition.h:77
FTVHelp::p
std::unique_ptr< Private > p
Definition
ftvhelp.h:69
FTVHelp::generateTreeView
void generateTreeView()
Definition
ftvhelp.cpp:946
FTVHelp::addIndexFile
void addIndexFile(const DString &)
Definition
ftvhelp.h:61
FTVHelp::decContentsDepth
void decContentsDepth()
Definition
ftvhelp.cpp:154
FTVHelp::finalize
void finalize()
Definition
ftvhelp.cpp:134
FTVHelp::initialize
void initialize()
Definition
ftvhelp.cpp:126
FTVHelp::addIndexItem
void addIndexItem(const Definition *, const MemberDef *, const DString &, const DString &)
Definition
ftvhelp.h:60
FTVHelp::FTVHelp
FTVHelp(bool LTI)
Definition
ftvhelp.cpp:120
FTVHelp::incContentsDepth
void incContentsDepth()
Definition
ftvhelp.cpp:143
FTVHelp::addContentsItem
void addContentsItem(bool isDir, const DString &name, const DString &ref, const DString &file, const DString &anchor, bool separateIndex, bool addToNavIndex, const Definition *def, const DString &nameAsHtml=DString())
Definition
ftvhelp.cpp:186
FTVHelp::~FTVHelp
~FTVHelp()
FTVHelp::generateTreeViewScripts
void generateTreeViewScripts()
Definition
ftvhelp.cpp:872
FTVHelp::addStyleSheetFile
void addStyleSheetFile(const DString &)
Definition
ftvhelp.h:63
FTVHelp::addImageFile
void addImageFile(const DString &)
Definition
ftvhelp.h:62
FTVHelp::generateTreeViewInline
void generateTreeViewInline(TextStream &t)
Definition
ftvhelp.cpp:881
IndexIntf
Abstract interface for index generators.
Definition
indexlist.h:34
MemberDef
A model of a class/file/namespace member symbol.
Definition
memberdef.h:45
TextStream
Text streaming class that buffers data.
Definition
textstream.h:36
construct.h
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
JAVASCRIPT_LICENSE_TEXT
constexpr auto JAVASCRIPT_LICENSE_TEXT
Definition
ftvhelp.h:72
indexlist.h
src
ftvhelp.h
Generated by
1.19.0