<!--
* comp-snippet-tplt.html
*
* Compiler Check pane template. Used to display compiler compatibilty and test
* information for a selected snippet in the CodeSnip database.
*
* Renamed comp-routine-tplt.html as comp-snippet-tplt.html as at v2.1.
*
* v1.0 of 03 Dec 2006 - Original version. Replaces
* comp-routine-dbase-tplt.html and
* comp-routine-test-tplt.html.
* v1.1 of 04 Dec 2006 - Modified View/Hide Test Unit link's onmouseover and
* onmouseout events to call enterTestUnitLink() and
* exitTestUnitLink() rather than showHint() and
* clearHint().
* - Added new viewunitimg img to View Test Unit image to
* allow image to be changed.
* v1.2 of 17 Dec 2006 - Changed help text link to use .help-link CSS class.
* v1.3 of 18 Oct 2007 - Added "return false;" statement to end of each onclick
* event that didn't already have it.
* v1.4 of 03 Nov 2007 - Updated link class names to designate link type and
* links to be included in popup menus.
* v1.5 of 04 Nov 2007 - Changed to display help via "help:" protocol rather
* than using JavaScript calls.
* v1.6 of 14 Sep 2008 - Added extra ids to enable toggle unit and test compile
* links to be hidden when routine being displayed is not
* in standard format.
* - Added message displayed when routine is not in
* standard format.
* - Added class option-img to images related to menu
* links.
* v2.0 of 25 Jan 2009 - Added template placeholders to be used instead of
* dynamic updating via DHTML.
* - Removed erroneous parameter from enterTestUnitLink
* function call.
* v2.1 of 19 Jun 2009 - Removed HTML divs that were used to display test unit.
* - Links that previously toggled visibility of test unit
* now call a new external object function that causes
* test unit to be displayed in dialog. These links are
* no longer updated dynamically: they now have static
* text and images.
* - Changed test compile link etc to refer to "snippet"
* rather than "routine"
* - Removed divs that appear when snippet is not
* compilable or there are no compilers: different
* templates are now used in this case.
* - Added enclosing "details" div.
* - Added edit snippet div for user-defined snippets.
* - Renamed as comp-snippet-tplt.html.
*
*
* ***** BEGIN LICENSE BLOCK *****
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
* the specific language governing rights and limitations under the License.
*
* The Original Code is comp-snippet-tplt.html
*
* The Initial Developer of the Original Code is Peter Johnson
* (http://www.delphidabbler.com/).
*
* Portions created by the Initial Developer are Copyright (C) 2006-2009 Peter
* Johnson. All Rights Reserved.
*
* ***** END LICENSE BLOCK *****
-->
<div class="details">
<div>
<div
id="editlink"
class="option"
style="<%EditLink%>
padding:-0.1em 0 0.3em 0;position:relative;float:right;"
>
<a
id="editimglink"
class="command-link"
href="javascript:void(0);"
onclick="<%EditEventHandler%>;return false;"
onmouseover="showHint(vEditSnippet);"
onmouseout="clearHint();"
><img
src="editsnippet.gif"
class="option-img"
style="width:16px;height:16px;vertical-align:middle;"
title="Edit Snippet"
></a>
<a
id="edittextlink"
class="command-link menu-item"
href="javascript:void(0);"
onclick="<%EditEventHandler%>;return false;"
onmouseover="showHint(vEditSnippet);"
onmouseout="clearHint();"
>Edit Snippet</a>
</div>
<!-- Routine name common with info-snippet-tplt.html -->
<h1 id="routinename" class="<%RoutineCSSClass%>">
<%RoutineName%>
</h1>
</div>
<table class="testcomp" cellpadding="2" cellspacing="0">
<col style="width:auto;" />
<col style="width:60px;" />
<col style="width:50px;" />
<col style="width:auto;" />
<tr>
<th class="compiler" rowspan="2">Compiler</th>
<th class="compres" colspan="2">Compilation results</th>
<th class="testerr" rowspan="2"> </th>
</tr>
<tr>
<th class="dbres">Per<br />Database</th>
<th class="testres">Per<br />Test</th>
</tr>
<%CompilerInfo%>
</table>
<div class="optionbox">
<div class="option">
<a
href="javascript:void(0);"
class="command-link"
onclick="compileRoutine();return false;"
onmouseover="showTestCompileHint();"
onmouseout="clearHint();"
><img
src="compile.gif"
class="option-img"
style="width:16px;height:16px;"
title="Test Compile Snippet"
/></a>
<a
href="javascript:void(0);"
class="command-link menu-item"
onclick="compileRoutine();return false;"
onmouseover="showTestCompileHint();"
onmouseout="clearHint();"
>Test Compile Snippet</a>
</div>
<div class="option">
<a
href="help:CompChecks"
class="help-link"
onmouseover="showHint(vAboutCompChecksHint);"
onmouseout="clearHint();"
><img
src="help.gif"
class="option-img"
style="width:16px;height:16px;"
title="About Compiler Checks"
/></a>
<a
href="help:CompChecks"
class="help-link menu-item"
onmouseover="showHint(vAboutCompChecksHint);"
onmouseout="clearHint();"
>About Compiler Checks</a>
</div>
<div class="option">
<a
href="javascript:void(0);"
class="command-link"
onclick="configCompilers();return false;"
onmouseover="showHint(vConfigCompilersHint);"
onmouseout="clearHint();"
><img
src="configcomp.gif"
class="option-img"
style="width:16px;height:16px;"
title="Configure Compilers"
/></a>
<a
href="javascript:void(0);"
class="command-link menu-item"
onclick="configCompilers();return false;"
onmouseover="showHint(vConfigCompilersHint);"
onmouseout="clearHint();"
>Configure Compilers</a>
</div>
<div class="option">
<a
href="javascript:void(0);"
class="command-link"
onclick="showTestUnit();return false;"
onmouseover="showHint(vShowTestUnitHint);"
onmouseout="clearHint();"
><img
id="viewunitimg"
src="viewunit.gif"
class="option-img"
style="width:16px;height:16px;"
title="Display Test Unit"
/></a>
<a
href="javascript:void(0);"
class="command-link menu-item"
id="viewunittxt"
onclick="showTestUnit();return false;"
onmouseover="showHint(vShowTestUnitHint);"
onmouseout="clearHint();"
>Display Test Unit</a>
</div>
</div>
</div>