From: Francesco Montorsi Date: Sun, 25 Jul 2010 11:05:43 +0000 (+0000) Subject: preserve doxygen 1.6.x look also with doxygen 1.7.x: it produces more readable naviga... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ef7f03ad8383051d1b1e6d216dc0d536bbf3eef5 preserve doxygen 1.6.x look also with doxygen 1.7.x: it produces more readable navigation tabs git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/doxygen/htmlheader.inc b/docs/doxygen/htmlheader.inc index 967dcfed11..d972448929 100644 --- a/docs/doxygen/htmlheader.inc +++ b/docs/doxygen/htmlheader.inc @@ -11,7 +11,7 @@ - + diff --git a/docs/doxygen/images/tab_b.gif b/docs/doxygen/images/tab_b.gif new file mode 100644 index 0000000000..0d623483ff Binary files /dev/null and b/docs/doxygen/images/tab_b.gif differ diff --git a/docs/doxygen/images/tab_l.gif b/docs/doxygen/images/tab_l.gif new file mode 100644 index 0000000000..9b1e6337c9 Binary files /dev/null and b/docs/doxygen/images/tab_l.gif differ diff --git a/docs/doxygen/images/tab_r.gif b/docs/doxygen/images/tab_r.gif new file mode 100644 index 0000000000..ce9dd9f533 Binary files /dev/null and b/docs/doxygen/images/tab_r.gif differ diff --git a/docs/doxygen/regen.bat b/docs/doxygen/regen.bat index 9d44db8ede..fa85d3b4c8 100644 --- a/docs/doxygen/regen.bat +++ b/docs/doxygen/regen.bat @@ -11,18 +11,21 @@ mkdir out\html\wxgtk 2>&1 >NUL mkdir out\html\wxmsw 2>&1 >NUL mkdir out\html\wxmac 2>&1 >NUL -REM These not automatically copied by Doxygen because it's not -REM used in doxygen documentation, only in our html footer. +REM These not automatically copied by Doxygen because they're not +REM used in doxygen documentation, only in our html footer and by our +REM custom aliases copy images\powered-by-wxwidgets.png out\html 2>&1 >NUL copy images\logo_*.png out\html 2>&1 >NUL +copy images\tab_*.gif out\html 2>&1 >NUL copy images\wxgtk\*.png out\html\wxgtk 2>&1 >NUL copy images\wxmsw\*.png out\html\wxmsw 2>&1 >NUL copy images\wxmac\*.png out\html\wxmac 2>&1 >NUL copy wxwidgets.js out\html 2>&1 >NUL -REM this CSS is automatically copied by Doxygen because it's +REM these CSS are not automatically copied by Doxygen because they're REM included by our custom html header... copy wxwidgets.css out\html 2>&1 >NUL +copy wxtabs.css out\html 2>&1 >NUL REM set cfgfile variable to the right doxyfile to use, REM using MS broken batch scripting diff --git a/docs/doxygen/regen.sh b/docs/doxygen/regen.sh index a9dd32c9eb..2f2c713446 100755 --- a/docs/doxygen/regen.sh +++ b/docs/doxygen/regen.sh @@ -31,14 +31,16 @@ mkdir -p out/html/wxmsw out/html/wxgtk out/html/wxmac # custom aliases cp images/powered-by-wxwidgets.png out/html cp images/logo_*.png out/html +cp images/tab_*.gif out/html cp images/wxmsw/*png out/html/wxmsw cp images/wxmac/*png out/html/wxmac cp images/wxgtk/*png out/html/wxgtk cp wxwidgets.js out/html -# this CSS is not automatically copied by Doxygen because it's +# these CSS are not automatically copied by Doxygen because they're # included by our custom html header... cp wxwidgets.css out/html +cp wxtabs.css out/html # which configuration should we use? if [[ -z "$1" ]]; then diff --git a/docs/doxygen/wxtabs.css b/docs/doxygen/wxtabs.css new file mode 100644 index 0000000000..91ac28e79e --- /dev/null +++ b/docs/doxygen/wxtabs.css @@ -0,0 +1,217 @@ +/***************************************************************************** +** Name: wxtabs.css +** Purpose: The wxWidgets documentation CSS +** Author: Doxygen team +** RCS-ID: $Id$ +** Licence: wxWindows licence +*****************************************************************************/ + +/* + Doxygen classic tabs styles, based on http://www.alistapart.com/articles/slidingdoors +*/ + +DIV.tabs +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs LI, DIV.tabs FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs FORM +{ + float : right; +} + +DIV.tabs A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : 80%; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs A:link, DIV.tabs A:visited, +DIV.tabs A:active, DIV.tabs A:hover +{ + color: #1A419D; +} + +DIV.tabs SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs TD +{ + font-size : 80%; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs LI.current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs LI.current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} + +DIV.navpath +{ + background : none; + border : none; + border-bottom : 1px solid #84B0C7; + text-align : center; + margin : 2px; + padding : 2px; +} + + +/* + NOTE: since v. 1.7.0 Doxygen uses new style names for some tabs... and in particular uses "tabs2" for + the CSS style names of the "Class List, Class Index, Class Hierarchy, Class Members" tabs. + For now we keep for "tabs2" tabs the same style used with other ones. +*/ + + +DIV.tabs2 +{ + float : left; + width : 100%; + background : url("tab_b.gif") repeat-x bottom; + margin-bottom : 4px; +} + +DIV.tabs2 UL +{ + margin : 0px; + padding-left : 10px; + list-style : none; +} + +DIV.tabs2 LI, DIV.tabs2 FORM +{ + display : inline; + margin : 0px; + padding : 0px; +} + +DIV.tabs2 FORM +{ + float : right; +} + +DIV.tabs2 A +{ + float : left; + background : url("tab_r.gif") no-repeat right top; + border-bottom : 1px solid #84B0C7; + font-size : 80%; + font-weight : bold; + text-decoration : none; +} + +DIV.tabs2 A:hover +{ + background-position: 100% -150px; +} + +DIV.tabs2 A:link, DIV.tabs2 A:visited, +DIV.tabs2 A:active, DIV.tabs2 A:hover +{ + color: #1A419D; +} + +DIV.tabs2 SPAN +{ + float : left; + display : block; + background : url("tab_l.gif") no-repeat left top; + padding : 5px 9px; + white-space : nowrap; +} + +DIV.tabs2 INPUT +{ + float : right; + display : inline; + font-size : 1em; +} + +DIV.tabs2 TD +{ + font-size : 80%; + font-weight : bold; + text-decoration : none; +} + + + +/* Commented Backslash Hack hides rule from IE5-Mac \*/ +DIV.tabs2 SPAN {float : none;} +/* End IE5-Mac hack */ + +DIV.tabs2 A:hover SPAN +{ + background-position: 0% -150px; +} + +DIV.tabs2 LI.current A +{ + background-position: 100% -150px; + border-width : 0px; +} + +DIV.tabs2 LI.current SPAN +{ + background-position: 0% -150px; + padding-bottom : 6px; +} \ No newline at end of file