OSDN Git Service

eclair snapshot
[android-x86/build.git] / tools / droiddoc / templates-sdk / customization.cs
1 <?cs # This default template file is meant to be replaced. ?>
2 <?cs # Use the -tempatedir arg to javadoc to set your own directory with a replacement for this file in it. ?>
3
4
5 <?cs # The default search box that goes in the header ?><?cs 
6 def:default_search_box() ?>
7   <div id="search" >
8       <div id="searchForm">
9           <form accept-charset="utf-8" class="gsc-search-box" 
10                 onsubmit="return submit_search()">
11             <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
12                 <tr>
13                   <td class="gsc-input">
14                     <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
15                       title="search developer docs" name="q"
16                       value="search developer docs"
17                       onFocus="search_focus_changed(this, true)"
18                       onBlur="search_focus_changed(this, false)"
19                       onkeydown="return search_changed(event, true, '<?cs var:toroot?>')"
20                       onkeyup="return search_changed(event, false, '<?cs var:toroot?>')" />
21                   <div id="search_filtered_div" class="no-display">
22                       <table id="search_filtered" cellspacing=0>
23                       </table>
24                   </div>
25                   </td>
26                   <td class="gsc-search-button">
27                     <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
28                   </td>
29                   <td class="gsc-clear-button">
30                     <div title="clear results" class="gsc-clear-button">&nbsp;</div>
31                   </td>
32                 </tr></tbody>
33               </table>
34           </form>
35       </div><!-- searchForm -->
36   </div><!-- search --><?cs 
37 /def ?>
38
39 <?cs 
40 def:custom_masthead() ?>
41   <div id="header">
42       <div id="headerLeft">
43           <a href="<?cs var:toroot ?>index.html" tabindex="-1"><img
44               src="<?cs var:toroot ?>assets/images/bg_logo.png" alt="Android Developers" /></a>
45           <?cs include:"header_tabs.cs" ?>     <?cs # The links are extracted so we can better manage localization ?>
46       </div>
47       <div id="headerRight">
48           <div id="headerLinks">
49           <?cs if:template.showLanguageMenu ?>
50             <img src="<?cs var:toroot ?>assets/images/icon_world.jpg" alt="Language:" /> 
51             <span id="language">
52                 <select name="language" onChange="changeLangPref(this.value, true)">
53                                 <option value="en">English&nbsp;&nbsp;&nbsp;</option>
54                                 <option value="ja">日本語</option>
55                                 <?cs # 
56                             <option value="de">Deutsch</option> 
57                                 <option value="es">Español</option>
58                                 <option value="fr">Français</option>
59                                 <option value="it">Italiano</option>
60                                 <option value="zh-CN">中文 (简体)</option>
61                                 <option value="zh-TW">中文 (繁體)</option>
62                             ?>
63                 </select>       
64                 <script type="text/javascript">
65                   <!--  
66                   loadLangPref();  
67                    //-->
68                 </script>
69             </span>
70           <?cs /if ?>
71           <a href="http://www.android.com">Android.com</a>
72           </div><?cs 
73           call:default_search_box() ?><?cs 
74                   if:reference ?>
75                           <div id="api-level-toggle">
76                             <input type="checkbox" id="apiLevelCheckbox" onclick="toggleApiLevelSelector(this)" />
77                             <label for="apiLevelCheckbox" class="disabled">Filter by API Level: </label>
78                             <select id="apiLevelSelector">
79                               <!-- option elements added by buildApiLevelSelector() -->
80                             </select>
81                           </div>
82                     <script>
83               var SINCE_DATA = [ <?cs 
84                 each:since = since ?>'<?cs 
85                   var:since.name ?>'<?cs 
86                   if:!last(since) ?>, <?cs /if ?><?cs
87                 /each 
88               ?> ];
89               buildApiLevelSelector();
90             </script><?cs 
91                         /if ?>
92       </div><!-- headerRight -->
93       <script type="text/javascript">
94         <!--  
95         changeTabLang(getLangPref());
96         //-->
97       </script>
98   </div><!-- header --><?cs 
99 /def ?>
100
101 <?cs 
102 def:sdk_nav() ?>
103   <div class="g-section g-tpl-240" id="body-content">
104     <div class="g-unit g-first not-resizable" id="side-nav">
105       <div id="devdoc-nav"><?cs 
106         include:"../../../../frameworks/base/docs/html/sdk/sdk_toc.cs" ?>
107       </div>
108     </div> <!-- end side-nav -->
109 <?cs /def ?>
110
111 <?cs 
112 def:guide_nav() ?>
113   <div class="g-section g-tpl-240" id="body-content">
114     <div class="g-unit g-first side-nav-resizable" id="side-nav">
115       <div id="devdoc-nav"><?cs 
116         include:"../../../../frameworks/base/docs/html/guide/guide_toc.cs" ?>
117       </div>
118     </div> <!-- end side-nav -->
119     <script>
120       addLoadEvent(function() {
121         scrollIntoView("devdoc-nav");
122         });
123     </script>
124 <?cs /def ?>
125
126 <?cs # The default side navigation for the reference docs ?><?cs 
127 def:default_left_nav() ?>
128   <div class="g-section g-tpl-240" id="body-content">
129     <div class="g-unit g-first side-nav-resizable" id="side-nav">
130       <div id="swapper">
131         <div id="nav-panels">
132           <div id="resize-packages-nav">
133             <div id="packages-nav">
134               <div id="index-links"><nobr>
135                 <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> | 
136                 <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
137               </div>
138               <ul>
139                 <?cs call:package_link_list(docs.packages) ?>
140               </ul><br/>
141             </div> <!-- end packages -->
142           </div> <!-- end resize-packages -->
143           <div id="classes-nav"><?cs 
144             if:subcount(class.package) ?>
145             <ul>
146               <?cs call:list("Interfaces", class.package.interfaces) ?>
147               <?cs call:list("Classes", class.package.classes) ?>
148               <?cs call:list("Enums", class.package.enums) ?>
149               <?cs call:list("Exceptions", class.package.exceptions) ?>
150               <?cs call:list("Errors", class.package.errors) ?>
151             </ul><?cs 
152             elif:subcount(package) ?>
153             <ul>
154               <?cs call:class_link_list("Interfaces", package.interfaces) ?>
155               <?cs call:class_link_list("Classes", package.classes) ?>
156               <?cs call:class_link_list("Enums", package.enums) ?>
157               <?cs call:class_link_list("Exceptions", package.exceptions) ?>
158               <?cs call:class_link_list("Errors", package.errors) ?>
159             </ul><?cs 
160             else ?>
161               <script>
162                 /*addLoadEvent(maxPackageHeight);*/
163               </script>
164               <p style="padding:10px">Select a package to view its members</p><?cs 
165             /if ?><br/>
166           </div><!-- end classes -->
167         </div><!-- end nav-panels -->
168         <div id="nav-tree" style="display:none">
169           <div id="index-links"><nobr>
170             <a href="<?cs var:toroot ?>reference/packages.html" <?cs if:(page.title == "Package Index") ?>class="selected"<?cs /if ?> >Package Index</a> | 
171             <a href="<?cs var:toroot ?>reference/classes.html" <?cs if:(page.title == "Class Index") ?>class="selected"<?cs /if ?>>Class Index</a></nobr>
172           </div>
173         </div><!-- end nav-tree -->
174       </div><!-- end swapper -->
175     </div> <!-- end side-nav -->
176     <script>
177       if (!isMobile) {
178         $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
179         chooseDefaultNav();
180         if ($("#nav-tree").is(':visible')) {
181           init_default_navtree("<?cs var:toroot ?>");
182         } else {
183           addLoadEvent(function() {
184             scrollIntoView("packages-nav");
185             scrollIntoView("classes-nav");
186           });
187         }
188         $("#swapper").css({borderBottom:"2px solid #aaa"});
189       } else {
190         swapNav(); // tree view should be used on mobile
191       }
192     </script><?cs 
193 /def ?>
194
195 <?cs 
196 def:custom_left_nav() ?><?cs 
197   if:guide ?><?cs 
198     call:guide_nav() ?><?cs 
199   elif:sdk ?><?cs 
200     call:sdk_nav() ?><?cs 
201   else ?><?cs 
202     call:default_left_nav() ?><?cs 
203   /if ?><?cs 
204 /def ?>
205
206 <?cs # appears at the bottom of every page ?><?cs 
207 def:custom_cc_copyright() ?>
208   Except as noted, this content is 
209   licensed under <a href="http://creativecommons.org/licenses/by/2.5/">
210   Creative Commons Attribution 2.5</a>. For details and 
211   restrictions, see the <a href="<?cs var:toroot ?>license.html">Content 
212   License</a>.<?cs 
213 /def ?>
214
215 <?cs 
216 def:custom_copyright() ?>
217   Except as noted, this content is licensed under <a
218   href="http://www.apache.org/licenses/LICENSE-2.0">Apache 2.0</a>. 
219   For details and restrictions, see the <a href="<?cs var:toroot ?>license.html">
220   Content License</a>.<?cs 
221 /def ?>
222
223 <?cs 
224 def:custom_footerlinks() ?>
225   <p>
226     <a href="http://www.android.com/terms.html">Site Terms of Service</a> -
227     <a href="http://www.android.com/privacy.html">Privacy Policy</a> -
228     <a href="http://www.android.com/branding.html">Brand Guidelines</a>
229   </p><?cs 
230 /def ?>
231
232 <?cs # appears on the right side of the blue bar at the bottom off every page ?><?cs 
233 def:custom_buildinfo() ?>
234   Android <?cs var:sdk.version ?>&nbsp;r<?cs var:sdk.rel.id ?> - <?cs var:page.now ?>
235 <?cs /def ?>