# HG changeset patch # User Eugene Ostroukhov # Date 1278105860 25200 # Node ID dc5d845451fc1804e20e0edc9472d25c85625c4d # Parent 461da1f79f4326fc3c00cbb0495de7e9743d5f6f Bug 3063 - Provide a feedback when there is console output diff -r 461da1f79f43 -r dc5d845451fc org.symbian.tools.wrttools.previewer/preview/css/style.css --- 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 diff -r 461da1f79f43 -r dc5d845451fc org.symbian.tools.wrttools.previewer/preview/script/helper.js --- 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' diff -r 461da1f79f43 -r dc5d845451fc org.symbian.tools.wrttools.previewer/preview/script/layout.js --- 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; diff -r 461da1f79f43 -r dc5d845451fc org.symbian.tools.wrttools.previewer/preview/wrt_preview.html --- 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 @@
-
Simulation Controls
+
Simulation Controls +