[Pydev-cvs] org.python.pydev.help/html/userguide/includes script.js,1.1,1.2 style.css,1.1,1.2
Brought to you by:
fabioz
From: Parhaum T. <dre...@us...> - 2004-07-09 13:00:54
|
Update of /cvsroot/pydev/org.python.pydev.help/html/userguide/includes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24819/html/userguide/includes Modified Files: script.js style.css Log Message: All pages in the editor user guide have content. I filled in what I knew of parts I didn't work on. Index: style.css =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.help/html/userguide/includes/style.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** style.css 14 Jun 2004 20:22:13 -0000 1.1 --- style.css 9 Jul 2004 13:00:37 -0000 1.2 *************** *** 94,488 **** ! ! ! ! ! ! ! ! ! ! .MenuTable ! { ! border: 1px solid black; ! } ! ! .BannerTable ! { ! font-size: 24pt; ! color: white; ! background-color: #276295; ! border: 1px solid black; ! font-family: tahoma; ! cursor: default; ! } ! ! .LogoTable ! { ! font-size: 24pt; ! color: #276295; ! background-color: white; ! border: 1px solid white; ! font-family: tahoma; ! cursor: default; ! } ! ! .MenuRowInverse ! { ! font-size: 8pt; ! font-style: bold; ! font-weight: 800; ! color: #FF8A00; ! background-color: white; ! border: 1px solid black; ! cursor: default; ! } ! ! .CopyrightRowInverse ! { ! font-size: 8pt; ! color: #276295; ! background-color: white; ! border: 1px solid black; ! cursor: default; ! } ! ! .MenuRow ! { ! font-size: 9pt; ! color: white; ! background-color: #4D8CC2; ! border: 1px solid black; ! cursor: default; ! } ! ! .MenuRowOff ! { ! font-family: verdana; ! font-size: 8pt; ! color: white; ! background-color: #4D8CC2; ! border: 1px solid #4D8CC2; ! cursor: default; ! } ! ! .MenuRowOver ! { ! font-family: verdana; ! font-size: 8pt; ! color: white; ! background-color: #FF8A00; ! border: 1px solid black; ! cursor: hand; ! } ! ! .MenuBox ! { ! font-size: 9pt; ! color: white; ! background-color: #4D8CC2; ! border: 1px solid black; ! cursor: default; ! } ! ! .TheaterName ! { ! font-size: 14pt; ! font-style: bold; ! font-weight: 800; ! color: #26659B; ! background-color: white; ! border: 1px solid black; ! } ! ! .MovieName ! { ! font-family: verdana; ! font-size: 10pt; ! font-style: bold; ! color: white; ! background-color: gray; ! border: 1px solid black; ! } ! ! .ShowingText ! { ! font-family: verdana; ! font-size: 8pt; ! color: black; ! background-color: white; ! } ! ! .ShowingTextSoldOut ! { ! font-family: arial; ! font-size: 10pt; ! color: red; ! background-color: white; ! } ! ! .FormText { - font-family: verdana; font-size: 12pt; ! font-style: bold; ! color: black; ! background-color: white; ! } ! ! .FormContents ! { ! font-family: verdana; ! font-size: 8pt; ! color: white; ! background-color: #4D8CC2; ! border: 1px solid black; ! } ! ! ! .Error ! { ! font-family: verdana; ! font-size: 10pt; ! color: red; ! background-color: white; ! } ! ! .Main ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: black; ! } ! ! ! A.Main ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: #26659B; ! } ! ! A.Main:Visited ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: #26659B; ! } ! ! A.Main:Hover ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: #4D8CC2; ! } ! ! ! A.Error ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: red; ! } ! ! A.Error:Visited ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: red; ! } ! ! A.Error:Hover ! { ! font-family: arial; ! font-size: 9pt; ! text-decoration: none; ! color: #FF4545; ! } ! ! .SoldOut ! { ! font-family: arial; ! font-size: 10pt; ! text-decoration: none; ! color: red; ! } ! ! .MovieTime ! { ! font-family: verdana; ! font-size: 8pt; ! color: black; ! background-color: white; ! text-decoration: none; ! } ! ! ! ! ! ! ! ! .Button ! { ! text-decoration: none; ! font-size: 8pt; ! font-family: verdana; ! color: #4D8CC2; ! background-color: white; ! border: 1px solid #4D8CC2; ! } ! ! A.Menu ! { ! text-decoration: none; ! color: white; ! } ! ! A.Menu:Visited ! { ! text-decoration: none; ! color: white; ! } ! ! A.Menu:Hover ! { ! text-decoration: none; ! color: white; ! } ! ! ! ! ! .MenuOff ! { ! text-decoration: none; ! font-size: 10pt; ! font-family: Arial; ! font-weight: 800; ! font-style: bold; ! color: white; ! background-color: #0067F6; ! background-image: url(../images/menu-off.jpg); ! /*background-image: url(../images/menu-off.jpg);*/ ! border: 1px solid black; ! cursor: hand; ! } ! ! .MenuCurrent ! { ! text-decoration: none; ! font-size: 10pt; ! font-family: Arial; ! font-weight: 800; ! font-style: bold; ! color: white; ! background-color: #FBA144; ! background-image: url(../images/menu-on.jpg); ! /*background-image: url(../images/menu-on.jpg);*/ ! border: 1px solid black; ! cursor: hand; ! } ! ! .MenuOver ! { ! text-decoration: none; ! font-size: 10pt; ! font-family: Arial; font-weight: 800; ! font-style: bold; ! color: white; ! background-color: #FBA144; ! background-image: url(../images/menu-on.jpg); ! /*background-image: url(../images/menu-on.jpg);*/ ! border: 1px solid black; ! cursor: hand; ! } ! ! .MenuTable ! { ! border: 1px solid black; ! } ! ! .LegalTable ! { ! font-size: 8pt; ! font-family: arial; ! font-weight: 400; ! color: black; ! border: 1px solid black; ! background-color: white; ! /*background-color: 005BA8; ! background-image: url(../images/menu-on.jpg);*/ ! margin: 0px; ! cursor: hand; ! } ! ! .Text-Content ! { ! font-size: 9pt; ! font-family: arial; ! color: black; ! background-color: white; ! } ! ! ! .Text-Headline ! { ! font-size: 9pt; ! font-family: arial; ! color: black; ! background-color: white; ! } ! ! .GalleryText ! { ! font-size: 9pt; ! font-family: arial; ! color: black; ! } ! ! .Gallery-Off ! { ! font-size: 9pt; ! font-family: arial; ! color: black; ! border: 1px solid white; ! } ! ! .Gallery-Curr ! { ! font-size: 9pt; ! font-family: arial; ! color: black; ! border: 1px solid #005eb5; cursor: default; } - .Gallery-On - { - font-size: 9pt; - font-family: arial; - color: black; - border: 1px solid #005eb5; - cursor: hand; - } - - .Tiny - { - font-size: 40pt; - } - TABLE.Text - { - font-size: 9pt; - font-family: arial; - color: black; - } --- 94,107 ---- ! .Pointer { font-size: 12pt; ! font-style: normal; font-weight: 800; ! font-family: tahoma; cursor: default; + color: orange; } Index: script.js =================================================================== RCS file: /cvsroot/pydev/org.python.pydev.help/html/userguide/includes/script.js,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** script.js 14 Jun 2004 20:22:13 -0000 1.1 --- script.js 9 Jul 2004 13:00:36 -0000 1.2 *************** *** 31,54 **** // links[0] = 'foo.html'; // // writeHeading ( heads, links ); // </script> /////////////////////////////////////////////////////////////////////////////////////////////////// function writeHeading ( heads, links ) { ! document.write ( '<p class="Heading">' ); for ( var i = 0; i < heads.length; i++ ) { if ( links[i] != '' && i < heads.length - 1 ) ! document.write ( '<a class="Heading" href="' + links[i] + '">' ); ! document.write ( heads[i] ); if ( links[i] != '' && i < heads.length - 1 ) ! document.write ( '</a>' ); if ( i < heads.length - 1 ) ! document.write ( ' :: ' ); } ! document.write ( '</p>' ); ! document.write ( '<hr>' ); } //////////////////////////////////////////////////////////////////////////////[ writeHeading ]///// --- 31,197 ---- // links[0] = 'foo.html'; // + // heads[1] = 'Bar'; + // links[1] = 'bar.html'; + // // writeHeading ( heads, links ); // </script> + // + // Will produce: + // + // <a href=foo.html>Foo</a> » Bar /////////////////////////////////////////////////////////////////////////////////////////////////// function writeHeading ( heads, links ) { ! var doc = document; ! ! doc.write ( '<p class="Heading" name="top">' ); for ( var i = 0; i < heads.length; i++ ) { if ( links[i] != '' && i < heads.length - 1 ) ! doc.write ( '<a class="Heading" href="' + links[i] + '">' ); ! doc.write ( heads[i] ); if ( links[i] != '' && i < heads.length - 1 ) ! doc.write ( '</a>' ); if ( i < heads.length - 1 ) ! doc.write ( ' » ' ); } ! doc.write ( '</p>' ); ! doc.write ( '<hr>' ); } //////////////////////////////////////////////////////////////////////////////[ writeHeading ]///// + ///////////////////////////////////////////////////////////////////////////[ writeInvocation ]///// + // Name: writeInvocation + // + // Desc: Writes a table with an invocation description of a given feature, including an image + // of the Source menu and hotkeys. + // + // In: rows Array Stores which row(s) to point to on menu image + // hotkeys Array Stores hotkey(s) + // desc String Description of invocation, could be used with or as opposed + // to the menu image and hotkeys. + // Out: - + // + // Sample usage: + // + // <script language="javascript"> + // var rows = new Array ( ); + // var hotkeys = new Array ( ); + // + // rows[0] = 2; + // rows[1] = 5; + // + // hotkeys[0] = 'Ctrl+4'; + // hotkeys[1] = 'Ctrl+5'; + // + // var desc = ''; + // + // writeInvocation ( rows, hotkeys, desc ); + // </script> + // + // Will produce: + // + // (A table with pointers to the 2nd and 5th rows, as well as a list of the applicable + // hotkeys.) + /////////////////////////////////////////////////////////////////////////////////////////////////// + function writeInvocation ( rows, hotkeys, desc ) + { + // Check if there's anything at all to show + if ( rows.length == 0 && hotkeys.length == 0 && desc == '' ) + return; + + var doc = document; + + doc.write ( '<b><u>Invocation</u></b>' ); + doc.write ( ' <a href="#top">[top]</a>' ); + doc.write ( '<ul>' ); + + if ( rows.length > 0 ) + { + doc.write ( '<li>Main Menu or Source Menu (right-click in editor):' ); + doc.write ( '<br><br>' ); + doc.write ( '<table>' ); + doc.write ( ' <tr>' ); + doc.write ( ' <td width = 15 align=left valign=top class=Pointer>' ); + doc.write ( ' <br>' ); + + // Draw row pointers + var j = 0; + for ( var i = 0; i < rows.length; i++ ) + { + for ( ; j < rows[i] - 1; j++ ) + { + doc.write ( '<br>' ); + } + doc.write ( '»' ); + } + + doc.write ( ' </td>' ); + doc.write ( ' <td>' ); + doc.write ( ' <img src="images/menu.jpg">' ); + doc.write ( ' </td>' ); + doc.write ( ' </tr>' ); + doc.write ( '</table>' ); + } + if ( rows.length > 0 && hotkeys.length > 0 ) + doc.write ( '<br>' ); + if ( hotkeys.length > 0 ) + { + doc.write ( '<li>Hotkeys: ' ); + + for ( var i = 0; i < hotkeys.length; i++ ) + { + doc.write ( hotkeys[i] ); + if ( i < hotkeys.length - 1 ) + doc.write ( ', ' ); + } + } + if ( desc != '' ) + { + doc.write ( '<li>' + desc ); + } + doc.write ( '</ul><br>' ); + } + //////////////////////////////////////////////////////////////////////////[ writeInvocation ]////// + + + /////////////////////////////////////////////////////////////////////////////[ writeGeneric ]///// + // Name: writeGeneric + // + // Desc: Writes a general topic with headline and description. + // + // In: headline String Headline of topic + // desc String Description + // Out: - + // + // Sample usage: + // + // <script language="javascript"> + // var headline = 'Headliner'; + // var desc = 'Do this and do that.'; + // + // writeProcess ( process ); + // </script> + // + // Will produce: + // + // <i>Headliner</i> + // + // Do this and do that. + /////////////////////////////////////////////////////////////////////////////////////////////////// + function writeGeneric ( headline, desc ) + { + // Check if anything to write + if ( desc == '' ) + return; + + var doc = document; + + doc.write ( '<b><u>' + headline + '</u></b>' ); + doc.write ( ' <a href="#top">[top]</a>' ); + doc.write ( '<ul>' ); + doc.write ( desc ); + doc.write ( '</ul><br>' ); + } + /////////////////////////////////////////////////////////////////////////////[ writeGeneric ]////// |