org.symbian.tools.wrttools.previewer/preview/wrt_preview.html
author Eugene Ostroukhov <eugeneo@symbian.org>
Tue, 13 Jul 2010 17:32:32 -0700
changeset 444 6eb42310f8b5
parent 422 15592887bf5e
child 445 423889d5d6d3
permissions -rw-r--r--
Replace camera "screen" with more generic one.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
/**
 * Copyright (c) 2009-2010 Symbian Foundation and/or its subsidiary(-ies).
 * All rights reserved.
 * This component and the accompanying materials are made available
 * under the terms of the License "Eclipse Public License v1.0"
 * which accompanies this distribution, and is available
 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
 *
 * Initial Contributors:
 * Symbian Foundation - initial contribution.
 * Contributors:
 */
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Mobile Web Debugger</title>
	<!-- jQuery-ui Begins -->
	<link type="text/css" rel="stylesheet"  href="preview/script/jquery-ui/css/ui-darkness/jquery-ui-1.8.2.custom.css"/>	
	<script type="text/javascript" src="preview/script/jquery-ui/js/jquery-1.4.2.min.js"></script>
	<script type="text/javascript" src="preview/script/jquery-ui/js/jquery-ui-1.8.2.custom.min.js"></script>
	<script type="text/javascript" src="preview/script/jquery-ui/js/jquery.numeric.pack.js"></script>
	<!-- jQuery-ui Ends -->	
	<script type="text/javascript" language="JavaScript" src="preview/script/emulator.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/script/helper.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/script/layout.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/script/menu.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/script/nokia.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/script/resolution.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/preferences.js"></script>
	<script type="text/javascript" language="JavaScript" src="preview/script/accelerometer.js"></script>
	<link type="text/css" rel="stylesheet"  href="preview/css/style.css"/>
	<link rel="icon" type="image/gif" href="preview/favicon.gif" />
</head>
<body>
	<div id="preview-ui-top">
		<div id="DeviceDisplayLayout" class="hide">
		
			<div id="DisplaySFKWrapper">
				<div id="DisplayArea">
					<div id="IconArea"></div>
					<div id="WidgetArea">
						<div id="iframeMask" class="hide"></div>
						<iframe src=""></iframe>
					</div>
					<div id="externalapp" class="hide">
						<div id="external-app-icon"></div>
						<div id="external-app-description"></div>
						<div style="text-align: center; margin-top: 30px">
							<span id="external-app-close">Close</span>
						</div>
					</div>
					<div id="MenuItemsArea" class="scroll-pane">
						<ul>
							<li><a href="javascript:void(0);">Exit</a></li>
						</ul>
					</div>
					<div id="SoftKeysArea">
						<ul>
							<li id="LskLabel"><a href="javascript:void(0);">Options</a></li>
							<li id="RskLabel"><a href="javascript:void(0);">Exit</a></li>
						</ul>
					</div>
				</div>
				<div id="SoftKeys">
					<a href="javascript:void(0);"><img src="preview/images/TransperantImage.png" name="LskArea" border="0" id="LskArea"/></a><a href="javascript:void(0);"><img src="preview/images/TransperantImage.png" name="RskArea" border="0" id="RskArea"/></a> </div>
				</div>
			</div>
		<div id="Dialog" title="Notification window"></div>
	<div id="InspectorTab" class="hide">
		<div>To open Web Inspector you need to:
			<ol>
				<li>Disconnect debugger from Chrome browser.</li>
				<li>Press <span id="UniversalShortcut" class="shortcut">Ctrl+Shift+I</span><span id="MacShortcut" class="shortcut">Command+Option+I</span> to open inspector.</li>
			</ol>
		</div>
	</div>
	</div>
	<div id="preview-ui-bottom">
		<div id="preview-ui-bottom-header">
			<div><span style="float: left">Simulation Controls</span>
			<span id="Console-Notification" title="Open application console" class="hide">&nbsp;</span></div>
			<span class="open" id="Console-Toggle-Button"></span>
		</div>
		<div id="tabs" class="tabs-bottom">
		<ul id="tabs-header">
			<li><a href="#console">Console</a></li>
			<li><a href="#event-acceleration">Screen</a></li>
			<li><a href="#event-battery-info">Battery</a></li>
			<li><a href="#event-messaging-info">Events</a></li>
		</ul>
		<div id="console" class="hide" style="height: 100%">
			<span id="Console-Clear-Button"></span>
			<div id="preview-ui-bottom-body" class="Console">
				<p id="hint">Use window.console object log, debug, info, warn and error methods 
				to output debug information. All methods can format strings if supplied arguments 
				in printf format.<br/><b>Examples:</b><br/>
				&nbsp;&nbsp;window.console.log('log %d', 123);<br/>
				&nbsp;&nbsp;window.console.debug('debug %s', "string");<br/>
				&nbsp;&nbsp;window.console.info('info %s', "string " + 123);<br/>
				&nbsp;&nbsp;window.console.warn('warn %f', 123.456);<br/>
				&nbsp;&nbsp;window.console.error('error');</p>
			</div>
		</div>
		<div id="event-acceleration" class="hide">
			<table cellpadding='0' cellspacing='0' width="100%">
			<tr>
				<th>Screen Resolution:</th>
				<td>
					<div id="clockwise" title="Rotate Clockwise">&nbsp;</div>
					<select id="resOptions" size="1">
						<option selected="selected" value="http://www.forum.nokia.com/devices/matrix_240x320_1.html">240x320</option>
						<option value="http://www.forum.nokia.com/devices/matrix_320x240_1.html">320x240</option>
						<option value="http://www.forum.nokia.com/devices/matrix_360x640_1.html">360x640</option>
						<option value="http://www.forum.nokia.com/devices/E90_Communicator">800x352</option>
					</select>
					<div id="cclockwise" title="Rotate Counterclockwise">&nbsp;</div>
				</td>
			</tr>
			<tr>
				<th>
					<canvas width="140px" height="120px" id="phoneposition" >No canvas available</canvas>
				</th>
				<td>
					<div><div id="xleft">&nbsp;</div><input id="xaxis" class="ui-widget axis-entry"/><div id="xright">&nbsp;</div></div>
					<div><div id="yleft">&nbsp;</div><input id="yaxis" class="ui-widget axis-entry"/><div id="yright">&nbsp;</div></div>
					<div><div id="zleft">&nbsp;</div><input id="zaxis" class="ui-widget axis-entry"/><div id="zright">&nbsp;</div></div>
				</td>
			</tr>
			</table>
		</div>
		<div id="event-battery-info" class="hide">
			<table cellpadding='0' cellspacing='0' width="100%">
				<tr>
					<th>Charging status</th>
					<td>
						<a class="ui-button-fixed" id="connect-charger">Connect charger</a>
						<a class="ui-button-fixed" id="disconnect-charger">Disconnect charger</a>
					</td>
				</tr>
				<tr>
					<th>Battery Strength</th>
					<td>
						<div id="slider"></div>
						<div id="slider-value-panel"><span class="readonly-field">0</span></div>
					</td>
				</tr>
			</table>
		</div>
		<div id="event-messaging-info" class="hide">
			<table cellpadding='0' cellspacing='0' width="100%">
				<tr>
					<th>New message</th>
					<td>
						<a class="ui-button-fixed" id="send-sms">Trigger new SMS</a>
						<a class="ui-button-fixed" id="send-mms">Trigger new MMS</a>
					</td>
				</tr>
				<tr>
					<th>Memory Card</th>
					<td>
						<a class="ui-button-fixed" id="connect-memory-card">Connect</a>
						<a class="ui-button-fixed" id="disconnect-memory-card">Disconnect</a>
					</td>
				</tr>
			</table>
		</div>
		</div>
	</div>
	<div id="InspectorBtn" class="hide"></div>
	<div id="orientationIcon"></div>
	<div id="loaderDiv"></div>
	<div id="NotificationDiv" class="hide">
		<p>WRT Simulation may not work properly on this browser, <br/>Chrome is recommended for widget preview and debugging.  <br/><br/><strong>Continue?</strong></p>
	</div>
	<div id="BrowserNotificationBar" class="hide">
		<p><a></a>WRT Simulation may not work properly on this browser, Chrome is recommended for widget preview and debugging</p>
	</div>
</body>
</html>