diff options
author | Scott Main <smain@google.com> | 2009-07-27 09:47:11 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2009-07-28 09:53:59 -0700 |
commit | df09424f19ca8d455037b19641b15a7c55d9523f (patch) | |
tree | 52a9c87577956ea1d28e875e20851f25d8049b0b /tools/droiddoc/templates/class.cs | |
parent | 882bbe1489518cabb661e06f6e87a6561d9239df (diff) | |
download | build-df09424f19ca8d455037b19641b15a7c55d9523f.zip build-df09424f19ca8d455037b19641b15a7c55d9523f.tar.gz build-df09424f19ca8d455037b19641b15a7c55d9523f.tar.bz2 |
Patch 2: some fixes to the developer-docs stylesheet....
Patch 3: add "Since:" to the api level info
Patch 4: fix packages page and styles to reveal class summary
Squashed commit of the following:
commit 8fcdcb8dcbe9b93688f5eb1020654848d3242675
Author: Scott Main <smain@google.com>
Date: Mon Jul 27 09:33:45 2009 -0700
remove the toggle selector from the header.
this will be added in a later change with the rest of the toggle script
commit 2423b30ee46c12f92051c4f2a096532e55752c46
Author: Scott Main <smain@google.com>
Date: Fri Jul 24 16:29:21 2009 -0700
Implement API Level styles.
This changes the way we show the API Level for a given package/class/member.
It also provides hooks in the document to allow us to restyle items
based on a user-selected API Level (show/hide available items).
More changes to provide the toggling feature will come soon.
commit efd94b33071070f0dfc2045131b81cbdfe078468
Author: Scott Main <smain@google.com>
Date: Mon Jul 27 09:33:45 2009 -0700
remove the toggle selector from the header.
this will be added in a later change with the rest of the toggle script
commit 3fb79313232c993f700ee90a94f59dcca275fb0b
Author: Scott Main <smain@google.com>
Date: Fri Jul 24 16:29:21 2009 -0700
Implement API Level styles.
This changes the way we show the API Level for a given package/class/member.
It also provides hooks in the document to allow us to restyle items
based on a user-selected API Level (show/hide available items).
More changes to provide the toggling feature will come soon.
Diffstat (limited to 'tools/droiddoc/templates/class.cs')
-rw-r--r-- | tools/droiddoc/templates/class.cs | 35 |
1 files changed, 25 insertions, 10 deletions
diff --git a/tools/droiddoc/templates/class.cs b/tools/droiddoc/templates/class.cs index 41d34dd..90e1472 100644 --- a/tools/droiddoc/templates/class.cs +++ b/tools/droiddoc/templates/class.cs @@ -102,12 +102,12 @@ Summary: <?cs if:inhmethods ?> <?cs if:linkcount ?>| <?cs /if ?><a href="#inhmethods">Inherited Methods</a> <?cs /if ?> -</nobr> <?cs if:inhattrs || inhconstants || inhfields || inhmethods || subcount(class.subclasses.direct) || subcount(class.subclasses.indirect) ?> | <a href="#" onclick="return toggleAllSummaryInherited(this)">[Expand All]</a> <?cs /if ?> -</div> -</div> +</div><!-- end sum-details-links --> + +</div><!-- end api-info-block --> <?cs # this next line must be exactly like this to be parsed by eclipse ?> <!-- ======== START OF CLASS DATA ======== --> @@ -134,10 +134,12 @@ Summary: <?cs set:colspan = colspan-1 ?> <?cs /each ?> +<div class="api-level"><?cs call:since_tags(class) ?></div> + </div><!-- end header --> -<div id="jd-content"> +<div id="jd-content" class="apilevel-<?cs var:class.since ?>"> <table class="jd-inheritance-table"> <?cs set:colspan = subcount(class.inheritance) ?> <?cs each:supr = class.inheritance ?> @@ -180,7 +182,6 @@ Summary: <?cs /if ?> <?cs call:see_also_tags(class.seeAlso) ?> -<?cs call:since_tags(class) ?> </div><!-- jd-descr --> @@ -190,7 +191,8 @@ Summary: <?cs def:write_method_summary(methods) ?> <?cs set:count = #1 ?> <?cs each:method = methods ?> - <tr <?cs if:count % #2 ?>class="alt-color"<?cs /if ?> > + <?cs # The apilevel-N class MUST BE LAST in the sequence of class names ?> + <tr class="<?cs if:count % #2 ?>alt-color<?cs /if ?> api apilevel-<?cs var:method.since ?>" > <td class="jd-typecol"><nobr> <?cs var:method.abstract ?> <?cs var:method.synchronized ?> @@ -473,7 +475,8 @@ From <?cs var:cl.kind ?> <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs va <?cs # this next line must be exactly like this to be parsed by eclipse ?> <?cs # the A tag in the next line must remain where it is, so that Eclipse can parse the docs ?> <A NAME="<?cs var:field.anchor ?>"></A> -<div class="jd-details"> +<?cs # The apilevel-N class MUST BE LAST in the sequence of class names ?> +<div class="jd-details api apilevel-<?cs var:field.since ?>"> <h4 class="jd-details-title"> <span class="normal"> <?cs var:field.scope ?> @@ -482,6 +485,9 @@ From <?cs var:cl.kind ?> <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs va <?cs call:type_link(field.type) ?> </span> <?cs var:field.name ?> + <span class="api-level"> + <?cs call:since_tags(field) ?> + </span> </h4> <div class="jd-details-descr"><?cs call:description(field) ?> <?cs if:subcount(field.constantValue) ?> @@ -506,7 +512,8 @@ From <?cs var:cl.kind ?> <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs va <?cs each:method=methods ?> <?cs # the A tag in the next line must remain where it is, so that Eclipse can parse the docs ?> <A NAME="<?cs var:method.anchor ?>"></A> -<div class="jd-details"> +<?cs # The apilevel-N class MUST BE LAST in the sequence of class names ?> +<div class="jd-details api apilevel-<?cs var:method.since ?>"> <h4 class="jd-details-title"> <span class="normal"> <?cs var:method.scope ?> @@ -518,6 +525,9 @@ From <?cs var:cl.kind ?> <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs va </span> <span class="sympad"><?cs var:method.name ?></span> <span class="normal">(<?cs call:parameter_list(method.params) ?>)</span> + <span class="api-level"> + <?cs call:since_tags(method) ?> + </span> </h4> <div class="jd-details-descr"><?cs call:description(method) ?></div> </div> @@ -528,8 +538,13 @@ From <?cs var:cl.kind ?> <a href="<?cs var:toroot ?><?cs var:cl.link ?>"><?cs va <?cs each:attr=attrs ?> <?cs # the A tag in the next line must remain where it is, so that Eclipse can parse the docs ?> <A NAME="<?cs var:attr.anchor ?>"></A> -<div class="jd-details"> - <h4 class="jd-details-title"><?cs var:attr.name ?></h4> +<?cs # The apilevel-N class MUST BE LAST in the sequence of class names ?> +<div class="jd-details api apilevel-<?cs var:attr.since ?>"> + <h4 class="jd-details-title"><?cs var:attr.name ?> + <span class="api-level"> + <?cs call:since_tags(attr) ?> + </span> + </h4> <div class="jd-details-descr"> <?cs call:description(attr) ?> |