org.symbian.tools.wrttools.previewer/preview/script/helper.js
changeset 411 07412dc8e169
parent 408 9985028ffc2c
child 412 72448215f517
equal deleted inserted replaced
410:084ae6de03b5 411:07412dc8e169
   293 			NOKIA.menu.cancel();
   293 			NOKIA.menu.cancel();
   294 		}, 10000);
   294 		}, 10000);
   295 	});
   295 	});
   296 
   296 
   297 	// Tabs
   297 	// Tabs
   298 	$('#tabs').tabs( {
   298 	$('#tabs').tabs(
   299 	// select : function(event, ui){
   299 			{
   300 	// switch (ui.index) {
   300 				select : function(event, ui) {
   301 	// case 1:
   301 					var selectedTab = ui.index;
   302 	// $("event-battery-info").show();
   302 					NOKIA.helper.setPreference(EmulatorPreferences.SELECTED_TAB,
   303 	// break;
   303 							selectedTab);
   304 	// case 2:
   304 				}, selected:NOKIA.helper.getPreference(EmulatorPreferences.SELECTED_TAB)
   305 	// $("event-messaging-info").show();
   305 			});
   306 	// break;
       
   307 	// case 3:
       
   308 	// $("event-memory-info").show();
       
   309 	// break;
       
   310 	// case 4:
       
   311 	//					
       
   312 	// }}
       
   313 	});
       
   314 	$(".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *").removeClass(
   306 	$(".tabs-bottom .ui-tabs-nav, .tabs-bottom .ui-tabs-nav > *").removeClass(
   315 			"ui-corner-all ui-corner-top").addClass("ui-corner-bottom");
   307 			"ui-corner-all ui-corner-top").addClass("ui-corner-bottom");
   316 
   308 
   317 	$("#xleft").button( {
   309 	$("#xleft").button( {
   318 		icons : {
   310 		icons : {
   320 		},
   312 		},
   321 		text : false
   313 		text : false
   322 	});
   314 	});
   323 	$("#xright").button( {
   315 	$("#xright").button( {
   324 		icons : {
   316 		icons : {
   325 		primary : 'ui-icon-triangle-1-e'
   317 			primary : 'ui-icon-triangle-1-e'
   326 	},
   318 		},
   327 	text : false
   319 		text : false
   328 	});
   320 	});
   329 	$("#yleft").button( {
   321 	$("#yleft").button( {
   330 		icons : {
   322 		icons : {
   331 		primary : 'ui-icon-triangle-1-w'
   323 			primary : 'ui-icon-triangle-1-w'
   332 	},
   324 		},
   333 	text : false
   325 		text : false
   334 	});
   326 	});
   335 	$("#yright").button( {
   327 	$("#yright").button( {
   336 		icons : {
   328 		icons : {
   337 		primary : 'ui-icon-triangle-1-e'
   329 			primary : 'ui-icon-triangle-1-e'
   338 	},
   330 		},
   339 	text : false
   331 		text : false
   340 	});
   332 	});
   341 	$("#zleft").button( {
   333 	$("#zleft").button( {
   342 		icons : {
   334 		icons : {
   343 		primary : 'ui-icon-triangle-1-w'
   335 			primary : 'ui-icon-triangle-1-w'
   344 	},
   336 		},
   345 	text : false
   337 		text : false
   346 	});
   338 	});
   347 	$("#zright").button( {
   339 	$("#zright").button( {
   348 		icons : {
   340 		icons : {
   349 		primary : 'ui-icon-triangle-1-e'
   341 			primary : 'ui-icon-triangle-1-e'
   350 	},
   342 		},
   351 	text : false
   343 		text : false
   352 	});
   344 	});
   353 	
   345 
   354 	/*
   346 	/*
   355 	 * Event triggering
   347 	 * Event triggering
   356 	 */
   348 	 */
   357 
   349 
   358 	// for battery
   350 	// for battery