--- a/org.symbian.tools.wrttools.previewer/preview/css/style.css Fri Jul 02 11:34:35 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/css/style.css Fri Jul 02 14:24:20 2010 -0700
@@ -721,9 +721,8 @@
float: left;
margin: 9px;
color: #ffffff;
- font-size: 11px;
+ font-size: 13px;
font-weight: bolder;
- font-family: "Arial";
}
span#wrt-help {
@@ -783,4 +782,17 @@
background: url("../images/rotate-buttons.png") !important;
background-attachment: scroll !important;
background-position: 16px 0 !important;
+}
+
+#Console-Notification {
+ float: left;
+ margin-left: 5ex;
+ width: 16px;
+ height: 16px;
+ background-image: url(../script/jquery-ui/css/ui-darkness/images/ui-icons_cccccc_256x240.png);
+ background-position: -0px -144px;
+}
+
+#Console-Notification:HOVER {
+ background-image: url(../script/jquery-ui/css/ui-darkness/images/ui-icons_ffffff_256x240.png);
}
\ No newline at end of file
--- a/org.symbian.tools.wrttools.previewer/preview/script/helper.js Fri Jul 02 11:34:35 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/helper.js Fri Jul 02 14:24:20 2010 -0700
@@ -294,31 +294,52 @@
}, 10000);
});
+ NOKIA.layout.currentTab = NOKIA.helper
+ .getPreference(EmulatorPreferences.SELECTED_TAB);
+ if (NOKIA.layout.currentTab == undefined) {
+ NOKIA.layout.currentTab = 0;
+ }
// Tabs
$('#tabs').tabs(
{
select : function(event, ui) {
var selectedTab = ui.index;
- NOKIA.helper.setPreference(EmulatorPreferences.SELECTED_TAB,
- selectedTab);
- }, selected:NOKIA.helper.getPreference(EmulatorPreferences.SELECTED_TAB)
+ NOKIA.helper.setPreference(
+ EmulatorPreferences.SELECTED_TAB, selectedTab);
+ NOKIA.layout.currentTab = selectedTab;
+ if (selectedTab == 0) {
+ $('#Console-Notification').hide();
+ }
+ },
+ selected : NOKIA.layout.currentTab
});
$(".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *").removeClass(
"ui-corner-all ui-corner-top").addClass("ui-corner-bottom");
+ $('#Console-Notification').click(function() {
+ $('#tabs').tabs( {
+ selected : 0
+ });
+ $(this).hide();
+ $('Console-Toggle-Button').animate({scrollTop: $('#Console-Toggle-Button')[0].attr("scrollHeight")});
+ return NOKIA.layout._console_minimized;
+ });
$("#clockwise").button( {
icons : {
primary : "button-clockwise"
},
text : null
- }).click(function() {NOKIA.emulator.turn(1);});
+ }).click(function() {
+ NOKIA.emulator.turn(1);
+ });
$("#cclockwise").button( {
icons : {
primary : "button-cclockwise"
},
text : null
- }).click(function() {NOKIA.emulator.turn(-1);});
-
+ }).click(function() {
+ NOKIA.emulator.turn(-1);
+ });
$("#xleft").button( {
icons : {
primary : 'ui-icon-triangle-1-w'
--- a/org.symbian.tools.wrttools.previewer/preview/script/layout.js Fri Jul 02 11:34:35 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/script/layout.js Fri Jul 02 14:24:20 2010 -0700
@@ -18,6 +18,7 @@
this._consoleWindowHeight = 290;
this._consoleHeaderHeight = 31;
this._tabHeight = 27;
+ this.currentTab = 0;
}
EmulatorLayout.prototype.init = function() {
@@ -43,6 +44,9 @@
};
EmulatorLayout.prototype.log = function(type, msg) {
+ if (this.currentTab != 0 || this._console_minimized) {
+ $('#Console-Notification').show();
+ }
$("p#hint").hide();
var p = document.createElement('p');
p.className = type;
--- a/org.symbian.tools.wrttools.previewer/preview/wrt_preview.html Fri Jul 02 11:34:35 2010 -0700
+++ b/org.symbian.tools.wrttools.previewer/preview/wrt_preview.html Fri Jul 02 14:24:20 2010 -0700
@@ -79,7 +79,8 @@
</div>
<div id="preview-ui-bottom">
<div id="preview-ui-bottom-header">
- <div>Simulation Controls</div>
+ <div><span style="float: left">Simulation Controls</span>
+ <span id="Console-Notification" title="Open application console" class="hide"> </span></div>
<span class="open" id="Console-Toggle-Button"></span>
</div>
<div id="tabs" class="tabs-bottom">