From 34c75a29f6ac5a4cbb669e5b3b74f1ddb6ae8423 Mon Sep 17 00:00:00 2001 From: davemds Date: Fri, 8 Aug 2014 02:30:18 +0200 Subject: [PATCH] Edcref: and finally apply a cool style Now the edc ref is decently readable --- doc/Doxyfile.in | 5 ++-- doc/e.css | 47 ++++++++++++++++++++++++++++++--- src/bin/edje/edje_cc_handlers.c | 12 ++++++++- 3 files changed, 58 insertions(+), 6 deletions(-) diff --git a/doc/Doxyfile.in b/doc/Doxyfile.in index a1b2c0cbe3..f18cc4f77b 100644 --- a/doc/Doxyfile.in +++ b/doc/Doxyfile.in @@ -1709,15 +1709,16 @@ GENERATE_LEGEND = YES DOT_CLEANUP = YES # Aliases used by edcref + ALIASES = block="" ALIASES += context="\code" ALIASES += description="\endcode " ALIASES += endblock="" -ALIASES += property=" " -ALIASES += edcsection{2}="" +ALIASES += edcsection{2}="
" +ALIASES += property="
 
" ALIASES += parameters="" ALIASES += effect="
 " ALIASES += endproperty="
\anchor sec_\1 \ref sec_quickaccess \"\2\"
" ALIASES += edcsubsection{2}="" # Aliases used by luaref diff --git a/doc/e.css b/doc/e.css index dd111c0d48..a34c7e70c6 100644 --- a/doc/e.css +++ b/doc/e.css @@ -954,16 +954,57 @@ dl.citelist dd { text-shadow: 0px 1px 0px #cccccc; } + /* EdcRef page specific styles */ +table.edcref { + border-collapse:collapse; + border: 1px solid #AAAAAA; + margin-bottom: 30px; +} + +table.edcref td.section a { + font-size: 2.0em; +} + +table.edcref td.subsection { + background-color: #EEEEEE; + border: 1px solid #AAAAAA; +} + +table.edcref td.subsection a { + font-size: 1.5em; +} + table.edcref td { vertical-align: top; } -table.edcref td.property, table.edcref td.parameters { - font-weight: bold; +table.edcref .fragment { + width: 90%; + padding-top: 10px; + padding-left: 3px; + margin-right: 100px; + border: 1px solid #AAAAAA; + margin-top: 10px; + margin-bottom: 10px; + background-color: #F6F6F6; } +table.edcref td.description { + padding-right: 95px; +} +table.edcref td.property, table.edcref td.parameters { + font-weight: bold; + background-color: #DDDDDD; + border-top: 1px solid #AAAAAA; + padding: 2px; +} - +table.edcref_prop { + width: 90%; + border-collapse:collapse; + border: 1px solid #AAAAAA; + box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.15); +} diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c index ea98da3903..f48f800c3b 100644 --- a/src/bin/edje/edje_cc_handlers.c +++ b/src/bin/edje/edje_cc_handlers.c @@ -13,6 +13,7 @@ code sample of the block \@description the block's description + \@since X.X \@endblock \@property @@ -21,6 +22,7 @@ property's parameter list \@effect the property description (lol) + \@since X.X \@endproperty */ @@ -757,6 +759,10 @@ New_Statement_Handler statement_handlers[] = PROGRAM_STATEMENTS("collections.group") }; +/** + @edcsection{lazedc,LazEDC} + */ + /** @edcsubsection{lazedc,LazEDC} */ @@ -1492,7 +1498,7 @@ _edje_program_copy(Edje_Program *ep, Edje_Program *ep2) } @description The "externals" block is used to list each external module file that will be used in others - programs. + programs. @endblock @property @@ -2425,6 +2431,10 @@ st_styles_style_tag(void) @edcsection{collections,Collections Blocks} */ +/** + @edcsubsection{collections,Collections Blocks} + */ + /** @page edcref @block
\anchor sec_\1 \ref sec_quickaccess \"\2\"
\anchor sec_\1 \ref sec_quickaccess \"\2\"