uidesigner/com.nokia.sdt.uimodel.tests/data/nodepath/CBA_visual.js
author tzelaw
Fri, 24 Apr 2009 14:48:12 -0500
changeset 125 b878114e8cc2
parent 2 d760517a8095
permissions -rw-r--r--
Overhaul of RCOMP/GCCE error parsing to fix 8901: -RCOMP error parser will defer C preprocessor errors to GCCECompiler error parser. -GCCE error parser is splited into compiler/assembler/linker, calling their counterpart in CDT respectively before handling special cases. -Updated error messages RCOMP error parser according to latest copy of RCOMP source. -WINSCW build configuration is using CDT GCC error parser instead of GCCE(for RCOMP C preprocessor error) Updated test case for error parsing -Added Bugzilla regression for GCC and make error parser -Converted test case from hardcoded SDK_ID to picking up the first SDK from device.xml with the build config specified by the test. -Fixed bug in test harness for input file ends on the last line so it was processed in the same run. -Fixed bug in test harness for not clearing problem view before each run(for visual cross check). -Rewritten test harness to use JDOM XML handling(from JAXP), to solve deployment issue in newer JRE.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
cawthron
parents:
diff changeset
     1
/*
cawthron
parents:
diff changeset
     2
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
cawthron
parents:
diff changeset
     3
* All rights reserved.
cawthron
parents:
diff changeset
     4
* This component and the accompanying materials are made available
cawthron
parents:
diff changeset
     5
* under the terms of the License "Eclipse Public License v1.0"
cawthron
parents:
diff changeset
     6
* which accompanies this distribution, and is available
cawthron
parents:
diff changeset
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
cawthron
parents:
diff changeset
     8
*
cawthron
parents:
diff changeset
     9
* Initial Contributors:
cawthron
parents:
diff changeset
    10
* Nokia Corporation - initial contribution.
cawthron
parents:
diff changeset
    11
*
cawthron
parents:
diff changeset
    12
* Contributors:
cawthron
parents:
diff changeset
    13
*
cawthron
parents:
diff changeset
    14
* Description: 
cawthron
parents:
diff changeset
    15
*
cawthron
parents:
diff changeset
    16
*/
cawthron
parents:
diff changeset
    17
/*		
cawthron
parents:
diff changeset
    18
 *		graphics (wrapped SWT GC)
cawthron
parents:
diff changeset
    19
 *		Colors (object from which getColor(r,g,b) is available)
cawthron
parents:
diff changeset
    20
 *		Fonts (object from which getFont("path") is available)
cawthron
parents:
diff changeset
    21
 *		Images (object from which newImage(device,w,h) is available)
cawthron
parents:
diff changeset
    22
 */
cawthron
parents:
diff changeset
    23
function CBAVisual() {
cawthron
parents:
diff changeset
    24
}
cawthron
parents:
diff changeset
    25
cawthron
parents:
diff changeset
    26
CBAVisual.prototype.draw = function() {
cawthron
parents:
diff changeset
    27
	fontFile = "Alb17.14.ttf";
cawthron
parents:
diff changeset
    28
cawthron
parents:
diff changeset
    29
	graphics.setFont(Fonts.getGlobalFont("data/s60/fonts/"+fontFile));
cawthron
parents:
diff changeset
    30
	graphics.setBackground(Colors.getColor(0, 0, 0))
cawthron
parents:
diff changeset
    31
cawthron
parents:
diff changeset
    32
	// get bounding rect
cawthron
parents:
diff changeset
    33
	var rect = new Rectangle(5, 0,
cawthron
parents:
diff changeset
    34
		properties.size.width - 10, properties.size.height)
cawthron
parents:
diff changeset
    35
		
cawthron
parents:
diff changeset
    36
	graphics.drawFormattedString(properties.CBA.leftText, rect, Font.ALIGN_LEFT, 0);
cawthron
parents:
diff changeset
    37
	
cawthron
parents:
diff changeset
    38
	graphics.drawFormattedString(properties.CBA.rightText, rect, Font.ALIGN_RIGHT, 0);
cawthron
parents:
diff changeset
    39
}
cawthron
parents:
diff changeset
    40
cawthron
parents:
diff changeset
    41
CBAVisual.prototype.getPreferredSize = function(wHint, hHint) {
cawthron
parents:
diff changeset
    42
	return null; // needs implementation	
cawthron
parents:
diff changeset
    43
}
cawthron
parents:
diff changeset
    44