7
|
1 [%
|
|
2 labels(
|
|
3 CollectionTitle = "Home (%name%)"
|
|
4 );
|
11
|
5 document.dojo.enable = 1;
|
8
|
6
|
7
|
7 document.css.push(css.library);
|
|
8
|
|
9 CollectionClass = 'Benzin::Doxygen::Model::Collection';
|
|
10 CompoundClass = 'Benzin::Doxygen::Model::Compound';
|
|
11 MemberClass = 'Benzin::Doxygen::Model::Member';
|
|
12
|
|
13 Icons = {
|
|
14 namespace = 'NS',
|
|
15 class = 'C',
|
|
16 variable = 'Var',
|
|
17 function = 'F',
|
|
18 property = 'P',
|
|
19 interface = 'I',
|
|
20 struct = 'S',
|
|
21 enum = 'E',
|
|
22 event = 'Ev'
|
|
23 };
|
|
24
|
|
25 NullIcon = ' ';
|
|
26
|
|
27 coll = resource.Seek('doxygenCollection');
|
|
28
|
|
29 compounds = coll.location.compounds;
|
|
30 members = resource.Seek('compound').location || coll.location.members;
|
|
31
|
|
32 document.title = model.canonicalName;
|
|
33
|
|
34 MACRO GetLocationFor(model) BLOCK;
|
|
35 members.Child(model.doxId) IF model.isa(MemberClass);
|
|
36 compounds.Child(model.doxId) IF model.isa(CompoundClass);
|
|
37 END;
|
|
38 %]
|
|
39 [% MACRO IconKind(model) BLOCK %]<span class="icon">[% Icons.item(model.kind) || NullIcon %]</span>[% END %]
|
|
40 [% MACRO Link(model,label,title) BLOCK %]<a class="$model.kind $model.protection" [% IF title %]title="$title" [% END %]href="[% GetLocationFor(model) %]">[% IconKind(model) %] $label</a>[% END %]
|
|
41 [% MACRO CompoundSiblings(model) BLOCK %]
|
|
42 [% compound = model.isa(MemberClass) ? model.compound : model %]
|
|
43 <ul class="members">
|
|
44 [% FOREACH item IN compound.GetSiblings({ kind = { '-not_in' = [ 'file', 'dir' ] } }) %]
|
|
45 <li [% IF item.doxId == compound.doxId %]class="active"[% END %]>[% Link(item,item.shortName, item.canonicalName) %]</li>
|
|
46 [% END %]
|
|
47 </ul>
|
|
48 [% END %]
|
|
49 [% MACRO Members(model) BLOCK %]
|
|
50 [% compound = model.isa(MemberClass) ? model.compound : model %]
|
|
51 <ul class="members">
|
|
52 [% FOREACH item IN compound.GetMembers({ kind = { '-not_in' = [ 'file', 'dir' ] } }) %]
|
|
53 <li [% IF item.doxId == model.doxId %]class="active"[% END %]>[% Link(item,item.shortName, item.canonicalName) %]</li>
|
|
54 [% END %]
|
|
55 </ul>
|
|
56 [% END %]
|
11
|
57 [% BLOCK LAYOUT;
|
|
58 render('base', content = content);
|
|
59 END %]
|
|
60 [% WRAPPER LAYOUT %]
|
7
|
61 <div class="library-pane">
|
|
62
|
|
63 <div id="toc-nav" class="nav-pane left">
|
|
64 [% IF model.isa(CollectionClass) %]
|
|
65
|
|
66 <ul class="dox-nav-menu">
|
|
67 <li class="last"><a href="$coll.location" title="$coll.model.description">[% CollectionTitle( name = coll.model.name) %]</a></li>
|
|
68 [% Members(model) %]
|
|
69 </ul>
|
|
70 [% ELSE %]
|
|
71 [%
|
|
72 parents = model.GetParents({ kind = { '-not_in' = [ 'file', 'dir' ] } });
|
|
73 parents.push(model) IF model.isa(CompoundClass);
|
|
74 %]
|
|
75 <ul class="dox-nav-menu">
|
|
76 <li [% IF !parents.size %]class="last"[% END %]><a href="$coll.location" title="$coll.model.description">[% CollectionTitle( name = coll.model.name) %]</a></li>
|
|
77 [% FOREACH parent IN parents %]
|
|
78 <li [% IF loop.last %]class="last"[% END %]>[% Link(parent, parent.shortName, parent.canonicalName) %]</li>
|
|
79 [% END %]
|
|
80 [% Members(model) %]
|
|
81 </ul>
|
|
82 [% END %]
|
|
83 </div>
|
|
84 <div id="siblings-nav" class="nav-pane right">
|
|
85 [% CompoundSiblings(model) %]
|
|
86 </div>
|
|
87 <div id="content-pane" class="content-pane">
|
|
88 $content
|
|
89 </div>
|
|
90 <script type="text/javascript">
|
|
91 require(['implab/sticky'],function(sticky) {
|
|
92 sticky('toc-nav',{ along: 'content-pane' });
|
|
93 sticky('siblings-nav', { along: 'content-pane' });
|
|
94 });
|
|
95 </script>
|
8
|
96 </div>
|
11
|
97 [% END %] |